Sign in Join

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

Mailing lists / fpc-devel / 2013-11

Trunk does not build for arm-embedded since rev 25888

9 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

I tried today's trunk, unfortunately it does not build:

/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- -Us -Sg system.pp
flt_pack.inc(127,45) Error: Incompatible type for arg no. 1: Got "Real", expected "float64"
flt_pack.inc(128,44) Error: Incompatible type for arg no. 1: Got "Real", expected "float64"
flt_pack.inc(129,38) Error: Incompatible type for arg no. 1: Got "Real", expected "float64"
text.inc(2222,14) Warning: Implicit string type conversion from "AnsiString" to "UnicodeString"
text.inc(2441,53) Warning: Implicit string type conversion with potential data loss from "UnicodeString" to "AnsiString" system.inc(1770,8) Warning: Implicit string type conversion from "RawByteString" to "UnicodeString"
system.pp(257) Fatal: There were 3 errors compiling module, stopping

This problem was introduced in rev 25888

Michael

Reply by email

Jonas Maebe
to Michael Ring
Michael Ring wrote 9 lines
I tried today's trunk, unfortunately it does not build: /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- -Us -Sg system.pp flt_pack.inc(127,45) Error: Incompatible type for arg no. 1: Got "Real", expected "float64"

Until it's fixed, you should be able to work around the problem by adding -dFLOAT_ASCII_FALLBACK to CROSSOPT.

Jonas

Reply by email

Michael Ring
to Jonas Maebe

OK, thank you!

Jonas Maebe wrote 21 lines
On 01/11/13 09:22, Michael Ring wrote: > I tried today's trunk, unfortunately it does not build: > > > /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- -Us -Sg system.pp > flt_pack.inc(127,45) Error: Incompatible type for arg no. 1: Got "Real", > expected "float64" Until it's fixed, you should be able to work around the problem by adding -dFLOAT_ASCII_FALLBACK to CROSSOPT. Jonas _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Max Nazhalov
Michael Ring wrote 9 lines
I tried today's trunk, unfortunately it does not build: /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- -Us -Sg system.pp flt_pack.inc(127,45) Error: Incompatible type for arg no. 1: Got "Real", expected "float64"

One possible solution is to not rely on "FPC_SYSTEM_HAS_extract*" and always do the work yourself, but I'm not sure. Nevertheless, I'm attaching the suggested patch.

---
WBR, Max.

Reply by email

Jonas Maebe
to Max Nazhalov
Max Nazhalov wrote 12 lines
On 01/11/13 09:22, Michael Ring wrote: > >I tried today's trunk, unfortunately it does not build: > > > > > >/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- -Us -Sg system.pp > >flt_pack.inc(127,45) Error: Incompatible type for arg no. 1: Got "Real", > >expected "float64" One possible solution is to not rely on "FPC_SYSTEM_HAS_extract*" and always do the work yourself, but I'm not sure. Nevertheless, I'm attaching the suggested patch.

Is the fix that Charlie committed in
http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=25914 also correct?

Jonas

Reply by email

Max Nazhalov
to Jonas Maebe

Hello Jonas,

Sunday, November 3, 2013, 9:34:44 PM, you wrote:

Max Nazhalov wrote 12 lines
> On 01/11/13 09:22, Michael Ring wrote: >> >I tried today's trunk, unfortunately it does not build: >> > >> > >> >/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- -Us -Sg system.pp >> >flt_pack.inc(127,45) Error: Incompatible type for arg no. 1: Got "Real", >> >expected "float64" > One possible solution is to not rely on "FPC_SYSTEM_HAS_extract*" and always do the work yourself, but I'm not sure. > Nevertheless, I'm attaching the suggested patch.

JM> Is the fix that Charlie committed in
JM> http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=25914 also JM> correct?

Well, I don't know either. Looks simple and straightforward. Since it works, I see no reason to change it. ;)

WBR, Max

Reply by email

Jonas Maebe
to Max Nazhalov
Max Nazhalov wrote 20 lines
Hello Jonas, Sunday, November 3, 2013, 9:34:44 PM, you wrote: JM> On 03/11/13 09:52, Max Nazhalov wrote: >> On 01/11/13 09:22, Michael Ring wrote: >>>> /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- -Us -Sg system.pp >>>> flt_pack.inc(127,45) Error: Incompatible type for arg no. 1: Got "Real", >>>> expected "float64" >> One possible solution is to not rely on "FPC_SYSTEM_HAS_extract*" and always do the work yourself, but I'm not sure. >> Nevertheless, I'm attaching the suggested patch. JM> Is the fix that Charlie committed in JM> http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=25914 also JM> correct? Well, I don't know either. Looks simple and straightforward. Since it works, I see no reason to change it. ;)

I don't know whether it works, only that it apparently compiles. Charlie, did you check the testsuite results?

Jonas

Reply by email