Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193617 - sys-fs/jfsutils: build fails on alpha when using -O1 or higher on gcc-4.x
Summary: sys-fs/jfsutils: build fails on alpha when using -O1 or higher on gcc-4.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: Alpha Linux
: High normal (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-24 12:05 UTC by Stefaan De Roeck (RETIRED)
Modified: 2007-11-22 23:39 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 Stefaan De Roeck (RETIRED) gentoo-dev 2007-09-24 12:05:53 UTC
with "relocation truncated to fit: GPREL16 against symbol `buffer' defined in COMMON section"

all tests with sys-fs/jfsutils-1.1.12, but retried some with sys-fs/jfsutils-1.1.11 giving the same results

gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libfs   -Wall -Wstrict-prototypes -fno-strict-aliasing -O1 -g -MT helpers.o -MD -MP -MF .deps/helpers.Tpo -c -o helpers.o helpers.c
mv -f .deps/helpers.Tpo .deps/helpers.Po
gcc -Wall -Wstrict-prototypes -fno-strict-aliasing -O1 -g   -o jfs_logdump logdump.o helpers.o ../libfs/libfs.a -luuid
../libfs/libfs.a(log_map.o): In function `bread':
/var/tmp/portage/sys-fs/jfsutils-1.1.12/work/jfsutils-1.1.12/libfs/log_map.c:1910: relocation truncated to fit: GPREL16 against symbol `buffer' defined in COMMON section in ../libfs/libfs.a(log_dump.o)
collect2: ld returned 1 exit status
make[2]: *** [jfs_logdump] Error 1
make[2]: Leaving directory `/home/extra/var/tmp/portage/sys-fs/jfsutils-1.1.12/work/jfsutils-1.1.12/logdump'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/extra/var/tmp/portage/sys-fs/jfsutils-1.1.12/work/jfsutils-1.1.12'
make: *** [all] Error 2

tried with gcc-4.1.2 and binutils-2.17.50.0.16, afterwards upgraded to binutils-2.18, and finally switched to gcc-4.2.0.  problem persists in any of these three configurations. 

tried "-mlarge-data", but it didn't help (and shouldn't have, as it's the default setting), neither did "-fPIC" (never know)

I downgraded further to gcc-3.4.6, binutils-2.16.1, to no avail.  

I have a working sys-fs/jfsutils-1.1.11 on my system, so it has worked in the past... no clue...

Portage 2.1.3.9 (default-linux/alpha/2006.1/server, gcc-4.1.2, glibc-2.3.6-r5, 2.6.21-gentoo-r4 alpha)
=================================================================
System uname: 2.6.21-gentoo-r4 alpha EV56
Timestamp of tree: Sat, 22 Sep 2007 20:50:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-lang/python:     2.3.5-r3, 2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1
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
sys-devel/binutils:  2.18
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="alpha"
CBUILD="alpha-unknown-linux-gnu"
CFLAGS="-mieee -O2 -mcpu=ev56"
CHOST="alpha-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-mieee -O2 -mcpu=ev56"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch usersandbox"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://ftp.belnet.be/gentoo-portage"
USE="alpha apache2 bash-completion berkdb bitmap-fonts bzip2 cli cracklib crypt cups dri fortran gdbm iconv ipv6 isdnlog ldap mailwrapper midi motif mudflap ncurses nls nptl nptlonly openmp pam pcre perl ppds pppd python readline reflection session snmp spl ssl tcpd truetype truetype-fonts type1-fonts unicode xml xorg zlib" ALSA_CARDS="ali5451 als4000 bt87x ca0106 cmipci emu10k1 ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 maestro3 trident usb-audio via82xx ymfpci" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Raúl Porcel (RETIRED) gentoo-dev 2007-09-26 13:45:18 UTC
Add this to the ebuild:

	# It doesn't compile on alpha without this LDFLAGS
	use alpha && append-ldflags "-Wl,--no-relax"

Compiles fine for me using that
Comment 2 Stefaan De Roeck (RETIRED) gentoo-dev 2007-11-22 23:35:29 UTC
Taking this one...
Comment 3 Stefaan De Roeck (RETIRED) gentoo-dev 2007-11-22 23:39:19 UTC
Fixed in sys-fs/jfsutils-1.1.12