Date: Fri, 28 Nov 2008 22:23:58 GMT From: Mij <mij@bitchx.it> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/129267: make buildworld errors on RELENG_7 with gcc 4.3 Message-ID: <200811282223.mASMNw2t076591@www.freebsd.org> Resent-Message-ID: <200811282230.mASMU14X036627@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811282223.mASMNw2t076591>