Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
shadow on ppc64: strange build failure [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Fri Jan 26, 2007 4:02 pm    Post subject: shadow on ppc64: strange build failure [solved] Reply with quote

Hi,

I am attempting to upgrade shadow from 4.0.15-r2 to 4.0.18.1 (as part of a nurmal update command). The build fails as follows:
Code:
if powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../libmisc -DLOCALEDIR=\"/usr/share/locale\"   -O2 -mcpu=G5 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -MT chgpasswd.o -MD -MP -MF ".deps/chgpasswd.Tpo" -c -o chgpasswd.o chgpasswd.c; \
        then mv -f ".deps/chgpasswd.Tpo" ".deps/chgpasswd.Po"; else rm -f ".deps/chgpasswd.Tpo"; exit 1; fi
In file included from /usr/include/asm/elf.h:8,
                 from /usr/include/asm/sigcontext.h:13,
                 from /usr/include/bits/sigcontext.h:28,
                 from /usr/include/signal.h:333,
                 from /usr/include/sys/wait.h:31,
                 from ../lib/defines.h:53,
                 from chgpasswd.c:42:
/usr/include/asm/types.h:35: error: duplicate 'unsigned'
/usr/include/asm/types.h:35: error: two or more data types in declaration specifiers
/usr/include/asm/types.h:41: error: duplicate 'unsigned'
/usr/include/asm/types.h:41: error: two or more data types in declaration specifiers
make[2]: *** [chgpasswd.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/usr/portage-misc/tmp/portage/shadow-4.0.18.1/work/shadow-4.0.18.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/portage-misc/tmp/portage/shadow-4.0.18.1/work/shadow-4.0.18.1'
make: *** [all] Error 2

!!! ERROR: sys-apps/shadow-4.0.18.1 failed.

Now if I take a look at the offending header (/usr/include/asm/types.h) I only see normal typedefs around the problematic lines. The actual two lines on which the errors are signalled are
Code:
line 35:   typedef unsigned char __u8;
line 41:   typedef unsigned int __u32;

The file from which the inclusion originates (chgpasswd.c) just includes defines.h, which in turn includes sys/wait.h. I have not traced the problem any further since everything else builds just fine so the problem is likely to be in the shadow package.

Any pointers to the cause or to a solution are appreciated.

Code:
< turing:~ > emerge --info
Portage 2.1.1-r2 (default-linux/ppc64/2005.0, gcc-4.1.1, glibc-2.5-r0, 2.6.17-gentoo-r4 ppc64)
=================================================================
System uname: 2.6.17-gentoo-r4 ppc64 PPC970, altivec supported
Gentoo Base System version 1.12.8
Last Sync: Fri, 26 Jan 2007 08:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="ppc64"
AUTOCLEAN="yes"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G5 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -mcpu=G5 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-O1"
MAKEOPTS="-j3"
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="/usr/portage-misc/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc64 X Xaw3d a52 aac aalib alsa alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol altivec apache2 audiofile berkdb bitmap-fonts bonobo bzip2 cdr cli cracklib crypt cups curl dbus dlloader dri dvdr elibc_glibc emacs emacs-w3 emboss encode esd exif fbcon flac fortran gif gimp gnome gpm gstreamer gtk gtk2 gtkhtml hal iconv imagemagick imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_void isdnlog jack java jpeg kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text lesstif lzw-tiff mad mbox mng motif mozbranding mp3 mpeg ncurses nls nptl nptlonly offensive ogg oggvorbis opengl oss pam pam_chroot pam_timestamp pcre pdf pdflib perl php png pppd python quicktime readline reflection sasl scanner sdl session sndfile spell spl ssl svg tcltk tcpd tetex theora tiff truetype truetype-fonts trusted type1-fonts unicode usb userland_GNU video_cards_dummy video_cards_fbdev video_cards_radeon videos vorbis wmf xinerama xml xml2 xorg xprint xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

_________________
Quid latine dictum sit altum videtur


Last edited by bruda on Thu Feb 01, 2007 2:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Thu Feb 01, 2007 2:09 pm    Post subject: Reply with quote

Just a FYI, with the latest update today shadow-4.0.18.1 finally got to build fine. I am not sure who was the culprit earlier.
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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