Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Apr 2004 13:37:26 +0200
From:      Maxime Henrion <mux@freebsd.org>
To:        Arnvid Karstad <arnvid@karstad.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: problems compiling world in 5.2.1-pX?
Message-ID:  <20040429113726.GB700@elvis.mu.org>
In-Reply-To: <29380.195.204.81.3.1083237898.squirrel@ssl.speedroad.net>
References:  <29380.195.204.81.3.1083237898.squirrel@ssl.speedroad.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040429113726.GB700>