Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 511682 - sys-freebsd/freebsd-libexec: build fails on amd64-fbsd, multilib-build.eclass, revision=1.54
Summary: sys-freebsd/freebsd-libexec: build fails on amd64-fbsd, multilib-build.eclass...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Deadline: 2019-10-11
Assignee: Gentoo AMD64 FreeBSD Team
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2014-05-28 12:22 UTC by Yuta SATOH
Modified: 2019-10-11 15:18 UTC (History)
2 users (show)

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


Attachments
patch for freebsd.eclass (511682.patch,514 bytes, patch)
2014-05-28 12:25 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 2014-05-28 12:22:57 UTC
multilib_toolchain_setup "${ABI}" can not be set CHOST correctly from ABI=abi_x86_32.x86_fbsd.
freebsd_multilib_multibuild_wrapper() uses it.

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/freebsd.eclass?revision=1.35&view=markup



multilib-build.eclass, revision=1.54
 * abi_x86_32.x86_fbsd: running freebsd_multilib_multibuild_wrapper setup_multilib_vars freebsd_src_compile

 * QA: Kernel version could not be determined, please inherit kernel-2 or linux-info
 * Building for ABI=abi_x86_32.x86_fbsd and TARGET=unknown
/var/tmp/portage/sys-freebsd/freebsd-libexec-9.1-r2/work/libexec-abi_x86_32.x86_fbsd/var/tmp/portage/sys-freebsd/freebsd-libexec-9.1-r2/work/libexec/rtld-elf created for /var/tmp/portage/sys-freebsd/freebsd-libexec-9.1-r2/work/libexec/rtld-elf
make: don't know how to make rtld_start.S. Stop
 * ERROR: sys-freebsd/freebsd-libexec-9.1-r2::gentoo failed (compile phase):
 *   make failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 3275:  Called multibuild_foreach_variant 'freebsd_multilib_multibuild_wrapper' 'setup_multilib_vars' 'freebsd_src_compile'
 *   environment, line 2202:  Called _multibuild_run 'freebsd_multilib_multibuild_wrapper' 'setup_multilib_vars' 'freebsd_src_compile'
 *   environment, line 2200:  Called freebsd_multilib_multibuild_wrapper 'setup_multilib_vars' 'freebsd_src_compile'
 *   environment, line 1249:  Called setup_multilib_vars 'freebsd_src_compile'
 *   environment, line 3270:  Called freebsd_src_compile
 *   environment, line 1274:  Called bsdmk_src_compile
 *   environment, line  535:  Called die
 * The specific snippet of code:
 *       mkmake "$@" || die "make failed"
 *


multilib-build.eclass, revision=1.53

 * x86_fbsd: running freebsd_multilib_multibuild_wrapper setup_multilib_vars freebsd_src_compile
i686-gentoo-freebsd9.1
 * QA: Kernel version could not be determined, please inherit kernel-2 or linux-info
 * Building for ABI=x86_fbsd and TARGET=i386
<snip>
Comment 1 Yuta SATOH 2014-05-28 12:25:00 UTC
Created attachment 377762 [details, diff]
patch for freebsd.eclass

Add a regular expression.

-       local ABI=${MULTIBUILD_VARIANT}
+       local ABI=${MULTIBUILD_VARIANT#*.}
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-05-28 18:54:16 UTC
+  28 May 2014; Michał Górny <mgorny@gentoo.org> multilib-build.eclass:
+  Fix ABI flag stripping in multilib_get_enabled_abis(), bug #511682.

Please try now.

@fbsd: may I ask why the heck you reinvent parts of the eclass rather than using multilib_foreach_abi?
Comment 3 Yuta SATOH 2014-05-29 11:41:18 UTC
(In reply to Michał Górny from comment #2)
> +  28 May 2014; Michał Górny <mgorny@gentoo.org> multilib-build.eclass:
> +  Fix ABI flag stripping in multilib_get_enabled_abis(), bug #511682.
> 
> Please try now.

I've confirmed that this issue has been fixed.
Thanks.

> @fbsd: may I ask why the heck you reinvent parts of the eclass rather than
> using multilib_foreach_abi?

Maybe, sys-freebsd/* packages requires additional configuration in order to support multilib...

* Save and restore the variables mymakeopts.

* Set the build target. (amd64/i386)
local target="$(tc-arch-kernel ${CHOST})"

* Add set to mymakeopts for multilib.
mymakeopts="${mymakeopts} TARGET=${target} MACHINE=${target} MACHINE_ARCH=${target} SHLIBDIR=/usr/$(get_libdir) LIBDIR=/usr/$(get_libdir)"

* Set MAKEOBJDIRPREFIX.
export MAKEOBJDIRPREFIX="${BUILD_DIR}"
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-09-11 12:14:29 UTC
sys-freebsd/* is now pmasked.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-10-11 15:18:07 UTC
sys-freebsd/* removed.