Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Mar 2016 00:48:51 +0000
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
Message-ID:  <bug-208076-6@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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 <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> #include <assert.h>
> #include <err.h>
> #include <sys/acl.h>
> #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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208076-6>