From nobody@FreeBSD.org  Fri May 12 18:09:56 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5E20716B31D
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 12 May 2006 18:09:56 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 15A7643D78
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 12 May 2006 18:09:53 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k4CI9qve065822
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 12 May 2006 18:09:52 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k4CI9qDe065811;
	Fri, 12 May 2006 18:09:52 GMT
	(envelope-from nobody)
Message-Id: <200605121809.k4CI9qDe065811@www.freebsd.org>
Date: Fri, 12 May 2006 18:09:52 GMT
From: Hampton Finger <locnar@locnar.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Error compiling 6.1 zlib module (kernel) on 5.4 AMD64 Machine 
X-Send-Pr-Version: www-2.3

>Number:         97184
>Category:       amd64
>Synopsis:       Error compiling 6.1 zlib module (kernel) on 5.4 AMD64 Machine
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-amd64
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 12 18:10:17 GMT 2006
>Closed-Date:    Fri Jun 02 13:33:27 GMT 2006
>Last-Modified:  Fri Jun 02 13:33:27 GMT 2006
>Originator:     Hampton Finger
>Release:        5.4 RELEASE
>Organization:
locnar.net
>Environment:
FreeBSD syverson.cwrl.utexas.edu 5.4-RELEASE-p12 FreeBSD 5.4-RELEASE-p12 #2: Wed Mar 8 21:09:27 CST 2006   locnar@syverson.cwrl.utexas.edu:/usr/src/sys/amd64/compile/SYVERSON  amd64
>Description:
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

>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.
>Fix:
N/A
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: matteo 
State-Changed-When: Fri Jun 2 13:29:31 UTC 2006 
State-Changed-Why:  
You should not use custom CFLAGS other than -O2 -pipe. What is more, "make -j4 " is not supported . Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=97184 
>Unformatted:
