When build shash in powerpc64le-unknow-linux-gnu platform, it's happens error with: Invalid configuration `powerpc64le-unknown-linux-gnu': machine `powerpc64le-unknown' not recognized Reproducible: Always Steps to Reproduce: >> Emerging (1 of 1) app-crypt/shash-0.2.6-r2::gentoo Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_4' Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_3' Invalid '-' operator in non-incremental variable 'PYTHON_TARGETS': '-python3_5' * shash-0.2.6.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory /var/tmp/portage/app-crypt/shash-0.2.6-r2/temp/environment: line 57: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8) >>> Unpacking source... >>> Unpacking shash-0.2.6.tar.gz to /var/tmp/portage/app-crypt/shash-0.2.6-r2/work >>> Source unpacked in /var/tmp/portage/app-crypt/shash-0.2.6-r2/work shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory /var/tmp/portage/app-crypt/shash-0.2.6-r2/temp/environment: line 57: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8) >>> Preparing source in /var/tmp/portage/app-crypt/shash-0.2.6-r2/work/shash-0.2.6 ... * Applying 0.2.6-manpage-fixes.patch ... [ ok ] * Applying shash-0.2.6-binary-files.patch ... [ ok ] >>> Source prepared. shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory /var/tmp/portage/app-crypt/shash-0.2.6-r2/temp/environment: line 57: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8) >>> Configuring source in /var/tmp/portage/app-crypt/shash-0.2.6-r2/work/shash-0.2.6 ... ./configure --prefix=/usr --build=powerpc64le-unknown-linux-gnu --host=powerpc64le-unknown-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --libdir=/usr/lib64 --disable-static-link checking build system type... Invalid configuration `powerpc64le-unknown-linux-gnu': machine `powerpc64le-unknown' not recognized configure: error: /bin/bash ./config.sub powerpc64le-unknown-linux-gnu failed !!! Please attach the following file when seeking support: !!! /var/tmp/portage/app-crypt/shash-0.2.6-r2/work/shash-0.2.6/config.log * ERROR: app-crypt/shash-0.2.6-r2::gentoo failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 133: Called src_configure * environment, line 1926: Called econf '--disable-static-link' * phase-helpers.sh, line 662: Called __helpers_die 'econf failed' * isolated-functions.sh, line 117: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=app-crypt/shash-0.2.6-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-crypt/shash-0.2.6-r2::gentoo'`. * The complete build log is located at '/var/tmp/portage/app-crypt/shash-0.2.6-r2/temp/build.log'.
Created attachment 429820 [details, diff] This is the patch fixs the problem with config.sub
Hello, We're compiling stage3 for ppc64le now. And this is due to we're using the deprecated config.sub in stash-0.2.6 package. So maybe we can use the gnuconfig package 's config.sub as reference. CHOST="powerpc64le-unknown-linux-gnu" so when can't use the config.sub in shash as below #/bin/bash ./config.sub powerpc64le-unknown-linux-gnu Invalid configuration `powerpc64le-unknown-linux-gnu': machine `powerpc64le-unknown' not recognized
shash config.sub was fixed by updating config.sub with /usr/share/gnuconfig/config.sub >>> Emerging (1 of 1) app-crypt/shash-0.2.6-r2::gentoo * shash-0.2.6.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] /var/tmp/portage/app-crypt/shash-0.2.6-r2/temp/environment: line 58: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8) >>> Unpacking source... >>> Unpacking shash-0.2.6.tar.gz to /var/tmp/portage/app-crypt/shash-0.2.6-r2/work >>> Source unpacked in /var/tmp/portage/app-crypt/shash-0.2.6-r2/work /var/tmp/portage/app-crypt/shash-0.2.6-r2/temp/environment: line 58: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8) >>> Preparing source in /var/tmp/portage/app-crypt/shash-0.2.6-r2/work/shash-0.2.6 ... * Applying 0.2.6-manpage-fixes.patch ... [ ok ] * Applying shash-0.2.6-binary-files.patch ... [ ok ] >>> Source prepared. /var/tmp/portage/app-crypt/shash-0.2.6-r2/temp/environment: line 58: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8) >>> Configuring source in /var/tmp/portage/app-crypt/shash-0.2.6-r2/work/shash-0.2.6 ... * econf: updating shash-0.2.6/config.sub with /usr/share/gnuconfig/config.sub * econf: updating shash-0.2.6/config.guess with /usr/share/gnuconfig/config.guess