Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Feb 2016 03:27:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 207147] powerpc 11.0-CURRENT -r295543: error: field 'uz_maxaction' has incomplete type (blocking buildworld)
Message-ID:  <bug-207147-8@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207147

            Bug ID: 207147
           Summary: powerpc 11.0-CURRENT -r295543: error: field
                    'uz_maxaction' has incomplete type (blocking
                    buildworld)
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: ppc
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: markmi@dsl-only.net

This traces back to the build using /usr/include instead of /usr/src/sys and so
picking up an old vm/uma_int.h file. The detailed evidence follows.

svnlite update -r295453 /usr/src (for an ^/head context) then a buildworld
buildkernel got:

--- all_subdir_libmemstat ---
--- memstat_uma.So ---
cc  -fpic -DPIC -g -O2 -pipe   -MD -MP -MF.depend.memstat_uma.So
-MTmemstat_uma.So -std=gnu99 -fstack-protector-strong -Wsystem-headers -Wall
-Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign    -c
/usr/src/lib/libmemstat/memstat_uma.c -o memstat_uma.So
. . .
In file included from /usr/src/lib/libmemstat/memstat_uma.c:37:
. . .
--- all_subdir_libmemstat ---
/usr/include/vm/uma_int.h:310: error: field 'uz_maxaction' has incomplete type

Note the "/usr/include" based path instead of a /usr/src/sys/vm/uma_int.h path.
Note the lack of any -I's in the cc command.


Stop reading here unless you want more context details.

src.conf content:

TO_TYPE=powerpc
KERNCONF=GENERICvtsc-NODEBUG
TARGET=powerpc
.if ${.MAKE.LEVEL} == 0
TARGET_ARCH=${TO_TYPE}
.export TARGET_ARCH
.endif
WITH_FAST_DEPEND=
WITH_LIB32=
WITH_BOOT=
COMPILER_TYPE=gcc
WITHOUT_GCC_BOOTSTRAP=
WITH_GCC=
WITH_GCC_IS_CC=
WITH_GNUCXX=
WITHOUT_LIBCPLUSPLUS=
WITHOUT_CLANG_BOOTSTRAP=
WITHOUT_CLANG=
WITHOUT_CLANG_IS_CC=
WITHOUT_CLANG_FULL=
WITHOUT_CLANG_EXTRAS=
NO_WERROR=
MALLOC_PRODUCTION=
WITH_DEBUG_FILES=

# freebsd-version -ku; uname -aKU
11.0-CURRENT
11.0-CURRENT
FreeBSD FBSDG4C0 11.0-CURRENT FreeBSD 11.0-CURRENT #6 r295350M: Sat Feb  6
13:54:57 PST 2016    
root@FBSDG4C0:/usr/obj/gcc421/powerpc.powerpc/usr/src/sys/GENERICvtsc-NODEBUG 
powerpc 1100097 1100097

Command used to buildworld buildkernel:

env __MAKE_CONF=/root/src.configs/make.conf
SRC_ENV_CONF=/root/src.configs/src.conf.powerpc-gcc421.powerpc-host
MAKEOBJDIRPREFIX=/usr/obj/gcc421/powerpc.powerpc make -j 6 buildworld
buildkernel

(This is a classic gcc 4.2.1 TARGET_ARCH=powerpc context, not a clang 3.8.0
based experiment.)

-- 
You are receiving this mail because:
You are the assignee for the bug.

help

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