how to avoid warning: use of old-style cast [-Wold-style-cast]

2015-12-19 Thread Erich Dollansky
Hi,

when compiling on FreeBSD 11, I get some warnings as mentioned in the
subject. What is the recommended way to avoid them?

Some examples are: FIONREAD or SIG_IGN.

The machine:

FreeBSD raspberry2.alogt.com 11.0-CURRENT FreeBSD 11.0-CURRENT #0
r291495: Tue Dec  1 09:13:20 UTC 2015
r...@releng2.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/RPI2 arm

Should we edit the include files?

Any other ideas?

Erich
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Build failed in Jenkins: Build-UFS-image #2879

2015-12-19 Thread jenkins-admin
See 

--
[...truncated 1541 lines...]
./cddl/usr.sbin/dtrace/common/ustack missing (created)
./cddl/usr.sbin/dtrace/common/vars missing (created)
./cddl/usr.sbin/dtrace/common/version missing (created)
./etc missing (created)
./etc/rc.d missing (created)
./games missing (created)
./gnu missing (created)
./gnu/lib missing (created)
./gnu/usr.bin missing (created)
./gnu/usr.bin/diff missing (created)
./lib missing (created)
./lib/atf missing (created)
./lib/atf/libatf-c missing (created)
./lib/atf/libatf-c/detail missing (created)
./lib/atf/libatf-c++ missing (created)
./lib/atf/libatf-c++/detail missing (created)
./lib/atf/test-programs missing (created)
./lib/libarchive missing (created)
./lib/libc missing (created)
./lib/libc/c063 missing (created)
./lib/libc/db missing (created)
./lib/libc/gen missing (created)
./lib/libc/gen/execve missing (created)
./lib/libc/gen/posix_spawn missing (created)
./lib/libc/hash missing (created)
./lib/libc/hash/data missing (created)
./lib/libc/inet missing (created)
./lib/libc/locale missing (created)
./lib/libc/net missing (created)
./lib/libc/net/getaddrinfo missing (created)
./lib/libc/net/getaddrinfo/data missing (created)
./lib/libc/nss missing (created)
./lib/libc/regex missing (created)
./lib/libc/regex/data missing (created)
./lib/libc/resolv missing (created)
./lib/libc/rpc missing (created)
./lib/libc/ssp missing (created)
./lib/libc/stdio missing (created)
./lib/libc/stdlib missing (created)
./lib/libc/string missing (created)
./lib/libc/sys missing (created)
./lib/libc/time missing (created)
./lib/libc/tls missing (created)
./lib/libc/tls/dso missing (created)
./lib/libc/termios missing (created)
./lib/libc/ttyio missing (created)
./lib/libcrypt missing (created)
./lib/libmp missing (created)
./lib/libnv missing (created)
./lib/libpam missing (created)
./lib/libproc missing (created)
./lib/librt missing (created)
./lib/libthr missing (created)
./lib/libthr/dlopen missing (created)
./lib/libutil missing (created)
./lib/libxo missing (created)
./lib/msun missing (created)
./libexec missing (created)
./libexec/atf missing (created)
./libexec/atf/atf-check missing (created)
./libexec/atf/atf-sh missing (created)
./libexec/rtld-elf missing (created)
./sbin missing (created)
./sbin/dhclient missing (created)
./sbin/devd missing (created)
./sbin/growfs missing (created)
./sbin/ifconfig missing (created)
./sbin/mdconfig missing (created)
./secure missing (created)
./secure/lib missing (created)
./secure/libexec missing (created)
./secure/usr.bin missing (created)
./secure/usr.sbin missing (created)
./share missing (created)
./share/examples missing (created)
./share/examples/tests missing (created)
./share/examples/tests/atf missing (created)
./share/examples/tests/plain missing (created)
./sys missing (created)
./sys/acl missing (created)
./sys/aio missing (created)
./sys/fifo missing (created)
./sys/file missing (created)
./sys/kern missing (created)
./sys/kern/acct missing (created)
./sys/kern/execve missing (created)
./sys/kern/pipe missing (created)
./sys/kqueue missing (created)
./sys/mqueue missing (created)
./sys/netinet missing (created)
./sys/opencrypto missing (created)
./sys/pjdfstest missing (created)
./sys/pjdfstest/chflags missing (created)
./sys/pjdfstest/chmod missing (created)
./sys/pjdfstest/chown missing (created)
./sys/pjdfstest/ftruncate missing (created)
./sys/pjdfstest/granular missing (created)
./sys/pjdfstest/link missing (created)
./sys/pjdfstest/mkdir missing (created)
./sys/pjdfstest/mkfifo missing (created)
./sys/pjdfstest/mknod missing (created)
./sys/pjdfstest/open missing (created)
./sys/pjdfstest/rename missing (created)
./sys/pjdfstest/rmdir missing (created)
./sys/pjdfstest/symlink missing (created)
./sys/pjdfstest/truncate missing (created)
./sys/pjdfstest/unlink missing (created)
./sys/posixshm missing (created)
./sys/vfs missing (created)
./sys/vm missing (created)
./usr.bin missing (created)
./usr.bin/apply missing (created)
./usr.bin/basename missing (created)
./usr.bin/bmake missing (created)
./usr.bin/bmake/archives missing (created)
./usr.bin/bmake/archives/fmt_44bsd missing (created)
./usr.bin/bmake/archives/fmt_44bsd_mod missing (created)
./usr.bin/bmake/archives/fmt_oldbsd missing (created)
./usr.bin/bmake/basic missing (created)
./usr.bin/bmake/basic/t0 missing (created)
./usr.bin/bmake/basic/t1 missing (created)
./usr.bin/bmake/basic/t2 missing (created)
./usr.bin/bmake/basic/t3 missing (created)
./usr.bin/bmake/execution missing (created)
./usr.bin/bmake/execution/ellipsis missing (created)
./usr.bin/bmake/execution/empty missing (created)
./usr.bin/bmake/execution/joberr missing (created)
./usr.bin/bmake/execution/plus missing (created)
./usr.bin/bmake/shell missing (created)
./usr.bin/bmake/shell/builtin missing (created)
./usr.bin/bmake/shell/meta missing (created)
./usr.bin/bmake/shell/path missing (created)

Aw: Re: make .SUFFIXES bug?

2015-12-19 Thread Carsten Kunze
Thomas Dickey  wrote:
> On Tue, Dec 15, 2015 at 04:01:41PM +0100, Carsten Kunze wrote:
> > current groff doesn't build on FreeBSD.  I had noticed the same issue some
> > months ago on NetBSD and cross checked on FreeBSD and it had worked on
> > FreeBSD.  There must have somethig changed since then.  How to reproduce:
> > 
> > When there is a file "test.1.man" and a makefile:
> > 
> > .SUFFIXES:
> > .SUFFIXES: .roff .in .ps .mom .pdf .me .ms .ps .html .txt .texi .dvi .pdf
> > .xhtml .man .c .cpp .log .o .obj .sed .sin .test .test$(EXEEXT) .trs .ypp
 
> According to POSIX
> 
> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html
> 
> .SUFFIXES
> Prerequisites of .SUFFIXES shall be appended to the list of known
> suffixes
> and are used in conjunction with the inference rules (see Inference
> Rules). 
> If .SUFFIXES does not have any prerequisites, the list of known
> suffixes
> shall be cleared.
> 
> and goes on to list the expected suffixes:
> 
> .SUFFIXES: .o .c .y .l .a .sh .f .c? .y? .l? .sh? .f?

Why is this relevant?  The first "empty" .SUFFIXES line in the example
above clears all default (or previously set) suffixes and the second one
sets the project relevant suffixes.  So I can assume that for the following
suffix rules *these* specified suffixes are used.

> > .man:
> > @echo Making $@ from $<
> > rm -f $@
> > @LC_ALL=C \
> >  sed -e "s|foo|bar|g" \
> >  $< >$@
> > 
> > "make test.1" results in "make: don't know how to make test.1. Stop".
> > 
> > When ".man" is put to the start of the list it works.  It also works when
> > the first .SUFFIXES line is removed.
> > 
> > The answer from NetBSD is that this is very likely a bug in make.  May
> > this
> > also be the case for FreeBSD?
 
> That's ironic, considering that a while back they were adamant that if
> the suffix wasn't in the list cited in POSIX, then it was a bug in the
> makefile.

I agree, but ".man" is in the list.
 
> Your example does not list a suffix for ".1".  It would be harmless to
> update groff's makefile to provide that, and a corresponding suffix-rule.

Please don't consider .1 as a suffix here.  The task is to make "test.1", it
could also be named test_1 or whatever.  So according to the known
suffixes make looks for a file "test.1" until it finds "test.1.man".
So the ".man:" rule generates a  from a .man, in this case
test.1 from test.1.man.  So I do not really see a bug in the makefile.

Carsten
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Build from 9.3-RELEASE to 11.0-CURRENT fails for i386 (-Wsign-compare issues with gcc)

2015-12-19 Thread NGie Cooper
Hi John,
I tried bootstrapping 9.3-RELEASE to 11.0-CURRENT with i386 and ran 
into the -Wsign-compare issue below when running make libraries with 
buildworld, because it’s building libkvm with gcc 4.2.1 :/… I’ve tried 
bootstrapping with clang/clang37, but haven’t been able to yet. I’ll try 
installing 10.2-RELEASE via freebsd-update so I can use clang instead of gcc.
Thanks!
-NGie

% git log --show-notes --grep svn -n 1
commit 69774947bfffd5e16d26b60a82d880aa659abbf2
Author: imp 
Date:   Sat Dec 19 19:20:48 2015 +

Move some MIPS specific flags to be more congruent with other
architectures.

Notes:
svn path=/head/; revision=292474

% make buildworld

--- lib/libkvm__L ---
--- kvm_i386.o ---
cc   -O2 -pipe -O2 -pipe -DLIBC_SCCS -I/usr/src/git/lib/libkvm   -MD -MP 
-MF.depend.kvm_i386.o -MTkvm_i386.o -std=gnu99 -fstack-protector-strong 
-Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter 
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized 
-Wno-pointer-sign   -c /usr/src/git/lib/libkvm/kvm_i386.c -o kvm_i386.o
--- lib/libnv__L ---
--- obj ---
--- lib/libkvm__L ---
cc1: warnings being treated as errors
In file included from /usr/src/git/lib/libkvm/kvm_i386.c:63:
/usr/src/git/lib/libkvm/kvm_i386.h:73: warning: comparison between signed and 
unsigned
*** [kvm_i386.So] Error code 1

bmake[3]: stopped in /usr/src/git/lib/libkvm
1 error

bmake[3]: stopped in /usr/src/git/lib/libkvm
*** [lib/libkvm__L] Error code 2

bmake[2]: stopped in /usr/src/git
--- lib/libmd__L ---
A failure has been detected in another branch of the parallel make

bmake[3]: stopped in /usr/src/git/lib/libmd
*** [lib/libmd__L] Error code 2

bmake[2]: stopped in /usr/src/git
2 errors

bmake[2]: stopped in /usr/src/git
*** [libraries] Error code 2
…
% cc --version
cc (GCC) 4.2.1 20070831 patched [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
%
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Build failed in Jenkins: Build-UFS-image #2880

2015-12-19 Thread jenkins-admin
See 

--
[...truncated 1541 lines...]
./cddl/usr.sbin/dtrace/common/ustack missing (created)
./cddl/usr.sbin/dtrace/common/vars missing (created)
./cddl/usr.sbin/dtrace/common/version missing (created)
./etc missing (created)
./etc/rc.d missing (created)
./games missing (created)
./gnu missing (created)
./gnu/lib missing (created)
./gnu/usr.bin missing (created)
./gnu/usr.bin/diff missing (created)
./lib missing (created)
./lib/atf missing (created)
./lib/atf/libatf-c missing (created)
./lib/atf/libatf-c/detail missing (created)
./lib/atf/libatf-c++ missing (created)
./lib/atf/libatf-c++/detail missing (created)
./lib/atf/test-programs missing (created)
./lib/libarchive missing (created)
./lib/libc missing (created)
./lib/libc/c063 missing (created)
./lib/libc/db missing (created)
./lib/libc/gen missing (created)
./lib/libc/gen/execve missing (created)
./lib/libc/gen/posix_spawn missing (created)
./lib/libc/hash missing (created)
./lib/libc/hash/data missing (created)
./lib/libc/inet missing (created)
./lib/libc/locale missing (created)
./lib/libc/net missing (created)
./lib/libc/net/getaddrinfo missing (created)
./lib/libc/net/getaddrinfo/data missing (created)
./lib/libc/nss missing (created)
./lib/libc/regex missing (created)
./lib/libc/regex/data missing (created)
./lib/libc/resolv missing (created)
./lib/libc/rpc missing (created)
./lib/libc/ssp missing (created)
./lib/libc/stdio missing (created)
./lib/libc/stdlib missing (created)
./lib/libc/string missing (created)
./lib/libc/sys missing (created)
./lib/libc/time missing (created)
./lib/libc/tls missing (created)
./lib/libc/tls/dso missing (created)
./lib/libc/termios missing (created)
./lib/libc/ttyio missing (created)
./lib/libcrypt missing (created)
./lib/libmp missing (created)
./lib/libnv missing (created)
./lib/libpam missing (created)
./lib/libproc missing (created)
./lib/librt missing (created)
./lib/libthr missing (created)
./lib/libthr/dlopen missing (created)
./lib/libutil missing (created)
./lib/libxo missing (created)
./lib/msun missing (created)
./libexec missing (created)
./libexec/atf missing (created)
./libexec/atf/atf-check missing (created)
./libexec/atf/atf-sh missing (created)
./libexec/rtld-elf missing (created)
./sbin missing (created)
./sbin/dhclient missing (created)
./sbin/devd missing (created)
./sbin/growfs missing (created)
./sbin/ifconfig missing (created)
./sbin/mdconfig missing (created)
./secure missing (created)
./secure/lib missing (created)
./secure/libexec missing (created)
./secure/usr.bin missing (created)
./secure/usr.sbin missing (created)
./share missing (created)
./share/examples missing (created)
./share/examples/tests missing (created)
./share/examples/tests/atf missing (created)
./share/examples/tests/plain missing (created)
./sys missing (created)
./sys/acl missing (created)
./sys/aio missing (created)
./sys/fifo missing (created)
./sys/file missing (created)
./sys/kern missing (created)
./sys/kern/acct missing (created)
./sys/kern/execve missing (created)
./sys/kern/pipe missing (created)
./sys/kqueue missing (created)
./sys/mqueue missing (created)
./sys/netinet missing (created)
./sys/opencrypto missing (created)
./sys/pjdfstest missing (created)
./sys/pjdfstest/chflags missing (created)
./sys/pjdfstest/chmod missing (created)
./sys/pjdfstest/chown missing (created)
./sys/pjdfstest/ftruncate missing (created)
./sys/pjdfstest/granular missing (created)
./sys/pjdfstest/link missing (created)
./sys/pjdfstest/mkdir missing (created)
./sys/pjdfstest/mkfifo missing (created)
./sys/pjdfstest/mknod missing (created)
./sys/pjdfstest/open missing (created)
./sys/pjdfstest/rename missing (created)
./sys/pjdfstest/rmdir missing (created)
./sys/pjdfstest/symlink missing (created)
./sys/pjdfstest/truncate missing (created)
./sys/pjdfstest/unlink missing (created)
./sys/posixshm missing (created)
./sys/vfs missing (created)
./sys/vm missing (created)
./usr.bin missing (created)
./usr.bin/apply missing (created)
./usr.bin/basename missing (created)
./usr.bin/bmake missing (created)
./usr.bin/bmake/archives missing (created)
./usr.bin/bmake/archives/fmt_44bsd missing (created)
./usr.bin/bmake/archives/fmt_44bsd_mod missing (created)
./usr.bin/bmake/archives/fmt_oldbsd missing (created)
./usr.bin/bmake/basic missing (created)
./usr.bin/bmake/basic/t0 missing (created)
./usr.bin/bmake/basic/t1 missing (created)
./usr.bin/bmake/basic/t2 missing (created)
./usr.bin/bmake/basic/t3 missing (created)
./usr.bin/bmake/execution missing (created)
./usr.bin/bmake/execution/ellipsis missing (created)
./usr.bin/bmake/execution/empty missing (created)
./usr.bin/bmake/execution/joberr missing (created)
./usr.bin/bmake/execution/plus missing (created)
./usr.bin/bmake/shell missing (created)
./usr.bin/bmake/shell/builtin missing (created)
./usr.bin/bmake/shell/meta missing (created)
./usr.bin/bmake/shell/path missing (created)

SVN r292469 breaks VirtualBox

2015-12-19 Thread Michael Butler
While the kernel modules will build, they won't load ..

kernel: linker_load_file: Unsupported file type
kernel: link_elf_obj: symbol vm_pageout_grow_cache undefined
kernel: linker_load_file: Unsupported file type
kernel: KLD vboxnetflt.ko: depends on vboxdrv - not available or version
mismatch
kernel: linker_load_file: Unsupported file type
kernel: link_elf_obj: symbol vm_pageout_grow_cache undefined
kernel: linker_load_file: Unsupported file type
kernel: KLD vboxnetadp.ko: depends on vboxdrv - not available or version
mismatch
kernel: linker_load_file: Unsupported file type

imb

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Failing to build head@r292474 's rescue/rescue on 10.2-RELEASE-p7 / i386

2015-12-19 Thread NGie Cooper

> On Dec 19, 2015, at 17:16, NGie Cooper  wrote:
> 
> 
>> On Dec 19, 2015, at 16:09, NGie Cooper  wrote:
>> 
>> (Fixed the subject line)
>> 
>>> On Dec 19, 2015, at 16:03, NGie Cooper  wrote:
>>> 
>>> Hi,
>>> I ran into the following error trying to build rescue/rescue as part of 
>>> buildworld on 10.2-RELEASE-p7 / i386. Has anyone seen this before?
>>> Thanks,
>>> -NGie
>>> 
>>> % git log --show-notes --grep svn -n 1
>>> commit 69774947bfffd5e16d26b60a82d880aa659abbf2
>>> Author: imp 
>>> Date:   Sat Dec 19 19:20:48 2015 +
>>> 
>>>  Move some MIPS specific flags to be more congruent with other
>>>  architectures.
>>> 
>>> Notes:
>>>  svn path=/head/; revision=292474
> 
> Looks like it’s broken in general on i386 :(…
> 
> % (set -e; cd rescue; make obj; make depend; make all)
> ...
> cc -static -o rescue rescue.o cat.lo chflags.lo chio.lo chmod.lo cp.lo 
> date.lo dd.lo df.lo echo.lo ed.lo expr.lo getfacl.lo hostname.lo kenv.lo 
> kill.lo ln.lo ls.lo mkdir.lo mv.lo pkill.lo ps.lo pwd.lo realpath.lo rm.lo 
> rmdir.lo setfacl.lo sh.lo sleep.lo stty.lo sync.lo test.lo badsect.lo 
> camcontrol.lo ccdconfig.lo clri.lo devfs.lo dmesg.lo dump.lo dumpfs.lo 
> dumpon.lo fsck.lo fsck_ffs.lo fsck_msdosfs.lo fsdb.lo fsirand.lo gbde.lo 
> geom.lo ifconfig.lo init.lo kldconfig.lo kldload.lo kldstat.lo kldunload.lo 
> ldconfig.lo md5.lo mdconfig.lo mdmfs.lo mknod.lo mount.lo mount_cd9660.lo 
> mount_msdosfs.lo mount_nfs.lo mount_nullfs.lo mount_udf.lo mount_unionfs.lo 
> newfs.lo newfs_msdos.lo nos-tun.lo ping.lo reboot.lo restore.lo rcorder.lo 
> route.lo routed.lo rtquery.lo rtsol.lo savecore.lo spppcontrol.lo swapon.lo 
> sysctl.lo tunefs.lo umount.lo ping6.lo zfs.lo zpool.lo bsdlabel.lo sconfig.lo 
> fdisk.lo dhclient.lo head.lo mt.lo nc.lo sed.lo tail.lo tee.lo gzip.lo 
> bzip2.lo less.lo xz.lo tar.lo id.lo zdb.lo chroot.lo chown.lo 
> /usr/obj/usr/src/git/rescue/rescue/../librescue/exec.o 
> /usr/obj/usr/src/git/rescue/rescue/../librescue/getusershell.o 
> /usr/obj/usr/src/git/rescue/rescue/../librescue/login_class.o 
> /usr/obj/usr/src/git/rescue/rescue/../librescue/popen.o 
> /usr/obj/usr/src/git/rescue/rescue/../librescue/rcmdsh.o 
> /usr/obj/usr/src/git/rescue/rescue/../librescue/sysctl.o 
> /usr/obj/usr/src/git/rescue/rescue/../librescue/system.o -lcrypt -ledit 
> -ljail -lkvm -lelf -ll -ltermcapw -lutil -lxo -l80211 -lalias -lcam 
> -lncursesw -ldevstat -lipsec -llzma -lavl -lzpool -lzfs_core -lzfs -lnvpair 
> -lpthread -luutil -lumem -lgeom -lbsdxml -lkiconv -lmt -lsbuf -lufs -lz -lbz2 
> -larchive -lcrypto -lmd -lm
> nc.lo: In function `_$$hide$$ nc.lo main':
> (.text+0x750): warning: warning: mktemp() possibly used unsafely; consider 
> using mkstemp()
> /usr/lib/libkvm.a(kvm.o): In function `_kvm_open':
> /usr/src/git/lib/libkvm/kvm.c:444: undefined reference to 
> `__start_set_kvm_arch'
> /usr/src/git/lib/libkvm/kvm.c:444: undefined reference to 
> `__stop_set_kvm_arch'
> /usr/src/git/lib/libkvm/kvm.c:444: undefined reference to 
> `__stop_set_kvm_arch'
> cc: error: linker command failed with exit code 1 (use -v to see invocation)
> *** Error code 1
> 
> Stop.
> make[2]: stopped in /usr/obj/usr/src/git/rescue/rescue
> *** Error code 1
> 
> Stop.
> make[1]: stopped in /usr/src/git/rescue/rescue
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/src/git/rescue

Hmmm… it happened on CURRENT, but once I rebuilt/reinstalled libkvm using 
CURRENT, it worked. Weird. So, there might be a toolchain issue going from 10.2 
-> 11.0-CURRENT?

$ uname -a
FreeBSD fbsd11-i386.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0: Sat Dec 19 
16:34:48 PST 2015 
ngie@fbsd11-i386.local:/usr/obj/usr/src/git/sys/GENERIC-NODEBUG  i386

Thanks,
-NGie
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: SVN r292469 breaks VirtualBox

2015-12-19 Thread Alan Cox
On 12/19/2015 19:00, Michael Butler wrote:
> While the kernel modules will build, they won't load ..
>
> kernel: linker_load_file: Unsupported file type
> kernel: link_elf_obj: symbol vm_pageout_grow_cache undefined
> kernel: linker_load_file: Unsupported file type
> kernel: KLD vboxnetflt.ko: depends on vboxdrv - not available or version
> mismatch
> kernel: linker_load_file: Unsupported file type
> kernel: link_elf_obj: symbol vm_pageout_grow_cache undefined
> kernel: linker_load_file: Unsupported file type
> kernel: KLD vboxnetadp.ko: depends on vboxdrv - not available or version
> mismatch
> kernel: linker_load_file: Unsupported file type
>

VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c will need to be
patched to use vm_page_reclaim_contig() instead of vm_pageout_grow_cache().

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Build error on i386 when building

2015-12-19 Thread NGie Cooper
Hi Mark,
I ran into the following error when trying to build the dtrace tests on 
i386 (both with 10.2-RELEASE-p7 and 11.0-CURRENT) — have you seen this issue 
before?
Thanks,
-NGie

--- all_subdir_cddl ---
usdt.o: In function `dtrace_dof_init':
/usr/src/cddl/lib/drti/../../../cddl/contrib/opensolaris/lib/libdtrace/common/drti.c:(.text+0xee):
 undefined reference to `elf_version'
--- all_subdir_lib ---
--- sctp_recvmsg.3.gz ---
--- all_subdir_cddl ---
/usr/src/cddl/lib/drti/../../../cddl/contrib/opensolaris/lib/libdtrace/common/drti.c:(.text+0x132):
 undefined reference to `elf_begin'
/usr/src/cddl/lib/drti/../../../cddl/contrib/opensolaris/lib/libdtrace/common/drti.c:(.text+0x154):
 undefined reference to `elf_getshdrstrndx'
/usr/src/cddl/lib/drti/../../../cddl/contrib/opensolaris/lib/libdtrace/common/drti.c:(.text+0x164):
 undefined reference to `elf_nextscn'
/usr/src/cddl/lib/drti/../../../cddl/contrib/opensolaris/lib/libdtrace/common/drti.c:(.text+0x1c0):
 undefined reference to `elf_getdata'
/usr/src/cddl/lib/drti/../../../cddl/contrib/opensolaris/lib/libdtrace/common/drti.c:(.text+0x1ed):
 undefined reference to `elf_getdata'
/usr/src/cddl/lib/drti/../../../cddl/contrib/opensolaris/lib/libdtrace/common/drti.c:(.text+0x203):
 undefined reference to `elf_getdata'
/usr/src/cddl/lib/drti/../../../cddl/contrib/opensolaris/lib/libdtrace/common/drti.c:(.text+0x22c):
 undefined reference to `gelf_getshdr'
/usr/src/cddl/lib/drti/../../../cddl/contrib/opensolaris/lib/libdtrace/common/drti.c:(.text+0x255):
 undefined reference to `elf_strptr'
/usr/src/cddl/lib/drti/../../../cddl/contrib/opensolaris/lib/libdtrace/common/drti.c:(.text+0x27f):
 undefined reference to `elf_nextscn'
/usr/src/cddl/lib/drti/../../../cddl/contrib/opensolaris/lib/libdtrace/common/drti.c:(.text+0x657):
 undefined reference to `elf_end'
usdt.o: In function `fixsymbol':
/usr/src/cddl/lib/drti/../../../cddl/contrib/opensolaris/lib/libdtrace/common/drti.c:(.text+0x7d4):
 undefined reference to `gelf_getsym'
/usr/src/cddl/lib/drti/../../../cddl/contrib/opensolaris/lib/libdtrace/common/drti.c:(.text+0x820):
 undefined reference to `elf_strptr'
--- all_subdir_lib ---
gzip -cn /usr/src/git/lib/libc/net/sctp_recvmsg.3 > sctp_recvmsg.3.gz
--- all_subdir_cddl ---
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [tst.usdt.exe.full] Error code 1

bmake[9]: stopped in /usr/src/git/cddl/usr.sbin/dtrace/tests/common/json
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: Build error on i386 when building

2015-12-19 Thread Mark Johnston
On Sat, Dec 19, 2015 at 05:03:51PM -0800, NGie Cooper wrote:
> Hi Mark,
>   I ran into the following error when trying to build the dtrace tests on 
> i386 (both with 10.2-RELEASE-p7 and 11.0-CURRENT) — have you seen this issue 
> before?

Yes, that's because drti.o in stable/10 depends on libelf. The change
which removes the libelf dependency shouldn't be MFCed because it breaks
compatibility. When building an MFCed test suite on stable/10, you'll
need to link the test programs against libelf. When building current on
stable/10, dtrace(1) should use the drti.o from the objdir rather than
the installed base. The diff below should solve these two problems.

diff --git a/cddl/usr.sbin/dtrace/tests/dtrace.test.mk 
b/cddl/usr.sbin/dtrace/tests/dtrace.test.mk
index 0c528ef..dcec33a 100644
--- a/cddl/usr.sbin/dtrace/tests/dtrace.test.mk
+++ b/cddl/usr.sbin/dtrace/tests/dtrace.test.mk
@@ -30,6 +30,8 @@ SRCS.${prog}+= ${prog:S/.exe$/.c/}
 
 .if exists(${prog:S/^tst.//:S/.exe$/.d/})
 SRCS.${prog}+= ${prog:S/^tst.//:S/.exe$/.d/}
+LDADD.${prog}+= -lelf
+DPADD.${prog}+= ${LIBELF}
 .endif
 .endfor
 
diff --git a/share/mk/sys.mk b/share/mk/sys.mk
index 8fe6b68..1eeb0b9 100644
--- a/share/mk/sys.mk
+++ b/share/mk/sys.mk
@@ -128,7 +128,7 @@ CXXFLAGS?=  
${CFLAGS:N-std=*:N-Wnested-externs:N-W*-prototypes:N-Wno-pointer-sig
 PO_CXXFLAGS?=  ${CXXFLAGS}
 
 DTRACE ?=  dtrace
-DTRACEFLAGS?=  -C -x nolibs
+DTRACEFLAGS?=  -C -x nolibs -x libdir=${.OBJDIR}/cddl/lib/drti
 
 .if empty(.MAKEFLAGS:M-s)
 ECHO   ?=  echo
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Build failed in Jenkins: Build-UFS-image #2881

2015-12-19 Thread jenkins-admin
See 

--
[...truncated 1541 lines...]
./cddl/usr.sbin/dtrace/common/ustack missing (created)
./cddl/usr.sbin/dtrace/common/vars missing (created)
./cddl/usr.sbin/dtrace/common/version missing (created)
./etc missing (created)
./etc/rc.d missing (created)
./games missing (created)
./gnu missing (created)
./gnu/lib missing (created)
./gnu/usr.bin missing (created)
./gnu/usr.bin/diff missing (created)
./lib missing (created)
./lib/atf missing (created)
./lib/atf/libatf-c missing (created)
./lib/atf/libatf-c/detail missing (created)
./lib/atf/libatf-c++ missing (created)
./lib/atf/libatf-c++/detail missing (created)
./lib/atf/test-programs missing (created)
./lib/libarchive missing (created)
./lib/libc missing (created)
./lib/libc/c063 missing (created)
./lib/libc/db missing (created)
./lib/libc/gen missing (created)
./lib/libc/gen/execve missing (created)
./lib/libc/gen/posix_spawn missing (created)
./lib/libc/hash missing (created)
./lib/libc/hash/data missing (created)
./lib/libc/inet missing (created)
./lib/libc/locale missing (created)
./lib/libc/net missing (created)
./lib/libc/net/getaddrinfo missing (created)
./lib/libc/net/getaddrinfo/data missing (created)
./lib/libc/nss missing (created)
./lib/libc/regex missing (created)
./lib/libc/regex/data missing (created)
./lib/libc/resolv missing (created)
./lib/libc/rpc missing (created)
./lib/libc/ssp missing (created)
./lib/libc/stdio missing (created)
./lib/libc/stdlib missing (created)
./lib/libc/string missing (created)
./lib/libc/sys missing (created)
./lib/libc/time missing (created)
./lib/libc/tls missing (created)
./lib/libc/tls/dso missing (created)
./lib/libc/termios missing (created)
./lib/libc/ttyio missing (created)
./lib/libcrypt missing (created)
./lib/libmp missing (created)
./lib/libnv missing (created)
./lib/libpam missing (created)
./lib/libproc missing (created)
./lib/librt missing (created)
./lib/libthr missing (created)
./lib/libthr/dlopen missing (created)
./lib/libutil missing (created)
./lib/libxo missing (created)
./lib/msun missing (created)
./libexec missing (created)
./libexec/atf missing (created)
./libexec/atf/atf-check missing (created)
./libexec/atf/atf-sh missing (created)
./libexec/rtld-elf missing (created)
./sbin missing (created)
./sbin/dhclient missing (created)
./sbin/devd missing (created)
./sbin/growfs missing (created)
./sbin/ifconfig missing (created)
./sbin/mdconfig missing (created)
./secure missing (created)
./secure/lib missing (created)
./secure/libexec missing (created)
./secure/usr.bin missing (created)
./secure/usr.sbin missing (created)
./share missing (created)
./share/examples missing (created)
./share/examples/tests missing (created)
./share/examples/tests/atf missing (created)
./share/examples/tests/plain missing (created)
./sys missing (created)
./sys/acl missing (created)
./sys/aio missing (created)
./sys/fifo missing (created)
./sys/file missing (created)
./sys/kern missing (created)
./sys/kern/acct missing (created)
./sys/kern/execve missing (created)
./sys/kern/pipe missing (created)
./sys/kqueue missing (created)
./sys/mqueue missing (created)
./sys/netinet missing (created)
./sys/opencrypto missing (created)
./sys/pjdfstest missing (created)
./sys/pjdfstest/chflags missing (created)
./sys/pjdfstest/chmod missing (created)
./sys/pjdfstest/chown missing (created)
./sys/pjdfstest/ftruncate missing (created)
./sys/pjdfstest/granular missing (created)
./sys/pjdfstest/link missing (created)
./sys/pjdfstest/mkdir missing (created)
./sys/pjdfstest/mkfifo missing (created)
./sys/pjdfstest/mknod missing (created)
./sys/pjdfstest/open missing (created)
./sys/pjdfstest/rename missing (created)
./sys/pjdfstest/rmdir missing (created)
./sys/pjdfstest/symlink missing (created)
./sys/pjdfstest/truncate missing (created)
./sys/pjdfstest/unlink missing (created)
./sys/posixshm missing (created)
./sys/vfs missing (created)
./sys/vm missing (created)
./usr.bin missing (created)
./usr.bin/apply missing (created)
./usr.bin/basename missing (created)
./usr.bin/bmake missing (created)
./usr.bin/bmake/archives missing (created)
./usr.bin/bmake/archives/fmt_44bsd missing (created)
./usr.bin/bmake/archives/fmt_44bsd_mod missing (created)
./usr.bin/bmake/archives/fmt_oldbsd missing (created)
./usr.bin/bmake/basic missing (created)
./usr.bin/bmake/basic/t0 missing (created)
./usr.bin/bmake/basic/t1 missing (created)
./usr.bin/bmake/basic/t2 missing (created)
./usr.bin/bmake/basic/t3 missing (created)
./usr.bin/bmake/execution missing (created)
./usr.bin/bmake/execution/ellipsis missing (created)
./usr.bin/bmake/execution/empty missing (created)
./usr.bin/bmake/execution/joberr missing (created)
./usr.bin/bmake/execution/plus missing (created)
./usr.bin/bmake/shell missing (created)
./usr.bin/bmake/shell/builtin missing (created)
./usr.bin/bmake/shell/meta missing (created)
./usr.bin/bmake/shell/path missing (created)

Re: SVN r292469 breaks VirtualBox

2015-12-19 Thread Joe Maloney
I ran into this months earlier with NextBSD.  Replacing 
vm_pageout_grow_cache(). in memobj-r0drv-freebsd.c with this fixed the issue:

vm_pageout_reclaim_contig(1, 0, VM_MAX_ADDRESS, PAGE_SIZE, 0, 3);

Joe Maloney

> On Dec 19, 2015, at 7:45 PM, Alan Cox  wrote:
> 
> On 12/19/2015 19:00, Michael Butler wrote:
>> While the kernel modules will build, they won't load ..
>> 
>> kernel: linker_load_file: Unsupported file type
>> kernel: link_elf_obj: symbol vm_pageout_grow_cache undefined
>> kernel: linker_load_file: Unsupported file type
>> kernel: KLD vboxnetflt.ko: depends on vboxdrv - not available or version
>> mismatch
>> kernel: linker_load_file: Unsupported file type
>> kernel: link_elf_obj: symbol vm_pageout_grow_cache undefined
>> kernel: linker_load_file: Unsupported file type
>> kernel: KLD vboxnetadp.ko: depends on vboxdrv - not available or version
>> mismatch
>> kernel: linker_load_file: Unsupported file type
>> 
> 
> VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c will need to be
> patched to use vm_page_reclaim_contig() instead of vm_pageout_grow_cache().
> 
> ___
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Base Packaging in 11

2015-12-19 Thread Joe Maloney
I have been experimenting with this, and have successfully packaged base.  I 
figured out that make packages would do that.

http://skynet.desktopbsd.net/packages/

I have been unable to figure out how to package the kernel yet.  Is it possible 
at this stage to do that with another command, or is it something that will be 
added later?  I would love to be an early tester, and help out with this effort.

Joe Maloney

> On Dec 18, 2015, at 8:05 PM, Baptiste Daroussin  wrote:
> 
> On Fri, Dec 18, 2015 at 03:21:13PM -0800, Roger Marquis wrote:
>> Forwarding this from freebsd-security in case anyone here can update us
>> regarding the status of base packaging or has URLs for projects/release-pkg.
>> 
>> Roger
>> 
> Packaging base is happening here:
> https://svnweb.freebsd.org/base/projects/release-pkg/
> 
> It is mostly stalled for month due to lack of time working on it.
> The TODO list is mostly:
> - implement priotity in plist for pkg to ensure the ordre files will be 
> replaced
> - finishing flexible dependencies and use it by default in pkg
> - tracking down all issues from installworld that results files not installed 
> by
>  install(1) and files installed twice
> 
> In my opinion it should not be made the default mechanism for 11.0-RELEASE if 
> we
> are not able to provide our first packages for testing by the end of january 
> to
> leave enough time for testing and fixes before the release.
> 
> While I was pretty confident few month ago, things has changed since and I
> cannot spend the necessary time on it for various reasons.
> 
> Best regards,
> Bapt

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Building head@ 's rescue/rescue

2015-12-19 Thread NGie Cooper
Hi,
I ran into the following error trying to build rescue/rescue as part of 
buildworld on 10.2-RELEASE-p7 / i386. Has anyone seen this before?
Thanks,
-NGie

% git log --show-notes --grep svn -n 1
commit 69774947bfffd5e16d26b60a82d880aa659abbf2
Author: imp 
Date:   Sat Dec 19 19:20:48 2015 +

   Move some MIPS specific flags to be more congruent with other
   architectures.

Notes:
   svn path=/head/; revision=292474

% env NO_CLEAN=1 make buildworld -j2
...
--- rescue ---
cc  -static -o rescue rescue.o cat.lo chflags.lo chio.lo chmod.lo cp.lo date.lo 
dd.lo df.lo echo.lo ed.lo expr.lo getfacl.lo hostname.lo kenv.lo kill.lo ln.lo 
ls.lo mkdir.lo mv.lo pkill.lo ps.lo pwd.lo realpath.lo rm.lo rmdir.lo 
setfacl.lo sh.lo sleep.lo stty.lo sync.lo test.lo badsect.lo camcontrol.lo 
ccdconfig.lo clri.lo devfs.lo dmesg.lo dump.lo dumpfs.lo dumpon.lo fsck.lo 
fsck_ffs.lo fsck_msdosfs.lo fsdb.lo fsirand.lo gbde.lo geom.lo ifconfig.lo 
init.lo kldconfig.lo kldload.lo kldstat.lo kldunload.lo ldconfig.lo md5.lo 
mdconfig.lo mdmfs.lo mknod.lo mount.lo mount_cd9660.lo mount_msdosfs.lo 
mount_nfs.lo mount_nullfs.lo mount_udf.lo mount_unionfs.lo newfs.lo 
newfs_msdos.lo nos-tun.lo ping.lo reboot.lo restore.lo rcorder.lo route.lo 
routed.lo rtquery.lo rtsol.lo savecore.lo spppcontrol.lo swapon.lo sysctl.lo 
tunefs.lo umount.lo ping6.lo zfs.lo zpool.lo bsdlabel.lo sconfig.lo fdisk.lo 
dhclient.lo head.lo mt.lo nc.lo sed.lo tail.lo tee.lo gzip.lo bzip2.lo less.lo 
xz.lo tar.lo id.lo zdb.lo chroot.lo chown.lo 
/usr/obj/usr/src/git/rescue/rescue/../librescue/exec.o 
/usr/obj/usr/src/git/rescue/rescue/../librescue/getusershell.o 
/usr/obj/usr/src/git/rescue/rescue/../librescue/login_class.o 
/usr/obj/usr/src/git/rescue/rescue/../librescue/popen.o 
/usr/obj/usr/src/git/rescue/rescue/../librescue/rcmdsh.o 
/usr/obj/usr/src/git/rescue/rescue/../librescue/sysctl.o 
/usr/obj/usr/src/git/rescue/rescue/../librescue/system.o -lcrypt -ledit -ljail 
-lkvm -lelf -ll -ltermcapw -lutil -lxo -l80211 -lalias -lcam -lncursesw 
-ldevstat -lipsec -llzma -lavl -lzpool -lzfs_core -lzfs -lnvpair -lpthread 
-luutil -lumem -lgeom -lbsdxml -lkiconv -lmt -lsbuf -lufs -lz -lbz2 -larchive 
-lcrypto -lmd -lm
nc.lo: In function `_$$hide$$ nc.lo main':
(.text+0x750): warning: warning: mktemp() possibly used unsafely; consider 
using mkstemp()
--- all_subdir_sbin ---
--- ea.o ---
cc  -O2 -pipe -O2 -pipe -I/usr/src/git/sbin/fsck_ffs 
-I/usr/src/git/sbin/fsck_ffs/../mount   -g -MD -MP -MF.depend.ea.o -MTea.o 
-std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall 
-Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body 
-Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare 
-Wno-unused-value -Wno-parentheses-equality -Wno-unused-function 
-Wno-enum-conversion -Wno-unused-local-typedef -Wno-switch -Wno-switch-enum 
-Wno-knr-promoted-parameter -Qunused-arguments -c 
/usr/src/git/sbin/fsck_ffs/ea.c -o ea.o
--- fsutil.o ---
cc  -O2 -pipe -O2 -pipe -I/usr/src/git/sbin/fsck_ffs 
-I/usr/src/git/sbin/fsck_ffs/../mount   -g -MD -MP -MF.depend.fsutil.o 
-MTfsutil.o -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall 
-Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body 
-Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare 
-Wno-unused-value -Wno-parentheses-equality -Wno-unused-function 
-Wno-enum-conversion -Wno-unused-local-typedef -Wno-switch -Wno-switch-enum 
-Wno-knr-promoted-parameter -Qunused-arguments -c 
/usr/src/git/sbin/fsck_ffs/fsutil.c -o fsutil.o
--- all_subdir_rescue ---
/usr/obj/usr/src/git/tmp/usr/lib/libkvm.a(kvm.o): In function `_kvm_open':
/usr/src/git/lib/libkvm/kvm.c:444: undefined reference to `__start_set_kvm_arch'
/usr/src/git/lib/libkvm/kvm.c:444: undefined reference to `__stop_set_kvm_arch'
/usr/src/git/lib/libkvm/kvm.c:444: undefined reference to `__stop_set_kvm_arch'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [rescue] Error code 1

bmake[5]: stopped in /usr/obj/usr/src/git/rescue/rescue
1 error

bmake[5]: stopped in /usr/obj/usr/src/git/rescue/rescue
*** [rescue] Error code 2

bmake[4]: stopped in /usr/src/git/rescue/rescue
1 error

bmake[4]: stopped in /usr/src/git/rescue/rescue
*** [all] Error code 2

bmake[3]: stopped in /usr/src/git/rescue
1 error

bmake[3]: stopped in /usr/src/git/rescue
*** [all_subdir_rescue] Error code 2

…

$ cc --version
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: i386-unknown-freebsd10.2
Thread model: posix
$ strings /usr/obj/usr/src/git/tmp/usr/lib/libkvm.a | egrep -n 
'__(stop|start)_set_kvm_arch'
97:__start_set_kvm_arch
98:__stop_set_kvm_arch
140:__start_set_kvm_arch
141:__stop_set_kvm_arch
182:__start_set_kvm_arch
183:__stop_set_kvm_arch
233:__start_set_kvm_arch
234:__stop_set_kvm_arch
296:__start_set_kvm_arch
297:__stop_set_kvm_arch
395:__start_set_kvm_arch
396:__stop_set_kvm_arch
472:__start_set_kvm_arch

Re: Build error on i386 when building dtrace tests

2015-12-19 Thread NGie Cooper
(fixed the subject line again..)

> On Dec 19, 2015, at 17:57, Mark Johnston  wrote:
> 
> On Sat, Dec 19, 2015 at 05:03:51PM -0800, NGie Cooper wrote:
>> Hi Mark,
>>  I ran into the following error when trying to build the dtrace tests on 
>> i386 (both with 10.2-RELEASE-p7 and 11.0-CURRENT) — have you seen this issue 
>> before?
> 
> Yes, that's because drti.o in stable/10 depends on libelf. The change
> which removes the libelf dependency shouldn't be MFCed because it breaks
> compatibility. When building an MFCed test suite on stable/10, you'll
> need to link the test programs against libelf. When building current on
> stable/10, dtrace(1) should use the drti.o from the objdir rather than
> the installed base. The diff below should solve these two problems.
> 
> diff --git a/cddl/usr.sbin/dtrace/tests/dtrace.test.mk 
> b/cddl/usr.sbin/dtrace/tests/dtrace.test.mk
> index 0c528ef..dcec33a 100644
> --- a/cddl/usr.sbin/dtrace/tests/dtrace.test.mk
> +++ b/cddl/usr.sbin/dtrace/tests/dtrace.test.mk
> @@ -30,6 +30,8 @@ SRCS.${prog}+= ${prog:S/.exe$/.c/}
> 
> .if exists(${prog:S/^tst.//:S/.exe$/.d/})
> SRCS.${prog}+=${prog:S/^tst.//:S/.exe$/.d/}
> +LDADD.${prog}+= -lelf
> +DPADD.${prog}+= ${LIBELF}
> .endif
> .endfor
> 
> diff --git a/share/mk/sys.mk b/share/mk/sys.mk
> index 8fe6b68..1eeb0b9 100644
> --- a/share/mk/sys.mk
> +++ b/share/mk/sys.mk
> @@ -128,7 +128,7 @@ CXXFLAGS  ?=  
> ${CFLAGS:N-std=*:N-Wnested-externs:N-W*-prototypes:N-Wno-pointer-sig
> PO_CXXFLAGS   ?=  ${CXXFLAGS}
> 
> DTRACE?=  dtrace
> -DTRACEFLAGS  ?=  -C -x nolibs
> +DTRACEFLAGS  ?=  -C -x nolibs -x libdir=${.OBJDIR}/cddl/lib/drti
> 
> .if empty(.MAKEFLAGS:M-s)
> ECHO  ?=  echo

I was still running into this issue with the dtrace testcases on 
CURRENT. Once I cleaned out the directories (cddl/…) with make cleandir, things 
worked — huh… it seems like things are broken in the build system in subtle 
ways based on this issue and the other libkvm weirdness with rescue/rescue :/..
Thanks,
-NGie
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: Failing to build head@r292474 's rescue/rescue on 10.2-RELEASE-p7 / i386

2015-12-19 Thread NGie Cooper
(Fixed the subject line)

> On Dec 19, 2015, at 16:03, NGie Cooper  wrote:
> 
> Hi,
>   I ran into the following error trying to build rescue/rescue as part of 
> buildworld on 10.2-RELEASE-p7 / i386. Has anyone seen this before?
> Thanks,
> -NGie
> 
> % git log --show-notes --grep svn -n 1
> commit 69774947bfffd5e16d26b60a82d880aa659abbf2
> Author: imp 
> Date:   Sat Dec 19 19:20:48 2015 +
> 
>   Move some MIPS specific flags to be more congruent with other
>   architectures.
> 
> Notes:
>   svn path=/head/; revision=292474
> 
> % env NO_CLEAN=1 make buildworld -j2
> ...
> --- rescue ---
> cc  -static -o rescue rescue.o cat.lo chflags.lo chio.lo chmod.lo cp.lo 
> date.lo dd.lo df.lo echo.lo ed.lo expr.lo getfacl.lo hostname.lo kenv.lo 
> kill.lo ln.lo ls.lo mkdir.lo mv.lo pkill.lo ps.lo pwd.lo realpath.lo rm.lo 
> rmdir.lo setfacl.lo sh.lo sleep.lo stty.lo sync.lo test.lo badsect.lo 
> camcontrol.lo ccdconfig.lo clri.lo devfs.lo dmesg.lo dump.lo dumpfs.lo 
> dumpon.lo fsck.lo fsck_ffs.lo fsck_msdosfs.lo fsdb.lo fsirand.lo gbde.lo 
> geom.lo ifconfig.lo init.lo kldconfig.lo kldload.lo kldstat.lo kldunload.lo 
> ldconfig.lo md5.lo mdconfig.lo mdmfs.lo mknod.lo mount.lo mount_cd9660.lo 
> mount_msdosfs.lo mount_nfs.lo mount_nullfs.lo mount_udf.lo mount_unionfs.lo 
> newfs.lo newfs_msdos.lo nos-tun.lo ping.lo reboot.lo restore.lo rcorder.lo 
> route.lo routed.lo rtquery.lo rtsol.lo savecore.lo spppcontrol.lo swapon.lo 
> sysctl.lo tunefs.lo umount.lo ping6.lo zfs.lo zpool.lo bsdlabel.lo sconfig.lo 
> fdisk.lo dhclient.lo head.lo mt.lo nc.lo sed.lo tail.lo tee.lo gzip.lo 
> bzip2.lo less.lo xz.lo tar.lo id.lo zdb.lo chroot.lo chown.lo 
> /usr/obj/usr/src/git/rescue/rescue/../librescue/exec.o 
> /usr/obj/usr/src/git/rescue/rescue/../librescue/getusershell.o 
> /usr/obj/usr/src/git/rescue/rescue/../librescue/login_class.o 
> /usr/obj/usr/src/git/rescue/rescue/../librescue/popen.o 
> /usr/obj/usr/src/git/rescue/rescue/../librescue/rcmdsh.o 
> /usr/obj/usr/src/git/rescue/rescue/../librescue/sysctl.o 
> /usr/obj/usr/src/git/rescue/rescue/../librescue/system.o -lcrypt -ledit 
> -ljail -lkvm -lelf -ll -ltermcapw -lutil -lxo -l80211 -lalias -lcam 
> -lncursesw -ldevstat -lipsec -llzma -lavl -lzpool -lzfs_core -lzfs -lnvpair 
> -lpthread -luutil -lumem -lgeom -lbsdxml -lkiconv -lmt -lsbuf -lufs -lz -lbz2 
> -larchive -lcrypto -lmd -lm
> nc.lo: In function `_$$hide$$ nc.lo main':
> (.text+0x750): warning: warning: mktemp() possibly used unsafely; consider 
> using mkstemp()
> --- all_subdir_sbin ---
> --- ea.o ---
> cc  -O2 -pipe -O2 -pipe -I/usr/src/git/sbin/fsck_ffs 
> -I/usr/src/git/sbin/fsck_ffs/../mount   -g -MD -MP -MF.depend.ea.o -MTea.o 
> -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall 
> -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body 
> -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare 
> -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function 
> -Wno-enum-conversion -Wno-unused-local-typedef -Wno-switch -Wno-switch-enum 
> -Wno-knr-promoted-parameter -Qunused-arguments -c 
> /usr/src/git/sbin/fsck_ffs/ea.c -o ea.o
> --- fsutil.o ---
> cc  -O2 -pipe -O2 -pipe -I/usr/src/git/sbin/fsck_ffs 
> -I/usr/src/git/sbin/fsck_ffs/../mount   -g -MD -MP -MF.depend.fsutil.o 
> -MTfsutil.o -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror 
> -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body 
> -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare 
> -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function 
> -Wno-enum-conversion -Wno-unused-local-typedef -Wno-switch -Wno-switch-enum 
> -Wno-knr-promoted-parameter -Qunused-arguments -c 
> /usr/src/git/sbin/fsck_ffs/fsutil.c -o fsutil.o
> --- all_subdir_rescue ---
> /usr/obj/usr/src/git/tmp/usr/lib/libkvm.a(kvm.o): In function `_kvm_open':
> /usr/src/git/lib/libkvm/kvm.c:444: undefined reference to 
> `__start_set_kvm_arch'
> /usr/src/git/lib/libkvm/kvm.c:444: undefined reference to 
> `__stop_set_kvm_arch'
> /usr/src/git/lib/libkvm/kvm.c:444: undefined reference to 
> `__stop_set_kvm_arch'
> cc: error: linker command failed with exit code 1 (use -v to see invocation)
> *** [rescue] Error code 1
> 
> bmake[5]: stopped in /usr/obj/usr/src/git/rescue/rescue
> 1 error
> 
> bmake[5]: stopped in /usr/obj/usr/src/git/rescue/rescue
> *** [rescue] Error code 2
> 
> bmake[4]: stopped in /usr/src/git/rescue/rescue
> 1 error
> 
> bmake[4]: stopped in /usr/src/git/rescue/rescue
> *** [all] Error code 2
> 
> bmake[3]: stopped in /usr/src/git/rescue
> 1 error
> 
> bmake[3]: stopped in /usr/src/git/rescue
> *** [all_subdir_rescue] Error code 2
> 
> …
> 
> $ cc --version
> FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
> Target: i386-unknown-freebsd10.2
> Thread model: posix
> $ strings /usr/obj/usr/src/git/tmp/usr/lib/libkvm.a | egrep -n 
> '__(stop|start)_set_kvm_arch'
> 

Re: SVN r292469 breaks VirtualBox

2015-12-19 Thread Alan Cox
On 12/19/2015 20:19, Joe Maloney wrote:
> I ran into this months earlier with NextBSD.  Replacing 
> vm_pageout_grow_cache(). in memobj-r0drv-freebsd.c with this fixed the issue:
>
> vm_pageout_reclaim_contig(1, 0, VM_MAX_ADDRESS, PAGE_SIZE, 0, 3);


Be careful.  Notice that I said, "vm_page_reclaim_contig", not
"vm_pageout_reclaim_contig".  The function in FreeBSD is different from
that in NextBSD. 


>> On Dec 19, 2015, at 7:45 PM, Alan Cox  wrote:
>>
>> On 12/19/2015 19:00, Michael Butler wrote:
>>> While the kernel modules will build, they won't load ..
>>>
>>> kernel: linker_load_file: Unsupported file type
>>> kernel: link_elf_obj: symbol vm_pageout_grow_cache undefined
>>> kernel: linker_load_file: Unsupported file type
>>> kernel: KLD vboxnetflt.ko: depends on vboxdrv - not available or version
>>> mismatch
>>> kernel: linker_load_file: Unsupported file type
>>> kernel: link_elf_obj: symbol vm_pageout_grow_cache undefined
>>> kernel: linker_load_file: Unsupported file type
>>> kernel: KLD vboxnetadp.ko: depends on vboxdrv - not available or version
>>> mismatch
>>> kernel: linker_load_file: Unsupported file type
>>>
>> VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c will need to be
>> patched to use vm_page_reclaim_contig() instead of vm_pageout_grow_cache().
>>
>> ___
>> freebsd-current@freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
>


___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Build failed in Jenkins: Build-UFS-image #2883

2015-12-19 Thread jenkins-admin
See 

--
[...truncated 1541 lines...]
./cddl/usr.sbin/dtrace/common/ustack missing (created)
./cddl/usr.sbin/dtrace/common/vars missing (created)
./cddl/usr.sbin/dtrace/common/version missing (created)
./etc missing (created)
./etc/rc.d missing (created)
./games missing (created)
./gnu missing (created)
./gnu/lib missing (created)
./gnu/usr.bin missing (created)
./gnu/usr.bin/diff missing (created)
./lib missing (created)
./lib/atf missing (created)
./lib/atf/libatf-c missing (created)
./lib/atf/libatf-c/detail missing (created)
./lib/atf/libatf-c++ missing (created)
./lib/atf/libatf-c++/detail missing (created)
./lib/atf/test-programs missing (created)
./lib/libarchive missing (created)
./lib/libc missing (created)
./lib/libc/c063 missing (created)
./lib/libc/db missing (created)
./lib/libc/gen missing (created)
./lib/libc/gen/execve missing (created)
./lib/libc/gen/posix_spawn missing (created)
./lib/libc/hash missing (created)
./lib/libc/hash/data missing (created)
./lib/libc/inet missing (created)
./lib/libc/locale missing (created)
./lib/libc/net missing (created)
./lib/libc/net/getaddrinfo missing (created)
./lib/libc/net/getaddrinfo/data missing (created)
./lib/libc/nss missing (created)
./lib/libc/regex missing (created)
./lib/libc/regex/data missing (created)
./lib/libc/resolv missing (created)
./lib/libc/rpc missing (created)
./lib/libc/ssp missing (created)
./lib/libc/stdio missing (created)
./lib/libc/stdlib missing (created)
./lib/libc/string missing (created)
./lib/libc/sys missing (created)
./lib/libc/time missing (created)
./lib/libc/tls missing (created)
./lib/libc/tls/dso missing (created)
./lib/libc/termios missing (created)
./lib/libc/ttyio missing (created)
./lib/libcrypt missing (created)
./lib/libmp missing (created)
./lib/libnv missing (created)
./lib/libpam missing (created)
./lib/libproc missing (created)
./lib/librt missing (created)
./lib/libthr missing (created)
./lib/libthr/dlopen missing (created)
./lib/libutil missing (created)
./lib/libxo missing (created)
./lib/msun missing (created)
./libexec missing (created)
./libexec/atf missing (created)
./libexec/atf/atf-check missing (created)
./libexec/atf/atf-sh missing (created)
./libexec/rtld-elf missing (created)
./sbin missing (created)
./sbin/dhclient missing (created)
./sbin/devd missing (created)
./sbin/growfs missing (created)
./sbin/ifconfig missing (created)
./sbin/mdconfig missing (created)
./secure missing (created)
./secure/lib missing (created)
./secure/libexec missing (created)
./secure/usr.bin missing (created)
./secure/usr.sbin missing (created)
./share missing (created)
./share/examples missing (created)
./share/examples/tests missing (created)
./share/examples/tests/atf missing (created)
./share/examples/tests/plain missing (created)
./sys missing (created)
./sys/acl missing (created)
./sys/aio missing (created)
./sys/fifo missing (created)
./sys/file missing (created)
./sys/kern missing (created)
./sys/kern/acct missing (created)
./sys/kern/execve missing (created)
./sys/kern/pipe missing (created)
./sys/kqueue missing (created)
./sys/mqueue missing (created)
./sys/netinet missing (created)
./sys/opencrypto missing (created)
./sys/pjdfstest missing (created)
./sys/pjdfstest/chflags missing (created)
./sys/pjdfstest/chmod missing (created)
./sys/pjdfstest/chown missing (created)
./sys/pjdfstest/ftruncate missing (created)
./sys/pjdfstest/granular missing (created)
./sys/pjdfstest/link missing (created)
./sys/pjdfstest/mkdir missing (created)
./sys/pjdfstest/mkfifo missing (created)
./sys/pjdfstest/mknod missing (created)
./sys/pjdfstest/open missing (created)
./sys/pjdfstest/rename missing (created)
./sys/pjdfstest/rmdir missing (created)
./sys/pjdfstest/symlink missing (created)
./sys/pjdfstest/truncate missing (created)
./sys/pjdfstest/unlink missing (created)
./sys/posixshm missing (created)
./sys/vfs missing (created)
./sys/vm missing (created)
./usr.bin missing (created)
./usr.bin/apply missing (created)
./usr.bin/basename missing (created)
./usr.bin/bmake missing (created)
./usr.bin/bmake/archives missing (created)
./usr.bin/bmake/archives/fmt_44bsd missing (created)
./usr.bin/bmake/archives/fmt_44bsd_mod missing (created)
./usr.bin/bmake/archives/fmt_oldbsd missing (created)
./usr.bin/bmake/basic missing (created)
./usr.bin/bmake/basic/t0 missing (created)
./usr.bin/bmake/basic/t1 missing (created)
./usr.bin/bmake/basic/t2 missing (created)
./usr.bin/bmake/basic/t3 missing (created)
./usr.bin/bmake/execution missing (created)
./usr.bin/bmake/execution/ellipsis missing (created)
./usr.bin/bmake/execution/empty missing (created)
./usr.bin/bmake/execution/joberr missing (created)
./usr.bin/bmake/execution/plus missing (created)
./usr.bin/bmake/shell missing (created)
./usr.bin/bmake/shell/builtin missing (created)
./usr.bin/bmake/shell/meta missing (created)
./usr.bin/bmake/shell/path missing (created)

Re: SVN r292469 breaks VirtualBox

2015-12-19 Thread Mark Johnston
On Sat, Dec 19, 2015 at 07:45:54PM -0600, Alan Cox wrote:
> On 12/19/2015 19:00, Michael Butler wrote:
> > While the kernel modules will build, they won't load ..
> >
> > kernel: linker_load_file: Unsupported file type
> > kernel: link_elf_obj: symbol vm_pageout_grow_cache undefined
> > kernel: linker_load_file: Unsupported file type
> > kernel: KLD vboxnetflt.ko: depends on vboxdrv - not available or version
> > mismatch
> > kernel: linker_load_file: Unsupported file type
> > kernel: link_elf_obj: symbol vm_pageout_grow_cache undefined
> > kernel: linker_load_file: Unsupported file type
> > kernel: KLD vboxnetadp.ko: depends on vboxdrv - not available or version
> > mismatch
> > kernel: linker_load_file: Unsupported file type
> >
> 
> VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c will need to be
> patched to use vm_page_reclaim_contig() instead of vm_pageout_grow_cache().

I submitted PR 205452 for this:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205452

Note that __FreeBSD_version was bumped, so one needs to be at r292499 or
later before rebuilding the port.
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Build failed in Jenkins: Build-UFS-image #2877

2015-12-19 Thread jenkins-admin
See 

--
[...truncated 1541 lines...]
./cddl/usr.sbin/dtrace/common/ustack missing (created)
./cddl/usr.sbin/dtrace/common/vars missing (created)
./cddl/usr.sbin/dtrace/common/version missing (created)
./etc missing (created)
./etc/rc.d missing (created)
./games missing (created)
./gnu missing (created)
./gnu/lib missing (created)
./gnu/usr.bin missing (created)
./gnu/usr.bin/diff missing (created)
./lib missing (created)
./lib/atf missing (created)
./lib/atf/libatf-c missing (created)
./lib/atf/libatf-c/detail missing (created)
./lib/atf/libatf-c++ missing (created)
./lib/atf/libatf-c++/detail missing (created)
./lib/atf/test-programs missing (created)
./lib/libarchive missing (created)
./lib/libc missing (created)
./lib/libc/c063 missing (created)
./lib/libc/db missing (created)
./lib/libc/gen missing (created)
./lib/libc/gen/execve missing (created)
./lib/libc/gen/posix_spawn missing (created)
./lib/libc/hash missing (created)
./lib/libc/hash/data missing (created)
./lib/libc/inet missing (created)
./lib/libc/locale missing (created)
./lib/libc/net missing (created)
./lib/libc/net/getaddrinfo missing (created)
./lib/libc/net/getaddrinfo/data missing (created)
./lib/libc/nss missing (created)
./lib/libc/regex missing (created)
./lib/libc/regex/data missing (created)
./lib/libc/resolv missing (created)
./lib/libc/rpc missing (created)
./lib/libc/ssp missing (created)
./lib/libc/stdio missing (created)
./lib/libc/stdlib missing (created)
./lib/libc/string missing (created)
./lib/libc/sys missing (created)
./lib/libc/time missing (created)
./lib/libc/tls missing (created)
./lib/libc/tls/dso missing (created)
./lib/libc/termios missing (created)
./lib/libc/ttyio missing (created)
./lib/libcrypt missing (created)
./lib/libmp missing (created)
./lib/libnv missing (created)
./lib/libpam missing (created)
./lib/libproc missing (created)
./lib/librt missing (created)
./lib/libthr missing (created)
./lib/libthr/dlopen missing (created)
./lib/libutil missing (created)
./lib/libxo missing (created)
./lib/msun missing (created)
./libexec missing (created)
./libexec/atf missing (created)
./libexec/atf/atf-check missing (created)
./libexec/atf/atf-sh missing (created)
./libexec/rtld-elf missing (created)
./sbin missing (created)
./sbin/dhclient missing (created)
./sbin/devd missing (created)
./sbin/growfs missing (created)
./sbin/ifconfig missing (created)
./sbin/mdconfig missing (created)
./secure missing (created)
./secure/lib missing (created)
./secure/libexec missing (created)
./secure/usr.bin missing (created)
./secure/usr.sbin missing (created)
./share missing (created)
./share/examples missing (created)
./share/examples/tests missing (created)
./share/examples/tests/atf missing (created)
./share/examples/tests/plain missing (created)
./sys missing (created)
./sys/acl missing (created)
./sys/aio missing (created)
./sys/fifo missing (created)
./sys/file missing (created)
./sys/kern missing (created)
./sys/kern/acct missing (created)
./sys/kern/execve missing (created)
./sys/kern/pipe missing (created)
./sys/kqueue missing (created)
./sys/mqueue missing (created)
./sys/netinet missing (created)
./sys/opencrypto missing (created)
./sys/pjdfstest missing (created)
./sys/pjdfstest/chflags missing (created)
./sys/pjdfstest/chmod missing (created)
./sys/pjdfstest/chown missing (created)
./sys/pjdfstest/ftruncate missing (created)
./sys/pjdfstest/granular missing (created)
./sys/pjdfstest/link missing (created)
./sys/pjdfstest/mkdir missing (created)
./sys/pjdfstest/mkfifo missing (created)
./sys/pjdfstest/mknod missing (created)
./sys/pjdfstest/open missing (created)
./sys/pjdfstest/rename missing (created)
./sys/pjdfstest/rmdir missing (created)
./sys/pjdfstest/symlink missing (created)
./sys/pjdfstest/truncate missing (created)
./sys/pjdfstest/unlink missing (created)
./sys/posixshm missing (created)
./sys/vfs missing (created)
./sys/vm missing (created)
./usr.bin missing (created)
./usr.bin/apply missing (created)
./usr.bin/basename missing (created)
./usr.bin/bmake missing (created)
./usr.bin/bmake/archives missing (created)
./usr.bin/bmake/archives/fmt_44bsd missing (created)
./usr.bin/bmake/archives/fmt_44bsd_mod missing (created)
./usr.bin/bmake/archives/fmt_oldbsd missing (created)
./usr.bin/bmake/basic missing (created)
./usr.bin/bmake/basic/t0 missing (created)
./usr.bin/bmake/basic/t1 missing (created)
./usr.bin/bmake/basic/t2 missing (created)
./usr.bin/bmake/basic/t3 missing (created)
./usr.bin/bmake/execution missing (created)
./usr.bin/bmake/execution/ellipsis missing (created)
./usr.bin/bmake/execution/empty missing (created)
./usr.bin/bmake/execution/joberr missing (created)
./usr.bin/bmake/execution/plus missing (created)
./usr.bin/bmake/shell missing (created)
./usr.bin/bmake/shell/builtin missing (created)
./usr.bin/bmake/shell/meta missing (created)
./usr.bin/bmake/shell/path missing (created)

Build failed in Jenkins: Build-UFS-image #2878

2015-12-19 Thread jenkins-admin
See 

--
[...truncated 1541 lines...]
./cddl/usr.sbin/dtrace/common/ustack missing (created)
./cddl/usr.sbin/dtrace/common/vars missing (created)
./cddl/usr.sbin/dtrace/common/version missing (created)
./etc missing (created)
./etc/rc.d missing (created)
./games missing (created)
./gnu missing (created)
./gnu/lib missing (created)
./gnu/usr.bin missing (created)
./gnu/usr.bin/diff missing (created)
./lib missing (created)
./lib/atf missing (created)
./lib/atf/libatf-c missing (created)
./lib/atf/libatf-c/detail missing (created)
./lib/atf/libatf-c++ missing (created)
./lib/atf/libatf-c++/detail missing (created)
./lib/atf/test-programs missing (created)
./lib/libarchive missing (created)
./lib/libc missing (created)
./lib/libc/c063 missing (created)
./lib/libc/db missing (created)
./lib/libc/gen missing (created)
./lib/libc/gen/execve missing (created)
./lib/libc/gen/posix_spawn missing (created)
./lib/libc/hash missing (created)
./lib/libc/hash/data missing (created)
./lib/libc/inet missing (created)
./lib/libc/locale missing (created)
./lib/libc/net missing (created)
./lib/libc/net/getaddrinfo missing (created)
./lib/libc/net/getaddrinfo/data missing (created)
./lib/libc/nss missing (created)
./lib/libc/regex missing (created)
./lib/libc/regex/data missing (created)
./lib/libc/resolv missing (created)
./lib/libc/rpc missing (created)
./lib/libc/ssp missing (created)
./lib/libc/stdio missing (created)
./lib/libc/stdlib missing (created)
./lib/libc/string missing (created)
./lib/libc/sys missing (created)
./lib/libc/time missing (created)
./lib/libc/tls missing (created)
./lib/libc/tls/dso missing (created)
./lib/libc/termios missing (created)
./lib/libc/ttyio missing (created)
./lib/libcrypt missing (created)
./lib/libmp missing (created)
./lib/libnv missing (created)
./lib/libpam missing (created)
./lib/libproc missing (created)
./lib/librt missing (created)
./lib/libthr missing (created)
./lib/libthr/dlopen missing (created)
./lib/libutil missing (created)
./lib/libxo missing (created)
./lib/msun missing (created)
./libexec missing (created)
./libexec/atf missing (created)
./libexec/atf/atf-check missing (created)
./libexec/atf/atf-sh missing (created)
./libexec/rtld-elf missing (created)
./sbin missing (created)
./sbin/dhclient missing (created)
./sbin/devd missing (created)
./sbin/growfs missing (created)
./sbin/ifconfig missing (created)
./sbin/mdconfig missing (created)
./secure missing (created)
./secure/lib missing (created)
./secure/libexec missing (created)
./secure/usr.bin missing (created)
./secure/usr.sbin missing (created)
./share missing (created)
./share/examples missing (created)
./share/examples/tests missing (created)
./share/examples/tests/atf missing (created)
./share/examples/tests/plain missing (created)
./sys missing (created)
./sys/acl missing (created)
./sys/aio missing (created)
./sys/fifo missing (created)
./sys/file missing (created)
./sys/kern missing (created)
./sys/kern/acct missing (created)
./sys/kern/execve missing (created)
./sys/kern/pipe missing (created)
./sys/kqueue missing (created)
./sys/mqueue missing (created)
./sys/netinet missing (created)
./sys/opencrypto missing (created)
./sys/pjdfstest missing (created)
./sys/pjdfstest/chflags missing (created)
./sys/pjdfstest/chmod missing (created)
./sys/pjdfstest/chown missing (created)
./sys/pjdfstest/ftruncate missing (created)
./sys/pjdfstest/granular missing (created)
./sys/pjdfstest/link missing (created)
./sys/pjdfstest/mkdir missing (created)
./sys/pjdfstest/mkfifo missing (created)
./sys/pjdfstest/mknod missing (created)
./sys/pjdfstest/open missing (created)
./sys/pjdfstest/rename missing (created)
./sys/pjdfstest/rmdir missing (created)
./sys/pjdfstest/symlink missing (created)
./sys/pjdfstest/truncate missing (created)
./sys/pjdfstest/unlink missing (created)
./sys/posixshm missing (created)
./sys/vfs missing (created)
./sys/vm missing (created)
./usr.bin missing (created)
./usr.bin/apply missing (created)
./usr.bin/basename missing (created)
./usr.bin/bmake missing (created)
./usr.bin/bmake/archives missing (created)
./usr.bin/bmake/archives/fmt_44bsd missing (created)
./usr.bin/bmake/archives/fmt_44bsd_mod missing (created)
./usr.bin/bmake/archives/fmt_oldbsd missing (created)
./usr.bin/bmake/basic missing (created)
./usr.bin/bmake/basic/t0 missing (created)
./usr.bin/bmake/basic/t1 missing (created)
./usr.bin/bmake/basic/t2 missing (created)
./usr.bin/bmake/basic/t3 missing (created)
./usr.bin/bmake/execution missing (created)
./usr.bin/bmake/execution/ellipsis missing (created)
./usr.bin/bmake/execution/empty missing (created)
./usr.bin/bmake/execution/joberr missing (created)
./usr.bin/bmake/execution/plus missing (created)
./usr.bin/bmake/shell missing (created)
./usr.bin/bmake/shell/builtin missing (created)
./usr.bin/bmake/shell/meta missing (created)
./usr.bin/bmake/shell/path missing (created)

Re: make .SUFFIXES bug?

2015-12-19 Thread Thomas Dickey
On Tue, Dec 15, 2015 at 04:01:41PM +0100, Carsten Kunze wrote:
> Hello,
> 
> current groff doesn't build on FreeBSD.  I had noticed the same issue some 
> months ago on NetBSD and cross checked on FreeBSD and it had worked on 
> FreeBSD.  There must have somethig changed since then.  How to reproduce:
> 
> When there is a file "test.1.man" and a makefile:
> 
> .SUFFIXES:
> .SUFFIXES: .roff .in .ps .mom .pdf .me .ms .ps .html .txt .texi .dvi .pdf 
> .xhtml .man .c .cpp .log .o .obj .sed .sin .test .test$(EXEEXT) .trs .ypp

According to POSIX

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html

.SUFFIXES
Prerequisites of .SUFFIXES shall be appended to the list of known suffixes
and are used in conjunction with the inference rules (see Inference Rules). 
If .SUFFIXES does not have any prerequisites, the list of known suffixes
shall be cleared.

and goes on to list the expected suffixes:

.SUFFIXES: .o .c .y .l .a .sh .f .c˜ .y˜ .l˜ .sh˜ .f˜

> .man:
> @echo Making $@ from $<
> rm -f $@
> @LC_ALL=C \
>  sed -e "s|foo|bar|g" \
>  $< >$@
> 
> "make test.1" results in "make: don't know how to make test.1. Stop".
> 
> When ".man" is put to the start of the list it works.  It also works when the 
> first .SUFFIXES line is removed.
> 
> The answer from NetBSD is that this is very likely a bug in make.  May this
> also be the case for FreeBSD?

That's ironic, considering that a while back they were adamant that if
the suffix wasn't in the list cited in POSIX, then it was a bug in the
makefile.

Your example does not list a suffix for ".1".  It would be harmless to
update groff's makefile to provide that, and a corresponding suffix-rule.

-- 
Thomas E. Dickey 
http://invisible-island.net
ftp://invisible-island.net


signature.asc
Description: Digital signature