Subject: Can't build lang/gcc3-c on Solaris9/sparc
To: None <tech-pkg@netbsd.org>
From: John D. Baker <jdbaker@mylinuxisp.com>
List: tech-pkg
Date: 06/24/2004 00:01:26
I decided to wipe my pkgsrc-derived software and start over fresh.
With a current pkgsrc (as of about 1800 CST 23 June 2004), I set
about re-bootstrapping pkgsrc on my SS20.  I used gcc 3.4.0 from
sunfreeware.com to build the bootstrap kit and all went well.

Wanting to keep it all pkgsrc-derived, my next task is to build
lang/gcc3-c (after which I would uninstall the sunfreeware gcc and so
forth).

But building lang/gcc3-c fails a follows:

----------
[...]
/usr/pkgsrc/lang/gcc3-c/work/gcc-3.3.3/gcc/xgcc -B/usr/pkgsrc/lang/gcc3-c/work/gcc-3.3.3/gcc/ -B/usr/pkg/gcc3/sparc-sun-solaris2/bin/ -B/usr/pkg/gcc3/sparc-sun-solaris2/lib/ -isystem /usr/pkg/gcc3/sparc-sun-solaris2/include -dumpspecs > tmp-specs
ld.so.1: /usr/pkgsrc/lang/gcc3-c/work/gcc-3.3.3/gcc/xgcc: fatal: libiconv.so.2: open failed: No such file or directory
Killed
gmake[1]: *** [specs] Error 137
gmake[1]: Leaving directory `/usr/pkgsrc/lang/gcc3-c/work/gcc-3.3.3/gcc'
gmake: *** [all-gcc] Error 2
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/lang/gcc3-c
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/lang/gcc3-c
[...]
-----------

So, it gets as far as building the bootstrap version of the compiler and
attempts to run it, but can't find libiconv.so.

I did find it odd that libiconv (and libtool) was not among the
dependencies built subsequent to returning to lang/gcc3-c itself.  I seem
to recall that they were built as dependencies the last time I did this
about 6 months ago.

Thanks.

-- 
John D. Baker, KN5UKS                    NetBSD     Darwin/MacOS X
jdbaker(at)mylinuxisp(dot)com                 OpenBSD            FreeBSD
BSD -- It just sits there and _works_!