The following message is displayed and fails to compile on Gentoo/FBSD 9.0_rc1. >>> Emerging (1 of 1) sys-freebsd/boot0-9.0_rc1 * freebsd-sys-9.0_rc1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking freebsd-sys-9.0_rc1.tar.bz2 to /var/tmp/portage/sys-freebsd/boot0-9.0_rc1/work * Renaming libraries ... [ ok ] >>> Source unpacked in /var/tmp/portage/sys-freebsd/boot0-9.0_rc1/work >>> Preparing source in /var/tmp/portage/sys-freebsd/boot0-9.0_rc1/work/sys/boot ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/sys-freebsd/boot0-9.0_rc1/work/sys/boot ... >>> Source configured. >>> Compiling source in /var/tmp/portage/sys-freebsd/boot0-9.0_rc1/work/sys/boot ... <snip> ===> userboot/libstand (all) Warning: Object directory not changed from original /var/tmp/portage/sys-freebsd/boot0-9.0_rc1/work/sys/boot/userboot/libstand make: don't know how to make __main.c. Stop *** Error code 2 Stop in /var/tmp/portage/sys-freebsd/boot0-9.0_rc1/work/sys/boot/userboot. *** Error code 1 Stop in /var/tmp/portage/sys-freebsd/boot0-9.0_rc1/work/sys/boot. * ERROR: sys-freebsd/boot0-9.0_rc1 failed (compile phase): * make failed * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 2959: Called freebsd_src_compile * environment, line 1653: Called bsdmk_src_compile * environment, line 593: Called die * The specific snippet of code: * mkmake || die "make failed" * * If you need support, post the output of 'emerge --info =sys-freebsd/boot0-9.0_rc1', * the complete build log and the output of 'emerge -pqv =sys-freebsd/boot0-9.0_rc1'. * The complete build log is located at '/var/tmp/portage/sys-freebsd/boot0-9.0_rc1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-freebsd/boot0-9.0_rc1/temp/environment'. * S: '/var/tmp/portage/sys-freebsd/boot0-9.0_rc1/work/sys/boot' >>> Failed to emerge sys-freebsd/boot0-9.0_rc1, Log file: >>> '/var/tmp/portage/sys-freebsd/boot0-9.0_rc1/temp/build.log' Reproducible: Always Steps to Reproduce: 1. ACCEPT_KEYWORDS=~x86-fbsd emerge boot0
Created attachment 293125 [details, diff] patch for boot0-9.0_rc1.ebuild
I can confirm this bug and the attached patch is works.
I was successfully build sys-freebsd/boot0-9.0_rc2 on sparc-fbsd without modify the ebuild.
sys-freebsd/boot0-9.0_rc1 also compiles fine on sparc-fbsd I think this is x86/amd64 related bug but the patch is not disturb compilation on different architectures so should go to the portage tree.
works for me without patch too: what useflags have you enabled for boot0 ?
lenovo ~ # emerge -uvp boot0 These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] sys-freebsd/boot0-9.0_rc3 [9.0_rc2] USE="bzip2 tftp zfs -ieee1394 -profile" 0 kB [1] Total: 1 package (1 upgrade), Size of downloads: 0 kB Portage tree and overlays: [0] /usr/portage [1] /usr/local/portage lenovo ~ # But without any flags (USE="-*") it don't compile too.
This problem only occurs in amd64-fbsd. I did not notice at the time of reporting this bug.
Created attachment 306301 [details, diff] sample patch for boot0-9.0.ebuild userboot seems to be used in BHyVe of FreeBSD.
i've added contrib and lib to boot0-9.0 src_uri, this should fix the issue however, do we really want to make userboot optional ?
(In reply to comment #9) > i've added contrib and lib to boot0-9.0 src_uri, this should fix the issue > however, do we really want to make userboot optional ? closing as this seems fine as is