Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126272 - Cairo 1.0.2 Fails to build with an fPIC error
Summary: Cairo 1.0.2 Fails to build with an fPIC error
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High blocker (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-15 03:00 UTC by Alex Boag-Munroe
Modified: 2006-05-17 23:48 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 Alex Boag-Munroe 2006-03-15 03:00:24 UTC
Trying to emerge cairo and get this error:

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: ../pixman/src/.libs/libpixman.a(icrect.o): relocation R_X86_64_PC32 against `_cairo_pixman_color_to_pixel' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libcairo.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/cairo-1.0.2/work/cairo-1.0.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/cairo-1.0.2/work/cairo-1.0.2'
make: *** [all] Error 2

!!! ERROR: x11-libs/cairo-1.0.2 failed.
Call stack:
  ebuild.sh, line 1557:   Called dyn_compile
  ebuild.sh, line 966:   Called src_compile

!!! Compilation failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

Have tried adding -fPIC to my CFLAGs and get exactly the same error.

Portage 2.1_pre6-r3 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.4-r69, 2.6.16-rc3-nitro1 x86_64)
=================================================================
System uname: 2.6.16-rc3-nitro1 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
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="-march=athlon64 -O2 -pipe -msse3 -ftracer -fprefetch-loop-arrays"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3 -ftracer -fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer nodistlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://64.50.236.52/ ftp://128.61.127.9/pub/gentoo http://128.61.127.11/pub/gentoo http://gentoo.prz.rzeszow.pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 64bit X a52 aac aim alsa amarok atm avi berkdb bitmap-fonts bluetooth bzip2 cdinstall cdr cli crypt ctype cups custom-cflags dba dbus divx4linux dts dvb dvd dvdr dvdread edl emboss encode escreen expat exscalibar fastbuild ffmpeg flac foomaticdb force-cgi-redirect fortify fortran ftp gd gif glibc-omitfp gmail gmailtimestamps gpm gtk gtk2 imlib ipod jabber java jdk jpeg jre kde kde-meta kdeenablefinal kqemu lame lzw lzw-tiff mad malloccheck memlimit mng mp3 mpeg msn musepack musicbrainz ncurses nls nntp nptl nptlonly nvidia offensive ogg openal opengl oscar oss pam pcre pda pdflib perl pic png posix python qt quicktime readline real sdl session simplexml soap sockets spell spl sql ssl tcpd tiff tokenizer truetype truetype-fonts type1-fonts unicode usb v4l2 visualization vorbis xcomposite xine xinerama xml xmms xpm xscreensaver xsl xv xvid xvmc yahoo zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Alex Boag-Munroe 2006-03-15 03:05:34 UTC
Oh and if I try and use gcc4.1 I get this:

 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I. -march=athlon64 -O2 -pipe -msse3 -ftracer -fprefetch-loop-arrays -MT pixregion.lo -MD -MP -MF .deps/pixregion.Tpo -c pixregion.c  -fPIC -DPIC -o .libs/pixregion.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I. -march=athlon64 -O2 -pipe -msse3 -ftracer -fprefetch-loop-arrays -MT fbpict.lo -MD -MP -MF .deps/fbpict.Tpo -c fbpict.c  -fPIC -DPIC -o .libs/fbpict.o
{standard input}: Assembler messages:
{standard input}:3591: Error: symbol `_cairo_pixman_composite' is already defined
make[3]: *** [fbpict.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I. -march=athlon64 -O2 -pipe -msse3 -ftracer -fprefetch-loop-arrays -MT pixregion.lo -MD -MP -MF .deps/pixregion.Tpo -c pixregion.c -o pixregion.o >/dev/null 2>&1
make[3]: Leaving directory `/var/tmp/portage/cairo-1.0.2/work/cairo-1.0.2/pixman/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/cairo-1.0.2/work/cairo-1.0.2/pixman'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/cairo-1.0.2/work/cairo-1.0.2'
make: *** [all] Error 2

!!! ERROR: x11-libs/cairo-1.0.2 failed.
Call stack:
  ebuild.sh, line 1557:   Called dyn_compile
  ebuild.sh, line 966:   Called src_compile

!!! Compilation failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 2 Steev Klimaszewski (RETIRED) gentoo-dev 2006-05-17 22:50:10 UTC
Do you still experience this with cairo 1.0.4 ?
Comment 3 Alex Boag-Munroe 2006-05-17 23:48:30 UTC
That'd be a no, closing bug.