Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 215828 (PR35855) - sys-devel/gcc-4.3.0 fails to build under et_EE locale
Summary: sys-devel/gcc-4.3.0 fails to build under et_EE locale
Status: RESOLVED FIXED
Alias: PR35855
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR35855
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-02 08:32 UTC by Priit Laes (IRC: plaes)
Modified: 2023-05-08 18:46 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Priit Laes (IRC: plaes) 2008-04-02 08:32:30 UTC
gcc fails to compile under et_EE locale (same problem with gcc-4.2.3):

echo timestamp > s-options-h
TARGET_CPU_DEFAULT="" \
	HEADERS="auto-host.h ansidecl.h" DEFINES="" \
	/bin/sh /var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/mkconfig.sh bconfig.h
x86_64-pc-linux-gnu-gcc -c   -O -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros 				     -Wno-overlength-strings -fno-common   -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc -I/var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/build -I/var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/../libdecnumber/bid -I../libdecnumber    -o build/genmodes.o /var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/genmodes.c
x86_64-pc-linux-gnu-gcc -c   -O -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros 				     -Wno-overlength-strings -fno-common   -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc -I/var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/build -I/var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/../libdecnumber/bid -I../libdecnumber    -o build/errors.o /var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/errors.c
x86_64-pc-linux-gnu-gcc   -O -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros 				     -Wno-overlength-strings -fno-common   -DHAVE_CONFIG_H -DGENERATOR_FILE -Wl,--as-needed -o build/genmodes \
	    build/genmodes.o build/errors.o ../build-x86_64-pc-linux-gnu/libiberty/libiberty.a
build/genmodes -h > tmp-modes.h
/bin/sh /var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/../move-if-change tmp-modes.h insn-modes.h
echo timestamp > s-modes-h
x86_64-pc-linux-gnu-gcc -c   -O -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros 				     -Wno-overlength-strings -fno-common   -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc -I/var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/build -I/var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/../libdecnumber/bid -I../libdecnumber    -o build/genconstants.o /var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/genconstants.c
In file included from ./tm.h:8,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0/work/gcc-4.3.0/gcc/genconstants.c:32:
./options.h:491: error: redeclaration of enumerator ‘OP___’
./options.h:490: error: previous definition of ‘OP___’ was here
./options.h:1090: error: redeclaration of enumerator ‘OP__f_rap_’
./options.h:1031: error: previous definition of ‘OP__f_rap_’ was here
./options.h:1221: error: redeclaration of enumerator ‘OP___’
./options.h:491: error: previous definition of ‘OP___’ was here
./options.h:1223: error: redeclaration of enumerator ‘OP___’
./options.h:1221: error: previous definition of ‘OP___’ was here
./options.h:1224: error: redeclaration of enumerator ‘OP___’
./options.h:1223: error: previous definition of ‘OP___’ was here
make[3]: *** [build/genconstants.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0/work/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0/work/build'
make: *** [profiledbootstrap] Error 2
 * 
 * ERROR: sys-devel/gcc-4.3.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4599:  Called toolchain_src_compile
 *             environment, line 5068:  Called gcc_src_compile
 *             environment, line 2926:  Called gcc_do_make
 *             environment, line 2756:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 *  The die message:
 *   emake failed with profiledbootstrap
Comment 1 SpanKY gentoo-dev 2008-04-07 06:10:01 UTC
hrm, the awk scripts use A-Z, but it's been like this since at least gcc-4.1.x.  i'm guessing since all of the code was consistently incorrectly munged, things just happened to work out in older versions ...
Comment 2 SpanKY gentoo-dev 2008-04-07 06:31:07 UTC
ive added a sed to our eclass so that we dont have to worry about patching this crap back through the ages

thanks for the report!

http://sources.gentoo.org/eclass/toolchain.eclass?r1=1.348&r2=1.349
Comment 3 Larry the Git Cow gentoo-dev 2023-05-08 18:46:48 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95fb775e0475446b41cdda8609d1b843d891282b

commit 95fb775e0475446b41cdda8609d1b843d891282b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-08 14:53:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-08 18:46:31 +0000

    toolchain.eclass: conditionalize old awk sed fixup
    
    Bug: https://bugs.gentoo.org/215828
    Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35855
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/toolchain.eclass | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)