From nobody@FreeBSD.org Fri Nov 28 22:23:59 2008 Return-Path: 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 Subject: make buildworld errors on RELENG_7 with gcc 4.3 X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 129267 >Category: misc >Synopsis: [build] make buildworld errors on RELENG_7 with gcc 4.3 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Nov 28 22:30:01 UTC 2008 >Closed-Date: Thu Aug 26 11:57:40 UTC 2010 >Last-Modified: Thu Aug 26 11:57:40 UTC 2010 >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: State-Changed-From-To: open->closed State-Changed-By: arundel State-Changed-When: Thu Aug 26 11:54:48 UTC 2010 State-Changed-Why: As you suspected building either the kernel or world with a compiler other than the system compiler(s) is not supported. Thanks for your PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=129267 >Unformatted: