Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285884 - sys-devel/gcc 4.3.4 includes incorrect libdir in libgomp.la, causing build failures in several packages
Summary: sys-devel/gcc 4.3.4 includes incorrect libdir in libgomp.la, causing build fa...
Status: RESOLVED DUPLICATE of bug 283761
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-22 02:49 UTC by James Brown
Modified: 2009-10-24 19:45 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 James Brown 2009-09-22 02:49:47 UTC
The libgomp.la installed by gcc 4.3.4 includes the following libdir:

libdir='/usr/lib/../lib64'

However, the actual library is installed in /usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.4/.

This conflation causes imagemagick to build .la files which reference a nonexistent '/usr/lib/../lib64/libgomp.la'. In turn, this causes anything that depends on imagemagick to fail to build under gcc 4.3.4.

The libdir option is set to the full /usr/lib/gcc64/... path under gcc 4.4.1.

If I manually reset the libdir option to the full path in gcc 4.3.4, everything works correctly

Reproducible: Always

Steps to Reproduce:
1. emerge gcc 4.3.4
2. emerge imagemagick (tested version 6.5.4.10)
3. Compile a package that depends on imagemagick, such as pstoedit (with the imagemagick USE flag) (tested version 3.45-r1)

Actual Results:  
The compile in step 3 fails with the following error:

libtool: link: `/usr/lib/../lib64/libgomp.la' is not a valid libtool archive
make[1]: *** [libp2edrvmagick++.la] Error 1

Expected Results:  
All compiles would succeed.
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2009-09-27 18:14:12 UTC
looks fine here.  try rebuilding gcc?

$ grep libdir /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.3.4/libgomp.la
libdir='/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.4'

if it's still broken, reopen with emerge --info.
Comment 2 SpanKY gentoo-dev 2009-09-30 03:28:23 UTC
it's been fixed -- re-emerge gcc
Comment 3 SpanKY gentoo-dev 2009-09-30 03:30:40 UTC

*** This bug has been marked as a duplicate of bug 283761 ***
Comment 4 Mark Purtill 2009-10-18 01:49:57 UTC
I don't this is completely fixed.  I just upgraded to gcc 4.3.4 and had exactly this problem. Re-emerging gcc did fix the .la file, but it was broken the first time.

% emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 17 Oct 2009 19:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r4
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -ggdb -O2 -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/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/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -ggdb -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache distlocks fixpackages installsources parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox usersync"
GENTOO_MIRRORS="ftp://ftp.ntua.gr/pub/linux/gentoo/ ftp://lug.mtu.edu/gentoo/ http://lug.mtu.edu/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ ftp://de-mirror.org/distro/gentoo/ http://130.208.16.26/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US en ja_JP ja"
MAKEOPTS="-j5 -l16"
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/layman/sunrise /usr/local/portage/layman/qting-edge /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="CJK X Xaw3d a52 aac aalib acl alsa amd64 bbdb berkdb bluetooth bzip2 cairo canna cdr cjk cli cracklib crypt cups doc dri dts dvd emacs esd ffmpeg firefox flac fontconfig fortran freewnn gdbm gif gimp gpm graphviz gtk iconv imagemagick immqt-bc ipv6 isdnlog jadetex java java5 joystick jpeg kde kdehiddenvisibility lm_sensors maildir matroska mbox mmx mng modules mp3 mpeg mplayer mudflap mule multilib ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pcre perl pic png pppd python qt3 qt3support quicktime readline reflection ruby scanner sdl session speex spell spl sse sse2 ssl svg sysfs tcpd theora tiff truetype unicode usb v4l v4l2 vcd vorbis wmf x264 xine xinerama xorg xvmc zlib" 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" 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 authn_alias authn_anon 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 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" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en ja_JP ja" USERLAND="GNU" VIDEO_CARDS="vesa nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 SpanKY gentoo-dev 2009-10-18 04:48:26 UTC
posting comments to a dupe makes no sense
Comment 6 Vondra Tomas 2009-10-24 19:45:13 UTC
(In reply to comment #0)
> The libgomp.la installed by gcc 4.3.4 includes the following libdir:
> 
> libdir='/usr/lib/../lib64'
> 
> However, the actual library is installed in
> /usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.4/.
> 
> This conflation causes imagemagick to build .la files which reference a
> nonexistent '/usr/lib/../lib64/libgomp.la'. In turn, this causes anything that
> depends on imagemagick to fail to build under gcc 4.3.4.
> 
> The libdir option is set to the full /usr/lib/gcc64/... path under gcc 4.4.1.
> 
> If I manually reset the libdir option to the full path in gcc 4.3.4, everything
> works correctly
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. emerge gcc 4.3.4
> 2. emerge imagemagick (tested version 6.5.4.10)
> 3. Compile a package that depends on imagemagick, such as pstoedit (with the
> imagemagick USE flag) (tested version 3.45-r1)
> 
> Actual Results:  
> The compile in step 3 fails with the following error:
> 
> libtool: link: `/usr/lib/../lib64/libgomp.la' is not a valid libtool archive
> make[1]: *** [libp2edrvmagick++.la] Error 1
> 
> Expected Results:  
> All compiles would succeed.

lafilefixer can help you solve your problem, try emerge lafilefixer and run it