Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 647358

Summary: media-video/ffmpeg-3.4.1 - src/libavformat/file.c:386:5: error: implicit declaration of function ‘setmode’; did you mean ‘setgid’? [-Werror=implicit-function-declaration]
Product: Gentoo Linux Reporter: Alexey Skobkin <skobkin-ru>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Severity: normal CC: bkohler
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    

Description Alexey Skobkin 2018-02-11 23:20:58 UTC
When I trying to build ffmpeg on my laptop it fails. See build.log.

Unavailable repository 'calculate' referenced by masters entry in '/var/lib/layman/rasdark/metadata/layout.conf'
Portage 2.3.24 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-7.2.0, glibc-2.26-r5, 4.15.2-gentoo-skobkin-laptop x86_64)
System uname: Linux-4.15.2-gentoo-skobkin-laptop-x86_64-Intel-R-_Core-TM-_i7-6500U_CPU_@_2.50GHz-with-gentoo-2.4.1
KiB Mem:     8121644 total,   1903200 free
KiB Swap:    8387988 total,   8387988 free
Timestamp of repository gentoo: Sun, 11 Feb 2018 21:45:01 +0000
Head commit of repository gentoo: 3becd470a9c5307ec29560b3e4fb6cfb4c7dc683
sh bash 4.4_p19
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          4.4_p19::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.6-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.10.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo, 2.30::gentoo
sys-devel/gcc:            7.2.0-r1::gentoo, 7.3.0::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.15::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r5::gentoo

    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://
    priority: -1000
    sync-rsync-verify-metamanifest: yes

    location: /var/lib/layman/jorgicio
    sync-type: laymansync
    masters: gentoo
    priority: 50

    location: /var/lib/layman/mva
    sync-type: laymansync
    masters: gentoo
    priority: 50

    location: /var/lib/layman/rasdark
    sync-type: laymansync
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O3 -pipe -march=skylake -fomit-frame-pointer"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -pipe -march=skylake -fomit-frame-pointer"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup compress-build-logs config-protect-if-modified distcc distcc-pump distlocks ebuild-locks fixlafiles merge-sync metadata-transfer multilib-strict news nodoc parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j36 -l4"
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"
USE="X a52 aac acl acpi amd64 avx bash-completion bluetooth branding bzip2 cairo cdr cli colord cracklib crypt cups curl curlwrappers cxx dbus dga dri dts dv dvdr eds emboss encode evo exif fam fbcon ffmpeg flac fortran gif git glamor gnome gnome-keyring gnome-online-accounts gnutls gpm gstreamer gtk gzip hddtemp iconv idn imagemagick inotify introspection ipv6 jabber jit jpeg lame lcms libass libnotify libsecret lm_sensors lzma lzo mad matroska mhash mime mmap mmx mmxext mng modules mp3 mp4 mpeg mplayer multilib nautilus ncurses networkmanager nls nptl nsplugin ogg openal opengl openmp pam pango pch pcre pdf plasma png policykit posix ppds pulseaudio qt3support qt5 readline samba sasl sdl seccomp session sharedmem smp sockets sound spell sse sse2 sse3 sse4_1 ssl ssse3 startup-notification svg syslog systemd taglib tcmalloc tcpd theora threads tiff tracker truetype udev udisks unicode upnp upnp-av upower usb v4l vhosts videos vorbis wayland wxwidgets x264 x265 xattr xcb xcomposite xft xinerama xml xmpp xv xvid xvmc zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="evdev libinput synaptics" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-1" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_4 python3_5" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby23 ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia" XFCE_PLUGINS="brightness clock power" 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"
Comment 1 Alexey Skobkin 2018-02-11 23:29:40 UTC
For some reason I couldn't upload build.log (Request timeout each time when I tried).
Gist here:
Comment 2 Ben Kohler gentoo-dev 2018-04-21 21:16:22 UTC
I think this is a distcc issue.  Can you try w/o distcc?
Comment 3 sp.gentoo 2022-11-04 12:57:24 UTC
Just checked in scope with [870412]( issue with multiple config for 4.4.[23] and no errors were found, both with gcc and clang-15.0.4[stricter].
Comment 4 Carlos 2022-12-10 12:56:46 UTC
FFMpeg 5 also compiles just fine with strict Clang.