problems compiling world in 5.2.1-pX?

Maxime Henrion mux at
Thu Apr 29 04:37:26 PDT 2004

Arnvid Karstad wrote:
> Hiya,
> after doing a cvsup with -rRELENG_5_2 today it seems to have gotten the "I
> wont compile" sickness:
> ===> 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


More information about the freebsd-current mailing list