[csw-users] Problems with GCC 4.6.3

Dmitri Shubin sbn at tbricks.com
Tue Apr 24 11:35:01 CEST 2012


Hello!

I installed the latest GCC 4.6.3 from unstable, but I was unable to 
compile anything with it due to the following error:

$ cat a.c
int main()
{
     return 0;
}
$ /opt/csw/gcc4/bin/gcc a.c
ld.so.1: gas: fatal: libiconv.so.2: open failed: No such file or directory
gcc: internal compiler error: Killed (program as)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
$ /opt/csw/bin/gas
ld.so.1: gas: fatal: libiconv.so.2: open failed: No such file or directory
Killed

So the problem is in 'gas' in fact.

$ LD_DEBUG=all /opt/csw/bin/gas
...
15372: file=/opt/csw/lib/pentium_pro/libintl.so.8;  analyzing  [ 
RTLD_LAZY RTLD_GLOBAL RTLD_WORLD RTLD_NODELETE ]
15372:
15372: file=libiconv.so.2;  needed by /opt/csw/lib/pentium_pro/libintl.so.8
15372:
15372: find object=libiconv.so.2; searching
15372:  search path=/opt/csw/lib/pentium_pro  (RUNPATH/RPATH from file 
/opt/csw/lib/pentium_pro/libintl.so.8)
15372:  trying path=/opt/csw/lib/pentium_pro/libiconv.so.2
15372:  search path=/lib  (default)
15372:  search path=/usr/lib  (default)
15372:  trying path=/lib/libiconv.so.2
15372:  trying path=/usr/lib/libiconv.so.2
ld.so.1: gas: fatal: libiconv.so.2: open failed: No such file or directory
15372:
15372:
15372: ld.so.1: gas: fatal: libiconv.so.2: open failed: No such file or 
directory

15372:
15372:
Killed

Setting LD_LIBRARY_PATH=/opt/csw/lib helps, but I don't think it's good 
solution.

Any ideas?

Thanks!


More information about the users mailing list