Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Can't build gcc-4.6.3 on old Pentium III
Date: Sun, 13 Jan 2013 00:34:47
Message-Id: 201301130034.10669.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Can't build gcc-4.6.3 on old Pentium III by Dale
1 On Saturday 12 Jan 2013 23:26:36 Dale wrote:
2 > William Kenworthy wrote:
3 > > On 12/01/13 23:11, Helmut Jarausch wrote:
4 > >> On 01/12/2013 03:24:47 PM, Mick wrote:
5 > >>> Not sure why it fails, or how to progress from here:
6 > >>>
7 > >>> ...
8 > >>> checking how to run the C preprocessor...
9 > >>> /mnt/video/tmp_portage/portage/sys-
10 > >>> devel/gcc-4.6.3/work/build/./gcc/xgcc
11 > >>> -B/mnt/video/tmp_portage/portage/sys-
12 > >
13 > > ...
14 > >
15 > >>> Any ideas?
16 > >>
17 > >> I can't see any error. I get those spurious failures if I use emerge
18 > >> -j4 (i.e. multiple emerges in parallel)
19 > >>
20 > >> Furthermore make sure you the following libraries installed
21 > >> dev-libs/mpc dev-libs/mpfr and dev-libs/gmp
22 > >>
23 > >> Try rebuild it with emerge -j1 and maybe MAKEOPTS=-j1
24 > >> Helmut.
25 > >
26 > > Do you have enough ram/swap?
27 > >
28 > > BillK
29 >
30 > While at it, make sure whatever portages work directory is on didn't run
31 > out of space too. It causes some weird things and the error is not
32 > always obvious.
33 >
34 > Dale
35 >
36 > :-) :-)
37
38 Thank you all for your replies. I have c. 650M RAM and 1G swap. I did not
39 have a problem emerging gcc until this version. How can I know if it runs out
40 of memory, unless I continuously keep an eye on memory counts - is there a
41 cleverer way to know this?
42
43 I tried emerging it with MAKEOPTS="-j1" and it failed again, but with a
44 different error:
45 ==============================================================
46 make[5]: Leaving directory `/mnt/video/tmp_portage/portage/sys-
47 devel/gcc-4.6.3/w
48 ork/build/i686-pc-linux-gnu/libgomp'
49 make[4]: Leaving directory `/mnt/video/tmp_portage/portage/sys-
50 devel/gcc-4.6.3/w
51 ork/build/i686-pc-linux-gnu/libgomp'
52 make[3]: Leaving directory `/mnt/video/tmp_portage/portage/sys-
53 devel/gcc-4.6.3/w
54 ork/build/i686-pc-linux-gnu/libgomp'
55 make[2]: Leaving directory `/mnt/video/tmp_portage/portage/sys-
56 devel/gcc-4.6.3/w
57 ork/build'
58 make "DESTDIR=" "RPATH_ENVVAR=LD_LIBRARY_PATH" "TARGET_SUBDIR=i686-pc-linux-
59 gnu"
60 "bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.6.3" "datadir=/usr/share/gcc-
61 data/i686
62 -pc-linux-gnu/4.6.3" "exec_prefix=/usr" "includedir=/usr/lib/gcc/i686-pc-
63 linux-g
64 nu/4.6.3/include" "datarootdir=/usr/share" "docdir=/usr/share/doc/"
65 "infodir=/us
66 r/share/gcc-data/i686-pc-linux-gnu/4.6.3/info" "pdfdir=/usr/share/doc/"
67 "htmldir
68 =/usr/share/doc/" "libdir=/usr/lib" "libexecdir=/usr/libexec" "lispdir="
69 "locals
70 tatedir=/usr/var" "mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.6.3/man"
71 "oldi
72 ncludedir=/usr/include" "prefix=/usr" "sbindir=/usr/sbin"
73 "sharedstatedir=/usr/c
74 om" "sysconfdir=/usr/etc" "tooldir=/usr/i686-pc-linux-gnu"
75 "build_tooldir=/usr/i
76 686-pc-linux-gnu" "target_alias=i686-pc-linux-gnu" "AWK=gawk" "BISON=bison"
77 "CC_
78 FOR_BUILD=i686-pc-linux-gnu-gcc" "CFLAGS_FOR_BUILD=-O2 -march=pentium3 -pipe"
79 "C
80 XX_FOR_BUILD=i686-pc-linux-gnu-g++" "EXPECT=expect" "FLEX=flex"
81 "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644"
82 "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c"
83 "LDFLAGS_FOR_BUILD=-Wl,-O1 -Wl,--as-needed" "LEX=flex" "M4=m4" "MAKE=make"
84 "RUNTEST=runtest" "RUNTESTFLAGS=" "SED=/usr/bin/sed" "SHELL=/bin/sh"
85 "YACC=bison -y" "`echo 'ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`"
86 "ADA_CFLAGS=" "AR_FLAGS=rc" "`echo 'BOOT_ADAFLAGS=-gnatpg -gnata' | sed -e
87 s'/[^=][^=]*=$/XFOO=/'`" "BOOT_CFLAGS=-O2 -march=pentium3 -pipe"
88 "BOOT_LDFLAGS=" "CFLAGS=-O2 -march=pentium3 -pipe" "CXXFLAGS=-O2 -
89 march=pentium3 -pipe" "LDFLAGS=-Wl,-O1 -Wl,--as-needed" "LIBCFLAGS=-O2 -
90 march=pentium3 -pipe " "LIBCXXFLAGS=-O2 -march=pentium3 -pipe -fno-implicit-
91 templates " "STAGE1_CHECKING=--enable-checking=release,types"
92 "STAGE1_LANGUAGES=c,lto" "GNATBIND=no" "GNATMAKE=no" "AR_FOR_TARGET=/usr/i686-
93 pc-linux-gnu/bin/ar" "AS_FOR_TARGET=/usr/i686-pc-linux-gnu/bin/as"
94 "CC_FOR_TARGET=/mnt/video/tmp_portage/portage/sys-
95 devel/gcc-4.6.3/work/build/./gcc/xgcc -B/mnt/video/tmp_portage/portage/sys-
96 devel/gcc-4.6.3/work/build/./gcc/" "CFLAGS_FOR_TARGET=-g -O2 -march=pentium3 -
97 pipe" "CPPFLAGS_FOR_TARGET=" "CXXFLAGS_FOR_TARGET=-O2 -march=pentium3 -pipe -
98 D_GNU_SOURCE" "DLLTOOL_FOR_TARGET=dlltool" "FLAGS_FOR_TARGET=-B/usr/i686-pc-
99 linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-
100 gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include" "GCJ_FOR_TARGET="
101 "GFORTRAN_FOR_TARGET=/mnt/video/tmp_portage/portage/sys-
102 devel/gcc-4.6.3/work/build/./gcc/gfortran -
103 B/mnt/video/tmp_portage/portage/sys-devel/gcc-4.6.3/work/build/./gcc/"
104 "GOC_FOR_TARGET=" "GOCFLAGS_FOR_TARGET=-O2 -g" "LD_FOR_TARGET=/usr/i686-pc-
105 linux-gnu/bin/ld" "LIPO_FOR_TARGET=lipo" "LDFLAGS_FOR_TARGET="
106 "LIBCFLAGS_FOR_TARGET=-g -O2 -march=pentium3 -pipe" "LIBCXXFLAGS_FOR_TARGET=-
107 O2 -march=pentium3 -pipe -D_GNU_SOURCE -fno-implicit-templates"
108 "NM_FOR_TARGET=/usr/i686-pc-linux-gnu/bin/nm" "OBJDUMP_FOR_TARGET=/usr/i686-
109 pc-linux-gnu/bin/objdump" "RANLIB_FOR_TARGET=/usr/i686-pc-linux-
110 gnu/bin/ranlib" "STRIP_FOR_TARGET=/usr/i686-pc-linux-gnu/bin/strip"
111 "WINDRES_FOR_TARGET=windres" "WINDMC_FOR_TARGET=windmc"
112 "BUILD_CONFIG=bootstrap-debug" "`echo 'LANGUAGES=' | sed -e s'/[^=]
113 [^=]*=$/XFOO=/'`" "LEAN=:" "STAGE1_CFLAGS=" "STAGE1_CXXFLAGS=-O2 -
114 march=pentium3 -pipe" "STAGE1_TFLAGS=" "STAGE2_CFLAGS=-O2 -march=pentium3 -
115 pipe -gtoggle" "STAGE2_CXXFLAGS=-O2 -march=pentium3 -pipe" "STAGE2_TFLAGS="
116 "STAGE3_CFLAGS=-O2 -march=pentium3 -pipe" "STAGE3_CXXFLAGS=-O2 -march=pentium3
117 -pipe" "STAGE3_TFLAGS=" "STAGE4_CFLAGS=-O2 -march=pentium3 -pipe"
118 "STAGE4_CXXFLAGS=-O2 -march=pentium3 -pipe" "STAGE4_TFLAGS="
119 "STAGEprofile_CFLAGS=-O2 -march=pentium3 -pipe -gtoggle -fprofile-generate"
120 "STAGEprofile_CXXFLAGS=-O2 -march=pentium3 -pipe" "STAGEprofile_TFLAGS="
121 "STAGEfeedback_CFLAGS=-O2 -march=pentium3 -pipe -fprofile-use"
122 "STAGEfeedback_CXXFLAGS=-O2 -march=pentium3 -pipe" "STAGEfeedback_TFLAGS="
123 "TFLAGS=" "CONFIG_SHELL=/bin/sh" "MAKEINFO=makeinfo --split-size=5000000 --
124 split-size=5000000" compare
125 make[2]: Entering directory `/mnt/video/tmp_portage/portage/sys-
126 devel/gcc-4.6.3/work/build'
127 make[3]: Entering directory `/mnt/video/tmp_portage/portage/sys-
128 devel/gcc-4.6.3/work/build'
129 rm -f stage_current
130 make[3]: Leaving directory `/mnt/video/tmp_portage/portage/sys-
131 devel/gcc-4.6.3/work/build'
132 Comparing stages 2 and 3
133 warning: gcc/cc1plus-checksum.o differs
134 warning: gcc/cc1-checksum.o differs
135 Bootstrap comparison failure!
136 gcc/varasm.o differs
137 make[2]: *** [compare] Error 1
138 make[2]: Leaving directory `/mnt/video/tmp_portage/portage/sys-
139 devel/gcc-4.6.3/work/build'
140 make[1]: *** [stage3-bubble] Error 2
141 make[1]: Leaving directory `/mnt/video/tmp_portage/portage/sys-
142 devel/gcc-4.6.3/work/build'
143 make: *** [bootstrap-lean] Error 2
144 emake failed
145 * ERROR: sys-devel/gcc-4.6.3 failed (compile phase):
146 * emake failed with bootstrap-lean
147 *
148 * Call stack:
149 * ebuild.sh, line 93: Called src_compile
150 * environment, line 4070: Called toolchain_src_compile
151 * environment, line 4730: Called gcc_do_make
152 * environment, line 2381: Called die
153 * The specific snippet of code:
154 * emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}"
155 LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die
156 "emake failed with ${GCC_MAKE_TARGET}";
157 ==============================================================
158
159 Does this point to anything more obvious, or shall I start running memory
160 tests on this box?
161
162
163 PS. STOP PRESS! I just found this:
164
165 https://bugs.gentoo.org/show_bug.cgi?id=411333
166
167 This is a bug that affects only PIIIs. Unsurprisingly, not many people still
168 run them. I'll try with CFLAGS=i686 to see if it completes.
169 --
170 Regards,
171 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature