From nobody@FreeBSD.org  Thu Jun 28 16:42:08 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id A0BC216A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 28 Jun 2007 16:42:08 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 9150213C45A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 28 Jun 2007 16:42:08 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l5SGg88C060797
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 28 Jun 2007 16:42:08 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l5SGg71j060783;
	Thu, 28 Jun 2007 16:42:07 GMT
	(envelope-from nobody)
Message-Id: <200706281642.l5SGg71j060783@www.freebsd.org>
Date: Thu, 28 Jun 2007 16:42:07 GMT
From: "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: OpenOffice 2.2.1 dies in building gcc-ooo on FreeBSD 7.0-CURRENT/i386
X-Send-Pr-Version: www-3.0

>Number:         114100
>Category:       ports
>Synopsis:       OpenOffice 2.2.1 dies in building gcc-ooo on FreeBSD 7.0-CURRENT/i386
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    openoffice
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 28 16:50:02 GMT 2007
>Closed-Date:    Wed Oct 03 00:30:25 GMT 2007
>Last-Modified:  Wed Oct 03 00:30:25 GMT 2007
>Originator:     O. Hartmann
>Release:        FreeBSD 7.0-CURRENT/i386
>Organization:
FU Berlin
>Environment:
FreeBSD fu-berlin.de 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Thu Jun 28 07:51:03 UTC 2007    root@fu-berlin.de:/usr/obj/usr/src/sys/ROOT  i386
>Description:
On a recently fresh installed FreeBSD 7.0-CURRENT/i386 box the compilation of the most recent OpenOffice 2.2.1-port dies in building gcc-ooo.

Trying to build the gcc-ooo-port separately also fails in the same error:


checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether gmake sets $(MAKE)... yes
checking for i386-portbld-freebsd7.0-gcc... /usr/ports/lang/gcc-ooo/work/build/gcc/xgcc -B/usr/ports/lang/gcc-ooo/work/build/gcc/ -B/usr/local/i386-portbld-freebsd7.0/bin/ -B/usr/local/i386-portbld-freebsd7.0/lib/ -isystem /usr/local/i386-portbld-freebsd7.0/include -isystem /usr/local/i386-portbld-freebsd7.0/sys-include
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
gmake[1]: *** [configure-target-libstdc++-v3] Error 1
gmake[1]: Leaving directory `/usr/ports/lang/gcc-ooo/work/build'
gmake: *** [bootstrap-lean] Error 2
*** Error code 2

>How-To-Repeat:
Try building OpenOffice on i386 with most recent FreeBSD 7.0-CURRENT and Xorg 7.2 (most recent port build).
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->openoffice 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Jun 28 17:13:49 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=114100 

From: David Naylor <blackdragon@highveldmail.co.za>
To: bug-followup@freebsd.org,
 ohartman@zedat.fu-berlin.de
Cc:  
Subject: Re: ports/114100: OpenOffice 2.2.1 dies in building gcc-ooo on FreeBSD 7.0-CURRENT/i386
Date: Tue, 17 Jul 2007 21:55:26 +0200

 --nextPart1457695.xrYbg25Xvq
 Content-Type: text/plain;
   charset="us-ascii"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: inline
 
 Hi,
 
 I had the same problem.  With exactly the same error message.  I found that=
 =20
 when gcc-ooo receives an argument that it does not recognise, it fails.  Th=
 is=20
 is a problem since I am using gcc4 with -O2 and appropriate flags to work=20
 around bugs (one flag is specific to gcc4).  The following are the compiler=
 =20
 flags that I have:
 
 CFLAGS=3D -O2 -fno-strict-aliasing -fno-tree-vrp -pipe
 CXXFLAGS+=3D -fconserve-space
 CPUTYPE=3Di686
 
 The specific flag to gcc4 is "-fno-tree-vrp" so I changed CFLAGS to:
 
 CFLAGS=3D -O2 -fno-strict-aliasing -pipe
 
 And OpenOffice compiled without a problem.  (I have another problem with=20
 OpenOffice and saving .odt files but I have not determined where the proble=
 m=20
 lies).  I recommend changing the OpenOffice port to check that when compili=
 ng=20
 with gcc-ooo no gcc 4 specific flags are included. =20
 
 Wishing you the best of luck. =20
 
 David
 
 --nextPart1457695.xrYbg25Xvq
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.5 (GNU/Linux)
 
 iD8DBQBGnR60yqzxLKpyZI8RAj1HAKC49JW4A3lBI47DrnxRnX6ojyPEZgCdHFXA
 1QK+YXaJfZY/rZWG4k6lhxY=
 =MF/4
 -----END PGP SIGNATURE-----
 
 --nextPart1457695.xrYbg25Xvq--
State-Changed-From-To: open->closed 
State-Changed-By: maho 
State-Changed-When: Wed Oct 3 00:29:07 UTC 2007 
State-Changed-Why:  
Now it is updated to 2.3.0 and it uses gcc4.2. 
Using gcc4.2, this problem should go away. 

Thanks for your report.   

http://www.freebsd.org/cgi/query-pr.cgi?pr=114100 
>Unformatted:
