From owner-freebsd-bugs@FreeBSD.ORG Fri Nov 28 22:30:01 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C47031065672 for ; Fri, 28 Nov 2008 22:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9CE0B8FC0C for ; Fri, 28 Nov 2008 22:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mASMU18O036629 for ; Fri, 28 Nov 2008 22:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mASMU14X036627; Fri, 28 Nov 2008 22:30:01 GMT (envelope-from gnats) Resent-Date: Fri, 28 Nov 2008 22:30:01 GMT Resent-Message-Id: <200811282230.mASMU14X036627@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mij Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFABE1065673 for ; Fri, 28 Nov 2008 22:23:59 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id BA0198FC0A for ; Fri, 28 Nov 2008 22:23:59 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id mASMNwNp076592 for ; Fri, 28 Nov 2008 22:23:59 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id mASMNw2t076591; Fri, 28 Nov 2008 22:23:58 GMT (envelope-from nobody) Message-Id: <200811282223.mASMNw2t076591@www.freebsd.org> Date: Fri, 28 Nov 2008 22:23:58 GMT From: Mij To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/129267: make buildworld errors on RELENG_7 with gcc 4.3 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Nov 2008 22:30:01 -0000 >Number: 129267 >Category: misc >Synopsis: make buildworld errors on RELENG_7 with gcc 4.3 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Nov 28 22:30:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Mij >Release: RELENG_7 >Organization: >Environment: >Description: I couldn't find whether FreeBSD world is expected to compile with compilers other than the system default, so I don't know if the report is applicable. I submit speculatively. I am trying to compile world with gcc 4.3. In particular, I am looking for target-specific optimization for "geode" which is not supported before this version. This is what I do: 1) pkg_add -r gcc43 2) cd /usr/src && make clean 3) rm -rf /usr/obj/* 4) I edit /etc/make.conf and set: CC=/usr/local/bin/gcc43 CXX=/usr/local/bin/g++43 CPUTYPE?=geode 5) make buildworld === [...] /usr/local/bin/gcc43 -O2 -fno-strict-aliasing -pipe -march=geode -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 -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 -DYP -DNS_CACHING -DSYMBOL_VERSIONING -DNDEBUG -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c select.S /usr/local/bin/gcc43 -fpic -DPIC -O2 -fno-strict-aliasing -pipe -march=geode -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 -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 -DYP -DNS_CACHING -DSYMBOL_VERSIONING -DNDEBUG -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c select.S -o select.So /usr/src/lib/libc/sys/fcntl.c: In function '__fcntl_compat': /usr/src/lib/libc/sys/fcntl.c:44: error: storage size of 'ofl' isn't known /usr/src/lib/libc/sys/fcntl.c:69: error: 'F_OGETLK' undeclared (first use in this function) /usr/src/lib/libc/sys/fcntl.c:69: error: (Each undeclared identifier is reported only once /usr/src/lib/libc/sys/fcntl.c:69: error: for each function it appears in.) /usr/src/lib/libc/sys/fcntl.c:76: error: 'struct flock' has no member named 'l_sysid' /usr/src/lib/libc/sys/fcntl.c: In function '__fcntl_compat': /usr/src/lib/libc/sys/fcntl.c:44: error: storage size of 'ofl' isn't known /usr/src/lib/libc/sys/fcntl.c:69: error: 'F_OGETLK' undeclared (first use in this function) /usr/src/lib/libc/sys/fcntl.c:69: error: (Each undeclared identifier is reported only once /usr/src/lib/libc/sys/fcntl.c:69: error: for each function it appears in.) /usr/src/lib/libc/sys/fcntl.c:76: error: 'struct flock' has no member named 'l_sysid' /usr/src/lib/libc/sys/fcntl.c:81: error: 'F_OSETLK' undeclared (first use in this function) /usr/src/lib/libc/sys/fcntl.c:84: error: 'F_OSETLKW' undeclared (first use in this function) /usr/src/lib/libc/sys/fcntl.c:44: warning: unused variable 'ofl' *** Error code 1 /usr/src/lib/libc/sys/fcntl.c:81: error: 'F_OSETLK' undeclared (first use in this function) /usr/src/lib/libc/sys/fcntl.c:84: error: 'F_OSETLKW' undeclared (first use in this function) /usr/src/lib/libc/sys/fcntl.c:44: warning: unused variable 'ofl' *** Error code 1 2 errors *** Error code 2 1 error *** Error code 2 1 error *** Error code 2 1 error *** Error code 2 1 error === I then tried to build the toolchain with the system's gcc, and the rest with gcc43: 1) rm -rf /usr/obj/* 2) make clean 3) make toolchain -- so far so good -- 4) I set CC, CXX, CPUTYPE in /etc/make.conf to compile the rest of the world 5) make -DNO_CLEAN everything I get soon === [...] /usr/local/bin/gcc43 -pg -O2 -fno-strict-aliasing -pipe -march=geode -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 -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 -DYP -DNS_CACHING -DSYMBOL_VERSIONING -DNDEBUG -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /usr/src/lib/libc/sys/fcntl.c -o fcntl.po /usr/src/lib/libc/sys/fcntl.c: In function '__fcntl_compat': /usr/src/lib/libc/sys/fcntl.c:44: error: storage size of 'ofl' isn't known /usr/src/lib/libc/sys/fcntl.c:69: error: 'F_OGETLK' undeclared (first use in this function) /usr/src/lib/libc/sys/fcntl.c:69: error: (Each undeclared identifier is reported only once /usr/src/lib/libc/sys/fcntl.c:69: error: for each function it appears in.) /usr/src/lib/libc/sys/fcntl.c:76: error: 'struct flock' has no member named 'l_sysid' /usr/src/lib/libc/sys/fcntl.c:81: error: 'F_OSETLK' undeclared (first use in this function) /usr/src/lib/libc/sys/fcntl.c:84: error: 'F_OSETLKW' undeclared (first use in this function) /usr/src/lib/libc/sys/fcntl.c:44: warning: unused variable 'ofl' *** Error code 1 === >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: