Problem building gcc 4.4.3 cross-compiler on Fedora 12
FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Problem building gcc 4.4.3 cross-compiler on Fedora 12
Hi, I am trying to build a gcc 4.4.3 cross-compiler. I downloaded the gcc 4.4.3 release, uncompressed it, made a new directory called gccbuild and cd'd there. I have already installed gmp, mpfr, and mpc in /usr/local
These are the commands I used:
Code:
configure --target=arm-linux --enable-languages=c --with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local
make
However, the build fails with
Code:
checking for arm-linux-gcc... /home/steven/gccbuild/./gcc/xgcc -B/home/steven/gccbuild/./gcc/ -B/usr/local/arm-linux/bin/ -B/usr/local/arm-linux/lib/ -isystem /usr/local/arm-linux/include -isystem /usr/local/arm-linux/sys-include
checking for suffix of object files... configure: error: in `/home/steven/gccbuild/arm-linux/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/home/steven/gccbuild'
make: *** [all] Error 2
I strongly recommend using a tool that has built-in knowledge of cross toolchain building. The one I use is crosstool-NG, which is currently supported and has an active mailing list support community. Using such a tool makes the plethora of problems such as you have encountered disappear, mostly. Having said this, I found that using it on Fedora 11 and earlier releases, as well as all RHEL releases did not work due to some older or missing dependencies. My preferred platform for cross toolchain building is Debian (5.02).
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Welcome to LQ.
There is no such thing as a standalone cross-compiler (arm-linux-gcc).
A complete tool chain is required. Simplified example : http://www.gnuarm.com/ http://www.gnuarm.com/support.html#build
Minimum : 1) First thing to build is the "arm binutils"
2) gcc , 3) A libc, one of: glibc, newlib, eglibc, uClibc, etc.
4) And may be a debugger : gdb or insight.
If you are very skilled at building cross compilers, it is said
to be possible to do in about a week.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.