Subject: Re: Can't install gcc3-c-3.3.3 on Solaris 9!
To: John D. Baker <jdbaker@mylinuxisp.com>
From: Ralf-P. Weinmann <weinmann@cdc.informatik.tu-darmstadt.de>
List: tech-pkg
Date: 03/04/2004 10:01:37
On Wed, Mar 03, 2004 at 01:44:31PM -0600, John D. Baker wrote:
> Seeing that lang/gcc3 was now updated for gcc 3.3.3, I set about to update
> my system on Solaris9/sparc.  gcc3-c-3.3.3 built just fine (using
> gcc3-c-3.3.2) but when I went to install it, the procedure eventually came
> to a halt claiming:
> 
> [...]
> cd /usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.3/include && /usr/bin/rm -f fixed && /usr/bin/rmdir v7 v9
> /usr/ucb/install -d -o root -g root -m 755 /usr/pkg/gcc3/mk
> /usr/ucb/install -c -o root -g root -m 444 /usr/pkgsrc/lang/gcc3-c/work/gcc3.mk /usr/pkg/gcc3/mk/c.mk
> /usr/bin/ln -f /usr/pkg/gcc3/bin/gcc /usr/pkg/gcc3/bin/cc
> /usr/bin/cp -f /usr/pkgsrc/lang/gcc3-c/PLIST /usr/pkgsrc/lang/gcc3-c/work/PLIST_DYNAMIC
> /usr/bin/find /usr/pkg/gcc3 \( -type f -o -type l \) -print              | /usr/bin/sort | /usr/pkg/bin/nbsed -e "s,/usr/pkg/,,g"                        >> /usr/pkgsrc/lang/gcc3-c/work/PLIST_DYNAMIC
> /usr/bin/find /usr/pkg/gcc3 -type d -print                               | /usr/bin/sort -r | /usr/pkg/bin/nbsed -e "s,/usr/pkg/,@dirrm ,g"      >> /usr/pkgsrc/lang/gcc3-c/work/PLIST_DYNAMIC
> /usr/bin/env: No such file or directory
> *** Error code 1
> 
> Stop.
> bmake: stopped in /usr/pkgsrc/lang/gcc3-c
> *** Error code 1
> 
> Stop.
> [...]
> 
> Needless to say, /usr/bin/env definitely does exist.  I can't imagine why
> the installation procedure can't find what it's explicitly trying to run.
> Did it do some funky chroot thing and change it's reference frame?
> 
> Help!  I'm either going to have to use the older gcc-3.3 installation,
> or re-bootstrap with the sunfreeware gcc...

Help heard.

The error message may look slightly misleading. What you are being told is
*NOT* that the system cannot find /usr/bin/env but that something incorrect
is passed to /usr/bin/env. Have a look at the post-install-script target in
mk/bsd.pkg.install.mk in your pkgsrc tree. From the above it looks like that
is where your install is failing. 

Try setting your PKG_DEBUG_LEVEL to 2 in mk.conf to see what commands are
executed or if you're machocistic, truss -t open,exec -f make install to
see what's going on ;)

Cheers,
Ralf

-- 
Ralf-P. Weinmann <weinmann@cdc.informatik.tu-darmstadt.de>
PGP fingerprint: 1024D/EF114FC02F150EB9D4F275B6159CEBEAEFCD9B06