Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 654108 - app-shells/quoter-3.0_p2-r1 - gcc: error: unrecognized command line option ‘-mfpu=neon-vfpv3’
Summary: app-shells/quoter-3.0_p2-r1 - gcc: error: unrecognized command line option ‘-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-26 02:06 UTC by Joe Harvell
Modified: 2018-04-27 08:04 UTC (History)
2 users (show)

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


Attachments
output of sudo armv7a-pip-linux-gnueabi-emerge --info (pip-emerge-info.txt,4.72 KB, text/plain)
2018-04-26 02:06 UTC, Joe Harvell
Details
build.log (build.log,3.35 KB, text/plain)
2018-04-26 02:22 UTC, Joe Harvell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Harvell 2018-04-26 02:06:55 UTC
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'
Comment 1 Joe Harvell 2018-04-26 02:13:08 UTC
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.
Comment 2 Joe Harvell 2018-04-26 02:19:14 UTC
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.
Comment 3 Joe Harvell 2018-04-26 02:22:03 UTC
Created attachment 528538 [details]
build.log
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2018-04-27 08:04:12 UTC
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