Gentoo Archives: gentoo-hardened

From: Alexander Tsoy <puleglot@××.ru>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] gcc 4.5.3 doesn't build on x86 hardened profile
Date: Mon, 06 Feb 2012 09:32:28
Message-Id: 20120206133115.65f6b7a9@work.puleglot
In Reply to: Re: [gentoo-hardened] gcc 4.5.3 doesn't build on x86 hardened profile by "Joseph C. Lininger"
1 В Mon, 06 Feb 2012 00:59:55 -0700
2 "Joseph C. Lininger" <jbahm@××××××.net> пишет:
3
4 > As promised, here's the point in the build log where things fail.
5 >
6 > /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./prev-gcc/xgcc
7 > -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./prev-gcc/
8 > -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/bin/
9 > -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include
10 > -isystem /usr/i686-pc-linux-gnu/sys-include -DEFAULT_RELRO
11 > -DEFAULT_BIND_NOW -DEFAULT_PIE_SSP -O2 -march=i686 -pipe -gtoggle
12 > -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes
13 > -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long
14 > -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition
15 > -Wc++-compat -DHAVE_CONFIG_H -DGENERATOR_FILE -o build/genattrtab \
16 > build/genattrtab.o build/rtl.o build/read-rtl.o build/ggc-none.o
17 > build/vec.o build/min-insn-modes.o build/gensupport.o build/print-rtl.o
18 > build/errors.o .././libiberty/libiberty.a
19 > build/genattrtab
20 > /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/config/i386/i386.md
21 > \
22 > insn-conditions.md > tmp-attrtab.c
23 > /bin/sh
24 > /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/../move-if-change
25 > tmp-attrtab.c insn-attrtab.c
26 > echo timestamp > s-attrtab
27 > /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./prev-gcc/xgcc
28 > -B/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/./prev-gcc/
29 > -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/bin/
30 > -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include
31 > -isystem /usr/i686-pc-linux-gnu/sys-include -c -DEFAULT_RELRO
32 > -DEFAULT_BIND_NOW -DEFAULT_PIE_SSP -O2 -march=i686 -pipe -gtoggle
33 > -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes
34 > -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long
35 > -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition
36 > -Wc++-compat -DHAVE_CONFIG_H -I. -I.
37 > -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc
38 > -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/.
39 > -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/../include
40 > -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/../libcpp/include
41 >
42 > -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/../libdecnumber
43 > -I/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/../libdecnumber/bid
44 > -I../libdecnumber insn-attrtab.c -o insn-attrtab.o
45 > /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/config/i386/i386.md:
46 > In function 'internal_dfa_insn_code':
47 > /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/gcc/config/i386/i386.md:360:1:
48 > internal compiler error: Bus error
49 > Please submit a full bug report,
50 > with preprocessed source if appropriate.
51 > See <http://bugs.gentoo.org/> for instructions.
52 > make[3]: *** [insn-attrtab.o] Error 1
53 > make[3]: Leaving directory
54 > `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/gcc'
55 > make[2]: *** [all-stage2-gcc] Error 2
56 > make[2]: Leaving directory
57 > `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build'
58 > make[1]: *** [stage2-bubble] Error 2
59 > make[1]: Leaving directory
60 > `/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build'
61 > make: *** [bootstrap-lean] Error 2
62 > emake failed
63 > * ERROR: sys-devel/gcc-4.5.3-r1 failed (compile phase):
64 > * emake failed with bootstrap-lean
65 > *
66 > * Call stack:
67 > * ebuild.sh, line 85: Called src_compile
68 > * environment, line 4015: Called toolchain_src_compile
69 > * environment, line 4670: Called gcc_do_make
70 > * environment, line 2348: Called die
71 > * The specific snippet of code:
72 > * emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}"
73 > LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} ||
74 > die "emake failed with ${GCC_MAKE_TARGET}";
75 > *
76 > * If you need support, post the output of 'emerge --info
77 > =sys-devel/gcc-4.5.3-r1',
78 > * the complete build log and the output of 'emerge -pqv
79 > =sys-devel/gcc-4.5.3-r1'.
80 > *
81 > * Please include
82 > /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build/gcc-build-logs.tar.bz2 in
83 > your bug report
84 > *
85 > * The complete build log is located at
86 > '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/temp/build.log'.
87 > * The ebuild environment file is located at
88 > '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/temp/environment'.
89 > * S: '/var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/build'
90
91 From the gcc ebuild change log:
92
93 30 Dec 2011; Magnus Granberg <zorry@g.o> gcc-4.5.3-r2.ebuild:
94 Bump the piepatchset to 0.4.7 to fix 394821
95
96 --
97 With best regards,
98 Alexander Tsoy

Replies

Subject Author
Re: [gentoo-hardened] gcc 4.5.3 doesn't build on x86 hardened profile "Joseph C. Lininger" <jbahm@××××××.net>