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

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

-- 
Stefan Brüns  /  Bergstraße 21  /  52062 Aachen
home: +49 241 53809034     mobile: +49 151 50412019
work: +49 2405 49936-424
--
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to