Subject: Re: lang/gcc* fail to build with non standard SHELL
To: Packages Technical List NetBSD Discussion <tech-pkg@NetBSD.org>
From: Georg Schwarz <georg.schwarz@freenet.de>
List: tech-pkg
Date: 09/19/2006 22:13:59
I recently came across the same bug, see GCC Bugzilla Bug 28864
As a workaround you might try
MAKE_ENV+= SHELL=${CONFIG_SHELL}
or patch gcc/fixinc/mkfixinc.sh as described in my gcc bug report.
Please add to my bug report there so people understand that it's not
an issue limited to IRIX 5.
Am 19.09.2006 um 17:10 schrieb David Brownlee:
> If SHELL is set to /bin/tcsh lang/gcc3-c and friends fail to
> build with:
>
> /bin/sh ${srcdir}/mkfixinc.sh i386--netbsdelf2.0 i386--
> netbsdelf2.0)
> constructing ../fixinc.sh for i386--netbsdelf2.0 to run on i386--
> netbsdelf2.0
> /usr/pkg/bin/gmake TARGETS=oneprocess SHELL="/bin/tcsh" CC="cc"
> CFLAGS=" -O2 -pipe -march=pentium3 -I/usr/include -DIN_GCC -W -Wall
> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -
> Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -
> DGENERATOR_FILE" LDFLAGS="" LIBERTY="/var/obj/pkg/lang/gcc3-c/work/
> gcc-3.3.5/gcc/../libiberty/libiberty.a" install-bin
> gmake[2]: Entering directory `/var/obj/pkg/lang/gcc3-c/work/
> gcc-3.3.5/gcc/fixinc'
> /bin/tcsh ./genfixes machname.h
> SHELL=/bin/sh: Command not found.
> export: Command not found.
> if: Expression Syntax.
> gmake[2]: *** [machname.h] Error 1
> gmake[2]: Leaving directory `/var/obj/pkg/lang/gcc3-c/work/
> gcc-3.3.5/gcc/fixinc'
> gmake[1]: *** [fixinc.sh] Error 2
> gmake[1]: Leaving directory `/var/obj/pkg/lang/gcc3-c/work/
> gcc-3.3.5/gcc'
> gmake: *** [all-gcc] Error 2
> *** Error code 2
>
> Stop.
> make: stopped in /files/netbsd/pkgsrc/lang/gcc3-c
> *** Error code 1
>
>
> --
> David Brownlee -- abs@absd.org
--
Georg Schwarz http://home.pages.de/~schwarz/
georg.schwarz@freenet.de +49 178 8545053