Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 579216 - app-crypt/shash failed with config.sub on powerpc64le-unknow-linux-gnu
Summary: app-crypt/shash failed with config.sub on powerpc64le-unknow-linux-gnu
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-07 09:46 UTC by Leno Hou
Modified: 2016-04-22 17:11 UTC (History)
1 user (show)

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


Attachments
This is the patch fixs the problem with config.sub (0001-app-crypt-shash-modify-config.sub-suit-with-ppc64l-p.patch,1.48 KB, patch)
2016-04-07 09:49 UTC, Leno Hou
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Leno Hou 2016-04-07 09:46:28 UTC
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'.
Comment 1 Leno Hou 2016-04-07 09:49:52 UTC
Created attachment 429820 [details, diff]
This is the patch fixs the problem with config.sub
Comment 2 Leno Hou 2016-04-08 07:17:26 UTC
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
Comment 3 Leno Hou 2016-04-22 17:11:05 UTC
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