Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 596778 - NodeJS doesn't build with ABI=x86_64, which is current setting in LiveDVD 2016
Summary: NodeJS doesn't build with ABI=x86_64, which is current setting in LiveDVD 2016
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-10 14:11 UTC by ArticIce(Juice)
Modified: 2016-10-10 15:19 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ArticIce(Juice) 2016-10-10 14:11:52 UTC
make.conf has ABI="x86_64" in LiveDVD 2016

I know the correct name of ABI for Gentoo is "amd64", but "x86_64" works for most packages, and has been set by LiveDVD builders themselves.


net-libs/nodejs wouldn't build with this setting because it has custom arch names for configuration in ebuild:

        case ${ABI} in
                amd64) myarch="x64";;
                arm) myarch="arm";;
                arm64) myarch="arm64";;
                ppc64) myarch="ppc64";;
                x32) myarch="x32";;
                x86) myarch="ia32";;
                *) myarch="${ABI}";;
        esac

I suggest adding
               x86_64) myarch="x64";;

to this list.


The corresponding error message is

>>> Configuring source in /var/tmp/portage/net-libs/nodejs-6.7.0/work/node-v6.7.0 ...
Usage: configure [options]

configure: error: option --dest-cpu: invalid choice: 'x86_64' (choose from 'arm', 'arm64', 'ia32', 'mips', 'mipsel', 'ppc', 'ppc64', 'x32', 'x64', 'x86', 's390', 's390x')
 * ERROR: net-libs/nodejs-6.7.0::gentoo failed (configure phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 133:  Called src_configure
 *   environment, line 3523:  Called die
 * The specific snippet of code:
 *              linux_use_bundled_gold=0" "${PYTHON}" configure --prefix="${EPREFIX}"/usr --dest-cpu=${myarch} --without-dtrace "${myconf[@]}" || die
 * 
 * If you need support, post the output of `emerge --info '=net-libs/nodejs-6.7.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-libs/nodejs-6.7.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-libs/nodejs-6.7.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/nodejs-6.7.0/temp/environment'.
 * Working directory: '/var/tmp/portage/net-libs/nodejs-6.7.0/work/node-v6.7.0'
 * S: '/var/tmp/portage/net-libs/nodejs-6.7.0/work/node-v6.7.0'