From owner-freebsd-current@FreeBSD.ORG Thu Apr 29 04:37:26 2004 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 B71EE16A4CE for ; Thu, 29 Apr 2004 04:37:26 -0700 (PDT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82A4043D4C for ; Thu, 29 Apr 2004 04:37:26 -0700 (PDT) (envelope-from mux@freebsd.org) Received: by elvis.mu.org (Postfix, from userid 1920) id 7BEDD5C845; Thu, 29 Apr 2004 04:37:26 -0700 (PDT) Date: Thu, 29 Apr 2004 13:37:26 +0200 From: Maxime Henrion To: Arnvid Karstad Message-ID: <20040429113726.GB700@elvis.mu.org> References: <29380.195.204.81.3.1083237898.squirrel@ssl.speedroad.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <29380.195.204.81.3.1083237898.squirrel@ssl.speedroad.net> User-Agent: Mutt/1.4.2.1i cc: freebsd-current@freebsd.org Subject: Re: problems compiling world in 5.2.1-pX? 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: Thu, 29 Apr 2004 11:37:26 -0000 Arnvid Karstad wrote: > Hiya, > > after doing a cvsup with -rRELENG_5_2 today it seems to have gotten the "I > wont compile" sickness: > > 80.111.153.21 > > > ===> lib/libpam/modules/pam_echo > cc -O3 -pipe -funroll-loops -ffast-math -march=pentium3 > -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 This is a FAQ. Quote from /usr/share/examples/etc/make.conf : %% # CFLAGS controls the compiler settings used when compiling C code. # Note that optimization settings above -O (-O2, ...) are not recommended # or supported for compiling the world or the kernel - please revert any # nonstandard optimization settings to "-O" before submitting bug reports # without patches to the developers. %% This particular warning with optimizations superior to -O has been fixed in -CURRENT. There are still other problems with high optimization levels though. Cheers, Maxime