Bug 97184

Summary: Error compiling 6.1 zlib module (kernel) on 5.4 AMD64 Machine
Product: Base System Reporter: Hampton Finger <locnar>
Component: amd64Assignee: freebsd-amd64 (Nobody) <amd64>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Hampton Finger 2006-05-12 19:10:17 UTC
CVSUP'ed 6.1 Release on 12 May 2006 with CVS tag RELENG_6_1
make -j6 buildworld:  completed fine
created new KERNCONF from new GENERIC from the CVSUP run
http://www2.cwrl.utexas.edu/SYVERSON is a listing of the KERNCONF
make -j4 buildkernel KERNCONF=SYVERSON:  Failed with the following errors


<snip>
===> zlib (all)
cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I-   -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/SYVERSON/opt_global.h -I. -I@ -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common -g -fno-omit-frame-pointer -I/usr/obj/usr/src/sys/SYVERSON -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c /usr/src/sys/modules/zlib/../../net/zlib.c
ld  -d -warn-common -r -d -o zlib.ko.debug zlib.o
touch export_syms
awk -f /usr/src/sys/modules/zlib/../../conf/kmod_syms.awk zlib.ko.debug  export_syms | xargs -J% objcopy % zlib.ko.debug
objcopy --strip-debug zlib.ko.debug zlib.ko
1 error
*** Error code 2
1 error
*** Error code 2
1 error

Fix: 

N/A
How-To-Repeat: simply attempt to build a kernel with make buildkernel on an AMD64 machine.

Fails in zlib module every time at the same place.
Comment 1 Matteo Riondato freebsd_committer freebsd_triage 2006-06-02 14:29:31 UTC
State Changed
From-To: open->closed

You should not use custom CFLAGS other than -O2 -pipe. What is more, "make -j4 " is not supported . Thanks.