Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91783 - sys-libs/db-4.2.52_p2 fails to compile without -fPIC in CFLAGS
Summary: sys-libs/db-4.2.52_p2 fails to compile without -fPIC in CFLAGS
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-07 03:05 UTC by Matan Peled
Modified: 2005-06-02 01:33 UTC (History)
0 users

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


Attachments
Build log. (db.log,129.43 KB, text/plain)
2005-05-07 03:06 UTC, Matan Peled
Details
Config log. (config.log,76.26 KB, text/plain)
2005-05-07 03:10 UTC, Matan Peled
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matan Peled 2005-05-07 03:05:41 UTC
Errors out complaining. If I add -fPIC to my CFLAGS in make.conf it works fine.

Emerge info:
Gentoo Base System version 1.6.11
Portage 2.0.51.21-r1 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.10-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.10-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3200+
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1, 2.4-r3
sys-apps/sandbox:    1.2.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distcc distlocks sandbox strict"
GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/portage /usr/local/overlays/lila /usr/local/overlays/openoffice"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X aalib acpi alsa bash-completion berkdb bidi bitmap-fonts boundschecking caps cddb cdr crypt cups curl directfb dvd dvdr dvdread encode esd fam flac font-server foomaticdb fortran ggi gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal icq ieee1394 imagemagick imlib ipv6 jack jp2 jpeg kdexdeltas lzw lzw-tiff mad maildir mp3 ncurses nls nptl ogg oggvorbis opengl oscar pcre perl png python readline samba sdl slang spell ssl sysfs tcpd threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis xml2 xpm xrandr xscreensaver xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS
Comment 1 Matan Peled 2005-05-07 03:06:30 UTC
Created attachment 58263 [details]
Build log.
Comment 2 Matan Peled 2005-05-07 03:10:36 UTC
Created attachment 58265 [details]
Config log.
Comment 3 Danny van Dyk (RETIRED) gentoo-dev 2005-05-07 15:41:34 UTC
From you compile log:
x86_64-pc-linux-gnu-g++ -c -I. -I../dist/.. -D_GNU_SOURCE -D_REENTRANT -march=athlon64 -O2 -pipe -fhandle-exceptions ../dist/../cxx/cxx_db.cpp  -DPIC

That's all, looks odd. -DPIC is used to declare: we us PIC, but the -fPIC is missing. 8-|

We'll have a look...
Comment 4 Danny van Dyk (RETIRED) gentoo-dev 2005-05-11 12:50:12 UTC
Can't reproduce this.

Call to Archtesters: Can you have a look please ?
Comment 5 Simon Stelling (RETIRED) gentoo-dev 2005-05-21 03:06:21 UTC
can't reproduce either, your config log also looks fine...
Comment 6 Rodolphe Rocca 2005-06-02 01:33:13 UTC
I have this with gcc 3.4.4. I did not with gcc 3.4.3-r1.