Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78732 - gcc-3.4.3.20050110 hardened doesn't compile itself...
Summary: gcc-3.4.3.20050110 hardened doesn't compile itself...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard: pappy
Keywords:
Depends on: 109266
Blocks:
  Show dependency tree
 
Reported: 2005-01-19 14:38 UTC by Zentoo
Modified: 2005-10-14 08:39 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 Zentoo 2005-01-19 14:38:49 UTC
I have emerge unstable gcc-3.4.3.20050110 (+hardened +gtk +nls).
The compilation was successfull with gcc-3.3.5-r1 (same flags).
After I try to compile gcc-3.4.3.20050110 with himself to profit about his own optimisations and that failed with this:



Reproducible: Always
Steps to Reproduce:
1.USE="hardened" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
  gcc-3.4.3.20050110 hardened installed
2.emerge -v gcc

Actual Results:  
That's with the gcc-config vanilla profile gcc-3.3.5-r1

FPBIT_FUNCS='_pack_sf _unpack_sf _addsub_sf _mul_sf _div_sf _fpcmp_parts_sf
_compare_sf _eq_sf _ne_sf _gt_sf _ge_sf _lt_sf _le_sf _unord_sf _si_to_sf _sf_t
       o_si _negate_sf _make_sf _sf_to_df _sf_to_tf _thenan_sf _sf_to_usi
_usi_to_sf' \
LIB2_DIVMOD_FUNCS='_divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv _udivmoddi4' \
DPBIT='' \
DPBIT_FUNCS='_pack_df _unpack_df _addsub_df _mul_df _div_df _fpcmp_parts_df
_compare_df _eq_df _ne_df _gt_df _ge_df _lt_df _le_df _unord_df _si_to_df _df_t
       o_si _negate_df _make_df _df_to_sf _df_to_tf _thenan_df _df_to_usi
_usi_to_df' \
TPBIT='' \
TPBIT_FUNCS='_pack_tf _unpack_tf _addsub_tf _mul_tf _div_tf _fpcmp_parts_tf
_compare_tf _eq_tf _ne_tf _gt_tf _ge_tf _lt_tf _le_tf _unord_tf _si_to_tf _tf_t
       o_si _negate_tf _make_tf _tf_to_df _tf_to_sf _thenan_tf _tf_to_usi
_usi_to_tf' \
MULTILIBS=` ./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isystem
/usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include
-L/var/tmp/portag        e/gcc-3.4.3.20050110/work/build/gcc/../ld
--print-multi-lib` \
EXTRA_MULTILIB_PARTS='' \
SHLIB_LINK=' ./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isystem
/usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include
-L/var/tmp/porta        ge/gcc-3.4.3.20050110/work/build/gcc/../ld -O2  -DIN_GCC
   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isys        tem ./include  -fPIC -DHAVE_SYSLOG -g
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -D_LIBC_PROVIDES_SSP_
-shared -nodefaultlibs -Wl,--soname=        @shlib_so_name@.so.1
-Wl,--version-script=@shlib_map_file@ -o @shlib_dir@@shlib_so_name@.so.1.tmp
@multilib_flags@ @shlib_objs@ -lc && rm -f @shlib_base_na        me@.so && if [
-f @shlib_dir@@shlib_so_name@.so.1 ]; then mv -f @shlib_dir@@shlib_so_name@.so.1
@shlib_dir@@shlib_so_name@.so.1.backup; else true; fi && mv        
@shlib_dir@@shlib_so_name@.so.1.tmp @shlib_dir@@shlib_so_name@.so.1 && ln -s
@shlib_dir@@shlib_so_name@.so.1 @shlib_base_name@.so' \
SHLIB_INSTALL='$(SHELL) $(srcdir)/mkinstalldirs
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@; /bin/install -c -m 644
@shlib_dir@@shlib_so_name@.so.1 $(DESTDIR)       
$(slibdir)@shlib_slibdir_qual@/@shlib_so_name@.so.1; rm -f
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so; ln -s
@shlib_so_name@.so.1 $(DEST       
DIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so' \
SHLIB_EXT='.so' \
SHLIB_MULTILIB='' \
SHLIB_MKMAP='/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/mkmap-symver.awk'
\
SHLIB_MKMAP_OPTS='' \
SHLIB_MAPFILES='/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/libgcc-std.ver
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/config/libgcc-       
glibc.ver' \
SHLIB_NM_FLAGS='-pg' \
MULTILIB_OSDIRNAMES='' \
mkinstalldirs='/bin/sh
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/mkinstalldirs' \
  /bin/sh mklibgcc > tmp-libgcc.mk
mv tmp-libgcc.mk libgcc.mk
TARGET_CPU_DEFAULT="" \
HEADERS="ansidecl.h" DEFINES="" \
/bin/sh /var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/mkconfig.sh tconfig.h
./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isystem
/usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include
-L/var/tmp/portage/gcc-3.4.3.        20050110/work/build/gcc/../ld
-fno-stack-protector-all -O2 -DIN_GCC    -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-defini        tion 
-isystem ./include  -I. -I.
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/. -I/va       
r/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/../include   -g0
-finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-i        n-bss -fno-unit-at-a-time -fno-omit-frame-pointer \
   -c /var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/crtstuff.c
-DCRT_BEGIN \
  -o crtbegin.o
xgcc: spec failure: unrecognized spec option 'v'
xgcc: spec failure: unrecognized spec option 'v'
xgcc: spec failure: unrecognized spec option 'v'
xgcc: spec failure: unrecognized spec option 'p'
xgcc: spec failure: unrecognized spec option 'P'
make[2]: *** [crtbegin.o] Aborted
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.3.20050110 failed.
!!! Function gcc_do_make, Line 1067, Exitcode 2
!!! make failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.





And that's with gcc-config hardened default 3.4.3 profile (i686-pc-linux-gnu-3.4.3):


gcc -c -DEFAULT_PIE_SSP    -O -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long   
-DHAVE_CONFIG_H    -        I. -I.
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/.
-I/var/tmp/portage/gcc-3.4.3.200        50110/work/gcc-3.4.3/gcc/../include 
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/cpplib.c -o cpplib.o
gcc -c -DEFAULT_PIE_SSP    -O -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long   
-DHAVE_CONFIG_H    -        I. -I.
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/.
-I/var/tmp/portage/gcc-3.4.3.200        50110/work/gcc-3.4.3/gcc/../include 
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/cpplex.c -o cpplex.o
gcc -c -DEFAULT_PIE_SSP    -O -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long   
-DHAVE_CONFIG_H    -        I. -I.
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/.
-I/var/tmp/portage/gcc-3.4.3.200        50110/work/gcc-3.4.3/gcc/../include 
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/cppmacro.c -o cppmacro.o
gcc -c -DEFAULT_PIE_SSP    -O -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long   
-DHAVE_CONFIG_H    -        I. -I.
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/.
-I/var/tmp/portage/gcc-3.4.3.200        50110/work/gcc-3.4.3/gcc/../include 
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/cppexp.c -o cppexp.o
gcc -c -DEFAULT_PIE_SSP    -O -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long   
-DHAVE_CONFIG_H    -        I. -I.
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/.
-I/var/tmp/portage/gcc-3.4.3.200        50110/work/gcc-3.4.3/gcc/../include 
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/cppfiles.c -o cppfiles.o
gcc -c -DEFAULT_PIE_SSP    -O -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long   
-DHAVE_CONFIG_H    -        I. -I.
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/.
-I/var/tmp/portage/gcc-3.4.3.200        50110/work/gcc-3.4.3/gcc/../include 
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/cpptrad.c -o cpptrad.o
gcc -c -DEFAULT_PIE_SSP    -O -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long   
-DHAVE_CONFIG_H    -        I. -I.
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/.
-I/var/tmp/portage/gcc-3.4.3.200        50110/work/gcc-3.4.3/gcc/../include 
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/cpphash.c -o cpphash.o
gcc -c -DEFAULT_PIE_SSP    -O -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long   
-DHAVE_CONFIG_H    -        I. -I.
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/.
-I/var/tmp/portage/gcc-3.4.3.200        50110/work/gcc-3.4.3/gcc/../include 
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/cpperror.c -o cpperror.o
gcc -c -DEFAULT_PIE_SSP    -O -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long   
-DHAVE_CONFIG_H    -        I. -I.
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/.
-I/var/tmp/portage/gcc-3.4.3.200        50110/work/gcc-3.4.3/gcc/../include 
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/cppinit.c -o cppinit.o
gcc -c -DEFAULT_PIE_SSP    -O -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long   
-DHAVE_CONFIG_H    -        I. -I.
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/.
-I/var/tmp/portage/gcc-3.4.3.200        50110/work/gcc-3.4.3/gcc/../include 
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/cppcharset.c -o cppcharset.o
gcc -c -DEFAULT_PIE_SSP    -O -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long   
-DHAVE_CONFIG_H    -        I. -I.
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc
-I/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/.
-I/var/tmp/portage/gcc-3.4.3.200        50110/work/gcc-3.4.3/gcc/../include 
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/hashtable.c -o hashtable.o
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/hashtable.c: In function
`approx_sqrt':
/var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/hashtable.c:310: internal
compiler error: in try_split, at emit-rtl.c:3343
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into
/var/tmp/portage/gcc-3.4.3.20050110/temp/ccVF03p8.out file, please attach this
to your bugreport.
make[2]: *** [hashtable.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.3.20050110 failed.
!!! Function gcc_do_make, Line 1067, Exitcode 2
!!! make failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.



Expected Results:  
Successfull emerge :)



 make.profile -> ../usr/portage/profiles/hardened/x86
Comment 1 Zentoo 2005-01-19 14:40:47 UTC
i've almost recompiled my whole set of package with this new gcc but i got same kind of errors with this pkgs:

sys-devel/libperl
sys-libs/libstdc++-v3
gtk+
sys-libs/cracklib
sys-apps/lm-sensors
xscreensaver
rss-glx
app-text/ghostscript
Comment 2 solar (RETIRED) gentoo-dev 2005-01-19 14:46:16 UTC
run the ./xgcc -dumpspecs and attach it here please.
Comment 3 solar (RETIRED) gentoo-dev 2005-01-19 14:53:19 UTC
I did not notice this bug was for a package that -* keyworded.
I have mixed feelings about users reporting bugs for pkgs which are masked. I'm closing this as INVALID. If the package makes it to ~arch and has the same problem file a new bug for toolchain@ (who maintains gcc) and CC: hardened (cuz we care)