<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Perhaps you should build your own binutils, it seems that the
version you are using right now does not properly support armv7-m
architecture.<br>
<br>
download<br>
<br>
<a class="moz-txt-link-freetext" href="ftp://ftp.gnu.org/gnu/binutils/binutils-2.25.1.tar.gz">ftp://ftp.gnu.org/gnu/binutils/binutils-2.25.1.tar.gz</a><br>
<br>
<code>extract, create an empty directory and do:</code><br>
<code></code><br>
<code>../binutils-2.25.1/configure --target=arm-none-eabi
--disable-multilib --program-prefix=arm-none-eabi-</code><br>
<code></code><br>
<code>sudo make install will install the tools to /usr/local</code><br>
<code></code><br>
<code></code><br>
or try this version from freshports:<br>
<br>
<a class="moz-txt-link-freetext" href="https://www.freshports.org/devel/gcc-arm-embedded/">https://www.freshports.org/devel/gcc-arm-embedded/</a><br>
<br>
It also builds gcc, which of course you do not need.<br>
<br>
Michael<br>
<br>
<div class="moz-cite-prefix">Am 10.01.16 um 00:16 schrieb Marc
Santhoff:<br>
</div>
<blockquote cite="mid:1452381387.14354.3.camel@puma.das.netz"
type="cite">
<pre wrap="">On Sa, 2016-01-09 at 23:44 +0100, Jonas Maebe wrote:
</pre>
<blockquote type="cite">
<pre wrap="">OS_TARGET=embedded
</pre>
</blockquote>
<pre wrap="">
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
</pre>
</blockquote>
<br>
</body>
</html>