config/config.guess: unable to guess system type This script, last modified 2012-02-10, has failed to recognize the operating system you are using. It is advised that you download the most up to date version of the config scripts from http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD and http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD The bug is fixed by simply download the new config.guess and replacing the old one with the new one. Reproducible: Always Steps to Reproduce: 1.emerge glew on arm4 machine Actual Results: >>> Emerging (1 of 1) media-libs/glew-1.10.0-r2::gentoo * glew-1.10.0.tgz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking glew-1.10.0.tgz to /var/tmp/portage/media-libs/glew-1.10.0-r2/work >>> Source unpacked in /var/tmp/portage/media-libs/glew-1.10.0-r2/work >>> Preparing source in /var/tmp/portage/media-libs/glew-1.10.0-r2/work/glew-1.10.0 ... * Will copy sources from /var/tmp/portage/media-libs/glew-1.10.0-r2/work/glew-1.10.0 * .arm: copying to /var/tmp/portage/media-libs/glew-1.10.0-r2/work/glew-1.10.0-.arm >>> Source prepared. >>> Configuring source in /var/tmp/portage/media-libs/glew-1.10.0-r2/work/glew-1.10.0 ... * .arm: running multilib-minimal_abi_src_configure >>> Source configured. >>> Compiling source in /var/tmp/portage/media-libs/glew-1.10.0-r2/work/glew-1.10.0 ... * .arm: running multilib-minimal_abi_src_compile make -j3 GLEW_DEST=/usr LIBDIR=/usr/lib AR=armv7a-softfp-linux-gnueabi-ar STRIP=true CC=armv7a-softfp-linux-gnueabi-gcc 'LD=armv7a-softfp-linux-gnueabi-gcc -Wl,-O1 -Wl,--as-needed' M_ARCH= LDFLAGS.EXTRA= 'POPT=-O2 -pipe -march=native -mfloat-abi=softfp -fomit-frame-pointer' config/config.guess: unable to guess system type This script, last modified 2012-02-10, has failed to recognize the operating system you are using. It is advised that you download the most up to date version of the config scripts from http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD and http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD If the version you run (config/config.guess) is already up to date, please send the following data and any information you think might be pertinent to <config-patches@gnu.org> in order to provide the needed information to handle your system. config.guess timestamp = 2012-02-10 uname -m = aarch64 uname -r = 3.10.40 uname -s = Linux uname -v = #16 SMP PREEMPT Mon Sep 26 12:13:11 SGT 2016 /usr/bin/uname -p = NVIDIA Denver 1.0 rev 0 (aarch64) /bin/uname -X = hostinfo = /bin/universe = /usr/bin/arch -k = /bin/arch = /usr/bin/oslevel = /usr/convex/getsysinfo = UNAME_MACHINE = aarch64 UNAME_RELEASE = 3.10.40 UNAME_SYSTEM = Linux UNAME_VERSION = #16 SMP PREEMPT Mon Sep 26 12:13:11 SGT 2016 config/config.guess: unable to guess system type This script, last modified 2012-02-10, has failed to recognize the operating system you are using. It is advised that you download the most up to date version of the config scripts from http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD and http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD If the version you run (config/config.guess) is already up to date, please send the following data and any information you think might be pertinent to <config-patches@gnu.org> in order to provide the needed information to handle your system. config.guess timestamp = 2012-02-10 uname -m = aarch64 uname -r = 3.10.40 uname -s = Linux uname -v = #16 SMP PREEMPT Mon Sep 26 12:13:11 SGT 2016 /usr/bin/uname -p = NVIDIA Denver 1.0 rev 0 (aarch64) /bin/uname -X = hostinfo = /bin/universe = /usr/bin/arch -k = /bin/arch = /usr/bin/oslevel = /usr/convex/getsysinfo = UNAME_MACHINE = aarch64 UNAME_RELEASE = 3.10.40 UNAME_SYSTEM = Linux UNAME_VERSION = #16 SMP PREEMPT Mon Sep 26 12:13:11 SGT 2016 Makefile:40: *** "Platform '' not supported". Stop. * ERROR: media-libs/glew-1.10.0-r2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=media-libs/glew-1.10.0-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-libs/glew-1.10.0-r2::gentoo'`. * The complete build log is located at '/var/tmp/portage/media-libs/glew-1.10.0-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-libs/glew-1.10.0-r2/temp/environment'. * Working directory: '/var/tmp/portage/media-libs/glew-1.10.0-r2/work/glew-1.10.0-.arm' * S: '/var/tmp/portage/media-libs/glew-1.10.0-r2/work/glew-1.10.0' >>> Failed to emerge media-libs/glew-1.10.0-r2, Log file: >>> '/var/tmp/portage/media-libs/glew-1.10.0-r2/temp/build.log' * Messages for package media-libs/glew-1.10.0-r2: * ERROR: media-libs/glew-1.10.0-r2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=media-libs/glew-1.10.0-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-libs/glew-1.10.0-r2::gentoo'`. * The complete build log is located at '/var/tmp/portage/media-libs/glew-1.10.0-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-libs/glew-1.10.0-r2/temp/environment'. * Working directory: '/var/tmp/portage/media-libs/glew-1.10.0-r2/work/glew-1.10.0-.arm' * S: '/var/tmp/portage/media-libs/glew-1.10.0-r2/work/glew-1.10.0' The bug is fixed by simply download the new config.guess from http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD and replacing the old one with the new one.
config.{sub,guess} do not get patched by ebuilds. if glew isn't running econf (which is how portage automatically updates these files), then it can inherit the gnuconfig eclass and use `gnuconfig_update` in src_prepare.
i've fixed it by reworking how we handle SYSTEM: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=234f6d457396c138cf76dcc8f3973ece14845410