Re: Problem: Cross compile to arm (Raspberry pi) using autotools
On Sat, Oct 07, 2017 at 03:03:32PM +0200, Dirk Gottschalk wrote: > Hello Ralf. > > Am Samstag, den 07.10.2017, 14:43 +0200 schrieb Ralf Corsepius: > > On 10/07/2017 01:49 PM, Dirk Gottschalk wrote: > > Try > > touch tmp.c > > arm-linux-gnu-gcc -v tmp.c > > and check the search paths being reported. > > Thank you, this did the trick. The shown Path are wrong, or the rpm > installed the files in the wrong paths, depends on how you look at it. > > Now i habe to figure out if i can correct the path in config, or i do a > somple symlink on the fs. I hope this foxes the issue. > > > > > 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, ...)? > > My target is Linux, the Pi 3 is running Raspbian. > > > > Normally, you need a toolchain specialized/dedicated to your target > > and > > can't use an arbitrary toolchain. > > Using autotools for this works for others, so the problem should be my > configuration. > > > > 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. > > I have a very simple configure.ac, no special options, but this > deserves a deeper look. > > > > Also make sure NOT to have set CC, CFLAGS etc in your environment. > > These variables are unset in my Environment because I use autotools for > all my Project. These variables are set temporarily by them. > > Thanks for you advice. While I understand that your preference is to build on a linux box other than the RPI, if you get sufficiently despearte, you could install dev tools on the RPI and build there. Compiling stuff on my RPI3 is reasonably fast (I haven't tried something large like a kernel). -- Fred Smith -- fre...@fcshome.stoneham.ma.us - But God demonstrates his own love for us in this: While we were still sinners, Christ died for us. --- Romans 5:8 (niv) -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org
Re: Problem: Cross compile to arm (Raspberry pi) using autotools
Hello Ralf. Am Samstag, den 07.10.2017, 14:43 +0200 schrieb Ralf Corsepius: > On 10/07/2017 01:49 PM, Dirk Gottschalk wrote: > Try > touch tmp.c > arm-linux-gnu-gcc -v tmp.c > and check the search paths being reported. Thank you, this did the trick. The shown Path are wrong, or the rpm installed the files in the wrong paths, depends on how you look at it. Now i habe to figure out if i can correct the path in config, or i do a somple symlink on the fs. I hope this foxes the issue. > > 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, ...)? My target is Linux, the Pi 3 is running Raspbian. > Normally, you need a toolchain specialized/dedicated to your target > and > can't use an arbitrary toolchain. Using autotools for this works for others, so the problem should be my configuration. > > 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. I have a very simple configure.ac, no special options, but this deserves a deeper look. > Also make sure NOT to have set CC, CFLAGS etc in your environment. These variables are unset in my Environment because I use autotools for all my Project. These variables are set temporarily by them. Thanks for you advice. Regards, Dirk -- Dirk Gottschalk Paulusstrasse 6-8 52064 Aachen Tel.: +49 1573 1152350 signature.asc Description: This is a digitally signed message part ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org
Re: Problem: Cross compile to arm (Raspberry pi) using autotools
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@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org
Problem: Cross compile to arm (Raspberry pi) using autotools
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". So, my question is: Did i miss something? A additional configure parameter or anything like this? How do I use the cross compiler with autotools? It would be nice to habe a wrapper script line mingwXX-configure, but it would be good to know, what to do. Thanks, Dirk -- Dirk Gottschalk Paulusstrasse 6-8 52064 Aachen Tel.: +49 1573 1152350 signature.asc Description: This is a digitally signed message part ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org