Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 390823 - app-text/llpp-7 Error during linking - `trylock'
Summary: app-text/llpp-7 Error during linking - `trylock'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 390683
  Show dependency tree
 
Reported: 2011-11-17 12:19 UTC by David Abbott
Modified: 2011-11-18 10:08 UTC (History)
0 users

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


Attachments
/var/log/portage/app-text:llpp-7:20111117-130258.log (app-text:llpp-7:20111117-130258.log,2.03 KB, text/plain)
2011-11-17 12:20 UTC, David Abbott (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Abbott (RETIRED) gentoo-dev 2011-11-17 12:19:06 UTC
While arch testing on x86;

>>> Compiling source in /var/tmp/portage/app-text/llpp-7/work/llpp ...
link.o: In function `trylock':
/var/tmp/portage/app-text/llpp-7/work/llpp/link.c:247: undefined reference to `pthread_mutex_trylock'
link.o: In function `ml_init':
/var/tmp/portage/app-text/llpp-7/work/llpp/link.c:2067: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
File "caml_startup", line 1, characters 0-1:
Error: Error during linking
 * ERROR: app-text/llpp-7 failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 2166:  Called die
 * The specific snippet of code:
 *       ocamlopt -o llpp -I +lablGL str.cmxa unix.cmxa lablgl.cmxa lablglut.cmxa link.o -cclib "${mycclib}" help.cmx parser.cmx main.cmx || die
 * 


Reproducible: Always




 emerge --info
Portage 2.1.10.11 (default/linux/x86/10.0/desktop/gnome, gcc-4.5.3, glibc-2.12.2-r0, 3.0.6-gentoo i686)
=================================================================
System uname: Linux-3.0.6-gentoo-i686-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.0.3
Timestamp of tree: Thu, 17 Nov 2011 09:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo x86chroot
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /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="-O2 -march=native -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles fixpackages metadata-transfer news parallel-fetch protect-owned sfperms splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 aspell assistant berkdb bluetooth branding bzip2 cairo ccache cdb cdda cddb cdio cdparanoia cdr cdrom cdrtools cgi cleartype cli colord colordiff colors consolekit corefonts cracklib crypt cups curl cvs cvsgraph cxx dahdi dbus device-mapper dhcpcd djvu dri dts dvd dvdr eds emboss encode evo exif extensions extras fam ffmpeg firefox firefox3 flac fontconfig fortran ftp gcj gd gdbm gdu gedit gif gimp glep glitz glut gnome gnome-keyring gnome-print gnomecd gnutls gpg gpm gstreamer gtk gtk2-perl guidexml iconv id3tag imap ipv6 ithreads jabber jadetex java jpeg kde kdrive lame lcms libnotify libv4l libv4l2 lm_sensors logrotate logviewer logwatch mad maildir mjpeg mng modules mp2 mp3 mp4 mpd mpeg mplayer mudflap mysql nautilus ncurses nls nptl nptlonly ogg ogg123 opengl openmp openssl oss pae pam pango pcre pdf perl png policykit portage ppds pppd pulseaudio python qemu qt3support readline sdl session slang sockets speex spell sql sqlite sqlite3 ssl startup-notification static-libs svg sysfs tcpd tiff tk tordns truetype udev unicode usb v4l v4l2 video vim vim-syntax vim-with-x vorbis webkit x264 x86 xcb xft xml xorg xterm xterm-color xulrunner xv xvfb xvid zlib" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia nv" 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"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 David Abbott (RETIRED) gentoo-dev 2011-11-17 12:20:38 UTC
Created attachment 292877 [details]
/var/log/portage/app-text:llpp-7:20111117-130258.log
Comment 2 Michael Weber (RETIRED) gentoo-dev 2011-11-18 03:28:58 UTC
I've added the -lpthread at the linker call.

I committed following diff to the just stable llpp-7.ebuild.

I've no idea why this only matters on x86 (my dev machine is amd64).

Please re-test, thanks.

--- llpp-7.ebuild       17 Nov 2011 18:47:08 -0000      1.3
+++ llpp-7.ebuild       18 Nov 2011 03:25:52 -0000
@@ -35,7 +35,7 @@
        printf 'let version ="%s";;\n' ${PV} >> help.ml || die
 
        local myccopt="$(freetype-config --cflags) -O -include ft2build.h -D_GNU_SOURCE"
-       local mycclib="-lmupdf -lfitz -lz -ljpeg -lopenjpeg -ljbig2dec -lfreetype"
+       local mycclib="-lmupdf -lfitz -lz -ljpeg -lopenjpeg -ljbig2dec -lfreetype -lpthread"
        #if use ocamlopt ; then
                myccopt="${myccopt} -lpthread"
                ocamlopt -c -o link.o -ccopt "${myccopt}" link.c || die
Comment 3 Michael Weber (RETIRED) gentoo-dev 2011-11-18 03:32:30 UTC
+  18 Nov 2011; Michael Weber <xmw@gentoo.org> -llpp-0_p20110504.ebuild,
+  -llpp-5.ebuild, llpp-7.ebuild:
+  Fix x86 compilation bug (thanks to David Abbott for the report, bug 390823).
+  Remove old versions.
+
Comment 4 David Abbott (RETIRED) gentoo-dev 2011-11-18 09:21:12 UTC
Tested, works fine, thanks
Comment 5 Michael Weber (RETIRED) gentoo-dev 2011-11-18 10:08:44 UTC
cool