Sign in Join

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

Mailing lists / fpc-pascal / 2015-07

Error compiling fpc for ARM embedded

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Juan Duran

Hi ALL,

today I updated fpc trunk to 31185.

I am not able to compile ppcrossarm on this revision. It always worked with:

make -j2 clean buildbase installbase CROSSINSTALL=1 CROSSOPT="-XParm-none-eabi-" OS_TARGET=embedded CPU_TARGET=arm SUBARCH=armv7m INSTALL_PREFIX=~/lab

I am on Mac OS X 10.9.

The compiler shows me:

softfpu.pp(4894,11) Error: GOTO and LABEL are not supported (use switch -Sg)
softfpu.pp(4895,11) Error: GOTO and LABEL are not supported (use switch -Sg)
softfpu.pp(4906,29) Error: GOTO and LABEL are not supported (use switch -Sg)
softfpu.pp(4907,29) Error: GOTO and LABEL are not supported (use switch -Sg)
softfpu.pp(4926,31) Error: GOTO and LABEL are not supported (use switch -Sg)
softfpu.pp(4927,31) Error: GOTO and LABEL are not supported (use switch -Sg)
softfpu.pp(4928,31) Error: GOTO and LABEL are not supported (use switch -Sg)
softfpu.pp(4929,31) Error: GOTO and LABEL are not supported (use switch -Sg)
softfpu.pp(4957,5) Error: GOTO and LABEL are not supported (use switch -Sg)
softfpu.pp(5050,11) Error: GOTO and LABEL are not supported (use switch -Sg)
softfpu.pp(5069,62) Error: GOTO and LABEL are not supported (use switch -Sg)
softfpu.pp(5140,11) Error: GOTO and LABEL are not supported (use switch -Sg)
softfpu.pp(5165,13) Error: GOTO and LABEL are not supported (use switch -Sg)
softfpu.pp(5257,11) Error: GOTO and LABEL are not supported (use switch -Sg)
softfpu.pp(5274,9) Error: GOTO and LABEL are not supported (use switch -Sg)
softfpu.pp(5394,11) Error: GOTO and LABEL are not supported (use switch -Sg)
softfpu.pp(5394,11) Fatal: There were 50 errors compiling module, stopping
Fatal: Compilation aborted
make[3]: *** [types.ppu] Error 1
make[3]: *** Waiting for unfinished jobs....
system.inc(1884,8) Warning: Implicit string type conversion
from "RawByteString" to "UnicodeString"
make[2]: *** [embedded_all] Error 2
make[1]: *** [rtl_all] Error 2
make: *** [base.build-stamp.arm-embedded] Error 2

Any ideas?

Thanks in advance

Michael Ring
to Juan Duran

I just compiled the same svn version 31185 on MacOSX 10.10; worked fine for me.

I am using this fpc:
fpc -v
Free Pascal Compiler version 2.6.4 [2014/02/26] for i386

I cannot spot a relevant difference to your commandline. Did you try a new checkout in an empty directory?

make clean buildbase CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm SUBARCH=armv7m CROSSOPT="-O2" BINUTILSPREFIX=arm-none-eabi- || exit 1 sudo make installbase CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm SUBARCH=armv7m CROSSOPT="-O2" BINUTILSPREFIX=arm-none-eabi- || exit 1

Michael

Juan Duran wrote 46 lines
Hi ALL, today I updated fpc trunk to 31185. I am not able to compile ppcrossarm on this revision. It always worked with: make -j2 clean buildbase installbase CROSSINSTALL=1 CROSSOPT="-XParm-none-eabi-" OS_TARGET=embedded CPU_TARGET=arm SUBARCH=armv7m INSTALL_PREFIX=~/lab I am on Mac OS X 10.9. The compiler shows me: softfpu.pp(4894,11) Error: GOTO and LABEL are not supported (use switch -Sg) softfpu.pp(4895,11) Error: GOTO and LABEL are not supported (use switch -Sg) softfpu.pp(4906,29) Error: GOTO and LABEL are not supported (use switch -Sg) softfpu.pp(4907,29) Error: GOTO and LABEL are not supported (use switch -Sg) softfpu.pp(4926,31) Error: GOTO and LABEL are not supported (use switch -Sg) softfpu.pp(4927,31) Error: GOTO and LABEL are not supported (use switch -Sg) softfpu.pp(4928,31) Error: GOTO and LABEL are not supported (use switch -Sg) softfpu.pp(4929,31) Error: GOTO and LABEL are not supported (use switch -Sg) softfpu.pp(4957,5) Error: GOTO and LABEL are not supported (use switch -Sg) softfpu.pp(5050,11) Error: GOTO and LABEL are not supported (use switch -Sg) softfpu.pp(5069,62) Error: GOTO and LABEL are not supported (use switch -Sg) softfpu.pp(5140,11) Error: GOTO and LABEL are not supported (use switch -Sg) softfpu.pp(5165,13) Error: GOTO and LABEL are not supported (use switch -Sg) softfpu.pp(5257,11) Error: GOTO and LABEL are not supported (use switch -Sg) softfpu.pp(5274,9) Error: GOTO and LABEL are not supported (use switch -Sg) softfpu.pp(5394,11) Error: GOTO and LABEL are not supported (use switch -Sg) softfpu.pp(5394,11) Fatal: There were 50 errors compiling module, stopping Fatal: Compilation aborted make[3]: *** [types.ppu] Error 1 make[3]: *** Waiting for unfinished jobs.... system.inc(1884,8) Warning: Implicit string type conversion from "RawByteString" to "UnicodeString" make[2]: *** [embedded_all] Error 2 make[1]: *** [rtl_all] Error 2 make: *** [base.build-stamp.arm-embedded] Error 2 Any ideas? Thanks in advance _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Jonas Maebe
to Juan Duran: today I updated fpc trunk to 31185. I am not able to compile ppcrossarm on this revision.…

Juan Duran wrote on Fri, 03 Jul 2015:

Show quoted text 9 lines
Hi ALL, today I updated fpc trunk to 31185. I am not able to compile ppcrossarm on this revision. It always worked with: make -j2 clean buildbase installbase CROSSINSTALL=1 CROSSOPT="-XParm-none-eabi-" OS_TARGET=embedded CPU_TARGET=arm SUBARCH=armv7m INSTALL_PREFIX=~/lab

The problem is that you are using "make -j2" in combination with multiple make targets. That will execute the "clean", "buildbase" and "installbase" in parallel, so the clean may erase files that buildbase just built.

If you want to use parallel compilation, you have to call "make" separately for each make target.

Jonas