When i try to "emerge --update world" (using ~x86), it breaks off when compiling klibc-1.1.1 (which is a dependancy of splashutils 1.1.9.10). Error below: [code] gcc -Wp,-MT,vsnprintf.o,-MD,./.vsnprintf.o.d -march=i386 -Os -g -fomit-frame-pointer -falign-functions=0 -falign-jumps=0 -falign-loops=0 -m32 -D__KLIBC__=1 -D__KLIBC_MINOR__=1 -nostdlib -nostdinc -iwithprefix include -I../include/arch/i386 -I../include/bits32 -I../include -I/usr/src/linux/include -I/usr/src/linux/include2 -I../linux/include -I./zlib -I./zlib -mregparm=3 -D_REGPARM=3 -DWITH_ERRLIST -W -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Winline -DDYNAMIC_CRC_TABLE -c -o vsnprintf.o vsnprintf.c In file included from vsnprintf.c:8: ../include/stdarg.h:9:25: stdarg.h: No such file or directory In file included from ../include/stdio.h:9, from vsnprintf.c:13: ../include/stdarg.h:9:25: stdarg.h: No such file or directory In file included from vsnprintf.c:13: ../include/stdio.h:100: error: syntax error before "va_list" ../include/stdio.h:100: warning: function declaration isn't a prototype ../include/stdio.h:102: error: syntax error before "va_list" ../include/stdio.h:102: warning: function declaration isn't a prototype ../include/stdio.h:104: error: syntax error before "va_list" ../include/stdio.h:104: warning: function declaration isn't a prototype ../include/stdio.h:106: error: syntax error before "va_list" ../include/stdio.h:106: warning: function declaration isn't a prototype ../include/stdio.h:108: error: syntax error before "va_list" ../include/stdio.h:108: warning: function declaration isn't a prototype ../include/stdio.h:119: error: syntax error before "va_list" ../include/stdio.h:119: warning: function declaration isn't a prototype vsnprintf.c:162: error: syntax error before "va_list" vsnprintf.c: In function `vsnprintf': vsnprintf.c:164: error: `format' undeclared (first use in this function) vsnprintf.c:164: error: (Each undeclared identifier is reported only once vsnprintf.c:164: error: for each function it appears in.) vsnprintf.c:166: error: `buffer' undeclared (first use in this function) vsnprintf.c:193: error: `n' undeclared (first use in this function) vsnprintf.c:228: warning: implicit declaration of function `va_arg' vsnprintf.c:228: error: `ap' undeclared (first use in this function) vsnprintf.c:228: error: syntax error before "int" vsnprintf.c:246: error: syntax error before "int" vsnprintf.c:293: error: syntax error before "void" vsnprintf.c:303: error: syntax error before "signed" vsnprintf.c:306: error: syntax error before "signed" vsnprintf.c:309: error: syntax error before "signed" vsnprintf.c:312: error: syntax error before "signed" vsnprintf.c:315: error: syntax error before "signed" vsnprintf.c:335: error: syntax error before "unsigned" vsnprintf.c:338: error: syntax error before "unsigned" vsnprintf.c:341: error: syntax error before "unsigned" vsnprintf.c:344: error: syntax error before "unsigned" vsnprintf.c:347: error: syntax error before "unsigned" vsnprintf.c:358: error: syntax error before "int" vsnprintf.c:363: error: syntax error before "const" vsnprintf.c:400: error: syntax error before "signed" vsnprintf.c:403: error: syntax error before "signed" vsnprintf.c:406: error: syntax error before "signed" vsnprintf.c:409: error: syntax error before "signed" vsnprintf.c:412: error: syntax error before "signed" make[1]: *** [vsnprintf.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/klibc-1.1.1/work/klibc-1.1.1/klibc' make: *** [all] Error 2 [/code] Reproducible: Always Steps to Reproduce: 1. emerge klibc 2. 3. Actual Results: Compilation fails, emerge crashes Expected Results: should have compiled fine using ~x86
emerge --info missing...
Portage 2.0.53 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r3, 2.6.14-gentoo-r3 i686) ================================================================= System uname: 2.6.14-gentoo-r3 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.12.0_pre11 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.15 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20-r1 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.scarlet-internet.nl/pub/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X aac aalib alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 cr crypt cups curl directfb divx4linux dts dvd dvdread eds emboss encode esd exif expat fam fbcon ffmpeg flac foomaticdb fortran gdbm gif glut gnome gpm gstreamer gtk gtk2 idn imagemagick imlib ipv6 java jpeg lame lcms libcaca libg++ libwww live mad matroska mikmod mjpeg mmx mmxext mng motif mozilla mp3 mpeg ncurses nls nvidia ogg oggvorbis opengl oss pam pdflib perl png ppds python quicktime readline real sdl spell sse ssl tcltk tcpd theora tiff truetype truetype-fonts type1-fonts udev usb vcd vidix vorbis vorbix win32codecs xanim xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
stdarg.h should be part of gcc, so I am going to blame gcc for now.
It's not that stdarg.h isn't on my system.. it is. Many other applications wouldn't compile without it i guess.
When i copied stdarg.h to one of the include folders it compiled fine. Emerge should do it automatically though.