Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135706 - emerging sys-libs/libstdc++-v3-3.3.6 fails because SHELL isn't reset to /bin/sh
Summary: emerging sys-libs/libstdc++-v3-3.3.6 fails because SHELL isn't reset to /bin/sh
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 203840 (view as bug list)
Depends on: 130010
Blocks:
  Show dependency tree
 
Reported: 2006-06-05 19:20 UTC by Joe Wells
Modified: 2009-02-16 12:56 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of "emerge --info" on my system. (emerge-info-output,8.24 KB, text/plain)
2006-06-05 19:29 UTC, Joe Wells
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Wells 2006-06-05 19:20:40 UTC
I just tried (re)emerging sys-libs/libstdc++-v3-3.3.6, but it fails.

This is clearly the same bug as bug 130010, except that the package is
sys-libs/libstdc++-v3-3.3.6 instead of sys-devel/gcc versions 3.3 and
3.4.  This is no great surprise as libstdc++-v3 is compiled from the
gcc source package.

The failure happens at this point in the ebuild:

----------------------------------------------------------------------
        /bin/sh ${srcdir}/mkfixinc.sh i686-pc-linux-gnu i686-pc-linux-gnu)
constructing ../fixinc.sh for i686-pc-linux-gnu to run on i686-pc-linux-gnu
make TARGETS=oneprocess SHELL="/bin/tcsh" CC="gcc" CFLAGS=" -march=pentium4 -O2 -pipe -ggdb -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE" LDFLAGS="" LIBERTY="/extra/var/tmp/portage/libstdc++-v3-3.3.6/work/build/gcc/../libiberty/libiberty.a" install-bin
make[2]: Entering directory `/extra/var/tmp/portage/libstdc++-v3-3.3.6/work/build/gcc/fixinc'
/bin/tcsh /extra/var/tmp/portage/libstdc++-v3-3.3.6/work/gcc-3.3.6/gcc/fixinc/genfixes machname.h
SHELL=/bin/sh: Command not found.
export: Command not found.
if: Expression Syntax.
----------------------------------------------------------------------

This is *exactly* the same place the error happens in bug 130010
comment 8.

My guess is the same fix applies (namely,
patch/88_all_gcc-3.4-make-SHELL.patch from
gcc-3.4.6-patches-1.2.tar.bz2).

Although bugzilla exhorts me that "('emerge --info' goes here)", I
will put this info in a separate attachment because on all recent
occasions it has refused my bug report with the error "comment too
long".
Comment 1 Joe Wells 2006-06-05 19:29:24 UTC
Created attachment 88495 [details]
Output of "emerge --info" on my system.
Comment 2 Carl A. Dunham 2006-08-14 16:25:54 UTC
bash bigots ;-)
Comment 3 Kevin Korb 2006-10-10 13:09:34 UTC
A simple workaround for tcsh/csh users is to simply prepend 'env SHELL=/bin/sh' to the emerge command line.

ex:
# env SHELL=/bin/sh emerge sys-libs/libstdc++-v3
Comment 4 Scott McClung 2006-10-13 20:37:55 UTC
Seems that I just hit this today for the first time on two fairly updated boxes, during "emerge -e world":


make[2]: Entering directory `/var/tmp/portage/libstdc++-v3-3.3.4/work/build/gcc/fixinc'
/bin/tcsh /var/tmp/portage/libstdc++-v3-3.3.4/work/gcc-3.3.4/gcc/fixinc/genfixes machname.h
SHELL=/bin/sh: Command not found.
export: Command not found.
if: Expression Syntax.
make[2]: *** [machname.h] Error 1
make[2]: Leaving directory `/var/tmp/portage/libstdc++-v3-3.3.4/work/build/gcc/fixinc'
make[1]: *** [fixinc.sh] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/libstdc++-v3-3.3.4/work/build/gcc'
make: *** [all-gcc] Error 2

Does anyone want to see the "emerge --info" output?
Comment 5 orionbelt2 2006-10-16 09:10:47 UTC
Just encountered the same problem in the middle of a rather frustrating upgrade experience to 2006.1, but Kevin's workaround worked like charm --thanks Kevin for taking the time to suggest it :)
Comment 6 Faustus 2007-02-25 20:13:15 UTC
Same happens with libffi
Comment 7 Nigel Drego 2007-04-26 14:38:58 UTC
I'm having the exact same issues but Kevin's fixed worked like a charm. Thanks Kevin!
Comment 8 Carlo von Loesch 2007-06-01 07:51:19 UTC
when i saw this happen i tried 'su -' (my regular root uid still has a bash login shell, i just never use it) then emerge --resume and whoops it emerged. easy workaround, but unnecessary bug that shouldn't reappear in future versions...
Comment 9 Markus Ullmann (RETIRED) gentoo-dev 2007-10-24 18:57:53 UTC
can we get this "fix" into the ebuild by chance?
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-12-31 00:20:07 UTC
*** Bug 203840 has been marked as a duplicate of this bug. ***
Comment 11 SpanKY gentoo-dev 2009-02-15 22:58:33 UTC
should be fixed now by using the gcc-3.3.6 patchset
Comment 12 Dan W. 2009-02-16 12:56:36 UTC
(In reply to comment #11)
> should be fixed now by using the gcc-3.3.6 patchset
> 

actually, this happened to me after syncing today on bash