Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 391005 - [patch] [amd64-fbsd] sys-freebsd/boot0-9.0 fails to compile on Gentoo/FBSD
Summary: [patch] [amd64-fbsd] sys-freebsd/boot0-9.0 fails to compile on Gentoo/FBSD
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: AMD64 FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 363717
  Show dependency tree
 
Reported: 2011-11-19 12:20 UTC by Yuta SATOH
Modified: 2012-05-04 18:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for boot0-9.0_rc1.ebuild (boot0-9.0_rc1.ebuild.patch,394 bytes, patch)
2011-11-19 18:47 UTC, Yuta SATOH
Details | Diff
sample patch for boot0-9.0.ebuild (391005.patch,747 bytes, patch)
2012-03-22 10:52 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2011-11-19 12:20:15 UTC
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
Comment 1 Yuta SATOH 2011-11-19 18:47:32 UTC
Created attachment 293125 [details, diff]
patch for boot0-9.0_rc1.ebuild
Comment 2 Tibor Vago 2011-11-29 14:48:50 UTC
I can confirm this bug and the attached patch is works.
Comment 3 Tibor Vago 2011-12-03 11:32:35 UTC
I was successfully build sys-freebsd/boot0-9.0_rc2 on sparc-fbsd without modify the ebuild.
Comment 4 Tibor Vago 2011-12-05 19:18:22 UTC
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.
Comment 5 Alexis Ballier gentoo-dev 2011-12-09 13:49:41 UTC
works for me without patch too: what useflags have you enabled for boot0 ?
Comment 6 Tibor Vago 2011-12-12 16:28:46 UTC
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.
Comment 7 Yuta SATOH 2012-03-22 10:51:42 UTC
This problem only occurs in amd64-fbsd.
I did not notice at the time of reporting this bug.
Comment 8 Yuta SATOH 2012-03-22 10:52:49 UTC
Created attachment 306301 [details, diff]
sample patch for boot0-9.0.ebuild

userboot seems to be used in BHyVe of FreeBSD.
Comment 9 Alexis Ballier gentoo-dev 2012-04-25 16:18:56 UTC
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 ?
Comment 10 Alexis Ballier gentoo-dev 2012-05-04 18:49:30 UTC
(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