Re: Problem: Cross compile to arm (Raspberry pi) using autotools

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux