Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 608052 - media-video/ffmpeg-3.2.2 fails to build because of libcdio/cdparanoia
Summary: media-video/ffmpeg-3.2.2 fails to build because of libcdio/cdparanoia
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-02 15:38 UTC by darkshine
Modified: 2019-02-13 15:18 UTC (History)
0 users

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


Attachments
/var/tmp/portage/media-video/ffmpeg-3.2.2/temp/build.log (build.log,5.57 KB, text/x-log)
2017-02-02 15:40 UTC, darkshine
Details
/var/tmp/portage/media-video/ffmpeg-3.2.2/work/ffmpeg-3.2.2-abi_x86_32.x86/config.log (config.log,426.17 KB, text/x-log)
2017-02-02 15:41 UTC, darkshine
Details
emerge --info (emerge-info.txt,5.87 KB, text/plain)
2017-02-02 15:47 UTC, darkshine
Details
emerge command with the list of dependencies (emerge.log,8.32 KB, text/x-log)
2017-02-02 15:49 UTC, darkshine
Details
environment (environment,146.08 KB, text/plain)
2017-02-02 15:49 UTC, darkshine
Details

Note You need to log in before you can comment on or make changes to this bug.
Description darkshine 2017-02-02 15:38:07 UTC
media-video/ffmpeg-3.2.2 build fails with the following error:

 * abi_x86_32.x86: running multilib-minimal_abi_src_configure
/var/tmp/portage/media-video/ffmpeg-3.2.2/work/ffmpeg-3.2.2/configure --prefix=/usr --libdir=/usr/lib32 --shlibdir=/usr/lib32 --docdir=/usr/share/doc/ffmpeg-3.2.2/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc -m32 --cxx=x86_64-pc-linux-gnu-g++ -m32 --ar=ar --optflags=-O2 -pipe -march=native -mtune=native -mmmx -msse -msse2 -DVMW_HAVE_SMP_CALL_3ARG --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-indev=oss --disable-indev=jack --disable-outdev=oss --disable-outdev=sdl --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --disable-ffplay --disable-sdl2 --disable-vaapi --disable-vdpau --disable-xlib --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --enable-zlib --enable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --disable-openal --enable-opengl --enable-libv4l2 --disable-libpulse --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libfdk-aac --disable-libopenjpeg --disable-libbluray --disable-libcelt --disable-libgme --disable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libschroedinger --disable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-libbs2b --disable-chromaprint --disable-libebur128 --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --enable-libass --disable-libfreetype --disable-librubberband --disable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-nvenc --disable-libopenh264 --disable-libsnappy --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-x11grab --disable-frei0r --disable-amd3dnow --disable-amd3dnowext --disable-aesni --disable-avx --disable-avx2 --disable-fma3 --disable-fma4 --disable-sse4 --disable-sse42 --disable-xop --cpu=host --disable-doc --disable-htmlpages --disable-manpages
ERROR: No usable libcdio/cdparanoia found



Below are my libcdio and cdparanoia packages:
$ eix libcdio; eix cdparanoia
[I] dev-libs/libcdio
     Available versions:  0.92(0/15){tbz2} 0.93(0/15){tbz2} (~)0.94-r1(0/16){tbz2} {cddb +cxx minimal static-libs test ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  0.94-r1{tbz2}(12:15:42 PM 02/02/2017)(cxx -cddb -minimal -static-libs -test ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
     Homepage:            https://www.gnu.org/software/libcdio/
     Description:         A library to encapsulate CD-ROM reading and control

[U] dev-libs/libcdio-paranoia
     Available versions:  0.90_p1-r1{tbz2} 0.93_p1{tbz2} (~)0.93_p1-r1 {+cxx static-libs test ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  0.93_p1{tbz2}(11:35:58 AM 10/16/2015)(cxx -static-libs -test ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
     Homepage:            https://www.gnu.org/software/libcdio/
     Description:         an advanced CDDA reader with error correction

Found 2 matches
[I] app-eselect/eselect-cdparanoia
     Available versions:  0.1{tbz2}
     Installed versions:  0.1{tbz2}(02:51:19 AM 04/15/2014)
     Homepage:            https://www.gentoo.org/proj/en/eselect/
     Description:         Manage /usr/bin/cdparanoia symlink

* media-plugins/gst-plugins-cdparanoia
     Available versions:
     (0.10) 0.10.36-r1^t
     (1.0)  1.8.3^t
       {ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Homepage:            https://gstreamer.freedesktop.org/
     Description:         CD Audio Source (cdda) plugin for GStreamer

[I] media-sound/cdparanoia
     Available versions:  3.10.2-r6{tbz2} {static-libs ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  3.10.2-r6{tbz2}(03:46:36 AM 04/15/2014)(-static-libs ABI_MIPS="-n32 -n64 -o32" ABI_X86="64 -32 -x32")
     Homepage:            http://www.xiph.org/paranoia
     Description:         an advanced CDDA reader with error correction

Found 3 matches


Installed packages are (almost) the most recent ones and are not broken:
$ equery check dev-libs/libcdio dev-libs/libcdio-paranoia app-eselect/eselect-cdparanoia media-sound/cdparanoia
* Checking dev-libs/libcdio-0.94-r1 ...
   126 out of 126 files passed


* Checking dev-libs/libcdio-paranoia-0.93_p1 ...
   42 out of 42 files passed


* Checking app-eselect/eselect-cdparanoia-0.1 ...
   5 out of 5 files passed


* Checking media-sound/cdparanoia-3.10.2-r6 ...
   21 out of 21 files passed



Selected cdparanoia is:
$ eselect cdparanoia list
Available cdparanoia binary implementations:
  [1]   cdparanoia-paranoia *
  [2]   libcdio-paranoia



Use flags of media-video/ffmpeg from /etc/portage/package.use:
media-video/ffmpeg cdio libass libcaca libv4l mmxext mp3 ssse3 threads v4l x264 x265 xvid
>=media-video/ffmpeg-2.8.4 opus vpx vorbis
Comment 1 darkshine 2017-02-02 15:40:11 UTC
Created attachment 462264 [details]
/var/tmp/portage/media-video/ffmpeg-3.2.2/temp/build.log
Comment 2 darkshine 2017-02-02 15:41:29 UTC
Created attachment 462266 [details]
/var/tmp/portage/media-video/ffmpeg-3.2.2/work/ffmpeg-3.2.2-abi_x86_32.x86/config.log

config.log mentioned in the error output
Comment 3 darkshine 2017-02-02 15:47:16 UTC
Created attachment 462268 [details]
emerge --info
Comment 4 darkshine 2017-02-02 15:49:10 UTC
Created attachment 462270 [details]
emerge command with the list of dependencies

This is the actual command that failed:
$ emerge -tv www-client/chromium www-plugins/chrome-binary-plugins:stable www-plugins/adobe-flash
Comment 5 darkshine 2017-02-02 15:49:35 UTC
Created attachment 462272 [details]
environment
Comment 6 darkshine 2017-02-02 16:26:23 UTC
In the config.log there was an error related to the following library which belongs to dev-libs/libcdio-paranoia package:
/usr/lib32/libcdio_cdda.so: undefined reference to `mmc_get_hwinfo@CDIO_16'
collect2: error: ld returned 1 exit status

Re-building media-sound/cdparanoia-3.10.2-r6 with ABI_X86="32 64 -x64" (previously it was ABI_X86="64 -32 -x64") and then dev-libs/libcdio-paranoia-0.93_p1 with no changes in ABI_X86 solved the issue. media-video/ffmpeg-3.2.2 has been built succcessfully.

Is this still a bug?
Comment 7 Alexis Ballier gentoo-dev 2017-02-10 17:09:54 UTC
(In reply to darkshine from comment #6)
> In the config.log there was an error related to the following library which
> belongs to dev-libs/libcdio-paranoia package:
> /usr/lib32/libcdio_cdda.so: undefined reference to `mmc_get_hwinfo@CDIO_16'
> collect2: error: ld returned 1 exit status

That symbol is provided by libcdio itself.


> Re-building media-sound/cdparanoia-3.10.2-r6 with ABI_X86="32 64 -x64"
> (previously it was ABI_X86="64 -32 -x64")

this shouldnt be related

> and then
> dev-libs/libcdio-paranoia-0.93_p1 with no changes in ABI_X86 solved the
> issue.

I think you should use 0.93_p1-r1 that will get properly rebuilt on libcdio changes. Maybe that's it ?

commit 4c06ef8e54b850bac8b45ef64b140b0758136af4
Author: Lars Wendler <polynomial-c@gentoo.org>
Date:   Wed Oct 26 19:00:32 2016 +0200

    dev-libs/libcdio-paranoia: Revbump to make use of dev-libs/libcdio sub-slot.
Comment 8 Alexis Ballier gentoo-dev 2019-02-13 15:18:23 UTC
(In reply to Alexis Ballier from comment #7)
> (In reply to darkshine from comment #6)
> > In the config.log there was an error related to the following library which
> > belongs to dev-libs/libcdio-paranoia package:
> > /usr/lib32/libcdio_cdda.so: undefined reference to `mmc_get_hwinfo@CDIO_16'
> > collect2: error: ld returned 1 exit status
> 
> That symbol is provided by libcdio itself.
> 
> 
> > Re-building media-sound/cdparanoia-3.10.2-r6 with ABI_X86="32 64 -x64"
> > (previously it was ABI_X86="64 -32 -x64")
> 
> this shouldnt be related
> 
> > and then
> > dev-libs/libcdio-paranoia-0.93_p1 with no changes in ABI_X86 solved the
> > issue.
> 
> I think you should use 0.93_p1-r1 that will get properly rebuilt on libcdio
> changes. Maybe that's it ?
> 
> commit 4c06ef8e54b850bac8b45ef64b140b0758136af4
> Author: Lars Wendler <polynomial-c@gentoo.org>
> Date:   Wed Oct 26 19:00:32 2016 +0200
> 
>     dev-libs/libcdio-paranoia: Revbump to make use of dev-libs/libcdio
> sub-slot.

assuming fixed