From owner-freebsd-current@FreeBSD.ORG Mon Aug 27 19:53:41 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C225316A468 for ; Mon, 27 Aug 2007 19:53:41 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id 4847E13C480 for ; Mon, 27 Aug 2007 19:53:40 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: by ug-out-1314.google.com with SMTP id a2so97257ugf for ; Mon, 27 Aug 2007 12:53:39 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sTJXhnNm741eCG/RedxfmKf59Rrc7lNCj5Ir9Kbtwcjk3m180IDk5nHsw+B+CIMFdLnRAqsZCUD8foxrOyK7pLRHjDydGqoNu4rwKxU1QJjdARMq9mnd+IMTswaqyG2NGoGOwAoB6N1fYsYsLsD/CCswry9UVxJnKGr2FTdQwPs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EEADGYr6XpEIJQ8tustLhfH9JHLsvCrkKd9Z0iOkwZ8+ihwCoDQapj/APeeGDi6vkI0P+h2aMeikiYYy7DM2iaNouSGm1p8BwPiluUgncWpngywt3Cje+XX5O0aJFPArLEaFAD3AzACCIEx3XDcvkFmnwSGeXg8Y2pK+Trc3wIA= Received: by 10.142.178.13 with SMTP id a13mr362634wff.1188244418420; Mon, 27 Aug 2007 12:53:38 -0700 (PDT) Received: by 10.143.10.17 with HTTP; Mon, 27 Aug 2007 12:53:38 -0700 (PDT) Message-ID: <26ddd1750708271253m1e8d9793r996daf103ed8613f@mail.gmail.com> Date: Mon, 27 Aug 2007 15:53:38 -0400 From: "Maxim Khitrov" To: "Stefan Esser" In-Reply-To: <46D31891.4040607@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <26ddd1750708260826q153a3425jf9bea3e8a8a82a70@mail.gmail.com> <46D2B750.5070302@FreeBSD.org> <26ddd1750708270817l2e74001ey26bfc96a61498742@mail.gmail.com> <46D31891.4040607@FreeBSD.org> Cc: current@freebsd.org Subject: Re: Error building openoffice.org-2: cannot compute object file suffix X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Aug 2007 19:53:41 -0000 On 8/27/07, Stefan Esser wrote: > Maxim Khitrov wrote: > > > You got my hopes up ;-) No, I don't have that flag, but I had my > > CPUTYPE set to "native." Thought that was the problem, but > > unfortunately that didn't fix it. I first set it back to pentium-m, > > and then commented both CPUTYPE and CFLAGS in my make.conf. Same exact > > thing. Cannot compute suffix of object files. > > > > Any other ideas? > > > I had such a situation once before, and I'm quite sure, that it is > the compiler failing due to bad command line options. As a result > no output file is generated, configured can not determine the object > file name suffix and it terminates after printing the error message > you got. > > You can add an "echo $ac_compile" to just before the test that fails, > that way you should be able to see the command that is to be executed. > Then invoke the compiler (gcc-ooo !!!) just that same way (with any > C source file as additional parameter) and check the error message. > The error messages could in fact have been written to config.log, > but it was not in my failure case. > > Good luck, STefan Did as you suggested, put "echo $ac_compile" in configure, that printed out the compile command which was using $CFLAGS. I then had it run "echo $CFLAGS" and the arguments there contained -march=native. I guess this value was cached somewhere, and it was using it even though make.conf was changed. I didn't run make clean the first time since it takes a while to clean and rebuild everything up to that point. This time around I verified the settings in make.conf, then ran 'make clean install clean' for openoffice. Looks like it was able to build gcc-ooo with no problems. Right now it's building the actual openoffice installation. Thanks for the tip!