Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] (sort of) Failed to emerge gcc 4.7.2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
elftr
n00b
n00b


Joined: 24 Mar 2013
Posts: 5

PostPosted: Sun Mar 24, 2013 8:22 pm    Post subject: [SOLVED] (sort of) Failed to emerge gcc 4.7.2 Reply with quote

Hello.
(Hope I post in the right place and sorry for my little experience.) I have a build failure than upgrading from gcc 4.6.3 to 4.7.*:
Code:

/bin/sh /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/../move-if-change tmp-specs.h specs.h
echo timestamp > s-specs
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/./prev-gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include    -c     -m64 -march=native -mtune=native -O2 -mno-avx -gtoggle -DIN_GCC   -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc -I/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/build -I/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/../libdecnumber/bid -I../libdecnumber    \
   -o build/gcov-iov.o /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/gcov-iov.c
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/./prev-gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include        -m64 -march=native -mtune=native -O2 -mno-avx -gtoggle -DIN_GCC   -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -DGENERATOR_FILE -static-libstdc++ -static-libgcc  \
   build/gcov-iov.o -o build/gcov-iov
build/gcov-iov '4.7.2' '' \
    > tmp-gcov-iov.h
/bin/sh /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/../move-if-change tmp-gcov-iov.h gcov-iov.h
echo timestamp > s-iov
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/./prev-gcc/g++ -B/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -nostdinc++ -B/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -I/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -I/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include -I/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/libstdc++-v3/libsupc++ -L/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -c    -DIN_GCC_FRONTEND -m64 -march=native -mtune=native -O2 -mno-avx -gtoggle -DIN_GCC   -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc -I/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/../libdecnumber/bid -I../libdecnumber    /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/c-lang.c -o c-lang.o
In file included from ./tm.h:19:0,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/c-lang.c:26:
./options.h:3744:2: error: #error too many masks for ix86_isa_flags
In file included from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/system.h:267:0,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/c-lang.c:24:
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/hwint.h:17:39: error: division by zero in #if
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/hwint.h:17:39: error: division by zero in #if
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/hwint.h:17:39: error: division by zero in #if
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/hwint.h:17:39: error: division by zero in #if
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/hwint.h:17:39: error: division by zero in #if
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/hwint.h:17:39: error: division by zero in #if
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/hwint.h:17:39: error: division by zero in #if
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/hwint.h:17:39: error: division by zero in #if
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/hwint.h:17:39: error: division by zero in #if
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/hwint.h:17:39: error: division by zero in #if
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/hwint.h:17:39: error: division by zero in #if
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/hwint.h:17:39: error: division by zero in #if
In file included from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/tree.h:32:0,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/c-lang.c:27:
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/real.h:105:9: error: #error "REAL_WIDTH > 6 not supported"
In file included from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/c-family/c-common.h:26:0,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/c-tree.h:25,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/c-lang.c:28:
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/../libcpp/include/cpplib.h:267:3: error: #error "Cannot find a least-32-bit signed integer type"
In file included from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/c-lang.c:24:0:
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/system.h:499:34: error: declaration of C function ‘const char* strsignal(int)’ conflicts with
In file included from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/cstring:44:0,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/system.h:207,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/c-lang.c:24:
/usr/include/string.h:562:14: error: previous declaration ‘char* strsignal(int)’ here
In file included from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/system.h:639:0,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/c-lang.c:24:
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/../include/libiberty.h:110:36: error: new declaration ‘char* basename(const char*)’
In file included from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/cstring:44:0,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/system.h:207,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/c-lang.c:24:
/usr/include/string.h:599:26: error: ambiguates old declaration ‘const char* basename(const char*)’
In file included from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/input.h:25:0,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/tree.h:27,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/c-lang.c:27:
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/../libcpp/include/line-map.h:208:38: error: ‘CHAR_BIT’ was not declared in this scope
In file included from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/tree.h:32:0,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/c-lang.c:27:
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/real.h:53:21: error: ‘CHAR_BIT’ was not declared in this scope
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/real.h:53:21: error: ‘CHAR_BIT’ was not declared in this scope
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/real.h:78:31: error: ‘CHAR_BIT’ was not declared in this scope
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/real.h:78:31: error: ‘CHAR_BIT’ was not declared in this scope
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/real.h:78:31: error: ‘CHAR_BIT’ was not declared in this scope
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/real.h:78:31: error: ‘CHAR_BIT’ was not declared in this scope
In file included from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/c-family/c-common.h:26:0,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/c-tree.h:25,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/c-lang.c:28:
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/../libcpp/include/cpplib.h:225:35: error: ‘CHAR_BIT’ was not declared in this scope
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/../libcpp/include/cpplib.h:269:35: error: expected initializer before ‘cppchar_t’
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/../libcpp/include/cpplib.h:270:9: error: ‘CPPCHAR_SIGNED_T’ does not name a type
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/../libcpp/include/cpplib.h:768:8: error: ‘cppchar_t’ does not name a type
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/../libcpp/include/cpplib.h:779:8: error: ‘cppchar_t’ does not name a type
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/../libcpp/include/cpplib.h:954:8: error: ‘cppchar_t’ does not name a type
make[3]: *** [c-lang.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build'
make: *** [bootstrap-lean] Error 2
emake failed
 * ERROR: sys-devel/gcc-4.7.2-r1 failed (compile phase):
 *   emake failed with bootstrap-lean
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 4154:  Called toolchain_src_compile
 *   environment, line 4817:  Called gcc_do_make
 *   environment, line 2453:  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}";
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-4.7.2-r1'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-4.7.2-r1'`.
 *
 * Please include /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/gcc-build-logs.tar.bz2 in your bug report
 *
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.7.2-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.7.2-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build'
 * S: '/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build'

>>> Failed to emerge sys-devel/gcc-4.7.2-r1, Log file:

>>>  '/var/tmp/portage/sys-devel/gcc-4.7.2-r1/temp/build.log'

Common practices such as turning off ccache and pipe, setting number of jobs to 1 don't help. Googling of the errors didn't give any clues.
The complete log: http://ompldr.org/iaHZlcA
The output of emerge --info =gcc-4.7.2: http://pastebin.com/Pa1S1Pf3
Any help is appreciated.


Last edited by elftr on Wed Mar 27, 2013 1:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
leo.the_zoo
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2005
Posts: 142
Location: Poland

PostPosted: Mon Mar 25, 2013 12:31 am    Post subject: Reply with quote

If your compilation output contains the first error, then:
Code:

/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/c-lang.c -o c-lang.o
In file included from ./tm.h:19:0,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/c-lang.c:26:
./options.h:3744:2: error: #error too many masks for ix86_isa_flags


Very often all errors that follow result from the first one. I think it has something to do with 32/64 bit arch, but maybe there will be someone in the know to give you more hints. In the meantime, could you upload and paste link to /var/tmp/portage/sys-devel/gcc-4.7.2-r1/temp/build.log?
Back to top
View user's profile Send private message
elftr
n00b
n00b


Joined: 24 Mar 2013
Posts: 5

PostPosted: Mon Mar 25, 2013 6:20 am    Post subject: Reply with quote

leo.the_zoo wrote:
In the meantime, could you upload and paste link to /var/tmp/portage/sys-devel/gcc-4.7.2-r1/temp/build.log?

I already done that, check one of the last lines of OP please.
Back to top
View user's profile Send private message
leo.the_zoo
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2005
Posts: 142
Location: Poland

PostPosted: Mon Mar 25, 2013 9:30 am    Post subject: Reply with quote

You probably mean "gcc-build-logs.tar.bz2". But:
Code:
$ tar -xvjf gcc-build-logs.tar.bz2
./gcc/config.log
./prev-intl/config.log
./prev-gcc/config.log
./config.log
./libdecnumber/config.log
./prev-libcpp/config.log
./build-x86_64-pc-linux-gnu/fixincludes/config.log
./build-x86_64-pc-linux-gnu/libiberty/config.log
./prev-libiberty/config.log                                                                                                 
./libcpp/config.log
./prev-x86_64-pc-linux-gnu/32/libgcc/config.log
./prev-x86_64-pc-linux-gnu/32/libgomp/config.log
./prev-x86_64-pc-linux-gnu/32/libstdc++-v3/config.log
./prev-x86_64-pc-linux-gnu/libgcc/config.log
./prev-x86_64-pc-linux-gnu/libgomp/config.log
./prev-x86_64-pc-linux-gnu/libstdc++-v3/config.log
./prev-libdecnumber/config.log
./lto-plugin/config.log
./libiberty/config.log
./intl/config.log
./prev-lto-plugin/config.log

As you see, this package does not contain the file I meant, only logs of "configure" command.
Perhaps for gcc devs this is enough to diagnose your problem, but you could give others a chance as well. :roll:
Back to top
View user's profile Send private message
elftr
n00b
n00b


Joined: 24 Mar 2013
Posts: 5

PostPosted: Mon Mar 25, 2013 11:41 am    Post subject: Reply with quote

Oops, sorry. :oops: Here it is: http://ompldr.org/vaHZsZg
I tried to remove all USE flags except cxx but result was exactly the same. Can you post your `emerge --info gcc` please? Maybe I use wrong CFLAGS or something.
Back to top
View user's profile Send private message
leo.the_zoo
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2005
Posts: 142
Location: Poland

PostPosted: Mon Mar 25, 2013 1:08 pm    Post subject: Reply with quote

First problem I see is this:
Code:

In file included from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/gcc-ar.c:22:0:
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/system.h:499:34: error: declaration of C function ‘const char* strsignal(int)’ conflicts with
In file included from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/cstring:44:0,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/system.h:207,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/gcc-ar.c:22:
/usr/include/string.h:562:14: error: previous declaration ‘char* strsignal(int)’ here
In file included from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/system.h:639:0,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/gcc-ar.c:22:
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/../include/libiberty.h:110:36: error: new declaration ‘char* basename(const char*)’
In file included from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/cstring:44:0,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/system.h:207,
                 from /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/gcc-ar.c:22:
/usr/include/string.h:599:26: error: ambiguates old declaration ‘const char* basename(const char*)’
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/gcc-ar.c: In function ‘int main(int, char**)’:
/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/gcc-ar.c:71:6: error: ‘LTOPLUGINSONAME’ was not declared in this scope
make[3]: *** [gcc-ar.o] Error 1
make[3]: *** Waiting for unfinished jobs....

I found that this issue is caused by gmp.h being included where it shouldn't be: http://gcc.1065356.n5.nabble.com/PATCH-Fix-PR54659-include-gmp-h-from-system-h-td899579.html. But this concerns 4.8 not 4.7. Why it crashes on your box and not on mine is yet to be solved...

Some info on my gcc:
Code:
=================================================================
                        Package Settings
=================================================================

sys-devel/gcc-4.6.3 was built with the following:
USE="(consolekit) cxx fortran gtk mudflap (multilib) nls nptl openmp (policykit) (-altivec) -doc (-fixed-point) -gcj -graphite (-hardened) (-libssp) -multislot -nopie -nossp -objc -objc++ -objc-gc -test -vanilla"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"


sys-devel/gcc-4.7.2-r1 was built with the following:
USE="(consolekit) cxx fortran gtk mudflap (multilib) nls nptl openmp (policykit) (-altivec) -doc (-fixed-point) -gcj -go -graphite (-hardened) (-libssp) -multislot -nopie -nossp -objc -objc++ -objc-gc -test -vanilla" ABI_X86="64"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
Back to top
View user's profile Send private message
elftr
n00b
n00b


Joined: 24 Mar 2013
Posts: 5

PostPosted: Mon Mar 25, 2013 5:54 pm    Post subject: Reply with quote

leo.the_zoo wrote:

Some info on my gcc:

Looks similar to my config. Just to clarify I reemerged @system (maybe some tool needed to build gcc was broken?) but error still occurs.
The error looks like gcc is configured improperly. What can affect configuration?
Back to top
View user's profile Send private message
leo.the_zoo
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2005
Posts: 142
Location: Poland

PostPosted: Mon Mar 25, 2013 8:20 pm    Post subject: Reply with quote

Could you emerge it with exactly the same set of USE flags as I used?
Back to top
View user's profile Send private message
elftr
n00b
n00b


Joined: 24 Mar 2013
Posts: 5

PostPosted: Wed Mar 27, 2013 1:05 pm    Post subject: Re: Failed to emerge gcc 4.7.2 Reply with quote

After full update and depclean gcc compiled. I'm happy, but I don't understand why reemerging of the @system didn't help.
Back to top
View user's profile Send private message
leo.the_zoo
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2005
Posts: 142
Location: Poland

PostPosted: Wed Mar 27, 2013 9:07 pm    Post subject: Reply with quote

Perhaps you reemerged current (at that time) versions of certain packages and after full update the problem was resolved.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum