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>
Created attachment 377762 [details, diff] patch for freebsd.eclass Add a regular expression. - local ABI=${MULTIBUILD_VARIANT} + local ABI=${MULTIBUILD_VARIANT#*.}
+ 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?
(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}"
sys-freebsd/* is now pmasked.
sys-freebsd/* removed.