[csw-users] Problems with GCC 4.6.3

Dagobert Michelsen dam at opencsw.org
Tue Apr 24 11:38:10 CEST 2012


Hi Dmitri,

Am 24.04.2012 um 11:35 schrieb Dmitri Shubin:
> 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?

How did you install gcc? Did you use pkgutil following all dependencies? From
  http://buildfarm.opencsw.org/cgi-bin/depgraph?pkg=CSWgcc4core&collapse_bundles=gcc
CSWlibintl8 automatically pulls in CSWlibiconv2 as indirect dependency.


Best regards

  -- Dago


-- 
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896



More information about the users mailing list