Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289208 - dev-php5/xdebug-2.0.3 build fails with -fPIC error
Summary: dev-php5/xdebug-2.0.3 build fails with -fPIC error
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2009-10-15 14:14 UTC by Walter
Modified: 2009-10-30 08:23 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Walter 2009-10-15 14:14:11 UTC
When rebuilding dev-php5/xdebug-2.0.3 on amd64 against dev-lang/php-5.2.11 the compilation fails with an -fPIC error.

I was rebuilding both PHP and xdebug/other extensions in order to try to work around an issue I was having with PHP saying 'dynamic modules not supported on this platform' and failing to load some required modules (geoip, etc.)

Reproducible: Always

Steps to Reproduce:
On an amd64 machine, run...
1. emerge =dev-lang/php-5.2.11
2. emerge =dev-php5/xdebug-2.0.3
Actual Results:  
Build fails with...
/mnt/newdisk/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/../../../lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: /mnt/newdisk/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/../../../lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/libm.a(s_ceil.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/mnt/newdisk/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/../../../lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/libm.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

Expected Results:  
Package installs correctly.

The system is a VM under VMWare.  The /mnt/newdisk/usr stuff is just a prefix to the 'real' location of /usr, which is a symlink over there.  Basically I had to add a new disk to compensate for underestimating the eventual disk needs of the VM.

Portage (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.10.1-r0, 2.6.29-gentoo-r5 x86_64)
System uname: Linux-2.6.29-gentoo-r5-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 15 Oct 2009 13:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.4.4-r13, 2.5.4-r2, 2.6.2-r1, 3.1
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -pipe"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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="-O2 -pipe"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
LINGUAS="en en_US en_GB"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/portage/layman/saffron /usr/local/portage/layman/sunrise /usr/local/portage/layman/saffron /usr/local/portage/layman/sunrise"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bzip2 cdda cddax cddb cgi cjk cli cracklib crypt cups curl curlwrappers doc dri dts dvb dvd encode exif faac faad fastcgi ffmpeg flac fortran gd gdbm geoip gif gpm graphviz gs gsm hal hash hdri iconv id3tag idn ieee1394 inifile ipv6 isdnlog jbig jpeg jpeg2k jpg json ldap libass libcaca libsamplerate live mad matroska memcache mmx modules mp3 mpeg mudflap multilib musepack mysql ncurses network nls nptl nptlonly ogg openmp pam pcntl pcre perl php png pppd python raw readline reflection rrdtool rtsp ruby sasl schroedinger session simplexml sndfile soap speex spl sqlite sse sse2 ssl ssse3 subversion svg sysfs taglib tcl tcpd theora tif tiff tk truetype twolame unicode vcdinfo vcdx vim-syntax vorbis wavpack wddx wmf x264 xml xmlreader xmlrpc xmlwriter xorg xpm xvid zip zlib" ALSA_CARDS="ens1371" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB" USERLAND="GNU" VIDEO_CARDS="vmware vesa vga" 
Comment 1 Wormo (RETIRED) gentoo-dev 2009-10-25 06:48:09 UTC
Please attach your full build log from failed compile of xdebug. Also, if you happen to have an old build log from when you succeeded in compiling xdebug before this attempt, that could be useful too.
Comment 2 Sebastian Luther (few) 2009-10-30 08:23:13 UTC
Please reopen when the requested information is present.