Perhaps you should build your own binutils, it seems that the version you are using right now does not properly support armv7-m architecture.

download

ftp://ftp.gnu.org/gnu/binutils/binutils-2.25.1.tar.gz

|extract, create an empty directory and do:|
||
|../binutils-2.25.1/configure --target=arm-none-eabi --disable-multilib --program-prefix=arm-none-eabi-|
||
|sudo make install will install the tools to /usr/local|
||
||
or try this version from freshports:

https://www.freshports.org/devel/gcc-arm-embedded/

It also builds gcc, which of course you do not need.

Michael

Am 10.01.16 um 00:16 schrieb Marc Santhoff:
On Sa, 2016-01-09 at 23:44 +0100, Jonas Maebe wrote:
OS_TARGET=embedded
No, doesn'r do. The error message talks about the assemble, maybe it is
the binuitls variant installed?

gmake[3]: Entering directory 
`/usr/p1/home/marc/program/fpc-cross/src/fpc/rtl/embedded'
/usr/local/bin/gmkdir -p 
/usr/p1/home/marc/program/fpc-cross/src/fpc/rtl/units/arm-embedded
/usr/p1/home/marc/program/fpc-cross/src/fpc/compiler/ppcrossarm -Cparmv7m 
@rtl.cfg -Ur -Tembedded -Parm -XParm-embedded- -Xr -Ur -Xs -O2 -n -Fi../inc 
-Fi../arm -FE. 
-FU/usr/p1/home/marc/program/fpc-cross/src/fpc/rtl/units/arm-embedded -darm 
-dRELEASE -XParm-elf- -Us -Sg system.pp
Assembler messages:
Error: unknown architecture `armv7-m'

Error: unrecognized option -march=armv7-m
system.pp(285) Error: Error while assembling exitcode 1
system.pp(285) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted

If I try directly:

  > arm-elf-as -march=armv7-m
Assembler messages:
Error: unknown architecture `armv7-m'

  > lpkg|grep arm
arm-elf-binutils-2.17

Which version of binutils is needed or what's going worng otherwise?

Marc


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to