Apache OpenOffice (AOO) Bugzilla – Issue 45002
compiler directive -tune=pentiumpro doesn't work on all systems
Last modified: 2013-08-07 15:34:52 UTC
Makefiles in solenv/inc, namely, solenv/inc/unxfbsdi.mk and solenv/inc/unxlngi6.mk contain compiler directive -tune=pentiumpro which doesn't work on all systems. Specifically, on freebsd 4.11 with portr gcc33 and on slackware 10 with gcc 3.3.4, this gives error. This micro-patch handles the situation on freebsd: --- BuildDir/ooo_SRC680_m85_src/solenv/inc/unxfbsdi.mk.prev Mon Feb 28 22:52:12 2005 +++ BuildDir/ooo_SRC680_m85_src/solenv/inc/unxfbsdi.mk Sat Mar 12 23:28:18 2005 @@ -112,14 +112,14 @@ .ENDIF # flags for the C++ Compiler -CFLAGSCC= -pipe -mtune=pentiumpro +CFLAGSCC= -pipe # Flags for enabling exception handling CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs # Flags for disabling exception handling CFLAGS_NO_EXCEPTIONS=-fno-exceptions # -fpermissive should be removed as soon as possible -CFLAGSCXX= -pipe -mtune=pentiumpro +CFLAGSCXX= -pipe CFLAGSCXX+= -Wno-ctor-dtor-privacy PICSWITCH:=-fpic
rather than disabling this optimization try somthing like .IF "$(GCCNUMVER)">="000300040000" CFLAGSCC+=-mtune=pentiumpro .ELSE CFLAGSCC+=-mcpu=pentiumpro .ENDIF unxlngi6.mk is meant to support gcc >= 3.4 only.
anyone still cares about this issue?
Yes. On freebsd-4, openoffice can be compiled with 3.3.6 (gcc from ports), can *not* with 3.4.1 (gcc-ooo from ports, something with symbols not found in UDK). Is it so much trouble to add the check *hjs* proposed?
the point is that i'm willing to add this check in one of my CWS bbut i have no way to chcheck in a frebsd build at all. if there is someone volunteering to make sure that there is no hidden (looks easy, but who knows?) breakage for freebsd in this change i would commot this check.
I can test this for you, as I retain freebsd-4 as a desktop here. Just make it clear *what* I should test. Should it be patch, or CWS checkout etc.
change done in unxfbsdi.mk rev. 1.13.128.1
please verify re-open issue and reassign to yury_t@openoffice.org
reassign to yury_t@openoffice.org
reset resolution to FIXED
the CWS is ause028, so the branch tag would be "cws_src680_ause028". alternatively you could fetch this file by revision with "cvs update -r<revision> <filename>" in the according directory (it's a local change not depending on anything else). for convinience i'll attach a diff based on m104 (should fit all recent milestones).
Created attachment 26361 [details] change commited to fix this issue
This change (makefile diff) works. Thanks! Build environment is gcc 3.3.6 on freebsd-4.11, building m103.
This Issue is 'Verified' and not updated in 1yr+, so Closing. A Closed Issue is a Happy Issue (TM). Regards, Andrew Cleaning-up and Closing old Issues as part of: ~ The Grand Bug Squash, pre v3 ~