Notes |
(0011294)
antezedens
09-10-08 00:30
|
For those eager to get gcc-4.3.1 running. I've found out that gcc does not find the shared objects of two libs. The attached patch points gcc to the right directories. It is just a quick fix but it should do until there is an official bugfix. This is what to do:
make <= will stop with the above error
cd buildroot/toolchain_build_ARCH
patch -p2 < gcc-4.3.1-compile.patch
rm -Rf gcc-4.3.1-initial
make <= should compile |
| |
(0011304)
haizaar
09-10-08 04:27
|
Issuing 'export LD_LIBRARY_PATH=$PWD/toolchain_build_arm/mpfr/lib:$LD_LIBRARY_PATH' from the top of your buildroot tree makes build happy. |
| |
(0012274)
jcurl
09-27-08 03:15
|
Using buildroot from SVN 23530. Working towards architecture i586 with uClibC snapshot as of today. The patch didn't work (no change in behaviour) after modifying the file by hand.
The export LD_LIBRARY_PATH also needed to include "gmp" in the path. This makes it go further, but still doesn't work all the way.
export LD_LIBRARY_PATH=$PWD/toolchain_build_i586/mpfr/lib:$PWD/toolchain_build_i586/gmp/lib:$LD_LIBRARY_PATH.
You need to at least run make from "gcc-4.3.1-initial", as running from the root it detects LD_LIBRARY_PATH is based on the current path and says that won't work.
The compilation dies when compiling mudflap at the same stage:
checking for i586-linux-uclibc-gcc... (xgcc here)
checking for C compiler default output filename... configure: error: C compiler cannot create executables
Looking at the mudflap config.log, we see:
$ less i586-linux-uclibc/libmudflap/config.log
configure:2468: checking for C compiler default output file name
configure:2471: /home/jcurl/buildroot/toolchain_build_i586/gcc-4.3.1-initial/./gcc/xgcc -B/home/jcurl/buildroot/toolchain_build_i586/gcc-4.3.1-initial/./gcc/ -B/opt/gcc431-uclibc/usr/i586-linux-uclibc/bin/ -B/opt/gcc431-uclibc/usr/i586-linux-uclibc/lib/ -isystem /opt/gcc431-uclibc/usr/i586-linux-uclibc/include -isystem /opt/gcc431-uclibc/usr/i586-linux-uclibc/sys-include -g -Os conftest.c >&5
/opt/gcc431-uclibc/usr/bin/i586-linux-uclibc-ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2474: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libmudflap"
| #define PACKAGE_TARNAME "libmudflap"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "libmudflap 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libmudflap"
| #define VERSION "1.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2513: error: C compiler cannot create executables
See `config.log' for more details. |
| |