Solved How to build world/kernel from jail from install media?

OK I'm running a 12-CURRENT host that I built a RELENG_11 jail(8) on by dumping the $dists to it from the install DVD. The jail(8) works perfectly, and I couldn't be happier. But, I'm concerned that I may not have all the puzzle pieces in order. So before I go somewhat blindly into a
# cd /usr/src && make buildworld
in that jail(8). I'd like to know if I require setting up any environment variables to make this possible.
I only ask, because since the jail(8) essentially runs of the host' kernel. Is that going to pollute my attempt to build world/kernel?. As it stands; here is the output from uname(1) on the host, and the jail(8) respectively:
Code:
jail HOST
# uname -a FreeBSD devbox 12.0-CURRENT FreeBSD 12.0-CURRENT #0:
Wed Dec 13 06:07:59 PST 2017
root@devbox:/usr/obj/usr/src/amd64.amd64/sys/DEVBOX amd64
and
Code:
JAIL
# uname -a
FreeBSD releng11.localhost 11.1-RELEASE FreeBSD 12.0-CURRENT #0:
Wed Dec 13 06:07:59 PST 2017
root@devbox:/usr/obj/usr/src/amd64.amd64/sys/DEVBOX amd64

Thanks in advance for any pointers!

--Chris

OH! Here's the jail.conf(5) FWIW
Code:
allow.raw_sockets = 1;

releng11 {
path = /jails/releng11;
host.hostname = releng11.localhost;
ip4.addr = 127.0.0.2;
interface = lo1;
exec.clean;
mount.devfs;
mount.fdescfs;
mount.procfs;
allow.chflags;
allow.mount;
exec.jail_user = root;
osrelease = 11.1-RELEASE;
exec.start =   "/bin/sh /etc/rc";
exec.stop = "/bin/sh   /etc/rc.shutdown";
exec.consolelog = /var/log/jail.releng11.console.log;
}

Thanks!
 
Is that going to pollute my attempt to build world/kernel?
It shouldn't. Building world/kernel is fairly "self-contained", so the host (or jail) you're building on has very little influence in order to ensure consistent builds.
 
FAILED :confused:
Code:
cc -target x86_64-unknown-freebsd11.1 --sysroot=/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin -O2 -pipe -D_INCOMPLETE_XOPEN_C063 -I/usr/src/lib/libnetbsd -I/usr/src/contrib/netbsd-tests -g -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-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Qunused-arguments  -L/usr/obj/usr/src/lib/libnetbsd -o faccessat_test.full t_faccessat.o  -lprivateatf-c -L/usr/obj/usr/src/lib/libnetbsd -lnetbsd
/usr/obj/usr/src/tmp/lib/libc.so.7: undefined reference to `rpc_call'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make[7]: stopped in /usr/src/lib/libc/tests/c063
*** Error code 1

Stop.

. . .
Sigh...
 
Well, I didn't get an answer on the mailing list. So, given I'm a bit anxious to get this task finished. I simply opted to blow /usr/obj, /usr/src, and /usr/ports away, and check out a copy of 11-STABLE, and the current ports(7) HEAD. Then try this again.

Here's hoping!

--Chris
 
I give up. 11.1 is NOT ready for prime time. :mad:
As noted, today I simply blew away /usr/src, and /usr/ports. Then svn(1) co new copies:
src at:
Code:
Path: usr/src
Working Copy Root Path: /jails/demon0/usr/src
URL: svn://svn.freebsd.org/base/stable/11
Relative URL: ^/stable/11
Repository Root: svn://svn.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 327770
Node Kind: directory
Schedule: normal
Last Changed Author: delphij
Last Changed Rev: 327765
Last Changed Date: 2018-01-10 01:06:07 -0800 (Wed, 10 Jan 2018)
and ports at:
Code:
Path: usr/ports
Working Copy Root Path: /jails/demon0/usr/ports
URL: svn://svn.freebsd.org/ports/head
Relative URL: ^/head
Repository Root: svn://svn.freebsd.org/ports
Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
Revision: 458659
Node Kind: directory
Schedule: normal
Last Changed Author: tz
Last Changed Rev: 458659
Last Changed Date: 2018-01-10 08:11:15 -0800 (Wed, 10 Jan 2018)
Then fired off another make(1) buildworld session. Only to land at:
Code:
1 warning generated.
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -nostdlib -Wl,-dc -r -o gzip.lo gzip_stub.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/gzip/gzip.o
crunchide -k _crunched_gzip_stub gzip.lo
echo "int _crunched_bzip2_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}" >bzip2_stub.c
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -O2 -pipe -c bzip2_stub.c -o bzip2_stub.o
bzip2_stub.c:1:69: warning: implicit declaration of function 'main' is invalid in C99
      [-Wimplicit-function-declaration]
int _crunched_bzip2_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}
                                                                    ^
1 warning generated.
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -nostdlib -Wl,-dc -r -o bzip2.lo bzip2_stub.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/bzip2/bzip2.o
crunchide -k _crunched_bzip2_stub bzip2.lo
echo "int _crunched_less_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}" >less_stub.c
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -O2 -pipe -c less_stub.c -o less_stub.o
less_stub.c:1:68: warning: implicit declaration of function 'main' is invalid in C99
      [-Wimplicit-function-declaration]
int _crunched_less_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}
                                                                   ^
1 warning generated.
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -nostdlib -Wl,-dc -r -o less.lo less_stub.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/main.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/screen.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/brac.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/ch.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/charset.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/cmdbuf.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/command.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/cvt.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/decode.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/edit.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/filename.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/forwback.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/help.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/ifile.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/input.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/jump.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/line.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/linenum.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/lsystem.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/mark.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/optfunc.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/option.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/opttbl.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/os.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/output.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/pattern.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/position.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/prompt.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/search.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/signal.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/tags.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/ttyin.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/less/version.o
crunchide -k _crunched_less_stub less.lo
echo "int _crunched_xz_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}" >xz_stub.c
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -O2 -pipe -c xz_stub.c -o xz_stub.o
xz_stub.c:1:66: warning: implicit declaration of function 'main' is invalid in C99
      [-Wimplicit-function-declaration]
int _crunched_xz_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}
                                                                 ^
1 warning generated.
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -nostdlib -Wl,-dc -r -o xz.lo xz_stub.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/xz/args.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/xz/coder.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/xz/file_io.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/xz/hardware.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/xz/list.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/xz/main.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/xz/message.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/xz/mytime.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/xz/options.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/xz/signals.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/xz/suffix.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/xz/util.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/xz/tuklib_open_stdxxx.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/xz/tuklib_progname.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/xz/tuklib_exit.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/xz/tuklib_cpucores.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/xz/tuklib_mbstr_width.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/xz/tuklib_mbstr_fw.o
crunchide -k _crunched_xz_stub xz.lo
echo "int _crunched_tar_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}" >tar_stub.c
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -O2 -pipe -c tar_stub.c -o tar_stub.o
tar_stub.c:1:67: warning: implicit declaration of function 'main' is invalid in C99
      [-Wimplicit-function-declaration]
int _crunched_tar_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}
                                                                  ^
1 warning generated.
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -nostdlib -Wl,-dc -r -o tar.lo tar_stub.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/tar/bsdtar.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/tar/cmdline.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/tar/creation_set.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/tar/read.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/tar/subst.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/tar/util.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/tar/write.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/tar/err.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/tar/line_reader.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/tar/passphrase.o
crunchide -k _crunched_tar_stub tar.lo
echo "int _crunched_nc_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}" >nc_stub.c
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -O2 -pipe -c nc_stub.c -o nc_stub.o
nc_stub.c:1:66: warning: implicit declaration of function 'main' is invalid in C99
      [-Wimplicit-function-declaration]
int _crunched_nc_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}
                                                                 ^
1 warning generated.
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -nostdlib -Wl,-dc -r -o nc.lo nc_stub.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/nc/netcat.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/nc/atomicio.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/nc/socks.o
crunchide -k _crunched_nc_stub nc.lo
echo "int _crunched_id_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}" >id_stub.c
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -O2 -pipe -c id_stub.c -o id_stub.o
id_stub.c:1:66: warning: implicit declaration of function 'main' is invalid in C99
      [-Wimplicit-function-declaration]
int _crunched_id_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}
                                                                 ^
1 warning generated.
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -nostdlib -Wl,-dc -r -o id.lo id_stub.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/id/id.o
crunchide -k _crunched_id_stub id.lo
echo "int _crunched_iscsictl_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}" >iscsictl_stub.c
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -O2 -pipe -c iscsictl_stub.c -o iscsictl_stub.o
iscsictl_stub.c:1:72: warning: implicit declaration of function 'main' is invalid in C99
      [-Wimplicit-function-declaration]
int _crunched_iscsictl_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}
                                                                       ^
1 warning generated.
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -nostdlib -Wl,-dc -r -o iscsictl.lo iscsictl_stub.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/iscsictl/iscsictl.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/iscsictl/periphs.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/iscsictl/parse.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.bin/iscsictl/token.o
crunchide -k _crunched_iscsictl_stub iscsictl.lo
echo "int _crunched_chroot_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}" >chroot_stub.c
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -O2 -pipe -c chroot_stub.c -o chroot_stub.o
chroot_stub.c:1:70: warning: implicit declaration of function 'main' is invalid in C99
      [-Wimplicit-function-declaration]
int _crunched_chroot_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}
                                                                     ^
1 warning generated.
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -nostdlib -Wl,-dc -r -o chroot.lo chroot_stub.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.sbin/chroot/chroot.o
crunchide -k _crunched_chroot_stub chroot.lo
echo "int _crunched_chown_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}" >chown_stub.c
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -O2 -pipe -c chown_stub.c -o chown_stub.o
chown_stub.c:1:69: warning: implicit declaration of function 'main' is invalid in C99
      [-Wimplicit-function-declaration]
int _crunched_chown_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}
                                                                    ^
1 warning generated.
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -nostdlib -Wl,-dc -r -o chown.lo chown_stub.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.sbin/chown/chown.o
crunchide -k _crunched_chown_stub chown.lo
echo "int _crunched_iscsid_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}" >iscsid_stub.c
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -O2 -pipe -c iscsid_stub.c -o iscsid_stub.o
iscsid_stub.c:1:70: warning: implicit declaration of function 'main' is invalid in C99
      [-Wimplicit-function-declaration]
int _crunched_iscsid_stub(int argc, char **argv, char **envp){return main(argc,argv,envp);}
                                                                     ^
1 warning generated.
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -nostdlib -Wl,-dc -r -o iscsid.lo iscsid_stub.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.sbin/iscsid/chap.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.sbin/iscsid/discovery.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.sbin/iscsid/iscsid.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.sbin/iscsid/keys.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.sbin/iscsid/log.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.sbin/iscsid/login.o /usr/obj/usr/src/rescue/rescue//usr/src/usr.sbin/iscsid/pdu.o
crunchide -k _crunched_iscsid_stub iscsid.lo
cc  -O2 -pipe   -std=gnu99    -Qunused-arguments   -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 rcp.lo csh.lo badsect.lo camcontrol.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 savecore.lo shutdown.lo spppcontrol.lo swapon.lo sysctl.lo tunefs.lo umount.lo atmconfig.lo ccdconfig.lo ping6.lo rtsol.lo ipf.lo routed.lo rtquery.lo bsdlabel.lo fdisk.lo dhclient.lo head.lo mt.lo sed.lo tail.lo tee.lo gzip.lo bzip2.lo less.lo xz.lo tar.lo nc.lo id.lo iscsictl.lo chroot.lo chown.lo iscsid.lo /usr/obj/usr/src/rescue/rescue/../librescue/exec.o /usr/obj/usr/src/rescue/rescue/../librescue/getusershell.o /usr/obj/usr/src/rescue/rescue/../librescue/login_class.o /usr/obj/usr/src/rescue/rescue/../librescue/popen.o /usr/obj/usr/src/rescue/rescue/../librescue/rcmdsh.o /usr/obj/usr/src/rescue/rescue/../librescue/sysctl.o /usr/obj/usr/src/rescue/rescue/../librescue/system.o -lcrypt -ledit -ljail -lkvm -lelf -ll -ltermcapw -lutil -lxo -l80211 -lalias -lcam -lncursesw -ldevstat -lipsec -llzma -lpthread -lgeom -lbsdxml -lkiconv -lmt -lsbuf -lufs -lz -lbz2 -larchive -lcrypto -lmd -lm
nc.lo: In function `_$$hide$$ nc.lo main':
(.text+0x5c5): warning: warning: mktemp() possibly used unsafely; consider using mkstemp()
gbde.lo: In function `_$$hide$$ gbde.lo rijndael_makeKey':
(.text+0x1e0e): undefined reference to `rijndaelKeySetupDec'
gbde.lo: In function `_$$hide$$ gbde.lo rijndael_makeKey':
(.text+0x1e1c): undefined reference to `rijndaelKeySetupEnc'
gbde.lo: In function `_$$hide$$ gbde.lo rijndael_makeKey':
(.text+0x1e35): undefined reference to `rijndaelKeySetupEnc'
gbde.lo: In function `_$$hide$$ gbde.lo rijndael_blockEncrypt':
(.text+0x1f3e): undefined reference to `rijndaelEncrypt'
gbde.lo: In function `_$$hide$$ gbde.lo rijndael_blockEncrypt':
(.text+0x1f82): undefined reference to `rijndaelEncrypt'
gbde.lo: In function `_$$hide$$ gbde.lo rijndael_blockEncrypt':
(.text+0x1fd8): undefined reference to `rijndaelEncrypt'
gbde.lo: In function `_$$hide$$ gbde.lo rijndael_blockEncrypt':
(.text+0x213f): undefined reference to `rijndaelEncrypt'
gbde.lo: In function `_$$hide$$ gbde.lo rijndael_padEncrypt':
(.text+0x23be): undefined reference to `rijndaelEncrypt'
gbde.lo:(.text+0x2432): more undefined references to `rijndaelEncrypt' follow
gbde.lo: In function `_$$hide$$ gbde.lo rijndael_blockDecrypt':
(.text+0x26e5): undefined reference to `rijndaelDecrypt'
gbde.lo: In function `_$$hide$$ gbde.lo rijndael_blockDecrypt':
(.text+0x273d): undefined reference to `rijndaelDecrypt'
gbde.lo: In function `_$$hide$$ gbde.lo rijndael_blockDecrypt':
(.text+0x28b6): undefined reference to `rijndaelEncrypt'
gbde.lo: In function `_$$hide$$ gbde.lo rijndael_padDecrypt':
(.text+0x2b4a): undefined reference to `rijndaelDecrypt'
gbde.lo: In function `_$$hide$$ gbde.lo rijndael_padDecrypt':
(.text+0x2b6f): undefined reference to `rijndaelDecrypt'
gbde.lo: In function `_$$hide$$ gbde.lo rijndael_padDecrypt':
(.text+0x2bec): undefined reference to `rijndaelDecrypt'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make[5]: stopped in /usr/obj/usr/src/rescue/rescue
*** Error code 1

Stop.
make[4]: stopped in /usr/src/rescue/rescue
*** Error code 1

Stop.
make[3]: stopped in /usr/src/rescue
*** Error code 1

Stop.
make[2]: stopped in /usr/src
*** Error code 1

Stop.
make[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src
SirDice , are you aware of any revision of 11 the does build?

Otherwise, it looks like I'll just have to keep patching up a couple of
9.3-STABLE boxes, until I find a revision of 11 that works. :(

--Chris
 
SirDice , are you aware of any revision of 11 the does build?
All of them.

Code:
root@molly:/usr/src # uname -a
FreeBSD molly.dicelan.home 11.1-STABLE FreeBSD 11.1-STABLE #17 r326745: Sun Dec 10 16:10:30 CET 2017     root@molly.dicelan.home:/usr/obj/usr/src/sys/MOLLY  amd64
Code:
dice@maelcum:~ % uname -a
FreeBSD maelcum.dicelan.home 11.1-STABLE FreeBSD 11.1-STABLE #1 r326226: Mon Nov 27 03:37:49 CET 2017     root@maelcum.dicelan.home:/usr/obj/usr/src/sys/MAELCUM  amd64
Code:
root@hosaka:~ # uname -a
FreeBSD hosaka.dicelan.home 11.1-STABLE FreeBSD 11.1-STABLE #0 r327606: Sat Jan  6 20:14:06 CET 2018     root@hosaka.dicelan.home:/usr/obj/usr/src/sys/HOSAKA  amd64

Note that you don't need a ports tree to build world.

What's in /etc/make.conf and/or /etc/src.conf?

Otherwise, it looks like I'll just have to keep patching up a couple of
9.3-STABLE boxes, until I find a revision of 11 that works.
You do know 10.x is still supported?
 
First off. Thank you very much, SirDice , for hanging in there with me. :D

All of them? Not been my (recent) experience. :(

I used to have an 11 server running, back when it was -CURRENT. But it was an i386, and even if I could manage to dig up it's revision number. I'm quite sure it's too vulnerable now.

I added the ports tree, so I could build up a complete pkg(8) set for each box. Plan is; build up a world. Then build up a separate kernel for each box plus pkg(8) set. Then replace each /usr/obj with the new world. # cd /usr/src && make install kernel. Bounce the box, # mergemaster(8) -p, # make(1) installworld, # mergemaster(8) -vF. Boot multiuser, and install the pkg(8) sets. Done! :D

Yep! I know about 10.x. But I had a lot of trouble working with it when I first gave it a go. The mailing lists have been pretty busy with others experiencing less-than-optimal results. So I thought (for production boxes) I'd just go with 11 -- less noise on the lists, as well. Also gives me more time-to-eol. :)
But alas, that has not been my experience(s) of the last couple days. :rolleyes:

At this point, given my recent experiences with 11. My better judgement tells me; I'm having a good experience on the jail(8) host, which already has a built world. So why not just perform a make(1) installworld DESTDIR=/path/to/jail. Followed by a make(1) distribution DESTDIR=/path/to/jail. Build up the kernels, and be done with it. But traditionally, and I think probably, sensibly. Staying a release behind, and tracking STABLE proves more favorably, in the long run. So. Given that, and that you so kindly provided some revisions that worked for you. I'm going to give it another go. But, given my time for this is running dangerously short. If this fails. I'm just going to use the jail(8) host' world. Then convert it to -STABLE. When the 12-STABLE gets cut/branched. Cause at this point, I'm out of time, and patience. :p

OH, and because you asked;
make.conf(5)
Code:
DEVELOPER=true
Just occurred to me, that this could very well be the culprit. No?
Given the extra overhead (scrutiny) this imposes. But then again. The fails didn't look at all related. None-the-less. I'm going to comment it out. Why did I do that? Not smart. That's what I get for being in a hurry.

src.conf(5)
Code:
WITHOUT_SVNLITE=true
WITHOUT_SVN=true
WITHOUT_BIND=true
WITHOUT_KERNEL_SYMBOLS=true
WITHOUT_DMAGENT=true
WITHOUT_FREEBSD_UPDATE=true
WITHOUT_HAST=true
WITHOUT_PORTSNAP=true
WITHOUT_VI=true
WITHOUT_ZFS=true
WITHOUT_BLACKLIST_SUPPORT=true
WITH_BSD_GREP=true

The KERNCONF is
Code:
include RELENG11

ident   NODEBUG11

nooptions       INVARIANTS
nooptions       INVARIANT_SUPPORT
nooptions       WITNESS
nooptions       WITNESS_SKIPSPIN
nooptions       BUF_TRACKING
nooptions       DEADLKRES
nooptions       FULL_BUF_TRACKING
which, you can see, includes GENERIC (RELENG11) with drivers (modules) commented, but the ones the actually on the board.

Well, again, thanks a million, for all your help, SirDice !

--Chris
 
Code:
WITHOUT_SVN=true
WITHOUT_BIND=true
At least this two do not exist. Please verify the settings using src.conf(5). But I am not sure if those can have any effect.
True, and I did consult src.conf(5). But somehow overlooked them.
That's what I get for dragging old configurations into the future w/o doing a line-by-line. :rolleyes:
Code:
WITHOUT_VI=true
May be you suffer from the revenge of something :D. Good luck Chris!
Or maybe I use editors/VIM, or editors/neovim :cool:
Seriously. I'm quite comfortable scripting/editing with the tools already available in base, with csh as my shell, and sed(1). Tho sometimes i've been known to use a Perl shell.
For any big job, I use devel/geany.

But in the end. None of this matters. Having rectified the src.conf(5) entries. I clobbered both /usr/obj, and /usr/src. Then # svn(1) co svn://svn.freebsd.org/base/stable/11 -r326226 /usr/src. Followed by a # cd /usr/src && make(1) buildworld. Which resulted in
Code:
nRequestInfo.pico
cc  -fpic -DPIC -g -O2 -pipe -I/usr/src/crypto/heimdal/lib/hx509 -I/usr/src/crypto/heimdal/lib/hx509/ref -I/usr/src/crypto/heimdal/lib/asn1 -I/usr/src/crypto/heimdal/lib/wind -I/usr/src/crypto/heimdal/lib/roken -I.   -DHAVE_CONFIG_H -I/usr/src/kerberos5/include -MD  -MF.depend.asn1_CertificationRequest.pico -MTasn1_CertificationRequest.pico -std=gnu99 -fstack-protector-strong    -Qunused-arguments  -c asn1_CertificationRequest.c -o asn1_CertificationRequest.pico
building shared library libhx509.so.11
cc -Wl,--no-undefined -Wl,--version-script=/usr/src/crypto/heimdal/lib/hx509/version-script.map -fstack-protector-strong -shared -Wl,-x -Wl,--fatal-warnings -Wl,--warn-shared-textrel  -o libhx509.so.11.full -Wl,-soname,libhx509.so.11  `NM='nm' NMFLAGS='' lorder ca.pico cert.pico cms.pico collector.pico crypto.pico doxygen.pico error.pico env.pico file.pico sel.pico sel-gram.pico sel-lex.pico keyset.pico ks_dir.pico ks_file.pico ks_mem.pico ks_null.pico ks_p11.pico ks_p12.pico ks_keychain.pico lock.pico name.pico peer.pico print.pico softp11.pico req.pico revoke.pico hx509_err.pico asn1_OCSPBasicOCSPResponse.pico asn1_OCSPCertID.pico asn1_OCSPCertStatus.pico asn1_OCSPInnerRequest.pico asn1_OCSPKeyHash.pico asn1_OCSPRequest.pico asn1_OCSPResponderID.pico asn1_OCSPResponse.pico asn1_OCSPResponseBytes.pico asn1_OCSPResponseData.pico asn1_OCSPResponseStatus.pico asn1_OCSPSignature.pico asn1_OCSPSingleResponse.pico asn1_OCSPTBSRequest.pico asn1_OCSPVersion.pico asn1_id_pkix_ocsp.pico asn1_id_pkix_ocsp_basic.pico asn1_id_pkix_ocsp_nonce.pico asn1_CertificationRequestInfo.pico asn1_CertificationRequest.pico | tsort -q`  -lasn1  -lcom_err  -lcrypto  -lroken  -lwind
ks_dir.pico: In function `dir_iter_start':
/usr/src/crypto/heimdal/lib/hx509/ks_dir.c:110: undefined reference to `opendir'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make[4]: stopped in /usr/src/kerberos5/lib/libhx509
*** Error code 1

Stop.
make[3]: stopped in /usr/src
*** Error code 1

Stop.
make[2]: stopped in /usr/src
*** Error code 1

Stop.
make[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src
root@releng11:/usr/src #
after about 2 1/2hrs into it. That was the quickest trip to a fail yet. :(

What I should have put into src.conf(5), was
Code:
WITHOUT_FAIL
or simply # make -DWITHOUT_FAIL buildwrold.
I wonder if I can convince the FreeBSD Foundation into funding the implementation of that?

Well this is looking pretty grim. Gonna need to think about this, before taking the easy way out, and simply using the jail(8) host' world to upgrade the boxes.:(

Thanks for the reply, chrbr !

--Chris
 
OK in case anyone is watching this thread. After giving this matter some more thought, and given my previous experiences, and well as others, including SirDice , above in this thread. I think I'm going to consider the drive this jail(8) is running on, as suspect. It's an external drive, and has performed perfectly for me. But I've only ever really utilized it for storage, and short term hammering. Not something as demanding as building world. So I've attached a much faster drive. That already seems to perform at least twice as quickly. So I'm going to give it another go, and report back with my findings.
Fingers crossed!

--Chris
 
Not something as demanding as building world.
Yeah, I also use building world as a way to push a machine for testing. It's a great way to push the performance to its limits.
So I've attached a much faster drive. That already seems to perform at least twice as quickly.
Definitely. Besides the obvious high CPU load caused by the compiler, building world is also quite I/O intensive. Fast disks will certain help in reducing the build time.
 
OK. Seems I never reported back on this, as I said I would.
The drive was the problem. World built without problem, and everything went as one would expect.
Thanks for all the help, and feedback!
Marking this SOLVED

--Chris
 
Back
Top