Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge binutils-2.17 fails on alpha[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
mjrosenb
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2006
Posts: 115
Location: CMU

PostPosted: Sun Feb 11, 2007 8:32 am    Post subject: emerge binutils-2.17 fails on alpha[SOLVED] Reply with quote

it dies on
Code:

gcc -DHAVE_CONFIG_H -I. -I.././bfd -I. -DTRAD_CORE -I. -I.././bfd -I.././bfd/../include -I.././bfd/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c trad-core.c -o trad-core.o
trad-core.c: In function `trad_unix_core_file_p':
trad-core.c:116: error: `PAGE_SIZE' undeclared (first use in this function)
trad-core.c:116: error: (Each undeclared identifier is reported only once
trad-core.c:116: error: for each function it appears in.)
make[4]: *** [trad-core.lo] Error 1

a bit of searching through the code has revealed that this is due to macro expansion of
Code:

if ((unsigned long) (NBPG * (UPAGES + u.u_dsize

(that's the whole line. you probably don't want to see the following lines)
namely, the NBPG macro has been defined as (well duh)
Code:

#define NBPG PAGE_SIZE

in the file
binutils-2.17/bfd/hosts/i386bsd.h

which shouldn't be included for this machine seeing that it's an alpha.
my make.conf is
Code:

CFLAGS="-mieee -pipe -O3 -mcpu=ev56 -fgcse-las -fgcse-sm"
CHOST="alpha-unknown-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
ACCEPT_KEYWORDS="~alpha"
USE="-* nosendmail emacs vim ncurses nptl nptlonly pam readline ssl python perl objc fortran"

I can imagine a number of ways that this could be entirely my fault. The one that sticks out the most is that I have /usr/portage mounted through nfs from my x86 server. I'm pretty sure that the portage tree shouldn't matter for this, but I don't really know.
output of emerge --info
Code:

0;root@localhost:~localhost ~ # emerge --info
Portage 2.1.2-r9 (default-linux/alpha/2006.1, gcc-3.4.6, glibc-2.3.5-r3, 2.6.19-gentoo-r6 alpha)
=================================================================
System uname: 2.6.19-gentoo-r6 alpha EV56
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 11 Feb 2007 04:20:01 +0000
distcc 2.18.3 alpha-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
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.15.92.0.2-r10
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS="alpha ~alpha"
AUTOCLEAN="yes"
CBUILD="alpha-unknown-linux-gnu"
CFLAGS="-mieee -pipe -O3 -mcpu=ev56 -fgcse-las -fgcse-sm"
CHOST="alpha-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-mieee -pipe -O3 -mcpu=ev56 -fgcse-las -fgcse-sm"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://192.168.0.2/gentoo-portage"
USE="alpha emacs fortran ncurses nosendmail nptl nptlonly objc pam perl python readline ssl vim" ALSA_CARDS="ali5451 als4000 bt87x ca0106 cmipci emu10k1 ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 mae"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


_________________
I'll be mjrosenb on #${COMPUTER_RELATED_SUBJECT}
1x i386 laptop w/ Gentoo
4x i386 desktop w/ Gentoo
2x dual proc i386 w/dragonfly bsd
1x x86-64 desktop w/ Gentoo
1x i386 desktop w/ FreeBSD
1x alpha workstation w/ Gentoo
looking for more


Last edited by mjrosenb on Fri Feb 16, 2007 8:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
Kloeri
Retired Dev
Retired Dev


Joined: 02 Sep 2002
Posts: 144

PostPosted: Mon Feb 12, 2007 12:00 am    Post subject: Reply with quote

I've masked linux-headers-2.6.19+ on Alpha as that seems to be the culprit. I'll unmask them again when the problems have been solved.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum