From owner-freebsd-amd64@freebsd.org Thu Mar 17 00:48:51 2016 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3441DAD3186 for ; Thu, 17 Mar 2016 00:48:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 25126DB0 for ; Thu, 17 Mar 2016 00:48:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u2H0mpmq080218 for ; Thu, 17 Mar 2016 00:48:51 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-amd64@FreeBSD.org Subject: [Bug 208076] libc on 10.3 beta2 does not compile on 10.2-stable Date: Thu, 17 Mar 2016 00:48:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.3-BETA2 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: antiduh@csh.rit.edu X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org 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 cc 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-Mailman-Approved-At: Thu, 17 Mar 2016 02:51:33 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2016 00:48:51 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208076 Bug ID: 208076 Summary: libc on 10.3 beta2 does not compile on 10.2-stable Product: Base System Version: 10.3-BETA2 Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: antiduh@csh.rit.edu CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org Attempting to compile stable/10 from svn rev 296969: > angst(/usr/src) # svn info > Path: . > Working Copy Root Path: /usr/src > URL: http://svn0.us-east.freebsd.org/base/stable/10 > Revision: 296969 > Last Changed Rev: 296969 > Last Changed Date: 2016-03-16 20:32:29 -0400 (Wed, 16 Mar 2016) > > angst(/usr/src) # uname -a > FreeBSD angst.csh.rit.edu 10.2-STABLE FreeBSD 10.2-STABLE #3 r290239: Sun= Nov 1 19:42:14 EST 2015 antiduh@angst.csh.rit.edu:/space/obj/space/sr= c/sys/ANGST64 amd64 `make buildworld` fails while compiling libc: > --- acl_support_nfs4.po --- > cc -pg -O2 -pipe -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../..= /include -I/usr/src/lib/libc/amd64 -DNLS -D__DBINTERFACE_PRIVATE -I/usr/sr= c/lib/libc/../../contrib/gdtoa -I/usr/src/lib/libc/../../contrib/libc-vis -= DINET6 -I/usr/obj/usr/src/lib/libc -I/usr/src/lib/libc/resolv -D_ACL_PRIVA= TE -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libmd -I/usr/src/lib/libc/../../c= ontrib/jemalloc/include -I/usr/src/lib/libc/../../contrib/tzcode/stdtime -I= /usr/src/lib/libc/stdtime -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMA= P -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONI= NG -DSYSCALL_COMPAT -std=3Dgnu99 -Qunused-arguments -fstack-protector -Wsy= stem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-= sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-t= autological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused= -function -Wno-enum-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promot= ed-parameter -c /usr/src/lib/libc/posix1e/acl_to_text_nfs4.c -o acl_to_text= _nfs4.po >=20 > --- acl_support_nfs4.po --- > /usr/src/lib/libc/posix1e/acl_support_nfs4.c:51:8: error: use of undeclar= ed identifier 'ACL_ENTRY_INHERITED' > { ACL_ENTRY_INHERITED, "inherited", 'I' } `ACL_ENTRY_INHERITED` is defined in /usr/src/sys/sys/acl.h, which acl_support_nfs4.c attempts to include: > #include > #include > #include > #include > #include > #include > #include "acl_support.h" The problem is that the compilation flags don't have the right include flag= s. Here are the ones that are present: > -I/usr/obj/usr/src/lib/libc=20 > -I/usr/src/lib/libc/../../contrib/gdtoa=20 > -I/usr/src/lib/libc/../../contrib/jemalloc/include=20 > -I/usr/src/lib/libc/../../contrib/libc-vis > -I/usr/src/lib/libc/../../contrib/tzcode/stdtime=20 > -I/usr/src/lib/libc/../../include=20 > -I/usr/src/lib/libc/../libmd=20 > -I/usr/src/lib/libc/amd64 > -I/usr/src/lib/libc/include=20 > -I/usr/src/lib/libc/locale > -I/usr/src/lib/libc/resolv > -I/usr/src/lib/libc/rpc=20 > -I/usr/src/lib/libc/stdtime=20=20 Missing from that list: `-I/usr/src/sys/`. The following patch fixes the problem: > angst(/usr/src/lib/libc) # svn diff > Index: Makefile > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- Makefile (revision 296968) > +++ Makefile (working copy) > @@ -27,6 +27,7 @@ > WARNS?=3D 2 > CFLAGS+=3D-I${.CURDIR}/include -I${.CURDIR}/../../include > CFLAGS+=3D-I${.CURDIR}/${LIBC_ARCH} > +CFLAGS+=3D-I${.CURDIR}/../../sys > .if ${MK_NLS} !=3D "no" > CFLAGS+=3D-DNLS > .endif This issue was noticed here: https://lists.freebsd.org/pipermail/freebsd-stable/2016-February/084205.html The poster seems to have fixed the problem by compiling 10.3 beta 2 while already on 10.3 beta 2. Perhaps the fact that I'm compiling on 10.2-stable = is relevant? --=20 You are receiving this mail because: You are on the CC list for the bug.=