Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145730 - mjpegtools-1.8.0-r1 - fails to build with parallel make
Summary: mjpegtools-1.8.0-r1 - fails to build with parallel make
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-31 10:22 UTC by Kevin F. Quinn (RETIRED)
Modified: 2006-09-01 10:23 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin F. Quinn (RETIRED) gentoo-dev 2006-08-31 10:22:05 UTC
With MAKEOPTS="-j2", the emerge failed because it tried to link something against a library that it hadn't finished building yet:

x86_64-pc-linux-gnu-ar cru .libs/liblavjpeg.a  liblavjpeg_la-jpegutils.o
x86_64-pc-linux-gnu-ranlib .libs/liblavjpeg.a
creating liblavjpeg.la
(cd .libs && rm -f liblavjpeg.la && ln -s ../liblavjpeg.la liblavjpeg.la)
/bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc  -march=x86-64 -mcpu=x86-64 -O2 -pipe -march=k8 -ggdb2 -Wall -fno-strict-aliasing -pthread   -Wl,-O1 -o liblavrec.la -rpath /usr/lib64 -version-info 0:0:0 -release 1.8 liblavrec_la-liblavrec.lo liblavrec_la-audiolib.lo liblavrec_la-frequencies.lo -llavfile -llavjpeg -lm
libtool: link: warning: `/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../..//libjpeg.la' seems to be moved
x86_64-pc-linux-gnu-gcc -shared  .libs/liblavrec_la-liblavrec.o .libs/liblavrec_la-audiolib.o .libs/liblavrec_la-frequencies.o  -Wl,--rpath -Wl,/home/portage/tmp/portage/mjpegtools-1.8.0-r1/work/mjpegtools-1.8.0/lavtools/.libs -llavfile /home/portage/tmp/portage/mjpegtools-1.8.0-r1/work/mjpegtools-1.8.0/lavtools/.libs/liblavjpeg.so -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../ -lm  -march=x86-64 -mcpu=x86-64 -march=k8 -pthread -Wl,-O1 -Wl,-soname -Wl,liblavrec-1.8.so.0 -o .libs/liblavrec-1.8.so.0.0.0
x86_64-pc-linux-gnu-gcc -shared  .libs/liblavfile_la-editlist.o .libs/liblavfile_la-lav_io.o .libs/liblavfile_la-avilib.o  /usr/lib64/libquicktime.so -lpthread -lz -ldl /usr/lib64/libjpeg.so /usr/lib64/libdv.so /usr/lib64/libgtk.so -L/usr/lib64 /usr/lib64/libgdk.so /usr/lib64/libXi.so /usr/lib64/libXext.so /usr/lib64/libX11.so /usr/lib64/libglib.so -lm  -march=x86-64 -mcpu=x86-64 -march=k8 -pthread -Wl,-O1 -Wl,-soname -Wl,liblavfile-1.8.so.0 -o .libs/liblavfile-1.8.so.0.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -llavfile
collect2: ld returned 1 exit status
make[2]: *** [liblavrec.la] Error 1
make[2]: *** Waiting for unfinished jobs....
(cd .libs && rm -f liblavfile-1.8.so.0 && ln -s liblavfile-1.8.so.0.0.0 liblavfile-1.8.so.0)
(cd .libs && rm -f liblavfile.so && ln -s liblavfile-1.8.so.0.0.0 liblavfile.so)
x86_64-pc-linux-gnu-ar cru .libs/liblavfile.a  liblavfile_la-editlist.o liblavfile_la-lav_io.o liblavfile_la-avilib.o
x86_64-pc-linux-gnu-ranlib .libs/liblavfile.a
creating liblavfile.la
(cd .libs && rm -f liblavfile.la && ln -s ../liblavfile.la liblavfile.la)
make[2]: Leaving directory `/home/portage/tmp/portage/mjpegtools-1.8.0-r1/work/mjpegtools-1.8.0/lavtools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/portage/tmp/portage/mjpegtools-1.8.0-r1/work/mjpegtools-1.8.0'
make: *** [all] Error 2

Setting MAKEOPTS to "-j1" means the package emerged ok, which supports my interpretation of the result :)


Portage 2.1.1_rc1 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3800+
Gentoo Base System version 1.12.4
Last Sync: Sun, 27 Aug 2006 16:50:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8 -ggdb2 -Wall"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=k8 -ggdb2 -Wall"
DISTDIR="/home/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks installsources metadata-transfer multilib-strict parallel-fetch sandbox sfperms splitdebug strict stricter test userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://gentoo.osuosl.org/ "
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB en de fr it se"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/home/portage/tmp"
PORTDIR="/home/portage/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi alsa arts avi berkdb bitmap-fonts bzip2 cairo cdr cli crypt cups dbus dlloader dri dts dv dvb dvd dvdr dvdread elibc_glibc encode fam fbcon ffmpeg firefox flac fortran gdbm gif gpm gtk gtk2 hal ieee1394 imagemagick imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kdeenablefinal kernel_linux ldap libg++ linguas_de linguas_en linguas_en_GB linguas_fr linguas_it linguas_se mad mikmod mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pda pdflib perl png povray ppds pppd python qt3 qt4 quicktime readline reflection ruby samba scanner sdl session spell spl ssl svg tcl tcltk tcpd test theora threads tiff tk truetype truetype-fonts type1-fonts udev unicode userland_GNU v4l vcd video_cards_nv video_cards_vesa video_cards_vga vorbis xinerama xml xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Matthias Schwarzott gentoo-dev 2006-09-01 03:01:13 UTC
This should already be fixed, can you please resync your portage tree.
Comment 2 Kevin F. Quinn (RETIRED) gentoo-dev 2006-09-01 10:23:19 UTC
Yep; it has, thanks - I must have just missed it :)