Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 665782 - media-libs/libvpx-1.7.0 inlining failed in call to always_inline
Summary: media-libs/libvpx-1.7.0 inlining failed in call to always_inline
Status: RESOLVED DUPLICATE of bug 547194
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-12 12:20 UTC by Reimundo Heluani
Modified: 2020-10-02 20:40 UTC (History)
2 users (show)

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


Attachments
build log (build.log,319.28 KB, text/x-log)
2018-09-12 12:20 UTC, Reimundo Heluani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Reimundo Heluani 2018-09-12 12:20:56 UTC
Created attachment 546704 [details]
build log

armv7a-hardfloat-linux-gnueabi-gcc  -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-ab
i=hard -march=armv7-a -mfloat-abi=hard -mfpu=neon -DNDEBUG -O3 -fPIC -U_FORTIFY_SOURCE 
-D_FORTIFY_SOURCE=0 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wdeclaration-afte
r-statement -Wdisabled-optimization -Wfloat-conversion -Wpointer-arith -Wtype-limits -W
cast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Wunde
f -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -I. -I"/var/tmp/portage/med
ia-libs/libvpx-1.7.0/work/libvpx-1.7.0" -c -o vpx_dsp/arm/highbd_loopfilter_neon.c.o /v
ar/tmp/portage/media-libs/libvpx-1.7.0/work/libvpx-1.7.0/vpx_dsp/arm/highbd_loopfilter_
neon.c
distcc[15207] (dcc_build_somewhere) Warning: failed to distribute, running locally inst
ead
In file included from /var/tmp/portage/media-libs/libvpx-1.7.0/work/libvpx-1.7.0/vpx_ds
p/arm/highbd_vpx_convolve8_neon.c:11:0:
/var/tmp/portage/media-libs/libvpx-1.7.0/work/libvpx-1.7.0/vpx_dsp/arm/transpose_neon.h
: In function ‘vpx_vtrnq_s64_to_s16’:
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/include/arm_neon.h:7141:1: error: inl
ining failed in call to always_inline ‘vcombine_s16’: target specific option mismatch
 vcombine_s16 (int16x4_t __a, int16x4_t __b)
 ^~~~~~~~~~~~
Comment 1 Reimundo Heluani 2018-09-12 12:25:56 UTC
Similar problems I found are related to sse2 and sse3 which don't apply to this CPU (building on raspberry-pi)
Comment 2 Reimundo Heluani 2018-09-12 12:27:12 UTC
#emerge --info
Portage 2.3.40 (python 3.6.5-final-0, default/linux/arm/13.0/armv7a, gcc-7.3.0, glibc-2.26-r7, 4.14.68-v7+ armv7l)
=================================================================
System uname: Linux-4.14.68-v7+-armv7l-ARMv7_Processor_rev_5_-v7l-with-gentoo-2.4.1
KiB Mem:      949448 total,    287184 free
KiB Swap:    4194300 total,   4185596 free
Timestamp of repository gentoo: Sat, 08 Sep 2018 14:30:01 +0000
Head commit of repository gentoo: 269b252b9238f661c27f40f89fbd26b9886ac504
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p2) 2.30.0
distcc 3.2rc1 armv7a-hardfloat-linux-gnueabi [enabled]
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync_excludes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distcc-pump distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j17 -l5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl arm armv5te armv6 armv6t2 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pam pcre raspberry-pi readline seccomp ssl tcpd unicode xattr zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 vfp" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 3 Andrew Fowler 2018-09-17 19:58:59 UTC
I had the same problem with the 1.5.0 ebuild after switching to gcc 7.3.0
It appears to be a conflict between -mfpu=vfpv3-d16 (which I have in make.conf) and -mfpu=neon which is added by configure which detects a neon capable cpu.

I resolved it by removing the following line from the ebuild:
--extra-cflags="${CFLAGS}"
Then it seemed to compile fine.

--- /usr/portage/media-libs/libvpx/libvpx-1.5.0.ebuild	2018-04-25 22:38:55.000000000 +0100
+++ libvpx-1.5.0-r1.ebuild	2018-09-15 18:20:56.555210538 +0100
@@ -92,7 +92,6 @@
 		--enable-vp8 \
 		--enable-vp9 \
 		--enable-shared \
-		--extra-cflags="${CFLAGS}" \
 		$(use_enable cpu_flags_x86_avx avx) \
 		$(use_enable cpu_flags_x86_avx2 avx2) \
 		$(use_enable cpu_flags_x86_mmx mmx) \
Comment 4 Andrew Fowler 2018-09-17 20:06:17 UTC
This looks like it might be a duplicate of https://bugs.gentoo.org/show_bug.cgi?id=547194
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-02 20:40:00 UTC

*** This bug has been marked as a duplicate of bug 547194 ***