From owner-freebsd-bugs@FreeBSD.ORG Tue Aug 5 06:59:02 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 67FF3392 for ; Tue, 5 Aug 2014 06:59:02 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4967C2853 for ; Tue, 5 Aug 2014 06:59:02 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.8/8.14.8) with ESMTP id s756x2WJ049322 for ; Tue, 5 Aug 2014 06:59:02 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 192394] New: Base system bootstrapping broken with gcc; not clang Date: Tue, 05 Aug 2014 06:59:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: yaneurabeya@gmail.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2014 06:59:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D192394 Bug ID: 192394 Summary: Base system bootstrapping broken with gcc; not clang Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: Needs Triage Severity: Affects Only Me Priority: --- Component: conf Assignee: freebsd-bugs@FreeBSD.org Reporter: yaneurabeya@gmail.com I ran into this build failure after trying to build world @ r269562 with gcc instead of clang; some of the newly added SCTP constants are undefined in t= he header installed in /usr/include/netinet/sctp.h instead of the one installe= d to /usr/obj/...: % uname -a FreeBSD isilon-fuji-current.local 11.0-CURRENT FreeBSD 11.0-CURRENT #16 r268804+343692e(isilon-atf): Mon Jul 14 12:17:25 PDT 2014=20=20=20=20 root@isilon-fuji-current.local:/usr/obj/usr/src/sys/FUJI i386 % svn status ? bw.log M etc/mtree/BSD.tests.dist ? int.out M lib/libnv/Makefile A lib/libnv/tests A lib/libnv/tests/Makefile A + lib/libnv/tests/nvlist_add_test.c > moved from tools/regression/lib/libnv/nvlist_add.c A + lib/libnv/tests/nvlist_exists_test.c > moved from tools/regression/lib/libnv/nvlist_exists.c A + lib/libnv/tests/nvlist_free_test.c > moved from tools/regression/lib/libnv/nvlist_free.c A + lib/libnv/tests/nvlist_get_test.c > moved from tools/regression/lib/libnv/nvlist_get.c A + lib/libnv/tests/nvlist_move_test.c > moved from tools/regression/lib/libnv/nvlist_move.c A + lib/libnv/tests/nvlist_send_recv_test.c > moved from tools/regression/lib/libnv/nvlist_send_recv.c M libexec/rtld-elf/tests/Makefile M libexec/rtld-elf/tests/libpythagoras/Makefile ? nothing.out ? svn-commit.tmp D tools/regression/lib/libnv D tools/regression/lib/libnv/Makefile D tools/regression/lib/libnv/nvlist_add.c > moved to lib/libnv/tests/nvlist_add_test.c D tools/regression/lib/libnv/nvlist_exists.c > moved to lib/libnv/tests/nvlist_exists_test.c D tools/regression/lib/libnv/nvlist_free.c > moved to lib/libnv/tests/nvlist_free_test.c D tools/regression/lib/libnv/nvlist_get.c > moved to lib/libnv/tests/nvlist_get_test.c D tools/regression/lib/libnv/nvlist_move.c > moved to lib/libnv/tests/nvlist_move_test.c D tools/regression/lib/libnv/nvlist_send_recv.c > moved to lib/libnv/tests/nvlist_send_recv_test.c M tools/regression/pjdfstest/tests/misc.sh % cat /etc/src.conf=20 MALLOC_PRODUCTION=3D WITHOUT_ATM=3D WITHOUT_AUDIT=3D WITHOUT_BHYVE=3D WITHOUT_BIND_DNSSEC=3D WITHOUT_BIND_ETC=3D WITHOUT_BIND_LIBS_LWRES=3D WITHOUT_BIND_NAMED=3D WITHOUT_BLUETOOTH=3D #WITHOUT_BMAKE=3D WITHOUT_BSNMP=3D WITHOUT_CALENDAR=3D #WITHOUT_CLANG=3D #WITHOUT_CLANG_IS_CC=3D WITHOUT_CTM=3D #WITHOUT_DICT=3D #WITHOUT_EXAMPLES=3D WITHOUT_FORTRAN=3D WITHOUT_FREEBSD_UPDATE=3D WITHOUT_GAMES=3D #WITH_GCC=3D #WITH_GNUCXX=3D WITHOUT_GCOV=3D WITHOUT_GPIB=3D WITHOUT_GSSAPI=3D WITHOUT_HAST=3D WITHOUT_HESOID=3D WITHOUT_HTML=3D WITHOUT_I4B=3D #WITHOUT_ICONV=3D WITH_ICONV=3D WITHOUT_IPFILTER=3D WITHOUT_IPFW=3D WITHOUT_IPX=3D WITHOUT_KERBEROS=3D #WITH_LIBCPLUSPLUS=3D WITHOUT_LIBKSE=3D #WITHOUT_LOCALES=3D WITHOUT_LPR=3D WITHOUT_MAIL=3D #WITHOUT_MAN=3D WITHOUT_NCP=3D WITHOUT_NDIS=3D WITHOUT_NIS=3D #WITHOUT_NLS=3D WITH_NLS=3D #WITHOUT_NMTREE=3D WITHOUT_NS_CACHING=3D WITHOUT_OBJC=3D WITHOUT_PF=3D WITHOUT_PORTSNAP=3D WITHOUT_PPP=3D WITHOUT_PROFILE=3D WITHOUT_RADIUS=3D WITHOUT_RCMDS=3D WITH_SSP=3D WITHOUT_SVN=3D WITHOUT_SVNLITE=3D WITHOUT_SYSINSTALL=3D WITH_TESTS=3D WITHOUT_WIRELESS=3D WITHOUT_WPA_SUPPLICANT_EAPOL=3D #WITHOUT_ZFS=3D WITH_ZFS=3D DEFAULT_KERNCONF=3D FUJI DEFAULT_KERNCONFDIR=3D /root KERNCONF?=3D ${DEFAULT_KERNCONF} KERNCONFDIR?=3D ${DEFAULT_KERNCONFDIR} .if ${KERNCONFDIR} =3D=3D "${DEFAULT_KERNCONFDIR}" MODULES_OVERRIDE+=3D acl_nfs4 acl_posix1e MODULES_OVERRIDE+=3D aio cd9660 fdescfs mqueue msdosfs nullfs MODULES_OVERRIDE+=3D opensolaris zfs PORTS_MODULES+=3D .endif % env WITHOUT_CLANG=3Dyes WITHOUT_CLANG_BOOTSTRAP=3Dyes WITH_GCC=3Dyes WITH_GNUCXX=3Dyes script bw.log make buildworld -j12 --- sctp_sys_calls.So ---^M /usr/src.svn/lib/libc/net/sctp_sys_calls.c:353:7: error: use of undeclared identifier 'SCTP_ECN_SUPPORTED'^M case SCTP_ECN_SUPPORTED:^M ^^M /usr/src.svn/lib/libc/net/sctp_sys_calls.c:356:7: error: use of undeclared identifier 'SCTP_PR_SUPPORTED'^M case SCTP_PR_SUPPORTED:^M ^^M --- acl_from_text.So ---^M --- sctp_sys_calls.So ---^M /usr/src.svn/lib/libc/net/sctp_sys_calls.c:359:7: error: use of undeclared identifier 'SCTP_RECONFIG_SUPPORTED'^M case SCTP_RECONFIG_SUPPORTED:^M ^^M /usr/src.svn/lib/libc/net/sctp_sys_calls.c:362:7: error: use of undeclared identifier 'SCTP_NRSACK_SUPPORTED'^M case SCTP_NRSACK_SUPPORTED:^M ^^M /usr/src.svn/lib/libc/net/sctp_sys_calls.c:365:7: error: use of undeclared identifier 'SCTP_PKTDROP_SUPPORTED'^M case SCTP_PKTDROP_SUPPORTED:^M ^^M 5 errors generated.^M *** [sctp_sys_calls.So] Error code 1^M ^M make[4]: stopped in /usr/src.svn/lib/libc^M =E2=80=A6 % cat /usr/obj/usr/src.svn/lib/libc/.depend ... sctp_sys_calls.o sctp_sys_calls.po sctp_sys_calls.So: /usr/src.svn/lib/libc/net/sctp_sys_calls.c \ /usr/include/sys/cdefs.h /usr/src.svn/lib/libc/../../include/stdio.h \ /usr/include/sys/_null.h /usr/include/sys/_types.h \ /usr/include/machine/_types.h /usr/include/x86/_types.h \ /usr/src.svn/lib/libc/../../include/string.h \ /usr/src.svn/lib/libc/../../include/strings.h \ /usr/src.svn/lib/libc/../../include/xlocale/_strings.h \ /usr/src.svn/lib/libc/../../include/xlocale/_string.h \ /usr/include/errno.h /usr/src.svn/lib/libc/../../include/stdlib.h \ /usr/src.svn/lib/libc/../../include/unistd.h /usr/include/sys/types.h \ /usr/include/machine/endian.h /usr/include/x86/endian.h \ /usr/include/sys/_pthreadtypes.h /usr/include/sys/_stdint.h \ /usr/include/sys/select.h /usr/include/sys/_sigset.h \ /usr/include/sys/_timeval.h /usr/include/sys/timespec.h \ /usr/include/sys/_timespec.h /usr/include/sys/unistd.h \ /usr/include/sys/socket.h /usr/include/sys/_iovec.h \ /usr/include/machine/_align.h /usr/include/x86/_align.h \ /usr/include/sys/_sockaddr_storage.h /usr/include/sys/syscall.h \ /usr/include/sys/uio.h /usr/include/netinet/in.h \ /usr/include/netinet6/in6.h \ /usr/src.svn/lib/libc/../../include/arpa/inet.h \ /usr/include/netinet/sctp_uio.h /usr/include/stdint.h \ /usr/include/machine/_stdint.h /usr/include/x86/_stdint.h \ /usr/include/sys/endian.h /usr/include/netinet/sctp.h =E2=80=A6 I removed /usr/obj/usr/src.svn/lib/libc/, restarted the build, I ran into t= his issue again. I tried the same thing with my github forked branch as well (j= ust updated), and ran into the same issue. We aren=E2=80=99t using -nostdinc/-nostdinc++/-idirafter/-isysroot/-isystem= though and the headers aren=E2=80=99t included with -I, which is probably the underlyi= ng issue. If I use clang, the build =E2=80=9Cjust works=E2=80=9D =E2=80=94 it picks u= p the right headers in .depend and the libc compile goes through properly. --=20 You are receiving this mail because: You are the assignee for the bug.=