Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136128 - media-sound/cdparanoia-3.9.8-r4 fails to compile
Summary: media-sound/cdparanoia-3.9.8-r4 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
: 136189 136248 136791 136850 137523 138379 141368 147415 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-08 17:04 UTC by Paul Taylor
Modified: 2006-10-02 14:04 UTC (History)
19 users (show)

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


Attachments
side-by-side diff of cdparanoia's root Makefile from 3.9.8-r3 to 3.9.8-r4 (Makefile.diff,6.11 KB, text/plain)
2006-07-18 19:29 UTC, William Keaney
Details
side-by-side diff of cdparanoia's interface/Makefile from 3.9.8-r3 to 3.9.8-r4 (interface.Makefile.diff,3.15 KB, text/plain)
2006-07-18 19:31 UTC, William Keaney
Details
side-by-side diff of cdparanoia's paranoia/Makefile from 3.9.8-r3 to 3.9.8-r4 (paranoia.Makefile.diff,2.98 KB, text/plain)
2006-07-18 19:32 UTC, William Keaney
Details
cdparanoia-3.9.8-parallel.patch (cdparanoia-3.9.8-parallel.patch,605 bytes, patch)
2006-08-03 16:49 UTC, Tuan Van (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Taylor 2006-06-08 17:04:41 UTC
# emerge -u cdparanoia
Calculating world dependencies... done!
>>> Emerging (1 of 1) media-sound/cdparanoia-3.9.8-r4 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking cdparanoia-III-alpha9.8.src.tgz ;-)
>>> checking cdparanoia-3.9.8-SG_IO-patches.tar.gz ;-)
>>> checking cdparanoia-3.9.8-fbsd.patch.bz2 ;-)
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.16-gentoo-r9
>>> Unpacking source...
>>> Unpacking cdparanoia-III-alpha9.8.src.tgz to /var/tmp/portage/cdparanoia-3.9.8-r4/work
>>> Unpacking cdparanoia-3.9.8-SG_IO-patches.tar.gz to /var/tmp/portage/cdparanoia-3.9.8-r4/work
>>> Unpacking cdparanoia-3.9.8-fbsd.patch.bz2 to /var/tmp/portage/cdparanoia-3.9.8-r4/work
 * Applying cdparanoia-3.9.8-include-cdda_interface_h.patch ...           [ ok ]
 * Applying cdparanoia-3.9.8-toc.patch ...                                [ ok ]
 * Applying cdparanoia-3.9.8-identify_crash.patch ...                     [ ok ]
 * Applying 3.9.8-gcc34.patch ...                                         [ ok ]
 * Applying cdparanoia-3.9.8-use-destdir.patch ...                        [ ok ]
 * Applying various patches (bugfixes/updates) ...
 *   00_all_cdparanoia-III-alpha9.8.sgio.patch ...                        [ ok ]
 *   01_all_cdparanoia-III-alpha9.8.labels.patch ...                      [ ok ]
 *   02_all_cdparanoia-III-alpha9.8.O_EXCL.patch ...                      [ ok ]
 *   03_all_cdparanoia-III-alpha9.8.cflags.patch ...                      [ ok ]
 *   04_all_cdparanoia-III-alpha9.8.verbose.patch ...                     [ ok ]
 *   05_all_cdparanoia-III-alpha9.8.louder.patch ...                      [ ok ]
 *   06_all_cdparanoia-III-alpha9.8.verbosity3.patch ...                  [ ok ]
 *   07_all_cdparanoia-III-alpha9.8.env.patch ...                         [ ok ]
 *   08_all_cdparanoia-III-alpha9.8.smalldma.patch ...                    [ ok ]
 *   09_all_cdparanoia-III-alpha9.8.lm.patch ...                          [ ok ]
 *   10_all_cdparanoia-III-alpha9.8.O_EXCL.EBUSY.patch ...                [ ok ]
 * Done with patching
 * Applying cdparanoia-3.9.8-respectflags-sgio.patch ...                  [ ok ]
 * Applying flex-configure-LANG.patch ...                                 [ ok ]
 * Using GNU config files from /usr/share/libtool
 *   Updating config.sub                                                  [ ok ]
 *   Updating config.guess                                                [ ok ]
>>> Source unpacked.
[snip]
i686-pc-linux-gnu-gcc -march=pentium4 -O3 -pipe -I/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface -c buffering_write.c
i686-pc-linux-gnu-gcc -march=pentium4 -O3 -pipe -I/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface -march=pentium4 -O3 -pipe -I/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface main.o report.o header.o buffering_write.o \
                -L/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/paranoia -L/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface \
                -o cdparanoia -lcdda_interface -lcdda_paranoia -lm
main.o: In function `cleanup':
main.c:(.text+0x13): undefined reference to `paranoia_free'
main.o: In function `main':
main.c:(.text+0x1973): undefined reference to `paranoia_modeset'
main.c:(.text+0x1993): undefined reference to `paranoia_overlapset'
main.c:(.text+0x19b2): undefined reference to `paranoia_seek'
main.c:(.text+0x1c36): undefined reference to `paranoia_read_limited'
main.c:(.text+0x1de7): undefined reference to `paranoia_read_limited'
main.c:(.text+0x1f93): undefined reference to `paranoia_free'
main.c:(.text+0x216c): undefined reference to `paranoia_seek'
collect2: ld returned 1 exit status
make[1]: *** [cdparanoia] Error 1
make[1]: Leaving directory `/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8'
make: *** [all] Error 2

!!! ERROR: media-sound/cdparanoia-3.9.8-r4 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  cdparanoia-3.9.8-r4.ebuild, line 67:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.



# emerge --info
Portage 2.1_rc4-r5 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.16-gentoo-r9 i686)
=================================================================
System uname: 2.6.16-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
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.16.1-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-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/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.swin.edu.au/gentoo http://distfiles.gentoo.org/"
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="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="x86 X a52 aac alsa apache2 apm arts asf avi berkdb bitmap-fonts bzlib cdparanoia chroot cli crypt cups dri dvd dvdread eds emboss encode expat fbcon firefox foomaticdb fortran gdbm gif gimpprint gpgme gpm gstreamer gtk gtk2 hal i8x0 imap imlib ipv6 isdnlog jpeg jpeg2k kde lcms libg++ libwww lm_sensors mad mikmod mmap mmx mng motif mp3 mpeg mpeg4 ncurses nls nptl nptlonly nsplugin ogg opengl oss pam pcre pdflib perl png ppds pppd python qt quicktime readline reflection sdl session smp sndfile spell spl sse sse2 ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts udev userlocales vcd vorbis vorbis-psy win32codecs wmf xml xmms xorg xprint xscreensaver xv yvl12 zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_i810"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 David Watzke 2006-06-08 20:34:52 UTC
And this on my AMD64:

x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -fomit-frame-pointer -pipe -I/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface -fpic -c toc.c
x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -fomit-frame-pointer -pipe -I/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface -c scsi_interface.c
scsi_interface.c: In function ‘sg2_handle_scsi_cmd’:
scsi_interface.c:413: warning: cast from pointer to integer of different size
x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -fomit-frame-pointer -pipe -I/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface -fpic -c test_interface.c
x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -fomit-frame-pointer -pipe -I/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface -c toc.c
x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -fomit-frame-pointer -pipe -I/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface -fpic -shared -o libcdda_interface.so.0.9.8 -Wl,-soname -Wl,libcdda_interface.so.0 scan_devices.o       common_interface.o cooked_interface.o interface.o scsi_interface.o smallft.o toc.o test_interface.o -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: scan_devices.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
scan_devices.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libcdda_interface.so] Error 1
make[2]: Leaving directory `/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface'
make[1]: *** [slib] Error 2
make[1]: *** Waiting for unfinished jobs....
x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -fomit-frame-pointer -pipe -I/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface -c test_interface.c
x86_64-pc-linux-gnu-ar -r libcdda_interface.a scan_devices.o    common_interface.o cooked_interface.o interface.o scsi_interface.o smallft.o toc.o test_interface.o
x86_64-pc-linux-gnu-ar: creating libcdda_interface.a
x86_64-pc-linux-gnu-ranlib libcdda_interface.a
make[2]: Leaving directory `/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface'
make[1]: Leaving directory `/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface'
make: *** [all] Error 2

!!! ERROR: media-sound/cdparanoia-3.9.8-r4 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  cdparanoia-3.9.8-r4.ebuild, line 67:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

Here comes emerge --info ::

Portage 2.1_rc4-r5 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.16-gentoo-r9! x86_64)
=================================================================
System uname: 2.6.16-gentoo-r9! x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
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.16.93
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe"
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/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe"
DISTDIR="/portage/distfiles"
FEATURES="autoconfig candy distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.linux.cz/pub/linux/gentoo http://mirror.gentoo.sk/pub http://distfiles.gentoo.org/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="cs"
MAKEOPTS="-j3"
PKGDIR="/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="/var/tmp"
PORTDIR="/portage"
PORTDIR_OVERLAY="/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi alsa asf audiofile avi bash-completion bitmap-fonts bzip2 cdparanoia cdr cli css cups dbus dga dts dvd dvdr dvdread emboss encode fbcon ffmpeg flac flash fortran ftp gdbm gif gpm hal icq id3 id3v2 imagemagick imlib isdnlog jabber javascript jingle jpeg kde kdeenablefinal lame lcms lzw lzw-tiff mad matroska mime mp3 mpeg mplayer ncurses nls nowebdav nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl oscar pcre pdflib perl pic png posix ppds pppd python qt quicktime readline reflection ruby sdl session sockets spl ssl subversion svg symlink theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis wma xcomposite xine xml xml2 xorg xpm xrandr xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_cs userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Matthias Schwarzott gentoo-dev 2006-06-09 03:02:07 UTC
This bug seems to be triggered by bad Makefiles (missing depends) combined with parallel building (make -jX).

If one adds "-j1" to emake it builds reliably and does not stop here and then.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-06-09 09:42:41 UTC
*** Bug 136189 has been marked as a duplicate of this bug. ***
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2006-06-09 12:15:04 UTC
confirmed
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-06-10 03:54:10 UTC
*** Bug 136248 has been marked as a duplicate of this bug. ***
Comment 6 Ian Abbott 2006-06-10 10:10:05 UTC
(In reply to comment #2)
> This bug seems to be triggered by bad Makefiles (missing depends) combined with
> parallel building (make -jX).
> 
> If one adds "-j1" to emake it builds reliably and does not stop here and then.

Thanks. That worked for me on amd64.  I ran it as:

# MAKEOPTS="-j1" emerge --oneshot cdparanoia

Comment 7 Wiktor Wandachowicz 2006-06-12 05:58:34 UTC
Yup, the same error for cdparanoia-3.9.8-r4 on my amd64:
relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

OTOH cdparanoia-3.9.8-r3 compiles fine, MAKEOPTS="-j1" workaround is needed for cdparanoia-3.9.8-r4:


# ebuild /usr/portage/media-sound/cdparanoia/cdparanoia-3.9.8-r3.ebuild compile
...
make[1]: Leaving directory `/var/tmp/portage/cdparanoia-3.9.8-r3/work/cdparanoia-III-alpha9.8'
>>> Source compiled.


# emerge -avu1 cdparanoia
...
x86_64-pc-linux-gnu-gcc -Wl,-O1 -O2 -pipe -march=k8 -fomit-frame-pointer -I/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface -fpic -shared -o libcdda_interface.so.0.9.8 -Wl,-soname -Wl,libcdda_interface.so.0 scan_devices.o common_interface.o cooked_interface.o interface.o scsi_interface.o smallft.o toc.o test_interface.o -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: scan_devices.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
scan_devices.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libcdda_interface.so] Error 1
make[2]: Leaving directory `/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface'
make[1]: *** [slib] Error 2
make[1]: Leaving directory `/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface'
make: *** [all] Error 2


# MAKEOPTS="-j1" emerge -avu1 cdparanoia
...
>>> media-sound/cdparanoia-3.9.8-r4 merged.

 media-sound/cdparanoia
    selected: 3.9.8-r3
   protected: 3.9.8-r4
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.


# emerge --info
Portage 2.1 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.16-suspend2-r8 x86_64)
=================================================================
System uname: 2.6.16-suspend2-r8 x86_64 AMD Turion(tm) 64 Mobile Technology ML-30
Gentoo Base System version 1.12.1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
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.16.1-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8 -fomit-frame-pointer"
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/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig confcache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/gentoo"
SYNC="rsync://gentoo.prz.rzeszow.pl/gentoo-portage"
USE="amd64 X a52 aac aalib acpi alsa arts artworkextra asf audiofile avahi avi beagle berkdb bitmap-fonts browserplugin bzip2 cairo cdr cli crypt cups dbus dri dts dv dvd dvdr dvdread dvi dxr3 eds emboss encode esd expat extrafilters fame ffmpeg firefox foomaticdb fortran gdbm gif glitz gnome gpm gstreamer gtk gtk2 hal imagemagick imlib ipv6 isdnlog ithreads java jpeg jpeg2k kde lzo lzw lzw-tiff mad mikmod mjpeg mng modplug mono mozdevelop mozilla mozsvg mp3 mpeg nautilus ncurses new-login nls nptl nptlonly nsplugin ogg openexr opengl pam pcmcia pcre pdflib perl png pppd python qt quicktime readline reflection samba sdl session sndfile spell spl ssl svg tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb vcd vorbis win32codecs wmf x264 xine xinerama xml xml2 xmms xorg xpm xv xvid xvmc zeroconf zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux linguas_pl userland_GNU video_cards_sis video_cards_vesa"Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 8 Martin von Gagern 2006-06-12 06:26:08 UTC
Another case solved by MAKEOPTS=-j1. I post it here so it can be found when people search for these error messages.

i686-pc-linux-gnu-gcc -march=prescott -O2 -I/var/tmp/portage/cdparanoia-3.9.8-r4 /work/cdparanoia-III-alpha9.8/interface -march=prescott -O2 -I/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface main.o report.o header.o buffering_write.o \
-L/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/paranoia -L/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface \       
                -o cdparanoia -lcdda_interface -lcdda_paranoia -lm
/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface/libcdda_interface.so: undefined reference to `sg2_init_sg_info'
/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface/libcdda_interface.so: undefined reference to `sgio_init_sg_info'
/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface/libcdda_interface.so: undefined reference to `scsi_init_drive'
/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface/libcdda_interface.so: undefined reference to `scsi_inquiry'
/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface/libcdda_interface.so: undefined reference to `check_fd_sgio'
/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface/libcdda_interface.so: undefined reference to `scsi_read_mmc2'
collect2: ld returned 1 exit status
make[1]: *** [cdparanoia] Error 1
make[1]: Leaving directory `/var/tmp/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8'     
make: *** [all] Error 2
Comment 9 Martin Sandaas 2006-06-12 06:28:53 UTC
Confirmed... again. MAKEOPTS="-j1" emerge --oneshot cdparanoia did the trick.
Comment 10 David Watzke 2006-06-12 06:31:42 UTC
MAKEOPTS=-j1 emerge -1u media-sound/cdparanoia

^^ works on AMD64 ^^
Comment 11 Luis Medinas (RETIRED) gentoo-dev 2006-06-12 06:36:09 UTC
Diego can we add emake -j1 to the ebuild ?
Comment 12 Patrick McLean gentoo-dev 2006-06-12 12:26:21 UTC
The change from "make" to "emake" for BSD seems to have broken parallel make, I added a -j1 to the emake call.
Comment 13 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-06-12 12:32:59 UTC
Fixed the bloody hell. Adding -j1 is a workaround, someone should fix it for good.
Comment 14 Patrick McLean gentoo-dev 2006-06-12 13:49:04 UTC
Added a patch to fix the makefile to work with parallel make, and took out the -j1. That should fix it for real.
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2006-06-14 08:30:34 UTC
*** Bug 136791 has been marked as a duplicate of this bug. ***
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2006-06-15 01:46:42 UTC
*** Bug 136850 has been marked as a duplicate of this bug. ***
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2006-06-22 00:07:55 UTC
*** Bug 137523 has been marked as a duplicate of this bug. ***
Comment 18 Renato Caldas 2006-06-23 05:30:29 UTC
(In reply to comment #14)
> Added a patch to fix the makefile to work with parallel make, and took out the
> -j1. That should fix it for real.
> 

Hi.

Is the fix already in portage? I ask this because I had to manually set -j1 in order to compile cdparanoia. Also there are some guys in the forum with the same problem..

If the fix is there, then there must be a problem with it..
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2006-06-28 10:47:54 UTC
*** Bug 138379 has been marked as a duplicate of this bug. ***
Comment 20 Jakub Moc (RETIRED) gentoo-dev 2006-06-28 10:48:42 UTC
Apparently the fix doesn't work.
Comment 21 Michael Hampton 2006-07-04 19:01:53 UTC
# MAKEOPTS="-j1" emerge --oneshot cdparanoia

This fixed the problem for me on 3.9.8-r4 on ~x86.
Comment 22 DrChandra the Gentoo Person 2006-07-11 07:48:14 UTC
If -j1 is what fixes this, then there is a missing dependency in the Makefile. Find what is missing that produces the compile error, and make what is being compiled depend on it. Fully formed dependencies in the Makefile will allow the build to work with values of -j larger than one, by preventing make from trying to build targets before the products they depend on are built.
Comment 23 William Keaney 2006-07-18 18:47:18 UTC
It looks like the problem is specifically in  cdparanoia-III-alpha9.8/interface.  This is the only part of the build where -j1 makes a difference to the success of the overall compile.
I'm not sure if this information is relevant, but here it is:

compile order using -j1:
scan_devices.c
common_interface.c
cooked_interface.c
interface.c
scsi_interface.c
smallft.c
toc.c
test_interface.c

compile order using -j3:
scan_devices.c
cooked_interface.c
common_interface.c
interface.c
interface.c
scsi_interface.c
smallft.c
scsi_interface.c
toc.c
toc.c
test_interface.c
test_interface.c
Comment 24 William Keaney 2006-07-18 19:29:50 UTC
Created attachment 92178 [details]
side-by-side diff of cdparanoia's root Makefile from 3.9.8-r3 to 3.9.8-r4

I don't see any significant differences, but someone else may know better.
Comment 25 William Keaney 2006-07-18 19:31:18 UTC
Created attachment 92179 [details]
side-by-side diff of cdparanoia's interface/Makefile from 3.9.8-r3 to 3.9.8-r4

Again, I don't see any significant differences.
Comment 26 William Keaney 2006-07-18 19:32:26 UTC
Created attachment 92180 [details]
side-by-side diff of cdparanoia's paranoia/Makefile from 3.9.8-r3 to 3.9.8-r4

They look functionally similar to me.
Comment 27 Tuan Van (RETIRED) gentoo-dev 2006-08-03 16:49:31 UTC
Created attachment 93386 [details, diff]
cdparanoia-3.9.8-parallel.patch

my first attempt at parallel make. seems to work for me.
Comment 28 ra 2006-09-07 06:08:51 UTC
Please find a fix for this, as this does not compile at all on a fresh install (2006.1).

Bug is ongoing for nearly 3 months.
Comment 29 Lee Chen 2006-09-07 21:58:26 UTC
This results on a SPARC (SPARC32) build attempt:

sparc-unknown-linux-gnu-gcc -mcpu=hypersparc -Os -pipe -I/x/portage/cdparanoia-3.9.8-r4/work/cdparanoia-III-alpha9.8/interface -fPIC -c scan_devices.c
scan_devices.c: In function `cdda_find_a_cdrom':
scan_devices.c:77: error: `cdrom_devices' undeclared (first use in this function)
scan_devices.c:77: error: (Each undeclared identifier is reported only once
scan_devices.c:77: error: for each function it appears in.)
make[2]: *** [scan_devices.o] Error 1

===================================================
Portage 2.1.1_rc1-r4 (default-linux/sparc/sparc32/2006.1/2.4, gcc-3.4.6, glibc-2.3.6-r4, 2.4.32-sparc-r5 sparc)
=================================================================
System uname: 2.4.32-sparc-r5 sparc sun4m
Gentoo Base System version 1.12.4
Last Sync: Thu, 07 Sep 2006 08:00:01 +0000
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5, 2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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.4.33.3
ACCEPT_KEYWORDS="sparc ~sparc"
AUTOCLEAN="yes"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-mcpu=hypersparc -Os -pipe"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/eselect/compiler /etc/gconf /etc/terminfo"
CXXFLAGS="-mcpu=hypersparc -Os -pipe"
DISTDIR="/n/neo/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS=""
PKGDIR="/n/neo/usr/portage/packages/hyper-2.4"
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="/x"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="sparc X apache2 berkdb bitmap-fonts cli crypt cups dba dlloader dri elibc_glibc fbcon foomaticdb fortran gd gdbm gif gstreamer gtk2 imlib input_devices_keyboard input_devices_mouse isdnlog jpeg kde kernel_linux libwww motif ncurses nls oss pam pcre perl png pppd python qt readline reflection session spell spl ssl tcpd truetype truetype-fonts type1-fonts userland_GNU video_cards_fbdev video_cards_mach64 video_cards_suncg14 video_cards_sunffb video_cards_sunleo video_cards_suntcx xml xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 30 Jakub Moc (RETIRED) gentoo-dev 2006-09-13 00:06:56 UTC
*** Bug 147415 has been marked as a duplicate of this bug. ***
Comment 31 Jakub Moc (RETIRED) gentoo-dev 2006-09-22 13:01:46 UTC
*** Bug 141368 has been marked as a duplicate of this bug. ***
Comment 32 Andrej Kacian (RETIRED) gentoo-dev 2006-09-22 15:06:23 UTC
Could everybody please sync in few hours and try merging 3.9.8-r4 ? I think I have fixed this.

The build process seems to be (with parallel building) shooting itself in the foot by using the "lessmessy" target, so the two .so files (in interface/ and paranoia/) were being created with missing .o files, resulting in undefined symbols.
Comment 33 Christian Heim (RETIRED) gentoo-dev 2006-10-01 02:51:46 UTC
(In reply to comment #32)
> Could everybody please sync in few hours and try merging 3.9.8-r4 ? I think I
> have fixed this.
> 
> The build process seems to be (with parallel building) shooting itself in the
> foot by using the "lessmessy" target, so the two .so files (in interface/ and
> paranoia/) were being created with missing .o files, resulting in undefined
> symbols.

At least works for me now, thank you Ticho ;)


Comment 34 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-01 22:33:30 UTC
This should be fixed now.