Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 511008 - app-i18n/enca-1.14-r1 - ld: .libs/multibyte.o: relocation R_X86_64_32S against `. rodata' can not be used when making a shared object; recompile with -fPIC
Summary: app-i18n/enca-1.14-r1 - ld: .libs/multibyte.o: relocation R_X86_64_32S agains...
Status: RESOLVED DUPLICATE of bug 501386
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Stas
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-22 08:54 UTC by Fabien MAUREL
Modified: 2014-05-26 08:22 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,36.51 KB, text/plain)
2014-05-25 10:18 UTC, Fabien MAUREL
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabien MAUREL 2014-05-22 08:54:25 UTC
Compilation fails with gcc 4.8.2, but it works with gcc 4.7.3-r1

libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/app-i18n/enca-1.14-r1/work/enca-1.14/lib -I.. -I/var/tmp/portage/app-i18n/enca-1.14-r1/work/enca-1.14 -I/usr/include -Wall -W -pedantic -O3 -pipe -march=native -msse3 -msse2 -msse -c /var/tmp/portage/app-i18n/enca-1.14-r1/work/enca-1.14/lib/utf8_double.c  -fPIC -DPIC -o .libs/utf8_double.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/app-i18n/enca-1.14-r1/work/enca-1.14/lib -I.. -I/var/tmp/portage/app-i18n/enca-1.14-r1/work/enca-1.14 -I/usr/include -Wall -W -pedantic -O3 -pipe -march=native -msse3 -msse2 -msse -c /var/tmp/portage/app-i18n/enca-1.14-r1/work/enca-1.14/lib/unicodemap.c  -fPIC -DPIC -o .libs/unicodemap.o
/var/tmp/portage/app-i18n/enca-1.14-r1/work/enca-1.14/lib/lang_zh.c: In function 'is_hz':
/var/tmp/portage/app-i18n/enca-1.14-r1/work/enca-1.14/lib/lang_zh.c:30:39: warning: unused parameter 'str' [-Wunused-parameter]
 static int is_hz(const unsigned char* str) { return 0; }
                                       ^
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -Wall -W -pedantic -O3 -pipe -march=native -msse3 -msse2 -msse -version-info 5:1:5 -Wl,-O1 -Wl,--as-needed -L/usr/lib -o libenca.la -rpath /usr/lib64 common.lo ctype.lo enca.lo encnames.lo filters.lo guess.lo lang.lo lang_be.lo lang_bg.lo lang_cs.lo lang_et.lo lang_hr.lo lang_hu.lo lang_lt.lo lang_lv.lo lang_pl.lo lang_ru.lo lang_sk.lo lang_sl.lo lang_uk.lo lang_zh.lo multibyte.lo pair.lo unicodemap.lo utf8_double.lo  -lm
libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/common.o .libs/ctype.o .libs/enca.o .libs/encnames.o .libs/filters.o .libs/guess.o .libs/lang.o .libs/lang_be.o .libs/lang_bg.o .libs/lang_cs.o .libs/lang_et.o .libs/lang_hr.o .libs/lang_hu.o .libs/lang_lt.o .libs/lang_lv.o .libs/lang_pl.o .libs/lang_ru.o .libs/lang_sk.o .libs/lang_sl.o .libs/lang_uk.o .libs/lang_zh.o .libs/multibyte.o .libs/pair.o .libs/unicodemap.o .libs/utf8_double.o   -Wl,--as-needed -L/usr/lib -lm  -O3 -march=native -msse3 -msse2 -msse -Wl,-O1   -Wl,-soname -Wl,libenca.so.0 -o .libs/libenca.so.0.5.1
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/multibyte.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
.libs/multibyte.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:448: recipe for target 'libenca.la' failed
make[2]: *** [libenca.la] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-i18n/enca-1.14-r1/work/enca-1.14-amd64/lib'
Makefile:540: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-i18n/enca-1.14-r1/work/enca-1.14-amd64'
Makefile:403: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: app-i18n/enca-1.14-r1::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-i18n/enca-1.14-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-i18n/enca-1.14-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-i18n/enca-1.14-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-i18n/enca-1.14-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-i18n/enca-1.14-r1/work/enca-1.14-amd64'
 * S: '/var/tmp/portage/app-i18n/enca-1.14-r1/work/enca-1.14'

emerge --info

Portage 2.2.10 (default/linux/amd64/13.0, gcc-4.8.2, glibc-2.19, 3.14.4 x86_64)
=================================================================
System uname: Linux-3.14.4-x86_64-Intel-R-_Core-TM-_i7-4700HQ_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:     8095312 total,   3559168 free
KiB Swap:    2096476 total,   2096476 free
Timestamp of tree: Thu, 22 May 2014 08:30:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p47
dev-lang/python:          2.7.6-r1, 3.3.5, 3.4.0
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.14 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=native -msse3 -msse2 -msse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -pipe -march=native -msse3 -msse2 -msse"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.free.fr/mirrors/ftp.gentoo.org http://mirror.ovh.net/gentoo-distfiles"
LANG="fr_FR.utf8"
LC_ALL="fr_FR@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="X a52 aac aacplus acl alsa amd64 amr apng avx awt berkdb bzip2 cli cpudetection cracklib crypt cxx dbus declarative dri dts faac fam ffmpeg flac fontconfi fortran gbm gcj gdbm gif gtk gudev iconv icu ipv6 jpeg jpeg2k lame libass libnotify libvisual logrotate mad minizip mmx mmxext mng modules mp3 mpeg multilib multimedia mysql ncurses networkmanager nls nptl ogg openal opengl openmp openvg opus pam pcre png policykit python qt3support qt4 readline schroedinger script sdl sensord session smpeg speex spell sql sqlite sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 svg taglib tcpd theora threads tiff truetype twolame udev unicode vaapi vdpau vorbis vpx wavpack webkit x264 x265 xcb xmp xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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 ublox ubx" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

Thanks



Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-05-22 11:30:10 UTC
Please attach the entire build log to this bug report.
Comment 2 Fabien MAUREL 2014-05-25 10:18:44 UTC
Created attachment 377604 [details]
build.log
Comment 3 pereira.alex 2014-05-25 23:44:34 UTC
also happens in one of my machines:

desktop it compiles, on laptop it doesnt.

desktop is an more or less old amd, laptop is this years i7.

other than that, both distros are more or less compiled with same configurations.
Comment 4 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-05-26 08:22:38 UTC

*** This bug has been marked as a duplicate of bug 501386 ***