Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210944 - [fPIC] app-office/gnucash-2.2.3 doesn't compile
Summary: [fPIC] app-office/gnucash-2.2.3 doesn't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-21 07:47 UTC by Walter Meinl
Modified: 2008-03-05 08:08 UTC (History)
1 user (show)

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 Walter Meinl 2008-02-21 07:47:51 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/Transaction.o: relocation R_X86_64_PC32 against `mark_split' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[5]: *** [libgncmod-engine.la] Fehler 1
make[5]: Leaving directory `/var/tmp/portage/app-office/gnucash-2.2.3/work/gnucash-2.2.3/src/engine'
make[4]: *** [all-recursive] Fehler 1
make[4]: Leaving directory `/var/tmp/portage/app-office/gnucash-2.2.3/work/gnucash-2.2.3/src/engine'
make[3]: *** [all] Fehler 2
This is after an upgrade of gcc to 4.2.3 it compiled fine with gcc-4.2.2
Yesterday I installed dev-scheme/guile-1.8.4 and remerged dev-scheme/slib-3.1.5-r1 _before_ trying to remerge gnucash-2.2.3

Reproducible: Always




Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.2.3, glibc-2.7-r1, 2.6.24-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r2 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5000+
Timestamp of tree: Thu, 21 Feb 2008 06:16:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc6-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config /var/bind /var/service"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="de_DE"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="/usr/portage/local/layman/gnome /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage/"
USE="3dnow 3dnowext X aalib acl acpi alsa amd64 async avahi beagle berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cdrom chipcard chroot cli cracklib crypt cups curl dbus directfb dri dvb dvd dvdr dvdread eds emboss encode epiphany esd evo exif fam fb fbcon fbcondecor ffmpeg firefox flac flash font-server fortran gb gdbm gif gimp gimpprint glibc-omitfp glitz gmp gnome gnomedb gnutls gphoto2 gpm gstreamer gtk gtkhtml guile hal hbci howl-compat htmlhandbook iconv idn insecure-drivers isdnlog java javascript jpeg kerberos lcms ldap libcaca libgda libnotify lirc mad midi mikmod mmx mng mono mozpython mozsvg mp3 mpeg mudflap mysql nautilus ncurses nfs nls nptl nptlonly nsplugin odbc ogg opengl openmp oss pam pcre pdf perl pic pie png postscript pppd pwdb python qt3 qt3support qt4 quicktime readline realmedia reflection rtc ruby samba sasl scanner sdl session slang spell spl sqlite sqlite3 sse sse2 ssl startup-notification svg symlink tcl tcpd tga tiff tk truetype truetype-fonts type1-fonts unicode ups usb userlocales uudeview v4l v4l2 vditool vorbis wmf xine xinerama xml xorg xosd xprint xulrunner xv xvid zeroconf zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" DVB_CARDS="tda10046" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="atiusb" USERLAND="GNU" VIDEO_CARDS="radeon ati fbdev vesa vga fglrx v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mike Smith 2008-03-01 23:59:58 UTC
I have the same problem, on amd64, using gcc-4.1.2.

Emerging with -fPIC in CFLAGS is not effective.
Comment 2 Mike Smith 2008-03-04 03:01:58 UTC
This problem appears to be in gnucash bugzilla ( http://bugzilla.gnome.org/show_bug.cgi?id=512166 ) and was resolved in the 2.2.4 release, now in the tree.

The 2.2.4 ebuild builds and runs successfully for me (but requires MAKEOPTS="-j1").
Comment 3 Torsten Veller (RETIRED) gentoo-dev 2008-03-04 10:37:10 UTC
I've just added the patch to 2.2.3. Please test.
Comment 4 Walter Meinl 2008-03-04 21:46:46 UTC
(In reply to comment #3)
> I've just added the patch to 2.2.3. Please test.
> 
Yeah,worked with MAKEOPTS="-j1", thanks

(In reply to comment #2)
> This problem appears to be in gnucash bugzilla (
> http://bugzilla.gnome.org/show_bug.cgi?id=512166 ) and was resolved in the
> 2.2.4 release, now in the tree.
> 
> The 2.2.4 ebuild builds and runs successfully for me (but requires
> MAKEOPTS="-j1").
> 
Worked here even with MAKEOPTS="-j3", thanks

Comment 5 Torsten Veller (RETIRED) gentoo-dev 2008-03-05 08:08:58 UTC
(In reply to comment #2)
> The 2.2.4 ebuild builds and runs successfully for me (but requires
> MAKEOPTS="-j1").


(In reply to comment #4)
> (In reply to comment #3)
> > I've just added the patch to 2.2.3. Please test.
> > 
> Yeah,worked with MAKEOPTS="-j1", thanks

> > The 2.2.4 ebuild builds and runs successfully for me (but requires
> > MAKEOPTS="-j1").
> > 
> Worked here even with MAKEOPTS="-j3", thanks


Both gnucash-2.2.3 and gnucash-2.2.4 use "emake -j1".

So if you set a higher number of jobs in MAKEOPTS, it is replace by the ebuild. It shouldn't make a difference whether you set -j3 or -j1; and it shouldn't fail if it's not MAKEOPTS="-j1".