Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883847 - =media-libs/x264-0.0.20220222 on MIPS, fails during Configure phase with error requesting to use "--disable-asm"
Summary: =media-libs/x264-0.0.20220222 on MIPS, fails during Configure phase with erro...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: MIPS Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-01 15:43 UTC by Barnabás Virágh
Modified: 2022-12-02 08:41 UTC (History)
0 users

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


Attachments
Build log (build.log,2.70 KB, text/plain)
2022-12-01 15:44 UTC, Barnabás Virágh
Details
environment (environment,69.88 KB, text/plain)
2022-12-01 15:45 UTC, Barnabás Virágh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Barnabás Virágh 2022-12-01 15:43:50 UTC
In the ebuild of media-libs/x264, some arch has already conditionally enabled "--disable-asm" configuration parameter, but not with mips. This makes the configure step to fail.

Reproducible: Always

Steps to Reproduce:
1. # emerge media-libs/x264

Actual Results:  
Fails to build.

Expected Results:  
Succeeds build with passing "--disable-asm" to configure.

I suggest to extend this line in the ebuild:

 if [[ ${ABI} == x86* ]] && { use pic || use !cpu_flags_x86_sse ; } || [[ ${ABI} == "x32" ]] || [[ ${CHOST} == armv5* ]] || [[ ${ABI} == ppc* ]] && { use !cpu_flags_ppc_altivec ; }; then
        asm_conf=" --disable-asm"
 fi

with the additional condition: || [[ ${CHOST} == mips* ]]
With that modification, I was able to successfully build.
Comment 1 Barnabás Virágh 2022-12-01 15:44:15 UTC
Created attachment 838689 [details]
Build log
Comment 2 Barnabás Virágh 2022-12-01 15:45:49 UTC
Created attachment 838691 [details]
environment
Comment 3 Barnabás Virágh 2022-12-01 15:49:45 UTC
emerge --info '=media-libs/x264-0.0.20220222::gentoo

Portage 3.0.38.1 (python 3.10.8-final-0, default/linux/mips/17.0/musl/n64, gcc-11.3.0, musl-1.2.3, 5.10.150-gentoo-virtuos-14 mips64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.10.150-gentoo-virtuos-14-mips64-with-libc
KiB Mem:     5934280 total,   2900788 free
KiB Swap:    6143996 total,   6010608 free
Timestamp of repository gentoo: Wed, 30 Nov 2022 02:45:01 +0000
Head commit of repository gentoo: 3570e4e4ef6ae182bc91f6ae0f9fbb113574feb3
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-lang/perl:             5.34.1-r4::gentoo
dev-lang/python:           3.10.8_p3::gentoo, 3.11.0_p2::gentoo
dev-util/cmake:            3.24.3::gentoo
dev-util/meson:            0.63.3::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/openrc:           0.45.2-r1::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo                                                                                                                                                                                     sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.10-r2::gentoo (virtual/os-headers)
sys-libs/musl:             1.2.3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo                                                                                                                                                                                               sync-type: rsync
    sync-uri: ***************
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:                                                                                                                                                                                                       sync-rsync-verify-metamanifest: no                                                                                                                                                                                           sync-rsync-verify-jobs: 1                                                                                                                                                                                                                                                                                                                                                                                                                             local                                                                                                                                                                                                                            location: /var/db/repos/local                                                                                                                                                                                                masters: gentoo                                                                                                                                                                                                                                                                                                                                                                                                                                       ACCEPT_KEYWORDS="* mips"                                                                                                                                                                                                     ACCEPT_LICENSE="* -@EULA"
ASFLAGS="-Wa,-march=mips4 -Wa,-mtune=r10k"                                                                                                                                                                                   CBUILD="mips64-unknown-linux-musl"
CFLAGS="-O2 -pipe -mabi=64 -mplt -march=mips4 -mtune=r10k -mfix-r10000 -mr10k-cache-barrier=none"
CHOST="mips64-unknown-linux-musl"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mabi=64 -mplt -march=mips4 -mtune=r10k -mfix-r10000 -mr10k-cache-barrier=none"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y --keep-going=y --buildpkg --usepkg --binpkg-respect-use=y --jobs=2 --load-average=4.5"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -mabi=64 -mplt -march=mips4 -mtune=r10k -mfix-r10000 -mr10k-cache-barrier=none"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned qa-unresolved-soname-deps sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync xattr"
FFLAGS="-O2 -pipe -mabi=64 -mplt -march=mips4 -mtune=r10k -mfix-r10000 -mr10k-cache-barrier=none"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="charset.alias /usr/share/locale/locale.alias"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/var/cache/packages"
PORTAGE_CONFIGROOT="/"
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"
RUSTFLAGS="-Clink-arg=-lstdc++ -Ctarget-cpu=mips4"
SHELL="/bin/bash"
USE="X a52 aacplus acl alsa ap big-endian bmp bzip2 cairo cdparanoia classic cli consolekit crypt cryptsetup cups curl dbus dga directfb drmkms dts egl elogind fbcon ffmpeg flac gif git glamor gpg gpm gtk harfbuzz iconv icu imagemagick jpeg jpeg2k kerberos lame libglvnd libinput libnotify ljr mesa mips mips64 mp3 mpeg2 mpeg3 multicore ncurses nfs nls nptl ogg opengl openssl pam pcre png policykit qt5 radius readline seccomp snmp split-usr ssl subversion syslog system-libvpx tcpd threads timidity tls truetype udev unicode usb v4l vorbis x264 x265 xattr xinerama xml xorg xv xvid zlib" ABI_MIPS="n64" ADA_TARGET="gnat_2021" 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 sheets words" COLLECTD_PLUGINS="load memory syslog write_prometheus cpu df interface swap cpufreq" CURL_SSL="openssl" ELIBC="musl" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="hu en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="Mips" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="fbdev impact" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS