Summary: | gcc 4.6.3 fails to build. unlink-if-ordinary.c error storage size of st isnt known | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | samtygier <samtygier> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
samtygier
2012-08-29 20:23:24 UTC
so unlink-if-ordinary.c has #if HAVE_SYS_STAT_H #include <sys/stat.h> #endif HAVE_SYS_STAT_H comes from the config.h file. there are 2 of these libiberty/config.h and prev-libiberty/config.h (i assume for the different stages of building gcc). but only the prev version defines HAVE_SYS_STAT_H libiberty/config.h:/* #undef HAVE_SYS_STAT_H */ prev-libiberty/config.h:#define HAVE_SYS_STAT_H 1 in gcc's build output soon after "Configuring stage 2 in ./libiberty" it says checking for sys/stat.h... no looking at libiberty/config.log i find: configure:4495: checking for sys/stat.h configure:4495: /home/sam/gentoo/var/tmp/portage/sys-devel/gcc-4.7.1/work/build/./prev-gcc/xgcc -B/home/sam/gentoo/var/tmp/portage/sys-dev el/gcc-4.7.1/work/build/./prev-gcc/ -B/home/sam/gentoo/usr/i686-pc-linux-gnu/bin/ -B/home/sam/gentoo/usr/i686-pc-linux-gnu/bin/ -B/home/sam /gentoo/usr/i686-pc-linux-gnu/lib/ -isystem /home/sam/gentoo/usr/i686-pc-linux-gnu/include -isystem /home/sam/gentoo/usr/i686-pc-linux-gnu/ sys-include -E conftest.c In file included from /usr/include/sys/stat.h:27:0, from conftest.c:11: /usr/include/features.h:314:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] configure:4495: $? = 0 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define _FILE_OFFSET_BITS 64 | #define STDC_HEADERS 1 | /* end confdefs.h. */ | #include <sys/stat.h> configure:4495: result: no Fixed, Fedora/RedHat injected some fugly crap in their /usr/include/features.h. We now skip our fortify-source patch if this is present. thanks. had to restart the bootstrap from the beginning for some reason, but it has made it past the gcc 4.6.3 stage. hopefully by morning it will be done. |