Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105148 - gcc-3.4.3-r1 can't install properly with hardened
Summary: gcc-3.4.3-r1 can't install properly with hardened
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-07 06:46 UTC by sauron
Modified: 2005-09-07 16:58 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 sauron 2005-09-07 06:46:26 UTC
As you can see, for some odd reasons xgcc is not builded PIE and with PaX it
will refuse to execute (because of .text relocation present) and stop the
installation process.

configargs.h:2: warning: string length `755' is greater than the length `509'
ISO C89 compilers are required to support
/var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/gcc/gcc.c:906: warning: string
length `529' is greater than the length `509' ISO C89 compilers are required to
support
/var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/gcc/gcc.c:924: warning: string
length `608' is greater than the length `509' ISO C89 compilers are required to
support
/var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/gcc/gcc.c:1506: warning: string
length `833' is greater than the length `509' ISO C89 compilers are required to
support
/var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/gcc/gcc.c: In function `retry_ice':
/var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/gcc/gcc.c:5857: warning: `fd' might
be used uninitialized in this function
gcc   -O2 -pipe -ggdb3 -march=i686 -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long   
-DHAVE_CONFIG_H  -o xgcc gcc.o gccspec.o intl.o \
  prefix.o version.o  ../libiberty/libiberty.a  
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/../../../../i386-pc-linux-gnu/bin/ld:
warning: creating a DT_TEXTREL in object.
/var/tmp/portage/gcc-3.4.3-r1/work/build/gcc/xgcc
-B/var/tmp/portage/gcc-3.4.3-r1/work/build/gcc/ -B/usr/i386-pc-linux-gnu/bin/
-B/usr/i386-pc-linux-gnu/lib/ -isystem /usr/i386-pc-linux-gnu/include -isystem
/usr/i386-pc-linux-gnu/sys-include -dumpspecs > tmp-specs
/var/tmp/portage/gcc-3.4.3-r1/work/build/gcc/xgcc: error while loading shared
libraries: cannot make segment writable for relocation: Permission denied
make[1]: *** [specs] Error 127
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3-r1/work/build/gcc'
make: *** [install-gcc] Error 2

!!! ERROR: sys-devel/gcc-3.4.3-r1 failed.
!!! Function gcc-compiler_src_install, Line 1413, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.



Reproducible: Always
Steps to Reproduce:
1. Simply emerge this version of gcc on hardened (I am using USE="boundschecking"
by the way)
Actual Results:  
Installation stop

Expected Results:  
I'd like to have it installed

Portage 2.0.51.22-r2 (hardened/x86/2.6, gcc-3.3.5-20050130, glibc-2.3.5-r1,
2.6.13 i686)
=================================================================
System uname: 2.6.13 i686 Intel(R) Pentium(R) M processor 1.50GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-O2 -pipe -ggdb3 -fno-omit-frame-pointer -fno-inline -march=i686 -mcpu=i686"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -ggdb3 -fno-omit-frame-pointer -fno-inline -march=i686
-mcpu=i686"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa berkdb crypt cscope curl dlloader esd fam gd gdbm gif gpm gtk
hardened imlib kde ncurses nls opengl pam perl pic png python qt readline ruby
sdl ssl tcpd tiff userlocales x86 xine xml2 xmms zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2005-09-07 10:23:03 UTC
why are you using 3.4.3-r1 ?  try 3.4.4
Comment 2 sauron 2005-09-07 10:31:10 UTC
(In reply to comment #1)
> why are you using 3.4.3-r1 ?  try 3.4.4

3.4.4 got others bugs, like compilation error, so I tried this one, the error
seems simplier to fix.
For now I just compiled it on a non-paxed kernel.
Comment 3 SpanKY gentoo-dev 2005-09-07 16:58:56 UTC
no interest in resolving this really