Subject: weird problem building lang/gcc3-c++ on 1.6.2_STABLE/i386
To: NetBSD Packages Technical Discussion List <tech-pkg@NetBSD.ORG>
From: Greg A. Woods <>
List: tech-pkg
Date: 01/10/2005 19:48:00
I'm just re-building everything I build from the pkgsrc-2004Q4 branch
and have run into this little mystery:

gmake[1]: Leaving directory `/build/package-obj/lang/gcc3-c++/work/gcc-3.3.4/i386--netbsdelf/libstdc++-v3'
libtool --mode=unwrap -o /var/package-obj/lang/gcc3-c++/work/gcc-3.3.4/i386--netbsdelf/libstdc++-v3/libsupc++/
libtool: unrecognized option `-o'
Try `libtool --help' for more information.
*** Error code 1

make: stopped in /building/work/woods/m-NetBSD-pkgsrc-2004q4/lang/gcc3-c++
*** Error code 1

make: stopped in /building/work/woods/m-NetBSD-pkgsrc-2004q4/lang/gcc3-c++
*** Error code 1

make: stopped in /building/work/woods/m-NetBSD-pkgsrc-2004q4/lang/gcc3-c++
** 'cd /usr/pkgsrc/lang/gcc3-c++ && /usr/bin/make update CLEANDEPENDS=yes' failed

Obviously some command name is missing, though without a double space
where it should be it does not look like an empty macro expansion....

Oddly I can't find any Makefile in which the string "unwrap" occurs:

[ttyp2]<woods@always> # fgrep unwrap work/gcc-3.3.4/Makefile
[ttyp2]<woods@always> # fgrep unwrap work/gcc-3.3.4/*/Makefile
[ttyp2]<woods@always> # fgrep unwrap work/gcc-3.3.4/*/*/Makefile
[ttyp2]<woods@always> # fgrep unwrap work/gcc-3.3.4/*/*/*/Makefile
[ttyp2]<woods@always> # fgrep unwrap work/gcc-3.3.4/*/*/*/*/Makefile
[ttyp2]<woods@always> # fgrep unwrap work/gcc-3.3.4/*/*/*/*/*/Makefile
fgrep: can't open work/gcc-3.3.4/*/*/*/*/*/Makefile: No such file or directory
[ttyp2]<woods@always> # find work/gcc-3.3.4 -name 'Make\*' -print | xargs fgrep unwrap                              
[ttyp2]<woods@always> # 

weird, eh?

Note that gcc3-c-3.3.4 is already successfully built and installed.

Note also that prior to moving to the 2004Q4 branch I had successfully
built all these gcc3 related packages from the 2004Q3 branch:

# l /build/pkgiso/cd*/packages/All/gcc*.tgz

(the java front-end didn't build on Alpha, but I think I reported that)

Also note I have made no local changes to the lang/gcc3* modules.

						Greg A. Woods

H:+1 416 218-0098  W:+1 416 489-5852 x122  VE3TCP  RoboHack <>
Planix, Inc. <>          Secrets of the Weird <>