Le 04/07/2015 18:24, Stefan Bruens a écrit :
Hi,

I tried to cross-compile some stuff for ARMv7hl on a x86_host, but have some
issues.

The installed compiler/binutils are:

cross-armv7hl-gcc49-4.9.0+r211729-2.1.7.x86_64
cross-arm-binutils-2.25.0-215.1.x86_64

both from the devel:gcc OBS repository

Seems that GCC 4.9 is no more in the repo. Could you try version 4.8 and/or 5?


Guillaume


The first issue is the assembler (as) is not found by the compiler. According
to "armv7hl-suse-linux-gnueabi-gcc-4.9 -v --print-search-dirs" it uses:

/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/4.9/
/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/
/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/4.9/../../../../armv7hl-suse-linux-
gnueabi/bin/armv7hl-suse-linux-gnueabi/4.9/
/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/4.9/../../../../armv7hl-suse-linux-
gnueabi/bin/

and then falls back to $PATH.

I can work around this by setting the GCC env var COMPILER_PATH to /usr/arm-
suse-linux-gnueabi/bin/ , where the binutils are located.

The problem here obviously is the different architecture in the gcc and
binutils package, as the last search dir entry points to /usr/armv7hl-suse-
linux-gnueabi/bin/ instead of /usr/arm-suse-linux-gnueabi/bin


The second issue it hit is a missing "unwind.h". The x86_64 gcc provides one
for its arch in /usr/lib64/gcc/x86_64-suse-linux/4.9/include/unwind.h, but the
armv7hl gcc is missing it.

Kind regards,

Stefan


--
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to