Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27761 - hardened-gcc error building openoffice
Summary: hardened-gcc error building openoffice
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Alexander Gabert (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-02 02:13 UTC by Martin bene
Modified: 2003-09-10 13:56 UTC (History)
1 user (show)

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 Martin bene 2003-09-02 02:13:40 UTC
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
Comment 1 Alexander Gabert (RETIRED) gentoo-dev 2003-09-06 11:45:55 UTC
azarah: please send your hardened-gcc bugs to pappy@gentoo.org for taking it over.

thanks in advance,

Alex
Comment 2 Alexander Gabert (RETIRED) gentoo-dev 2003-09-06 16:20:30 UTC
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
Comment 3 Alexander Gabert (RETIRED) gentoo-dev 2003-09-07 03:03:50 UTC
    # 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
Comment 4 Martin bene 2003-09-08 19:07:13 UTC
With -yet_exec openoffice compiles and works again. 
 
Thanks, Martin 
Comment 5 Alexander Gabert (RETIRED) gentoo-dev 2003-09-10 13:56:19 UTC
openoffice made -yet_exec