Summary: | cannot compile gcc 4.1.1 with multilib enabled | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Volker Schroer <dl1ksv> |
Component: | [OLD] GCC Porting | Assignee: | AMD64 Project <amd64> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | toolchain |
Priority: | High | ||
Version: | 2006.0 | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Volker Schroer
2006-08-31 05:14:54 UTC
do you have glibc installed properly ? (In reply to comment #1) > do you have glibc installed properly ? > emerge first builds gcc and then glibc. So at this moment only glibc-2.4-r3 (compiled with gcc 3.4.6 ) exists on my system. The problem may result from the multilib use flag, as the configure fails for the 32 bit parts. right, make sure doing something simple like this works: echo 'int main(){}' > test.c gcc -m32 test.c file a.out a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped (In reply to comment #3) > right, make sure doing something simple like this works: > echo 'int main(){}' > test.c > gcc -m32 test.c > file a.out > > a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux > 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped > It compiles but it does not link. /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/./libgcc.a when searching for -lgcc /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/libgcc.a when searching for -lgcc /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/./libgcc.a when searching for -lgcc /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/libgcc.a when searching for -lgcc /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc collect2: ld gab 1 als Ende-Status zur (In reply to comment #3) > right, make sure doing something simple like this works: > echo 'int main(){}' > test.c > gcc -m32 test.c > file a.out > > a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux > 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped > It compiles but it does not link. /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/./libgcc.a when searching for -lgcc /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/libgcc.a when searching for -lgcc /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/./libgcc.a when searching for -lgcc /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/libgcc.a when searching for -lgcc /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc collect2: ld gab 1 als Ende-Status zurück I come from a 'no multilib system' i dont know the proper method then for upgrading from a non-multilib system to a multilib system There is none (supported), simple as that. You will have to stick with the no-multilib. You can try to copy over binpkgs of the toolchain packages from a multilib box to yours, but you're on your own there. |