FreeBSD 13.0-ALPHA3 stable/13-c256224-ga455b23cf348 I haven't been kicking the tires on my FreeBSD BHYVEs lately, but I tried to start one today and ran across this: (pulling out bit that I need from /usr/share/examples/bhyve/vmrun.sh) /usr/sbin/bhyveload -c stdio -m 12G -d /zroot/stash/iso/FreeBSD-13.0-CURRENT-amd64-20200806-r363935-disc1.iso bsd13 /boot/userboot.so: Undefined symbol "gfx_fb_bezier" If I truss it, the final bits are: open("/boot/userboot.so",O_RDONLY|O_CLOEXEC|O_VERIFY,00) = 4 (0x4) fstat(4,{ mode=-r--r--r-- ,inode=14806,size=845368,blksize=131072 }) = 0 (0x0) mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,4,0x0) = 34376941568 (0x801068000) mmap(0x0,67932160,PROT_NONE,MAP_GUARD,-1,0x0) = 48358227968 (0xb42600000) mmap(0xb42600000,151552,PROT_READ,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,4,0x0) = 48358227968 (0xb42600000) mmap(0xb42625000,626688,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,4,0x24000) = 48358379520 (0xb42625000) mmap(0xb426be000,16384,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,4,0xbc000) = 48359006208 (0xb426be000) mmap(0xb426c2000,12288,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,4,0xbf000) = 48359022592 (0xb426c2000) mmap(0xb426c5000,67125248,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 48359034880 (0xb426c5000) munmap(0x801068000,4096) = 0 (0x0) close(4) = 0 (0x0) munmap(0x801065000,12288) = 0 (0x0) mmap(0x0,163840,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34381344768 (0x80149b000) munmap(0xb42600000,67932160) = 0 (0x0) fstat(1,{ mode=crw--w---- ,inode=225,size=0,blksize=4096 }) = 0 (0x0) ioctl(1,TIOCGETA,0x7fffffffe6b0) = 0 (0x0) /boot/userboot.so: Undefined symbol "gfx_fb_bezier" write(1,"/boot/userboot.so: Undefined sym"...,52) = 52 (0x34) exit(0x1) process exit, rval = 1
Created attachment 222021 [details] src.conf In sleeping on it, as nobody else has noticed it yet, chances are probably good that having WITH_BIND_NOW in /etc/src.conf has a lot to do with that.
+tsoome
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=d51cc252a062411a1656960eb5d47e954c6c835d commit d51cc252a062411a1656960eb5d47e954c6c835d Author: Toomas Soome <tsoome@FreeBSD.org> AuthorDate: 2021-01-30 19:16:20 +0000 Commit: Toomas Soome <tsoome@FreeBSD.org> CommitDate: 2021-01-30 19:20:27 +0000 userboot: provide stub gfx functions Make sure we have needed functions present, to avoi getting undefined symbols error(s). PR: 253088 Reported by: John Kennedy stand/userboot/userboot/Makefile | 3 +- stand/userboot/userboot/gfx_fb.c (new) | 78 +++++++++++++++++++++++++++++++++ stand/userboot/userboot/userboot_cons.c | 4 -- 3 files changed, 80 insertions(+), 5 deletions(-)
That fixed it for me. Now on 13.0-ALPHA3 stable/13-c256228-gbb8fa72dae42-dirty.
I didn't see a MFC date and the ticket is still set to "New"... is this going to get merged back into 13/stable? Does it need more testing?
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=a66467dcfd65bc6d4915a3c2c1b5ab2ca77133d4 commit a66467dcfd65bc6d4915a3c2c1b5ab2ca77133d4 Author: Toomas Soome <tsoome@FreeBSD.org> AuthorDate: 2021-01-30 19:16:20 +0000 Commit: Toomas Soome <tsoome@FreeBSD.org> CommitDate: 2021-02-02 10:21:49 +0000 userboot: provide stub gfx functions Make sure we have needed functions present, to avoi getting undefined symbols error(s). PR: 253088 Reported by: John Kennedy (cherry picked b79f2bc6c5c7431fa1f7c02937ec97a64653ade1) stand/userboot/userboot/Makefile | 3 +- stand/userboot/userboot/gfx_fb.c (new) | 78 +++++++++++++++++++++++++++++++++ stand/userboot/userboot/userboot_cons.c | 4 -- 3 files changed, 80 insertions(+), 5 deletions(-)