Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34698 - openoffice-1.1.0 fails to compile with -fstack-protector
Summary: openoffice-1.1.0 fails to compile with -fstack-protector
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-29 07:07 UTC by meyerm
Modified: 2003-12-09 11:05 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 meyerm 2003-11-29 07:07:39 UTC
OK, perhaps this is getting boring (see bug 34619/34622/34626). But nontheless... 
 
My openoffice-1.1.0_rc2 can't compile if I enable -fstack-protector within my CFLAGS. 

Reproducible: Always
Steps to Reproduce:
1. LANGUAGE="49" emerge openoffice 
Actual Results:  
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/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solver/645/unxlngi4.pro/inc/dont_use_stl 
-I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solver/645/unxlngi4.pro/inc/external 
-I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solver/645/unxlngi4.pro/inc 
-I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solenv/unxlngi4/inc 
-I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solenv/inc 
-I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/res 
-I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solver/645/unxlngi4.pro/inc/dont_use_stl 
-I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_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. -O2 -fstack-protector -march=pentium3 -mfpmath=sse -mmmx -msse 
-fno-strict-aliasing -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER -fno-strict-aliasing 
-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER   -pipe -mcpu=pentiumpro   -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=645 
-DBUILD=8693 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 
-DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DSRX645  -DMULTITHREAD   -o 
../../unxlngi4.pro/obj/file.o file.c 
file.c: In function `osl_mountFloppy': 
file.c:2591: 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 *--- 
 
ERROR: Error 65280 occurred while making 
/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/sal/osl/unx 
 
!!! ERROR: app-office/openoffice-1.1.0-r2 failed. 
!!! Function src_compile, Line 471, Exitcode 1 
!!! Build failed! 

Expected Results:  
 

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22-grsec-2.0-rc3) 
================================================================= 
System uname: 2.4.22-grsec-2.0-rc3 i686 Intel(R) Xeon(TM) CPU 2.40GHz 
Gentoo Base System version 1.4.3.10 
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -fomit-frame-pointer -fstack-protector -funroll-loops -march=pentium3 
-mfpmath=sse -mmmx -msse" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config 
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ 
/usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-O2 -fomit-frame-pointer -funroll-loops -march=pentium3 -mfpmath=sse 
-mmmx -msse" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="sandbox ccache autoaddcvs buildpkg" 
GENTOO_MIRRORS=" http://mirror.fachschaften.tu-muenchen.de/gentoo" 
MAKEOPTS="-j9" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://mirror.fachschaften.tu-muenchen.de/gentoo-portage" 
USE="x86 oss apm avi crypt cups encode foomaticdb gif gpm jpeg libg++ mad mikmod 
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm 
berkdb slang readline arts svga java X sdl tcpd pam libwww ssl perl python imlib 
oggvorbis qt kde motif opengl -gtk -gnome cdr dga dvd dvdr fam fbcon gphoto2 imap 
ipv6 maildir mmx pcmcia pda pnp samba scanner sse tetex tiff trusted unicode usb 
xinerama xosd video_cards_radeon linguas_de"
Comment 1 Paul de Vrieze (RETIRED) gentoo-dev 2003-12-01 11:00:50 UTC
You could try with a newer compiler.
Comment 2 Alexander Gabert (RETIRED) gentoo-dev 2003-12-01 15:25:15 UTC
yeah, please try with gcc-3.3.2-r3 but do not use a pax kernel because you will get the killing when it compiles regcomp and such stuff after some hours.

i will try it here also with hardened-gcc and 3.3.2-r3

TIA,

Alex
Comment 3 meyerm 2003-12-02 04:45:24 UTC
Huh, I will see what I can do. I only dared to compile OO for myself since I had access to a dual xeon server.

As soon as I can use another computer as my old notebook (hey, 128MB RAM and so on ;-) ) I will have a further look. (Since I would also have to recreate almost the whole system [KDE & Co] :-/ ).
Comment 4 Alexander Gabert (RETIRED) gentoo-dev 2003-12-09 11:05:25 UTC
works with gcc-3.3.2 and hardened-gcc