On 10/07/2017 01:49 PM, Dirk Gottschalk wrote:
Hello,
I have a problem cross compiling using autotools for my Raspberry Pi 3.
I wrote a server program which runs good with Linux and under windows
(compiled with MinGW) on my X86_64 machine.
Since there is no configure wrapper for ARM like MinGW has, i use the
following configure call:
./configure --host=arm-linux-gnu
The Script is failing and the log tells me about bad options
"-qverseion" and "-V" in GCC tests. So I removed this Options from the
Script by hand.
Now it tells me about a missing file called "crt1.o". But i found this
file in "/usr/arm-linux-gnu/lib/crt1.o".
Well, in general, this indicates a broken path, either in the toolchain
or in your compiler call.
Try
touch tmp.c
arm-linux-gnu-gcc -v tmp.c
and check the search paths being reported.
So, my question is: Did i miss something?
Likely ;) Is your target running arm-linux-gnu or something else (e.g.
bare metal, a different OS, ...)?
Normally, you need a toolchain specialized/dedicated to your target and
can't use an arbitrary toolchain.
How do I use the cross compiler with
autotools?
In an ideal world, exactly like you did. However, it's pretty likely you
are tripping over bugs in your configure.ac.
Also make sure NOT to have set CC, CFLAGS etc in your environment.
Ralf
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx