Created attachment 528536 [details] output of sudo armv7a-pip-linux-gnueabi-emerge --info joey@akita ~$ sudo armv7a-pip-linux-gnueabi-emerge -1v app-shells/quoter * IMPORTANT: 4 news items need reading for repository 'gentoo'. * Use eselect news read to view new items. These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] app-shells/quoter-3.0_p2-r1::gentoo to /usr/armv7a-pip-linux-gnueabi/ 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB >>> Verifying ebuild manifests >>> Emerging (1 of 1) app-shells/quoter-3.0_p2-r1::gentoo for /usr/armv7a-pip-linux-gnueabi/ >>> Failed to emerge app-shells/quoter-3.0_p2-r1 for /usr/armv7a-pip-linux-gnueabi/, Log file: >>> '/usr/armv7a-pip-linux-gnueabi/tmp/portage/app-shells/quoter-3.0_p2-r1/temp/build.log' >>> Jobs: 0 of 1 complete, 1 failed Load avg: 4.17, 4.10, 4.03 * Package: app-shells/quoter-3.0_p2-r1 * Repository: gentoo * Maintainer: xmw@gentoo.org martin@mvath.de * Upstream: martin@mvath.de * USE: arm elibc_glibc kernel_linux userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Source unpacked in /usr/armv7a-pip-linux-gnueabi/tmp/portage/app-shells/quoter-3.0_p2-r1/work >>> Preparing source in /usr/armv7a-pip-linux-gnueabi/tmp/portage/app-shells/quoter-3.0_p2-r1/work/quoter-3.0_p2 ... >>> Source prepared. >>> Configuring source in /usr/armv7a-pip-linux-gnueabi/tmp/portage/app-shells/quoter-3.0_p2-r1/work/quoter-3.0_p2 ... >>> Source configured. >>> Compiling source in /usr/armv7a-pip-linux-gnueabi/tmp/portage/app-shells/quoter-3.0_p2-r1/work/quoter-3.0_p2 ... make --jobs=10 --load-average=30 cc -march=armv7-a -mtune=cortex-a8 -mfpu=neon-vfpv3 -mfloat-abi=hard -Os -pipe -fomit-frame-pointer -ftree-vectorize -flto=10 -flto=10 -fuse-ld=gold -fuse-linker-plugin -o bin/quoter src/quoter.c || \ cc -DAVOID_ATTRIBUTE_NORETURN \ -march=armv7-a -mtune=cortex-a8 -mfpu=neon-vfpv3 -mfloat-abi=hard -Os -pipe -fomit-frame-pointer -ftree-vectorize -flto=10 -flto=10 -fuse-ld=gold -fuse-linker-plugin -o bin/quoter src/quoter.c || \ cc -DAVOID_BUILTIN_EXPECT \ -march=armv7-a -mtune=cortex-a8 -mfpu=neon-vfpv3 -mfloat-abi=hard -Os -pipe -fomit-frame-pointer -ftree-vectorize -flto=10 -flto=10 -fuse-ld=gold -fuse-linker-plugin -o bin/quoter src/quoter.c || \ cc -DAVOID_BUILTIN_EXPECT -DAVOID_ATTRIBUTE_NORETURN \ -march=armv7-a -mtune=cortex-a8 -mfpu=neon-vfpv3 -mfloat-abi=hard -Os -pipe -fomit-frame-pointer -ftree-vectorize -flto=10 -flto=10 -fuse-ld=gold -fuse-linker-plugin -o bin/quoter src/quoter.c gcc: error: unrecognized command line option ‘-mfpu=neon-vfpv3’ gcc: error: unrecognized command line option ‘-mfloat-abi=hard’ gcc: error: unrecognized command line option ‘-mfpu=neon-vfpv3’ gcc: error: unrecognized command line option ‘-mfloat-abi=hard’ gcc: error: unrecognized command line option ‘-mfpu=neon-vfpv3’ gcc: error: unrecognized command line option ‘-mfloat-abi=hard’ gcc: error: unrecognized command line option ‘-mfpu=neon-vfpv3’ gcc: error: unrecognized command line option ‘-mfloat-abi=hard’ make: *** [Makefile:10: bin/quoter] Error 1 * ERROR: app-shells/quoter-3.0_p2-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-shells/quoter-3.0_p2-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-shells/quoter-3.0_p2-r1::gentoo'`. * The complete build log is located at '/usr/armv7a-pip-linux-gnueabi/tmp/portage/app-shells/quoter-3.0_p2-r1/temp/build.log'. * The ebuild environment file is located at '/usr/armv7a-pip-linux-gnueabi/tmp/portage/app-shells/quoter-3.0_p2-r1/temp/environment'. * Working directory: '/usr/armv7a-pip-linux-gnueabi/tmp/portage/app-shells/quoter-3.0_p2-r1/work/quoter-3.0_p2' * S: '/usr/armv7a-pip-linux-gnueabi/tmp/portage/app-shells/quoter-3.0_p2-r1/work/quoter-3.0_p2' * Messages for package app-shells/quoter-3.0_p2-r1 merged to /usr/armv7a-pip-linux-gnueabi/: * ERROR: app-shells/quoter-3.0_p2-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-shells/quoter-3.0_p2-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-shells/quoter-3.0_p2-r1::gentoo'`. * The complete build log is located at '/usr/armv7a-pip-linux-gnueabi/tmp/portage/app-shells/quoter-3.0_p2-r1/temp/build.log'. * The ebuild environment file is located at '/usr/armv7a-pip-linux-gnueabi/tmp/portage/app-shells/quoter-3.0_p2-r1/temp/environment'. * Working directory: '/usr/armv7a-pip-linux-gnueabi/tmp/portage/app-shells/quoter-3.0_p2-r1/work/quoter-3.0_p2' * S: '/usr/armv7a-pip-linux-gnueabi/tmp/portage/app-shells/quoter-3.0_p2-r1/work/quoter-3.0_p2'
Now watch it succeed when defining environment variable CC to point to the cross-compiler: joey@akita ~$ cat ~/bin/pipenv #!/bin/bash export CC=/usr/bin/armv7a-pip-linux-gnueabi-gcc exec $* joey@akita ~$ sudo ~/bin/pipenv armv7a-pip-linux-gnueabi-emerge -a1v app-shells/quoter * IMPORTANT: 4 news items need reading for repository 'gentoo'. * Use eselect news read to view new items. These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] app-shells/quoter-3.0_p2-r1::gentoo to /usr/armv7a-pip-linux-gnueabi/ 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB Would you like to merge these packages? [Yes/No] >>> Verifying ebuild manifests >>> Emerging (1 of 1) app-shells/quoter-3.0_p2-r1::gentoo for /usr/armv7a-pip-linux-gnueabi/ >>> Installing (1 of 1) app-shells/quoter-3.0_p2-r1::gentoo to /usr/armv7a-pip-linux-gnueabi/ >>> Jobs: 1 of 1 complete Load avg: 4.56, 4.23, 4.09 >>> Auto-cleaning packages... >>> Using system located in ROOT tree /usr/armv7a-pip-linux-gnueabi/ >>> No outdated packages were found on your system. * IMPORTANT: 4 news items need reading for repository 'gentoo'. * Use eselect news read to view new items.
Not sure whether this is a valid bug against app-shells/quoter, sys-devel/crossdev, neither or both. I have a similar bug against sys-devel/gcc https://bugs.gentoo.org/show_bug.cgi?id=653898. But in this case setting CC, CXX and CPP doesn't fix it. I opened this bug because the ebuild is a simple Makefile. So it's easy to see that this ebuild does not support cross compiling other than by setting CC. And since sys-devel/crossdev doesn't set it, it makes me wonder how I know which packages do or do not support cross compiling other than by trying it.
Created attachment 528538 [details] build.log
Author: Jeroen Roovers <jer@gentoo.org> Date: Fri Apr 27 10:03:20 2018 +0200 app-shells/quoter: Respect CC (bug #654108). Package-Manager: Portage-2.3.31, Repoman-2.3.9