Prev: [freebsd-ports] Pilot error or bash dependencies broken?
Next: Why do ports tree have two neon ports?
From: Jason Garrett on 17 Mar 2010 22:30 On Wed, Mar 17, 2010 at 21:26, Jason Garrett <kingedgar(a)gmail.com> wrote: > On Wed, Mar 17, 2010 at 21:06, Chuck Swiger <cswiger(a)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: >> >> touch /etc/make.conf && echo "CFLAGS += -Wno-error" >> /etc/make.conf >> >> Please note that I'm inferring from the compiler treating a #warning as 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 might 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=nocona -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=nocona -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/libguile' 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. _______________________________________________ freebsd-ports(a)freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"
From: Jason Garrett on 17 Mar 2010 22:35 On Wed, Mar 17, 2010 at 21:30, Jason Garrett <kingedgar(a)gmail.com> wrote: > On Wed, Mar 17, 2010 at 21:26, Jason Garrett <kingedgar(a)gmail.com> wrote: >> On Wed, Mar 17, 2010 at 21:06, Chuck Swiger <cswiger(a)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: >>> >>> touch /etc/make.conf && echo "CFLAGS += -Wno-error" >> /etc/make.conf >>> >>> Please note that I'm inferring from the compiler treating a #warning as 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 might 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=nocona > -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=nocona > -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/libguile' > 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? _______________________________________________ freebsd-ports(a)freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"
From: Chuck Swiger on 17 Mar 2010 22:06 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: touch /etc/make.conf && echo "CFLAGS += -Wno-error" >> /etc/make.conf Please note that I'm inferring from the compiler treating a #warning as 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 might have been set. Regards, -- -Chuck _______________________________________________ freebsd-ports(a)freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"
From: Jason Garrett on 17 Mar 2010 23:38 On Wed, Mar 17, 2010 at 21:35, Jason Garrett <kingedgar(a)gmail.com> wrote: > On Wed, Mar 17, 2010 at 21:30, Jason Garrett <kingedgar(a)gmail.com> wrote: >> On Wed, Mar 17, 2010 at 21:26, Jason Garrett <kingedgar(a)gmail.com> wrote: >>> On Wed, Mar 17, 2010 at 21:06, Chuck Swiger <cswiger(a)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: >>>> >>>> touch /etc/make.conf && echo "CFLAGS += -Wno-error" >> /etc/make.conf >>>> >>>> Please note that I'm inferring from the compiler treating a #warning as 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 might 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=nocona >> -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=nocona >> -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/libguile' >> 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(a)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. _______________________________________________ freebsd-ports(a)freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"
From: Adam Vande More on 17 Mar 2010 23:45 On Wed, Mar 17, 2010 at 10:38 PM, Jason Garrett <kingedgar(a)gmail.com> wrote: > 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(a)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. > I'm not sure about that. The no-error stuff I believe is a CURRENT thing, at least when running betas and stuff you'll run into the warnings as errors thing. The port builds fine on other branches and I suspect would continue to build on CURRENT if you got rid of whatever controlling the compile setting. Nevertheless, it seems the port should be fixed to use sys/time.h and gettimeofday(2) instead. Just the way it looks to me, I'm no expert here. -- Adam Vande More _______________________________________________ freebsd-ports(a)freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 Prev: [freebsd-ports] Pilot error or bash dependencies broken? Next: Why do ports tree have two neon ports? |