From owner-freebsd-current@FreeBSD.ORG Tue Dec 9 22:13:26 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FA2916A4CE for ; Tue, 9 Dec 2003 22:13:26 -0800 (PST) Received: from pandora.afflictions.org (asylum.afflictions.org [64.7.134.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D20E43D2F for ; Tue, 9 Dec 2003 22:13:24 -0800 (PST) (envelope-from dgerow@afflictions.org) Received: from dementia.afflictions.org (dementia [172.16.0.56]) by pandora.afflictions.org (Postfix) with ESMTP id 79B0F5CB4C for ; Wed, 10 Dec 2003 01:39:30 -0500 (EST) Received: by dementia.afflictions.org (Postfix, from userid 1001) id 5FC326D42C; Wed, 10 Dec 2003 01:13:29 -0500 (EST) Date: Wed, 10 Dec 2003 01:13:29 -0500 From: Damian Gerow To: current@freebsd.org Message-ID: <20031210061329.GD13539@afflictions.org> References: <20031210023632.GA13539@afflictions.org> <20031210024302.GB13539@afflictions.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 5.2-BETA on a i386 X-GPG-Fingerprint: B3D7 D901 A53A 1A99 BFD6 E6DF 9F3B 742B C288 9CC9 User-Agent: Mutt/1.5.5.1i Subject: buildworld doesn't like -O2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 10 Dec 2003 06:13:26 -0000 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.