This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
I recently built gcc 4.5 from source. That took a bit of doing, butmachine, I
eventually I got to working. Since I don't have admin on this
set the --prefix to /u1/public/gcc and make installed it there.
I am now able to compile with g++ 4.5. To help, I did alias g++0x /u1/public/gcc/bin/g++ -std=c++0x
However, linking doesn't yet work. I got: /usr/bin/ld: cannot find -lgcc_s And when I changed the alias to include -L/u1/public/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/ -L/u1/public/gcc/lib/gcc/x86_64-unknown-linux-gnu/lib/ then I got /usr/bin/ld: skipping incompatible /u1/public/gcc/lib/gcc/x86_64-unknown-linux-gnu/lib//libgcc_s.so when searching for -lgcc_s /usr/bin/ld: cannot find -lgcc_s
Any ideas?
You haven't given us a huge amount of information: usually we'd want the configure line and the command you use to do the test.
However, you can use "strace -etrace-file" to see where g++ is looking for libgcc_s.so. That'll give you a clue.
Attachment:
strace.result
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |