When building world after recently CVSup'ing, the build stops with the following error cc -O -pipe -march=pentium4 -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/i386 -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -DINET6 -I/usr/obj/usr/src/lib/libc -I/usr/src/lib/libc/resolv -DPOSIX_MISTAKE -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /usr/src/lib/libc/rpc/getpublickey.c In file included from /usr/src/lib/libc/rpc/getpublickey.c:178: /usr/src/lib/libc/rpc/getpublickey.c: In function `getpublickey': /usr/src/lib/libc/rpc/getpublickey.c:70: warning: passing arg 1 of `__getpublickey_real' discards qualifiers from pointer target type *** Error code 1 Stop in /usr/src/lib/libc. *** Error code 1 Stop in /usr/src/lib. *** Error code 1 Stop in /usr/src. *** Error code 1 Fix: either the -Werror flag needs to be pulled of this compile, or a fix to the underlying casting is necessary. How-To-Repeat: # cd /usr/src # make buildworld
Patches attached. With these patches, make buildworld runs to completion with CFLAGS=-O -pipe. jmc
State Changed From-To: open->closed Please report kernel compile failures on the appropriate mailing list, in this case, freebsd-stable. Build failures tend to get fixed very quickly due to the high number of developers who track the latest code, and the automated tinderboxes that continually run builds.
State Changed From-To: closed->open Reopen, closed in error. Turns out (through private email) that this is a failure to build when -fno-strict-aliasing is specified, which the submitter has now supplied patches to fix.
Unified diff versions of the patches. jmc
Note that some of these fixes in the patches would have equal utility applied to -CURRENT breakage on TINDERBOX because of -Werror. jmc
For bugs matching the following conditions: - Status == In Progress - Assignee == "bugs@FreeBSD.org" - Last Modified Year <= 2017 Do - Set Status to "Open"
This PR seems to be overcome by events. I just tried a buildworld with -fno-strict-aliasing and it completed without any compilation errors.
Keyword: patch or patch-ready – in lieu of summary line prefix: [patch] * bulk change for the keyword * summary lines may be edited manually (not in bulk). Keyword descriptions and search interface: <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>