Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 198734 - [fPIC] dev-lang/tcl-8.5b compile fails with a relocation error on amd64
Summary: [fPIC] dev-lang/tcl-8.5b compile fails with a relocation error on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL: https://sourceforge.net/tracker/index...
Whiteboard:
Keywords:
: 198731 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-11-10 19:53 UTC by M. B.
Modified: 2007-12-24 02:57 UTC (History)
2 users (show)

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


Attachments
The following patch fixes the issue. Please include. updates 2 files to HEAD, which has this issue fixed (tcl-8.5b2-recompile-with-fPIC-on-x86_64.patch,4.40 KB, patch)
2007-11-10 19:56 UTC, M. B.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description M. B. 2007-11-10 19:53:50 UTC
emerge of tcl-8.5b2 fails with the following error-msg:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: tclCompile.o: relocation R_X86_64_PC32 against `TclSetCmdNameObj' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value

Reproducible: Always

Steps to Reproduce:

Actual Results:  
Emerge results in a failure.


build.log:

-DHAVE_ST_BLKSIZE=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_UNLOAD_DLLS=1      /var/tmp/portage/dev-lang/tcl-8.5b/work/tcl8.5b2/unix/../libtommath/bn_s_mp_sub.c
rm -f libtclstub8.5.a
ar cr libtclstub8.5.a tclStubLib.o  ; x86_64-pc-linux-gnu-ranlib libtclstub8.5.a
x86_64-pc-linux-gnu-gcc -c -O2 -march=athlon64 -O2 -pipe -fomit-frame-pointer -pipe  -Wall -Wno-implicit-int -fPIC -I. -I/var/tmp/portage/dev-lang/tcl-8.5b/work/tcl8.5b2/unix/../unix -I/var/tmp/portage/dev-lang/tcl-8.5b/work/tcl8.5b2/unix/../generic -I/var/tmp/portage/dev-lang/tcl-8.5b/work/tcl8.5b2/unix/../libtommath -DPACKAGE_NAME=\"tcl\" -DPACKAGE_TARNAME=\"tcl\" -DPACKAGE_VERSION=\"8.5\" -DPACKAGE_STRING=\"tcl\ 8.5\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DPEEK_XCLOSEIM=1 -DTCL_SHLIB_EXT=\".so\" -DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1 -DTCL_TOMMATH=1 -DMP_PREC=4 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRTOL=1 -DHAVE_WAITPID=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_MKTIME=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_ST_BLKSIZE=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_UNLOAD_DLLS=1       /var/tmp/portage/dev-lang/tcl-8.5b/work/tcl8.5b2/unix/../unix/tclAppInit.c
rm -f libtcl8.5.so
x86_64-pc-linux-gnu-gcc -shared -O2 -march=athlon64 -O2 -pipe -fomit-frame-pointer -pipe    -Wl,--export-dynamic  -Wl,-soname,libtcl8.5.so -o libtcl8.5.so regcomp.o regexec.o regfree.o regerror.o tclAlloc.o tclAsync.o tclBasic.o tclBinary.o tclCkalloc.o tclClock.o tclCmdAH.o tclCmdIL.o tclCmdMZ.o tclCompCmds.o tclCompExpr.o tclCompile.o tclConfig.o tclDate.o tclDictObj.o tclEncoding.o tclEnv.o tclEvent.o tclExecute.o tclFCmd.o tclFileName.o tclGet.o tclHash.o tclHistory.o tclIndexObj.o tclInterp.o tclIO.o tclIOCmd.o tclIORChan.o tclIOGT.o tclIOSock.o tclIOUtil.o tclLink.o tclListObj.o tclLiteral.o tclLoad.o tclMain.o tclNamesp.o tclNotify.o tclObj.o tclPanic.o tclParse.o tclPathObj.o tclPipe.o tclPkg.o tclPkgConfig.o tclPosixStr.o tclPreserve.o tclProc.o tclRegexp.o tclResolve.o tclResult.o tclScan.o tclStringObj.o tclStrToD.o tclThread.o tclThreadAlloc.o tclThreadJoin.o tclThreadStorage.o tclStubInit.o tclStubLib.o tclTimer.o tclTrace.o tclUtf.o tclUtil.o tclVar.o tclTomMathInterface.o tclUnixChan.o tclUnixEvent.o tclUnixFCmd.o tclUnixFile.o tclUnixPipe.o tclUnixSock.o tclUnixTime.o tclUnixInit.o tclUnixThrd.o tclUnixCompat.o tclUnixNotfy.o  tclLoadDl.o  bncore.o bn_reverse.o bn_fast_s_mp_mul_digs.o bn_fast_s_mp_sqr.o bn_mp_add.o bn_mp_and.o bn_mp_add_d.o bn_mp_clamp.o bn_mp_clear.o bn_mp_clear_multi.o bn_mp_cmp.o bn_mp_cmp_d.o bn_mp_cmp_mag.o bn_mp_copy.o bn_mp_count_bits.o bn_mp_div.o bn_mp_div_d.o bn_mp_div_2.o bn_mp_div_2d.o bn_mp_div_3.o bn_mp_exch.o bn_mp_expt_d.o bn_mp_grow.o bn_mp_init.o bn_mp_init_copy.o bn_mp_init_multi.o bn_mp_init_set.o bn_mp_init_size.o bn_mp_karatsuba_mul.o bn_mp_karatsuba_sqr.o bn_mp_lshd.o bn_mp_mod.o bn_mp_mod_2d.o bn_mp_mul.o bn_mp_mul_2.o bn_mp_mul_2d.o bn_mp_mul_d.o bn_mp_neg.o bn_mp_or.o bn_mp_radix_size.o bn_mp_radix_smap.o bn_mp_read_radix.o bn_mp_rshd.o bn_mp_set.o bn_mp_shrink.o bn_mp_sqr.o bn_mp_sqrt.o bn_mp_sub.o bn_mp_sub_d.o bn_mp_to_unsigned_bin.o bn_mp_to_unsigned_bin_n.o bn_mp_toom_mul.o bn_mp_toom_sqr.o bn_mp_toradix_n.o bn_mp_unsigned_bin_size.o bn_mp_xor.o bn_mp_zero.o bn_s_mp_add.o bn_s_mp_mul_digs.o bn_s_mp_sqr.o bn_s_mp_sub.o  -ldl  -lieee -lm   -Wl,-rpath,/usr/lib64
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: tclCompile.o: relocation R_X86_64_PC32 against `TclSetCmdNameObj' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld gab 1 als Ende-Status zurück
make: *** [libtcl8.5.so] Fehler 1
 [31;01m*[0m 
 [31;01m*[0m ERROR: dev-lang/tcl-8.5b failed.
 [31;01m*[0m Call stack:
 [31;01m*[0m         ebuild.sh, line 1701:  Called dyn_compile
 [31;01m*[0m         ebuild.sh, line 1039:  Called qa_call 'src_compile'
 [31;01m*[0m         ebuild.sh, line   44:  Called src_compile
 [31;01m*[0m   tcl-8.5b.ebuild, line   54:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m   	emake || die
 [31;01m*[0m  The die message:
 [31;01m*[0m   (no error message)
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant.
 [31;01m*[0m A complete build log is located at '/var/tmp/portage/dev-lang/tcl-8.5b/temp/build.log'.
 [31;01m*[0m


emerge --info

Portage 2.1.3.19 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 2800+
Timestamp of tree: Fri, 09 Nov 2007 23:46:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -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/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://ds.thn.htu.se/linux/gentoo http://gentoo.mirror.solnet.ch http://mirror.switch.ch/ftp/mirror/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LINGUAS="de en"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/berkano /usr/portage/local/layman/science /usr/portage/local/mine"
SYNC="rsync://10.2.3.4/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib accessibility acl acpi aim alsa amd amd64 amr amrnb amrwb ansi apache2 arts audacious avahi bash-completion berkdb bidi binary-drivers bindist bitmap-fonts blender-game bluetooth bonjour boost branding buttons bzip2 cairo calendar caps cdio cdparanoia cdr cjk cli clisp cpudetection cracklib crypt css cups cursors daap dbus de_tvtoday devil dga directfb divx doc dri dts dv dvb dvd dvdr dvdread eds emboss enca encode esd evo exif fam fbcon ffmpeg fftw firefox flac fontconfig foomaticdb fortran ftp gaim gcj gcl gd gdbm ggi gif gimp gimpprint ginac glsa glut gmedia gnokii gnome gnomecanvas gnutls gphoto2 gpm graphviz groupwise gs gstreamer gtk hal hbci hddtemp hdri hpn iconv icq id3 idn ieee1394 imagemagick imlib injection insecure-savers ipv6 irmc isdnlog jabber java javascript jbig jce jikes jpeg jpeg2k kde kerberos lame lcms ldap libcaca libnotify libsamplerate live lm_sensors logitech-mouse lua lzo mad madwifi maps matroska mcal midi mikmod mime mixer mmap mmx mmxext mng mono mp2 mp3 mpd mpeg mplayer msn mtp mudflap musepack music musicbrainz mysql ncurses network nls nntp nowin nptl nptlonly nsplugin octave offensive ofx ogg openal openexr opengl openmp oscar oss pam parse-clocks passwordsave pcre pdf perl php physfs pmu png ppds pppd print python qq qt3 qt3support qt4 quicktime rar readline realmedia reflection rt61pci rtc ruby samba sasl sbcl sdk sdl sensord session silc skins slang sndfile sockets speex spell spl sql sqlite srt sse sse2 ssl startup-notification stroke subversion svg svgz symlink sysfs syslog tcl tcpd tetex tga themes theora threads tidy tiff tk tokenizer truetype truetype-fonts tv_check type1 type1-fonts uml unicode usb v4l v4l2 vcd videos vim-syntax vim-with-x visualization vlm vorbis vorbis-psy webdav wifi wma wmf wmp wxwindows x264 xanim xcomposite xine xml xmlwriter xorg xscreensaver xv xvid xvmc yahoo zip zlib zvbi" ALSA_CARDS="ca0106" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="ati fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 M. B. 2007-11-10 19:56:51 UTC
Created attachment 135670 [details, diff]
The following patch fixes the issue. Please include.

updates 2 files to HEAD, which has this issue fixed

updates 2 files to HEAD, which has this issue fixed

Made this patch on proposal from guys in #tcl@freenode.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-11-10 22:39:36 UTC
*** Bug 198731 has been marked as a duplicate of this bug. ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-12-23 14:03:37 UTC
Is this bug still needed w/ 8.5.0?
Comment 4 MATSUU Takuto (RETIRED) gentoo-dev 2007-12-24 02:57:04 UTC
its fixed in 8.5.0.
close