[Bug driver/54504] Link failed when I move the GCC to another directory
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54504 --- Comment #6 from progmei progmei at 163 dot com 2012-09-07 06:35:41 UTC --- I've tried to use sysroot option, but I compile the GCC failed. ../gcc-4.7.1/configure --prefix=/repo/yuhuamei/mips-linux-eglibc-gnu --target=mips-linux --with-ppl=/repo/yuhuamei/ppl --with-cloog=/repo/yuhuamei/cloog-ppl --enable-__cxa_atexit --enable-languages=c,c++ --with-sysroot=/repo/yuhuamei/mips-linux-eglibc-gnu /repo/yuhuamei/mips-linux-eglibc-gnu/mips-linux/bin/ld: cannot find /repo/yuhuamei/mips-linux-eglibc-gnu/mips-linux/lib/libc.so.6 inside /repo/yuhuamei/gccobjdir/gcc/../../mips-linux-eglibc-gnu /repo/yuhuamei/mips-linux-eglibc-gnu/mips-linux/bin/ld: cannot find /repo/yuhuamei/mips-linux-eglibc-gnu/mips-linux/lib/libc_nonshared.a inside /repo/yuhuamei/gccobjdir/gcc/../../mips-linux-eglibc-gnu /repo/yuhuamei/mips-linux-eglibc-gnu/mips-linux/bin/ld: cannot find /repo/yuhuamei/mips-linux-eglibc-gnu/mips-linux/lib/ld.so.1 inside /repo/yuhuamei/gccobjdir/gcc/../../mips-linux-eglibc-gnu
[Bug driver/54504] Link failed when I move the GCC to another directory
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54504 --- Comment #7 from Andrew Pinski pinskia at gcc dot gnu.org 2012-09-07 06:38:59 UTC --- I've tried to use sysroot option, but I compile the GCC failed. Because that is not the correct usage of sysroot. You want a full sysroot under the prefix directory: /repo/yuhuamei/mips-linux-eglibc-gnu/sysroot And install the libc inside that directory.
[Bug driver/54504] Link failed when I move the GCC to another directory
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54504 --- Comment #8 from progmei progmei at 163 dot com 2012-09-07 07:41:20 UTC --- I tried it again with your suggestion, but it also failed. ../gcc-4.7.1/configure --prefix=/repo/yuhuamei/mips-linux-eglibc-gnu --target=mips-linux --with-ppl=/repo/yuhuamei/ppl --with-cloog=/repo/yuhuamei/cloog-ppl --enable-__cxa_atexit --enable-languages=c,c++ --with-sysroot=/repo/yuhuamei/mips-linux-eglibc-gnu/sysroot /repo/yuhuamei/mips-linux-eglibc-gnu/mips-linux/bin/ld: cannot find /repo/yuhuamei/mips-linux-eglibc-gnu/sysroot/lib/libc.so.6 inside /repo/yuhuamei/mips-linux-eglibc-gnu/sysroot /repo/yuhuamei/mips-linux-eglibc-gnu/mips-linux/bin/ld: cannot find /repo/yuhuamei/mips-linux-eglibc-gnu/sysroot/lib/libc_nonshared.a inside /repo/yuhuamei/mips-linux-eglibc-gnu/sysroot /repo/yuhuamei/mips-linux-eglibc-gnu/mips-linux/bin/ld: cannot find /repo/yuhuamei/mips-linux-eglibc-gnu/sysroot/lib/ld.so.1 inside /repo/yuhuamei/mips-linux-eglibc-gnu/sysroot
[Bug driver/54504] Link failed when I move the GCC to another directory
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54504 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |RESOLVED Resolution||WORKSFORME --- Comment #9 from Andrew Pinski pinskia at gcc dot gnu.org 2012-09-07 08:49:14 UTC --- /repo/yuhuamei/mips-linux-eglibc-gnu/mips-linux/bin/ld: cannot find /repo/yuhuamei/mips-linux-eglibc-gnu/sysroot/lib/libc.so.6 inside /repo/yuhuamei/mips-linux-eglibc-gnu/sysroot How are you configuring glibc? I think that is the problem here. You should only configure glibc with --prefix=/usr . And then install like: make install install_root=${MY_PREFIX}/sysroot .
[Bug driver/54504] Link failed when I move the GCC to another directory
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54504 --- Comment #10 from progmei progmei at 163 dot com 2012-09-07 13:30:13 UTC --- It's OK now. And I just have some qusetions. If I can build the cross compiler support both soft/hard float big/little endian? And how to compile this. where can I get the related document on how to compile the cross gcc? Thank you! At 2012-09-07 16:49:14,pinskia at gcc dot gnu.org gcc-bugzi...@gcc.gnu.org wrote: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54504 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |RESOLVED Resolution||WORKSFORME --- Comment #9 from Andrew Pinski pinskia at gcc dot gnu.org 2012-09-07 08:49:14 UTC --- /repo/yuhuamei/mips-linux-eglibc-gnu/mips-linux/bin/ld: cannot find /repo/yuhuamei/mips-linux-eglibc-gnu/sysroot/lib/libc.so.6 inside /repo/yuhuamei/mips-linux-eglibc-gnu/sysroot How are you configuring glibc? I think that is the problem here. You should only configure glibc with --prefix=/usr . And then install like: make install install_root=${MY_PREFIX}/sysroot . -- Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You reported the bug.
[Bug driver/54504] Link failed when I move the GCC to another directory
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54504 --- Comment #11 from progmei progmei at 163 dot com 2012-09-07 14:16:15 UTC --- It's OK now. And I just have some qusetions. If I can build the cross compiler support both soft/hard float big/little endian, and how to compile it. where can I get the related document on how to compile the cross gcc? Thank you!
[Bug driver/54504] Link failed when I move the GCC to another directory
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54504 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Component|c++ |driver --- Comment #5 from Andrew Pinski pinskia at gcc dot gnu.org 2012-09-07 04:53:08 UTC --- This is a cross you really should be using a sysroot. I use 4.7.x as a cross compiler with a sysroot and am able to move around GCC all the time.