Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118049 - "relocation R_X86_64_PC32" error when building openexr
Summary: "relocation R_X86_64_PC32" error when building openexr
Status: RESOLVED DUPLICATE of bug 103696
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 118080 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-06 07:52 UTC by ZhenLei Jia
Modified: 2006-01-06 12:02 UTC (History)
0 users

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 ZhenLei Jia 2006-01-06 07:52:03 UTC
To reproduce:
  emerge =openexr-1.2.2

Result: Build failed, with the follow output:

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/ImfAttribute.o: relocation R_X86_64_PC32 against `std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(std::_Ios_Openmode)@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libIlmImf.la] Error 1
make[1]: Leaving directory `/sources/tmp/portage/openexr-1.2.2-r2/work/OpenEXR-1.2.2/IlmImf'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/openexr-1.2.2-r2 failed.
!!! Function src_compile, Line 36, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.

Have tried:

1. build openexr-1.2.2-r2 and/or
2. with minimum CFLAGS="-pipe" and/or
3. Rebuild glibc with "pic" flag

All combination produces the same error.

I also tried to compile the original source from the http://www.openexr.com/, it compiles successfully without this problem.

My emerge info:

localhost OpenEXR-1.2.2 # emerge info
Portage 2.0.53 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-ge
ntoo-r5 x86_64)
=================================================================
System uname: 2.6.14-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3
800+
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X1
1/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/
env.d"
CXXFLAGS="-pipe -fvisibility-inlines-hidden"
DISTDIR="/sources/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict userpriv usersandbo
x"
GENTOO_MIRRORS="ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://g
entoo.chem.wisc.edu/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/sources/tmp"
PORTDIR="/sources/portage"
PORTDIR_OVERLAY="/sources/local"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X alsa audiofile avi bash-completion berkdb bitmap-fonts bzip2 crypt 
cups eds emboss encode expat foomaticdb fortran gif glut gpm gstreamer gtk2 imli
b ipv6 jpeg libwww lzw lzw-tiff mp3 mpeg ncurses nls nptl ogg opengl pam pdflib 
png python quicktime readline sdl spell ssl tcpd tetex tiff truetype truetype-fo
nts type1-fonts udev unicode usb userlocales vorbis xml2 xpm xv zlib userland_GN
U kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2006-01-06 07:58:58 UTC

*** This bug has been marked as a duplicate of 103696 ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-01-06 12:02:09 UTC
*** Bug 118080 has been marked as a duplicate of this bug. ***