Date: Wed, 10 Dec 2003 10:02:30 +0000 From: Benjamin Sobotta <mayday@gmx.net> To: Damian Gerow <dgerow@afflictions.org> Cc: current@freebsd.org Subject: Re: buildworld doesn't like -O2 Message-ID: <200312101002.30435.mayday@gmx.net> In-Reply-To: <20031210061329.GD13539@afflictions.org> References: <20031210023632.GA13539@afflictions.org> <mailman.1071028801.33452.fcurrent-l@lists.sentex.ca> <20031210061329.GD13539@afflictions.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi I had the same problem. I put "NO_WARNS=yes" in my make.conf and it works now. Although I'm not really sure if it breaks things... On Wednesday 10 December 2003 06:13, Damian Gerow wrote: > Thus spake Steve Kargl (sgk@troutmask.apl.washington.edu) [09/12/03 22:59]: > : -j# obfuscates where the actual error occurs unless you have > : enough make-fu to read the log. The first step one should > : take when this type of error happens is a plain "make buildworld". > : The next step is run cvsup again to see if the problem has > : been fixed. Then, report the error to freebsd-current. > > Okay, after some playing around, it turns out that something in the PAM > code really doesn't like -O2 optimization -- I have CFLAGS=-O2 -pipe, and > this is what I see: > > ===> lib/libpam/modules/pam_echo > cc -O2 -pipe -march=pentiumpro \ > > -I/usr/src/lib/libpam/modules/pam_echo/../../../../contrib/openpam/include > \ -I/usr/src/lib/libpam/modules/pam_echo/../../libpam -Wsystem-headers \ > -Werror -Wall -Wno-format-y2k -W -Wstrict-prototypes \ > -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual \ > -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wno-uninitialized -c \ > /usr/src/lib/libpam/modules/pam_echo/pam_echo.c \ > /usr/src/lib/libpam/modules/pam_echo/pam_echo.c: In function > `_pam_echo': /usr/src/lib/libpam/modules/pam_echo/pam_echo.c:92: warning: > dereferencing type-punned pointer will break strict-aliasing rules > *** Error code 1 > > Stop in /usr/src/lib/libpam/modules/pam_echo. > *** Error code 1 > > Stop in /usr/src/lib/libpam/modules. > *** Error code 1 > > Stop in /usr/src/lib/libpam. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > > Yes, I'm aware the -O2 isn't supported. World builds fine with just -O. > I'll just drop back to that. > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312101002.30435.mayday>