Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194241 - emerge sys-boot/aboot-1.0_pre20040408-r2 fails in (its internal) include/asm/system.h
Summary: emerge sys-boot/aboot-1.0_pre20040408-r2 fails in (its internal) include/asm/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: Alpha Linux
: High normal (vote)
Assignee: Alpha Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-30 04:06 UTC by Mark L Pappin
Modified: 2007-10-08 12:08 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 Mark L Pappin 2007-09-30 04:06:33 UTC
emerge -uND world works fine until building aboot, where it barfs with 2 errors about the content of a header file internal to that package

Also evident with sys-boot/aboot-1.0_pre20040408-r1


Reproducible: Always

Steps to Reproduce:
1. emerge --sync && emerge portage
2. emerge -uND system
3. emerge -uND world

Actual Results:  
make -C sdisklabel sdisklabel CPPFLAGS=" -I/data/var-tmp/portage/sys-boot/aboot-1.0_pre20040408-r2/work/aboot-1.0_pre20040408/include -I/usr/src/linux/include"
make[1]: Entering directory `/data/var-tmp/portage/sys-boot/aboot-1.0_pre20040408-r2/work/aboot-1.0_pre20040408/sdisklabel'
gcc -O2 -I../include -I/data/var-tmp/portage/sys-boot/aboot-1.0_pre20040408-r2/work/aboot-1.0_pre20040408/include -I/usr/src/linux/include -Wall -I/data/var-tmp/portage/sys-boot/aboot-1.0_pre20040408-r2/work/aboot-1.0_pre20040408/include -I/usr/src/linux/include  -c -o sdisklabel.o sdisklabel.c
sdisklabel.c: In function 'fixmagic':
sdisklabel.c:39: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness
gcc -O2 -I../include -I/data/var-tmp/portage/sys-boot/aboot-1.0_pre20040408-r2/work/aboot-1.0_pre20040408/include -I/usr/src/linux/include -Wall -I/data/var-tmp/portage/sys-boot/aboot-1.0_pre20040408-r2/work/aboot-1.0_pre20040408/include -I/usr/src/linux/include  -c -o library.o library.c
gcc -O2  sdisklabel.o library.o -o sdisklabel
make[1]: Leaving directory `/data/var-tmp/portage/sys-boot/aboot-1.0_pre20040408-r2/work/aboot-1.0_pre20040408/sdisklabel'
make -C sdisklabel swriteboot CPPFLAGS=" -I/data/var-tmp/portage/sys-boot/aboot-1.0_pre20040408-r2/work/aboot-1.0_pre20040408/include -I/usr/src/linux/include"
make[1]: Entering directory `/data/var-tmp/portage/sys-boot/aboot-1.0_pre20040408-r2/work/aboot-1.0_pre20040408/sdisklabel'
gcc -O2 -I../include -I/data/var-tmp/portage/sys-boot/aboot-1.0_pre20040408-r2/work/aboot-1.0_pre20040408/include -I/usr/src/linux/include -Wall -I/data/var-tmp/portage/sys-boot/aboot-1.0_pre20040408-r2/work/aboot-1.0_pre20040408/include -I/usr/src/linux/include  -c -o swriteboot.o swriteboot.c
distcc[18795] ERROR: compile /data/var-tmp/ccache/swriteboot.tmp.Don-John.18791.i on localhost failed
In file included from swriteboot.c:10:
../include/asm/system.h:676: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'unsigned'
../include/asm/system.h:797: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'unsigned'
make[1]: *** [swriteboot.o] Error 1
make[1]: Leaving directory `/data/var-tmp/portage/sys-boot/aboot-1.0_pre20040408-r2/work/aboot-1.0_pre20040408/sdisklabel'
make: *** [sdisklabel/swriteboot] Error 2
 *
 * ERROR: sys-boot/aboot-1.0_pre20040408-r2 failed.


Expected Results:  
build succeeded

# emerge --info
Portage 2.1.3.11 (default-linux/alpha/2006.1/server, gcc-4.1.2, glibc-2.3.6-r5, 2.6.22-gentoo-r6 alpha)
=================================================================
System uname: 2.6.22-gentoo-r6 alpha EV56
Timestamp of tree: Sat, 29 Sep 2007 01:20:01 +0000
distcc 2.18.3 alpha-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.3.6, 2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
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.17, 2.17.50.0.16
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="alpha ~alpha"
CBUILD="alpha-unknown-linux-gnu"
CFLAGS=" -O2 -mcpu=ev56 -mieee "
CHOST="alpha-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS=" -O2 -mcpu=ev56 -mieee "
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo http://public.planetmirror.com/pub/gentoo/ ftp://ftp.planetmirror.com/pub/gentoo/ http://ftp.swin.edu.au/gentoo ftp://ftp.swin.edu.au/gentoo http://mirror.pacific.net.au/linux/Gentoo http://mirror.isp.net.au/ftp/pub/gentoo/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ "
MAKEOPTS="-j1"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X alpha amavis apache2 bash-completion berkdb bitmap-fonts bittorrent branding bzip2 cairo ccache cdr cgi chroot cli cracklib crypt cups device-mapper disk-partition diskio dri fastcgi ffmpeg flatfile fortran gd gdbm gif glibc-omitfp gmp gs gtk iconv imagemagick imap ipv6 isdnlog jpeg jpeg2k ldap libwww logrotate mailwrapper mbox midi mikmod mng mpeg mudflap multislot multitarget multiuser mysql ncurses nfs nls nptl nptlonly offensive ogg opengl openmp pam pcre pdf perl png ppds pppd python quicktime readline reflection samba sdl session skey sndfile snmp sockets spell spl ssl svg szip tcl tcpd tetex tiff tk truetype truetype-fonts type1-fonts unicode vorbis xface xinetd xml xorg xpm zlib" 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" USERLAND="GNU" VIDEO_CARDS="vga fbdev dummy"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jose Luis Rivero (yoswink) (RETIRED) gentoo-dev 2007-10-04 09:44:29 UTC
Mark, can you update your glibc to the latest stable and see if the problem persist?
Comment 2 Mark L Pappin 2007-10-04 13:03:29 UTC
and the latest stable would be?

# emerge --sync && emerge portage
[time passes]

# emerge -p sys-libs/glibc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-libs/glibc-2.3.6-r5

# equery list sys-libs/glibc
[ Searching for package 'glibc' in 'sys-libs' among: ]
 * installed packages
[I--] [ ~] sys-libs/glibc-2.3.6-r5 (2.2)

(or, to put it another way: as far as I can tell I was already at the latest, and had been for some time, when I first encountered this problem)


On closer inspection, aboot pulls in its own copy of gentoo-headers-base:

...
>>> Unpacking source...
>>> Unpacking aboot-1.0_pre20040408.tar.bz2 to /data/var-tmp/portage/sys-boot/aboot-1.0_pre20040408-r2/work
>>> Unpacking gentoo-headers-base-2.6.22.tar.bz2 to /data/var-tmp/portage/sys-boot/aboot-1.0_pre20040408-r2/work
...

and it seems to be a header from this that the complaint is about.

This is the first of 3 emerge failures I'm seeing with 'emerge -uND world' - the others are bug 166782 (which is allegedly "FIXED", but the _latest_ glibc available for x86 (2.61) is not available for Alpha) and bug 194275; 'emerge --resume --skipfirst' gets past these to build the rest of the system happily.)
Comment 3 Raúl Porcel (RETIRED) gentoo-dev 2007-10-04 15:36:04 UTC
Upgrade your profile to 2007.0:

-Use 'eselect profile list'
-And choose a profile doing 'eselect profile set $X' $X being the number of the profile
-Then, do: 
env-update
source /etc/profile
emerge -avuDN world

You'll get glibc-2.5
Comment 4 Jose Luis Rivero (yoswink) (RETIRED) gentoo-dev 2007-10-05 07:53:14 UTC
Yup! you can also enjoy the great Gentoo official documentation:
http://www.gentoo.org/doc/en/gentoo-upgrading.xml

Comment 5 Mark L Pappin 2007-10-08 12:08:32 UTC
Not so hot.

# emerge -puvDN world

These are the packages that would be merged, in order:

Calculating world dependencies... done!
[ebuild     U ] sys-boot/aboot-1.0_pre20040408-r2 [1.0_pre20040408] 0 kB
[ebuild  NS   ] sys-devel/binutils-2.18  USE="multislot multitarget nls -test -vanilla" 0 kB
[ebuild     U ] sys-libs/pam-0.99.8.1-r1 [0.99.7.1] USE="cracklib%* nls (-audit) (-selinux) -vim-syntax" 0 kB
[ebuild     U ] sys-libs/glibc-2.6.1 [2.3.6-r5] USE="glibc-omitfp nls -debug% -glibc-compat20 (-hardened) (-multilib) -profile (-selinux) (-build%) (-erandom%) (-nptl%*) (-nptlonly%*)" 0 kB

(note that the 3 I'm having trouble with, that I continue to be told "glibc will fix it" [see bug 194275 and bug 166782], want to be built before glibc)

# emerge sys-libs/glibc
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) sys-libs/glibc-2.6.1 to /

[time passes]

 * ERROR: sys-libs/glibc-2.6.1 failed.


However, the following appears to have worked:

# emerge --unmerge =binutils-2.17
# emerge sys-libs/glibc
# emerge -uND world

So:
- profile 2006.1 culminates in a broken set of binutils/glibc/aboot/pam
- profile 2007.0 gets fixed versions
- but you need to leap the hurdle of a binutils/glibc argument