Date: Wed, 17 Mar 2010 22:38:32 -0500 From: Jason Garrett <kingedgar@gmail.com> To: FreeBSD Ports <freebsd-ports@freebsd.org> Cc: amatus@gnu.org Subject: Re: lang/guile fails to build on amd64 / 9-CURRENT Message-ID: <970380131003172038g7f8697efsc79f1e279b226e8@mail.gmail.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 17, 2010 at 21:35, Jason Garrett <kingedgar@gmail.com> wrote: > On Wed, Mar 17, 2010 at 21:30, Jason Garrett <kingedgar@gmail.com> wrote: >> On Wed, Mar 17, 2010 at 21:26, Jason Garrett <kingedgar@gmail.com> wrote= : >>> On Wed, Mar 17, 2010 at 21:06, Chuck Swiger <cswiger@mac.com> 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 >> <sys/timeb.h> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?970380131003172038g7f8697efsc79f1e279b226e8>