Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305023 - dev-db/sqlite-3.6.22-r2: requires compile with -fPIC
Summary: dev-db/sqlite-3.6.22-r2: requires compile with -fPIC
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-14 05:59 UTC by Hoi
Modified: 2010-02-20 16:32 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 Hoi 2010-02-14 05:59:14 UTC
Trying to compile latest version of sqlite returns error against .bss cannot be used when making a shared object; recompie with -fPIC

Reproducible: Always

Steps to Reproduce:
1.emerge -va sqlite
2.
3.

Actual Results:  
relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
.libs/sqlite3.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libsqlite3.la] Error 1
 * ERROR: dev-db/sqlite-3.6.22-r2 failed:
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line  48:  Called src_compile
 *   environment, line 3492:  Called die
 * The specific snippet of code:
 *       emake TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" || die "emake failed"


Expected Results:  
Compiles successfully

Portage 2.2_rc62 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.31-sabayon x86_64)                                                                                            
=================================================================                               
System uname: Linux-2.6.31-sabayon-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-gentoo-2.0.1                                                                                         
Timestamp of tree: Sun, 14 Feb 2010 05:30:01 +0000                                              
ccache version 2.4 [enabled]                                                                    
app-shells/bash:     4.0_p37                                                                    
dev-java/java-config: 1.3.7-r1, 2.1.10                                                          
dev-lang/python:     2.5.4-r4, 2.6.4, 3.1.1-r1                                                  
dev-util/ccache:     2.4-r8                                                                     
dev-util/cmake:      2.8.0-r1                                                                   
sys-apps/baselayout: 2.0.1                                                                      
sys-apps/openrc:     0.6.0-r1                                                                   
sys-apps/sandbox:    2.2                                                                        
sys-devel/autoconf:  2.13, 2.65                                                                 
sys-devel/automake:  1.7.9-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1                               
sys-devel/binutils:  2.20                                                                       
sys-devel/gcc:       4.4.2                                                                      
sys-devel/gcc-config: 1.4.1                                                                     
sys-devel/libtool:   2.2.6b                                                                     
virtual/os-headers:  2.6.32                                                                     
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                  
ACCEPT_LICENSE="*"                                                                              
CBUILD="x86_64-pc-linux-gnu"                                                                    
CFLAGS="-O2 -march=core2 -pipe -msse4.1"                                                        
CHOST="x86_64-pc-linux-gnu"                                                                     
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/share/config/kdm /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"                                       
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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/revdep-rebuild /etc/sandbox.d /etc/skel /etc/splash /etc/terminfo"                                                                                           
CXXFLAGS="-O2 -march=core2 -pipe -msse4.1"                                                      
DISTDIR="/usr/portage/distfiles"                                                                
FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer news parallel-fetch prelink preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"  
GENTOO_MIRRORS="http://distfiles.gentoo.org"                                                    
LANG="en_US.UTF-8"                                                                              
LC_ALL="en_US.UTF-8"                                                                            
LDFLAGS="-Wl,-O1"                                                                               
LINGUAS="en zh ja ko zh_CN zh_HK"                                                               
MAKEOPTS="-s -j6"                                                                               
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/kde"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 autoipd avahi berkdb bluetooth branding bzip2 cairo cdr cjk cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds embedded emboss emerald encode evo extras faac faad fam firefox flac fortran gdbm gif gnome gnutls gpm gstreamer gtk hal iconv icu innodb ipv6 jpeg kde lame lcms ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly nsplugin ntpl ogg opengl openmp pam pcre pdf perl php png ppds pppd pulseaudio python qt3support qt4 quicktime readline reflection sdl secure-delete semantic-desktop session soundex spell spl sql sse sse2 ssl startup-notification svg sysfs tcpd threads thunar tiff truetype unicode usb vorbis webkit x264 xcb xml xml2 xorg xulrunner xv xvid zeroconf zlib" ALSA_CARDS="usb-audio" 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" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en zh ja ko zh_CN zh_HK" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-02-14 10:17:46 UTC
> ccache version 2.4 [enabled]                          

Try with ccache disabled (like you should do always). Thanks