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

Bug 528670

Summary: media-video/ogmrip-1.0.1 - src_install() fails at paralle make - .../work/ogmrip-1.0.1/libogmrip/.libs/libogmrip.so: file not recognized: File format not recognized
Product: Gentoo Linux Reporter: Vince C. <vincent.cadet>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED OBSOLETE    
Severity: normal CC: jer, proxy-maint, shinydoofy, treecleaner
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Modified ebuild for ogmrip 1.0.1 with emake -j1 (might be not optimal)
media-video:ogmrip-1.0.1:20141108-182707.log

Description Vince C. 2014-11-08 16:40:14 UTC
Created attachment 388880 [details]
Modified ebuild for ogmrip 1.0.1 with emake -j1 (might be not optimal)

I tried to install ogmrip 1.0.1 yesterday and I got install errors such as:

Makefile:976: recipe for target 'install-audio_codecsLTLIBRARIES' failed
...
Makefile:1008: recipe for target 'install-containersLTLIBRARIES' failed
...
Makefile:1446: recipe for target 'install-am' failed

I have MAKEOPTS="-j5" on an Intel Core i5.

I got rid of those errors by forcing make -j1 for both compile and install phases. Otherwise the latter faces some race conditions with files that are not yet present in the install tree, which other makefiles depend upon.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-08 18:26:58 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-08 18:30:44 UTC
Created attachment 388892 [details]
media-video:ogmrip-1.0.1:20141108-182707.log

Sat  8 Nov 19:30:18 CET 2014
emerge --info =ogmrip-1.0.1
Portage 2.2.14 (python 3.3.5-final-0, default/linux/amd64/13.0/no-multilib, gcc-4.8.3, glibc-2.19-r1, 3.17.2-gentoo-JeR x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.17.2-gentoo-JeR-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.2
KiB Mem:     4052412 total,    678768 free
KiB Swap:    2097148 total,   1785308 free
Timestamp of tree: Sat, 08 Nov 2014 16:15:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.7, 3.2.5-r6, 3.3.5-r1, 3.4.2
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.22-r1, 2.23.1, 2.23.2, 2.24-r3
sys-devel/gcc:            4.6.3, 4.7.3-r1, 4.8.1-r1, 4.8.3, 4.9.1, 4.9.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.17 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo JeR steam-overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-frecord-gcc-switches -g -pipe -O2 -Wall -Wformat-security -march=core2 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -msse4.1 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=core2 -Wno-comment"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/ccache/bin /usr/lib/distcc/bin /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/yp/Makefile"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-frecord-gcc-switches -g -pipe -O2 -Wall -Wformat-security -march=core2 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -msse4.1 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -mtune=core2"
DISTDIR="/world/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg cgroup compressdebug config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync metadata-transfer multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=""
LANG="en_GB"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
MAKEOPTS="-j10"
PKGDIR="/newaches/gentoo/packages/wim"
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"
PORTAGE_TMPDIR="/home/jer"
PORTDIR="/world/gentoo/portage"
PORTDIR_OVERLAY="/keeps/gentoo/local /newaches/gentoo/layman/steam"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="256-color X a52 aac acl acpi alsa amd64 apng bash-completion berkdb bluetooth bzip2 cairo cli consolekit cracklib crypt cups cxx dbus distinct-l dri drm egl flac fortran gdbm gif gles gles1 gles2 graphite gtk gudev hwdb i3 iconv idn introspection ipv6 jack jpeg kde kmod lame lzma minizip mmx mmxext mng modules mtp multislot multitarget musepack ncat ncurses netlink nfs nls nonblockdialogs nptl offensive ogg opencv opengl openmp openrc opus pam pcre perl png policykit python qml qt3support quesoglc readline samba savedconfig sensord session sloppy smp socks5 sse sse2 sse3 sse4 sse4_1 ssl ssse3 system-libCg tcpd test theora threads tiff tinfo truetype unicode unwind upower uvm vdpau vim-syntax vorbis wavpack wayland webkit2 x264 xa xattr xcb xft xinerama zlib" ABI_X86="64" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="rrdtool rrdcached" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en nl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" QEMU_SOFTMMU_TARGETS="i386" QEMU_USER_TARGETS="i386" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" 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"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Yixun Lan archtester gentoo-dev 2014-11-08 19:16:16 UTC
MAKEOPTS="-j1" works here
Comment 4 Vince C. 2014-11-20 11:18:08 UTC
(In reply to Yixun Lan from comment #3)
> MAKEOPTS="-j1" works here

Out of curiosity: is there any support for that in ebuilds rather than overriding src_compile and src_install or changing make.conf even temporarily?
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-20 11:50:03 UTC
(In reply to Vince C. from comment #4)
> Out of curiosity: is there any support for that in ebuilds rather than
> overriding src_compile and src_install or changing make.conf even
> temporarily?

Sure. As a _workaround_, you can set emake -j1 or MAKEOPTS=-j1 in an ebuild. Fixing the actual bug is preferable, though.
Comment 6 Vince C. 2014-11-21 07:22:21 UTC
(In reply to Jeroen Roovers from comment #5)
> As a _workaround_, you can set emake -j1 or MAKEOPTS=-j1 in an ebuild.
> Fixing the actual bug is preferable, though.

Uhm, pardon my naiveness but what is "the actual bug" ? Do you mean the project's makefile? (Assuming and betting makefiles do support overriding the number of concurrent jobs.)
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-21 08:52:24 UTC
(In reply to Vince C. from comment #6)

> Uhm, pardon my naiveness but what is "the actual bug" ?

That several makefiles in the project fail to set their targets' requirements located in other subdirectories.
Comment 8 Vince C. 2014-11-21 09:07:23 UTC
(In reply to Jeroen Roovers from comment #7)
> (In reply to Vince C. from comment #6)
> 
> > Uhm, pardon my naiveness but what is "the actual bug" ?
> 
> That several makefiles in the project fail to set their targets'
> requirements located in other subdirectories.

Among which the -j1, I guess...
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-21 09:10:34 UTC
(In reply to Vince C. from comment #8)
> Among which the -j1, I guess...

No. That's not something you set in a makefile.
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-21 09:28:06 UTC
I'm pretty sure it's caused by hard-coding the path to the hidden libtool directories everywhere:

    -L$(top_builddir)/libogmrip-gtk/.libs

and generally abusing libtool features.
Comment 11 Vince C. 2014-11-21 09:53:56 UTC
(In reply to Jeroen Roovers from comment #9)
> (In reply to Vince C. from comment #8)
> > Among which the -j1, I guess...
> 
> No. That's not something you set in a makefile.

I don't understand a thing as I have no idea what these requirements are (I never developed anything with makefiles, just tried to understand those I needed to tweak whenever I had to) so it's Chinese to me; but I might take a look some day.
Comment 12 Pacho Ramos gentoo-dev 2015-01-17 22:31:05 UTC
*** Bug 520814 has been marked as a duplicate of this bug. ***
Comment 13 Vince C. 2019-07-11 09:45:44 UTC
Closing: too old, compiles/installs fine at least on my machine.
Comment 14 Vince C. 2019-07-11 09:47:41 UTC
Sorry for the noise, wrong clause... /o\
Comment 15 Vince C. 2019-07-11 10:10:56 UTC
Crap. Really sorry again. Just realized this bug report has been applied to the ebuild... *pales*

Fixing this automake nightmare is beyond me. I'm horrified how complicated this is!

Reopening...
Comment 16 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-01-19 13:52:52 UTC
Package removed.