Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257565 - sci-libs/gdal-1.5.3 fails to link using -lgdal and emake fails
Summary: sci-libs/gdal-1.5.3 fails to link using -lgdal and emake fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-04 07:56 UTC by Ross Hayward
Modified: 2009-06-17 00:51 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 Ross Hayward 2009-02-04 07:56:14 UTC
From the build log...

i686-pc-linux-gnu-g++ -pthread -shared -Wl,-O1 -O2 -pipe -march=pentium4 -fPIC -Wall -Wdeclaration-after-statement build/temp.linux-i686-2.5/extensions/gda
l_wrap.o -L../../.libs -L../../ -L/usr/local/lib -L/usr/lib -L/usr/lib -lpython2.5 -lgdal -o build/lib.linux-i686-2.5/osgeo/_gdal.so
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgdal
collect2: ld returned 1 exit status
error: command 'i686-pc-linux-gnu-g++' failed with exit status 1
make[2]: *** [build] Error 1
make[2]: Leaving directory `/var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/swig/python'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/swig'
make: *** [swig-modules] Error 2
make: *** Waiting for unfinished jobs....

.....Snip......

i686-pc-linux-gnu-g++ -O2 -pipe -march=pentium4 -fPIC  -Wall  -Iogrsf_frmts -I. -I/var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/port -I/var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/gcore -I/var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/alg -I/var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/ogr -I/var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/ogr/ogrsf_frmts   -DOGR_ENABLED -I/var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/port  -c -o gml2ogrgeometry.o gml2ogrgeometry.cpp
make[1]: Leaving directory `/var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/ogr'
 *
 * ERROR: sci-libs/gdal-1.5.3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3238:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed";
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sci-libs/gdal-1.5.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/gdal-1.5.3/temp/environment'.
 *


emerge --info
Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.27-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r4-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-glibc2.0
Timestamp of tree: Thu, 29 Jan 2009 02:30:14 +0000
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.3.3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium4"
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/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=pentium4"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.swin.edu.au/gentoo "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl alsa berkdb bzip2 cdr cli cracklib crypt cups dri dvd fortran gdbm gpm hal iconv ipv6 isdnlog kde kdeprefix kerberos ldap midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python qt readline reflection session spl ssl sysfs tcpd truetype type1 unicode x86 xorg xulrunner zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="access auth auth_dbm auth_anon auth_digest alias file-cache echo charset-lite cache disk-cache mem-cache ext-filter case_filter case-filter-in deflate mime-magic cern-meta expires headers usertrack unique-id proxy proxy-connect proxy-ftp proxy-http info include cgi cgid dav dav-fs vhost-alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir imap actions userdir so filter authz_host" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 renato gallo 2009-02-24 08:20:04 UTC
bug confirmed same error here on ~amd64
Comment 2 Markus Meier gentoo-dev 2009-02-24 23:02:50 UTC
please do not CC arch teams, unless there is a reason for it.
Comment 3 Ruslan 2009-03-17 06:31:26 UTC
Workaround:
Use MAKEOPTS="-j1" to avoid error.
This is caused by parallel compilation.
Comment 4 renato gallo 2009-03-17 08:51:26 UTC
is there a way to patch or include the workaround into the ebuild ?

(In reply to comment #3)
> Workaround:
> Use MAKEOPTS="-j1" to avoid error.
> This is caused by parallel compilation.
> 

Comment 5 Steve Arnold archtester gentoo-dev 2009-06-17 00:51:29 UTC
All versions should be using the "emake -j1" workaround now; closing...