[Bug 226198] devel/libpci: fails to build on -CURRENT in poudriere
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Feb 25 14:10:55 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226198
Bug ID: 226198
Summary: devel/libpci: fails to build on -CURRENT in poudriere
Product: Ports & Packages
Version: Latest
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: sunpoet at FreeBSD.org
Reporter: novel at FreeBSD.org
Flags: maintainer-feedback?(sunpoet at FreeBSD.org)
Assignee: sunpoet at FreeBSD.org
I have a strange build failure in devel/libpci:
===> Building for libpci-3.5.6
gmake[1]: Entering directory
'/wrkdirs/usr/ports/devel/libpci/work/pciutils-3.5.6'
gmake -C lib all
gmake[2]: Entering directory
'/wrkdirs/usr/ports/devel/libpci/work/pciutils-3.5.6/lib'
cc -O2 -pipe -fPIC -fstack-protector -fno-strict-aliasing -Wall -W
-Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -I/usr/src/sys -c
-o init.o init.c
In file included from init.c:9:
/usr/include/stdio.h:72:9: error: unknown type name '__va_list'
typedef __va_list va_list;
^
In file included from init.c:10:
/usr/include/stdlib.h:95:7: error: expected function body after function
declarator
__alloc_size2(1, 2);
^
/usr/include/stdlib.h:306:6: error: expected function body after function
declarator
__alloc_size2(2, 3);
^
init.c:98:3: warning: incompatible integer to pointer conversion passing
'va_list' (aka 'int') to parameter of type 'struct __va_list_tag *'
[-Wint-conversion]
va_start(args, msg);
^~~~~~~~~~~~~~~~~~~
/usr/include/sys/_stdarg.h:46:49: note: expanded from macro 'va_start'
#define va_start(ap, last) __builtin_va_start((ap), (last))
^~~~
init.c:110:3: warning: incompatible integer to pointer conversion passing
'va_list' (aka 'int') to parameter of type 'struct __va_list_tag *'
[-Wint-conversion]
va_start(args, msg);
^~~~~~~~~~~~~~~~~~~
/usr/include/sys/_stdarg.h:46:49: note: expanded from macro 'va_start'
#define va_start(ap, last) __builtin_va_start((ap), (last))
^~~~
init.c:121:3: warning: incompatible integer to pointer conversion passing
'va_list' (aka 'int') to parameter of type 'struct __va_list_tag *'
[-Wint-conversion]
va_start(args, msg);
^~~~~~~~~~~~~~~~~~~
/usr/include/sys/_stdarg.h:46:49: note: expanded from macro 'va_start'
#define va_start(ap, last) __builtin_va_start((ap), (last))
^~~~
init.c:123:10: warning: incompatible integer to pointer conversion passing
'va_list' (aka 'int') to parameter of type 'struct __va_list_tag *'
[-Wint-conversion]
va_end(args);
^~~~
/usr/include/sys/_stdarg.h:52:40: note: expanded from macro 'va_end'
#define va_end(ap) __builtin_va_end(ap)
^~
4 warnings and 3 errors generated.
gmake[2]: *** [<builtin>: init.o] Error 1
gmake[2]: Leaving directory
'/wrkdirs/usr/ports/devel/libpci/work/pciutils-3.5.6/lib'
gmake[1]: *** [Makefile:62: lib/libpci.a] Error 2
gmake[1]: Leaving directory
'/wrkdirs/usr/ports/devel/libpci/work/pciutils-3.5.6'
*** Error code 1
Stop.
make: stopped in /usr/ports/devel/libpci
Ports tree and jail were updated yesterday.
Ports tree:
local portsnap 2018-02-24 19:27:45 /usr/local/poudriere/ports/local
current 12.0-CURRENT 1200058 amd64 src=/home/novel/freebsd 2018-02-24
19:26:24 /usr/local/poudriere/jails/current
I get get it to build if I comment out "CFLAGS += -I/usr/src/sys" in
lib/Makefile (in $WRKSRC):
ifdef PCI_HAVE_PM_FBSD_DEVICE
OBJS += fbsd-device
#CFLAGS += -I/usr/src/sys
ifdef FREEBSD_SYS
CFLAGS += -I${FREEBSD_SYS}
endif
endif
Now the interesting part.
1. I cannot reproduce that on a host box which uses the same /usr/src and
/usr/ports as this poudriere jail that builds fails in.
2. I cannot reproduce that on a different host that has the same /usr/src (and
/usr/obj) and the same /usr/ports all mounted via NFS.
3. I cannot reproduce that on the second host with poudriere that uses its own
copy of the source and the ports tree (updated yesterday as well).
So could that actually be a bug in poudriere?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list