Compiled GCC, but the result "cannot find -lgcc_s"
Hi,
I want to use GCC 4.1.2 on a SLES 11.0 x86_64 system. SLES 11 comes with GCC 4.3, so I compiled 4.1.2 and `make install`'d myself. When trying to use it, I get: Code:
# /usr/local/bin/gcc-4.1 hello.c Code:
#include <stdio.h> `/usr/local/bin/gcc-4.1 -static hello.c` works. `/usr/local/bin/gcc-4.1 -L/usr/local/lib/gcc/x86_64-suse-linux/lib64 hello.c` works. `/usr/bin/gcc-4.3 hello.c` works. I created /etc/ld.so.conf.d/gcc-412.conf and added "/usr/local/lib/gcc/x86_64-suse-linux/lib64" and "/usr/local/lib/gcc/x86_64-suse-linux/lib" to it. I ran `ldconfig -v` and it does find them: Code:
/usr/local/lib/gcc/x86_64-suse-linux/lib64: I did run the gcc test suites and there were only 12 unexpected failures or successes out of 55k, which the install page says is to be expected. I ./configured gcc with Quote:
But I don't know what I am missing. How do I get it so that I don't have to use -L or -static to use my gcc-4.1? |
Quote:
outside the gcc-4.1.2/ source : $ ../gcc-4.1.2/configure -- -- . I.e. gcc cannot be build without that external build folder. Except that your "configure" line / options look strange, I don't think, you can build 4.1.x using gcc-4.3 ? Build method to be used : LFS, Linux from scratch, book 6.3. But fortunately, it's not necessary to build it. Packages from Suse 11.1 can be used : The "compat gcc41" ... http://download.opensuse.org/distrib...s/suse/x86_64/ Required : cpp41 gcc41 libstdc++41-devel gcc41-c++ ( All -x86_64 ). .. |
Quote:
Quote:
Quote:
|
Quote:
And gcc33 -v comes with the "usual reply". How could there be any conflicts ? These compat compilers, gcc33, gcc41 etc. are all used at the same time in Suse 11.1, 11.2, 11.3. (But I haven't tested gcc41 on SLED 11 before.) I have used the Suse gcc33, gcc41 in Fedora 10-13, Mandriva, PCLinuxOS. They always work. .. |
All times are GMT -5. The time now is 12:47 AM. |