ebuild of openoffice 1.0.3-r1 fails with hardened gcc. after hardendn-gcc -R building of package succeeds. Problem can be reproduced, same error every time. gcc version: gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice) Error message when building: ============= Building project sal ============= /usr/tmp/portage/openoffice-1.0.3-r1/work/oo_1.0.3_src/sal/osl/all ------------- /usr/tmp/portage/openoffice-1.0.3-r1/work/oo_1.0.3_src/sal/osl/unx ------------------------------ Making: ../../unxlngi4.pro/obj/file.obj gcc -fmessage-length=0 -c -I. -I. -I../inc -I../../inc -I../../unx/inc - I../../unxlngi4.pro/inc -I. -I/usr/tmp/portage/openoffice-1.0.3- r1/work/oo_1.0.3_src/solver/641/unxlngi4.pro/inc/dont_use_stl - I/usr/tmp/portage/openoffice-1.0.3- r1/work/oo_1.0.3_src/solver/641/unxlngi4.pro/inc/external - I/usr/tmp/portage/openoffice-1.0.3- r1/work/oo_1.0.3_src/solver/641/unxlngi4.pro/inc -I/usr/tmp/portage/openoffice- 1.0.3-r1/work/oo_1.0.3_src/solenv/unxlngi4/inc -I/usr/tmp/portage/openoffice- 1.0.3-r1/work/oo_1.0.3_src/solenv/inc -I/usr/tmp/portage/openoffice-1.0.3- r1/work/oo_1.0.3_src/res -I/usr/tmp/portage/openoffice-1.0.3- r1/work/oo_1.0.3_src/solver/641/unxlngi4.pro/inc/dont_use_stl - I/usr/tmp/portage/openoffice-1.0.3-r1/work/oo_1.0.3_src/solenv/inc/Xp31 - I/opt/blackdown-jdk-1.4.1/include -I/opt/blackdown-jdk-1.4.1/include/linux - I/opt/blackdown-jdk-1.4.1/include/native_threads/include - I/usr/X11R6/include -I. -I../../res -I. -march=pentium3 -O2 -pipe - DTT_CONFIG_OPTION_BYTECODE_INTERPRETER -pipe -DLINUX -DUNX -DVCL -DGCC - DC300 -DINTEL -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -DX86 -D_PTHREADS - D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -D__DMAKE - DUNIX -DCPPU_ENV=gcc3 -DSUPD=641 -DBUILD=8584 -DPRODUCT -DNDEBUG - DPRODUCT_FULL -DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DSRC641 - DMULTITHREAD -w -o ../../unxlngi4.pro/obj/file.o file.c file.c: In function `osl_mountFloppy': file.c:5028: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. dmake: Error code 1, while making '../../unxlngi4.pro/obj/file.obj' ---* TG_SLO.MK *--- Variables from make.conf: USE="X qt kde alsa" CFLAGS="-march=pentium3 -O2 -pipe" uname: Linux mbe-home 2.4.20-gentoo-r6 #3 SMP Sat Aug 30 00:08:21 CEST 2003 i686 Intel (R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux
azarah: please send your hardened-gcc bugs to pappy@gentoo.org for taking it over. thanks in advance, Alex
app-office/openoffice-1.0.3-r1 i am currently testing the following behaviour with CC set to use et_exec behaviour src_compile() { local buildcmd="" oo_setup # Setup default compilers (We overide gcc2 if that is default here) export CC="$(gcc-getCC)" export CXX="$(gcc-getCXX)" # http://www.gentoo.org/proj/en/hardened/etdyn-ssp.xml - #27761 if has_version 'sys-devel/hardened-gcc' && [ "${CC}"="gcc" ] then export CC="${CC} -yet_exec" fi
# http://www.gentoo.org/proj/en/hardened/etdyn-ssp.xml - #27761 if has_version 'sys-devel/hardened-gcc' && [ "${CC}"="gcc" ] then export CC="${CC} -yet_exec" export CXX="${CXX} -yet_exec" fi this has been committed as workaround, please test and report back, TIA, Alex
With -yet_exec openoffice compiles and works again. Thanks, Martin
openoffice made -yet_exec