From owner-freebsd-ports@FreeBSD.ORG Thu Mar 18 03:38:33 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B157C106564A for ; Thu, 18 Mar 2010 03:38:33 +0000 (UTC) (envelope-from kingedgar@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5B3B78FC0A for ; Thu, 18 Mar 2010 03:38:32 +0000 (UTC) Received: by gyf2 with SMTP id 2so895611gyf.13 for ; Wed, 17 Mar 2010 20:38:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Ke75Ojoxzge+gW6ZZvYVY9CXuLuKKE4e3BCc4bZLogQ=; b=soZmP2h60OMdlITDqRlGjXypkkxoMa+XAFcFGbUIUetFuqk2i4TfXMxAnHfKW9C/df SSi9v9/cEbQC++8gx9in603m1Rp6KFgzCsGO4ZQu8tOjl7e/QwDuN5weWHTdRdYbJyff aOmULbS8+CLWqbKlAAr/kDhJY8Vib/bKGcObg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=sRkh7DVhsMe0A0THoRcm7wpPGIwulaKCYtgz1RthXJ3o5H3EZkgRF7pgJriPgJ8q10 aiK2tFrKNrjZblqOXg82Ze8eCd0MTJkbPisllrjLfc1LG6oTLZ7OfhdDQRgAXCCpAM8b XGD7ll/vCN5SnnSBN7+l57mhKE/oKn33Anqxw= MIME-Version: 1.0 Received: by 10.151.87.14 with SMTP id p14mr1754084ybl.195.1268883512328; Wed, 17 Mar 2010 20:38:32 -0700 (PDT) In-Reply-To: <970380131003171935p64ecd09atde87db155692e7cd@mail.gmail.com> References: <970380131003171146g73c81069t4fff06a349c2acc3@mail.gmail.com> <970380131003171835i19383b57nc52886cc6e64ce25@mail.gmail.com> <9DAB6E99-9E7F-4444-BC25-5BF219A90E88@mac.com> <970380131003171900n1dfcab48o4f9d65ff761cf513@mail.gmail.com> <5EB1BD7C-F1AC-4FA7-B918-C7A661776CFD@mac.com> <970380131003171926y8ad3288x42a86507ea967873@mail.gmail.com> <970380131003171930t725c381av4ae8e508e2ec18e2@mail.gmail.com> <970380131003171935p64ecd09atde87db155692e7cd@mail.gmail.com> Date: Wed, 17 Mar 2010 22:38:32 -0500 Message-ID: <970380131003172038g7f8697efsc79f1e279b226e8@mail.gmail.com> From: Jason Garrett To: FreeBSD Ports Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: amatus@gnu.org Subject: Re: lang/guile fails to build on amd64 / 9-CURRENT X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Mar 2010 03:38:33 -0000 On Wed, Mar 17, 2010 at 21:35, Jason Garrett wrote: > On Wed, Mar 17, 2010 at 21:30, Jason Garrett wrote: >> On Wed, Mar 17, 2010 at 21:26, Jason Garrett wrote= : >>> On Wed, Mar 17, 2010 at 21:06, Chuck Swiger wrote: >>>> On Mar 17, 2010, at 7:00 PM, Jason Garrett wrote: >>>>> This must be set by default as I have set no other flags in >>>>> /etc/make.conf or otherwise. How would I go about un-setting this? >>>>> -Wno-error? >>>> >>>> Yes, that should do it: >>>> >>>> =A0touch /etc/make.conf && echo "CFLAGS +=3D -Wno-error" >> /etc/make.= conf >>>> >>>> Please note that I'm inferring from the compiler treating a #warning a= s an error; if you show more of the actual compilation line, the list might= be better able to understand what the compiler flags were and where they m= ight have been set. >>>> >>>> Regards, >>>> -- >>>> -Chuck >>>> >>>> >>> >>> I set -Wno-error as suggested, it is present during compile but the >>> -Werror is still set at the end. I also found where -Werror is set. >>> First I need to enable sshd on the machine and get a good copy paste, >>> more to come! >>> >> >> Here is the error with 2 lines on top of it, see where -Wno-error and >> -Werror are both set? >> >> ./guile-snarf -o stacks.x stacks.c -DHAVE_CONFIG_H -I.. -I.. -I.. >> -I/usr/local/include -O2 -pipe -Wno-error -march=3Dnocona >> -fno-strict-aliasing -Wall -Wmissing-prototypes -Werror >> ./guile-snarf -o stime.x stime.c -DHAVE_CONFIG_H -I.. -I.. -I.. >> -I/usr/local/include -O2 -pipe -Wno-error -march=3Dnocona >> -fno-strict-aliasing -Wall -Wmissing-prototypes -Werror >> In file included from stime.c:76: >> /usr/include/sys/timeb.h:42:2: error: #warning "this file includes >> which is deprecated" >> gmake[2]: *** [stime.x] Error 1 >> gmake[2]: Leaving directory `/usr/ports/lang/guile/work/guile-1.8.6/libg= uile' >> gmake[1]: *** [all-recursive] Error 1 >> gmake[1]: Leaving directory `/usr/ports/lang/guile/work/guile-1.8.6' >> gmake: *** [all] Error 2 >> *** Error code 1 >> >> Stop in /usr/ports/lang/guile. >> > > work/guile-1.8.6/Makefile and > work/guile-1.8.6/libguile/Makefile both staically set -Werror > > The port now compiles. > > I could submit a patch omitting this, but is that the RIGHT fix? > CC'ing port maintainer Here is the commit for timeb.h being deprecated and adding the #warning http://www.mail-archive.com/svn-src-all@freebsd.org/msg20965.html Solutions are to either use a replacement for timeb.h (unknown by me at this point), quit using timeb.h (not sure how guile depends on this), or omit the -Werror from /usr/ports/lang/guile/work/guile-1.8.6/Makefile and /usr/ports/lang/guile-1.8.6/libguile/Makefile. Maintainer, please direct on how to proceed. As it sits without modification the port is broken, even with -Wno-error set in /etc/make.conf.