Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100126 - gettext-0.14.4 asks -fPIC on compiling for an AMD64 platform
Summary: gettext-0.14.4 asks -fPIC on compiling for an AMD64 platform
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-24 09:12 UTC by Flower
Modified: 2006-05-29 23:22 UTC (History)
3 users (show)

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


Attachments
run of "emerge -v gettext >& ./emerge-gettext-0.14.5.log" (emerge-gettext-0.14.5.log,95.61 KB, text/plain)
2006-03-11 07:12 UTC, Alex Unigovsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Flower 2005-07-24 09:12:59 UTC
gettext-0.14.4 complains about the lack of `-fPIC' option on compiling. The docs
say it's not acceptable to use this option.


Reproducible: Always
Steps to Reproduce:
1. Prepare to install a new AMD64 system from stage1
2. `emerge --sync' to get the latest portage before bootstrap
3. scripts/bootstrap.sh

Actual Results:  
x86_64-pc-linux-gnu-gcc -shared  .libs/bindtextdom.o .libs/dcgettext.o
.libs/dgettext.o .libs/gettext.o .libs/finddomain.o .libs/loadmsgcat.o
.libs/localealias.o .libs/textdomain.o .libs/l10nflist.o .libs/explodename.o
.libs/dcigettext.o .libs/dcngettext.o .libs/dngettext.o .libs/ngettext.o
.libs/plural.o .libs/plural-exp.o .libs/localcharset.o .libs/relocatable.o
.libs/langprefs.o .libs/localename.o .libs/log.o .libs/printf.o .libs/osdep.o
.libs/intl-compat.o  -lc  -mcpu=athlon64 -march=athlon64 -Wl,-soname
-Wl,libgnuintl.so.3 -o .libs/libgnuintl.so.3.4.3
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:
.libs/bindtextdom.o: relocation R_X86_64_32S against
`libintl_nl_default_dirname' can not be used when making a shared object;
recompile with -fPIC
.libs/bindtextdom.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libgnuintl.la] Error 1
make[3]: Leaving directory
`/var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/gettext-runtime/intl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/gettext-runtime'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/gettext-runtime'
make: *** [all-recursive] Error 1

!!! ERROR: sys-devel/gettext-0.14.4 failed.
!!! Function src_compile, Line 65, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Expected Results:  
Compile correctly.


Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.11-gentoo-r3-k8 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r3-k8 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.4.16
dev-lang/python:     2.3.4-r1
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   [Not Present]
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -mcpu=athlon64 -march=athlon64 -funroll-loops -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=athlon64 -march=athlon64 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.golia.ro/gentoo ftp://gentoo.golia.ro/gentoo-bk
ftp://gentoo.inode.at/source/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://gentoo.golia.ro/gentoo-portage"
USE="amd64 avi berkdb bitmap-fonts crypt cups encode foomaticdb fortran gif gtk2
imlib ipv6 jpeg kde lzw lzw-tiff mp3 mpeg ncurses nls opengl pam pdflib perl png
python quicktime readline samba sdl spell ssl tcpd tiff truetype-fonts
type1-fonts usb userlocales xpm xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2005-07-24 10:05:01 UTC
run `emerge gettext >& log` and post the log as an attachment
Comment 2 Alex Unigovsky 2006-03-11 07:10:43 UTC
I also have similar problem when upgrading 0.14.4 (original from amd64-2006.0-stage3) -> 0.14.5

emerge info and full log are attached...
Comment 3 Alex Unigovsky 2006-03-11 07:12:59 UTC
Created attachment 81925 [details]
run of "emerge -v gettext >& ./emerge-gettext-0.14.5.log"
Comment 4 Alex Unigovsky 2006-03-11 07:14:07 UTC
emerge info:

Portage 2.0.54 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.4-r0, 2.6.15-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
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.91.0.6
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -fforce-mem -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -fweb -frename-registers -finline-functions -ftree-vectorize -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon64 -fforce-mem -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -fweb -frename-registers -finline-functions -ftree-vectorize -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="ftp://aegis.compot.ru/gentoo/portage ftp://ftp.citkit.ru/pub/Linux/gentoo ftp://mirror.aiya.ru/pub/gentoo/ http://mirror.aiya.ru/pub/gentoo/ http://ftp.citkit.ru/pub/Linux/gentoo ftp://ftp.du.se/pub/os/gentoo"
LINGUAS="ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 acl avi berkdb bzip2 caps crypt cups dri eds emboss encode erandom expat foomaticdb fortran gcj gdbm gif glibc-omitfp gmp gpm gstreamer gtk2 imlib ipv6 ithreads java jpeg linuxthreads-tls lzw lzw-tiff mp3 mpeg ncurses nls nptl nptlonly pam pdflib perl png python quicktime readline spell ssl tcpd test threads tiff udev unicode usb xml xpm zlib linguas_ru userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 5 Alex Unigovsky 2006-03-11 07:21:40 UTC
CFLAGS="" CXXFLAGS="" emerge gettext -- installs fine. user error :)
Comment 6 gent_bz 2006-05-29 23:22:57 UTC
-frename-registers appears to be the culprit here.