Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2014-03

arm-embedded target does not compile in trunk since revision 26964 (Some AVR related changes)

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Ring

Error Message is:

*/bin/mkdir -p /Users/ring/devel/fpc/rtl/units/arm-embedded /Users/ring/devel/fpc/compiler/ppcrossarm -Cparmv7m @rtl.cfg -Ur -Tembedded -Parm -XParm-none-eabi- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../arm -FE. -FU/Users/ring/devel/fpc/rtl/units/arm-embedded -darm -dRELEASE -O- -gw2 -Us -Sg system.pp
system.inc(1581,25) Error: Incompatible type for arg no. 2: Got "PChar", expected "PFileTextRecChar"
system.inc(1772,8) Warning: Implicit string type conversion from "RawByteString" to "UnicodeString"
system.pp(257) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted

*

Reply by email

Michael Ring
to Michael Ring

As there was no reaction I created a patch, question is if this patch can be generally applied or if this version of patch should be specific for arm targets. I guess it should be universal because it matches the other definitions that also use pChar in the same file.

fpc]$ svn diff rtl/embedded/sysfile.inc
Index: rtl/embedded/sysfile.inc
=================================================================== --- rtl/embedded/sysfile.inc (revision 27114)
+++ rtl/embedded/sysfile.inc (working copy)
@@ -69,7 +69,7 @@

  begin
  end;
-procedure do_open(var f;p:PFileTextRecChar;flags:longint; pchangeable:
boolean);
+procedure do_open(var f;p:pChar;flags:longint; pchangeable: boolean);
  begin
  end;
Michael Ring wrote 21 lines
Error Message is: */bin/mkdir -p /Users/ring/devel/fpc/rtl/units/arm-embedded /Users/ring/devel/fpc/compiler/ppcrossarm -Cparmv7m @rtl.cfg -Ur -Tembedded -Parm -XParm-none-eabi- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../arm -FE. -FU/Users/ring/devel/fpc/rtl/units/arm-embedded -darm -dRELEASE -O- -gw2 -Us -Sg system.pp system.inc(1581,25) Error: Incompatible type for arg no. 2: Got "PChar", expected "PFileTextRecChar" system.inc(1772,8) Warning: Implicit string type conversion from "RawByteString" to "UnicodeString" system.pp(257) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted * _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email

Jeppe Græsdal Johansen
to Michael Ring
Michael Ring wrote
As there was no reaction I created a patch, question is if this patch can be generally applied or if this version of patch should be specific for arm targets. I guess it should be universal because it matches the other definitions that also use pChar in the same file.

Hi Michael,

Just fixed this a slightly different way. Sorry for the delay.

Best Regards,
Jeppe

Reply by email

Michael Ring
to Jeppe Græsdal Johansen

Thank you Jeppe,

I did not want to look impatient, was just wondering if this problem somehow did not catch attention... ;-)

Michael

Jeppe Græsdal Johansen wrote 16 lines
Den 12-03-2014 16:51, Michael Ring skrev: > As there was no reaction I created a patch, question is if this patch > can be generally applied or if this version of patch should be > specific for arm targets. I guess it should be universal because it > matches the other definitions that also use pChar in the same file. Hi Michael, Just fixed this a slightly different way. Sorry for the delay. Best Regards, Jeppe _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email

Sven Barth
to Michael Ring
"Michael Ring" wrote
I did not want to look impatient, was just wondering if this problem

somehow did not catch attention... ;-)
It's usually best to report things like that on the bugtracker.

Regards,
Sven

Reply by email