>>> Unpacking source... >>> Unpacking ghc-bin-6.8.2-x86.tbz2 to /var/tmp/portage/dev-lang/ghc-6.8.2/work bzip2: /var/tmp/portage/dev-lang/ghc-6.8.2/distdir/ghc-bin-6.8.2-x86.tbz2: trailing garbage after EOF ignored >>> Unpacking ghc-6.8.2-src.tar.bz2 to /var/tmp/portage/dev-lang/ghc-6.8.2/work >>> Source unpacked in /var/tmp/portage/dev-lang/ghc-6.8.2/work >>> Compiling source in /var/tmp/portage/dev-lang/ghc-6.8.2/work/ghc-6.8.2 ... * econf: updating ghc-6.8.2/libraries/Cabal/tests/HSQL/config.guess with /usr/share/gnuconfig/config.guess * econf: updating ghc-6.8.2/libraries/Cabal/tests/HSQL/config.sub with /usr/share/gnuconfig/config.sub * econf: updating ghc-6.8.2/config.guess with /usr/share/gnuconfig/config.guess * econf: updating ghc-6.8.2/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Canonicalised to: i386-unknown-linux checking for ghc... /var/tmp/portage/dev-lang/ghc-6.8.2/work/usr/bin/ghc checking version of ghc... 6.8.2 checking for ghc-pkg matching /var/tmp/portage/dev-lang/ghc-6.8.2/work/usr/bin/ghc... /var/tmp/portage/dev-lang/ghc-6.8.2/work/usr/bin/ghc-pkg checking whether ghc has readline package... yes checking for nhc... no checking for nhc98... no checking for hbc... no checking for ld... /usr/bin/ld checking for path to top of build tree... /var/tmp/portage/dev-lang/ghc-6.8.2/work/ghc-6.8.2 checking whether #! works in shell scripts... yes checking for perl... /usr/bin/perl checking if your perl works in shell scripts... yes checking for python... /usr/bin/python checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed checking version of gcc... 4.3.2 checking for extra options to pass gcc when compiling via C... -fwrapv -mno-omit-leaf-frame-pointer -fno-toplevel-reorder checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E checking whether i686-pc-linux-gnu-gcc accepts -mno-cygwin... no checking for a working context diff... diff -C 1 checking for find... /usr/bin/find checking for sort... /bin/sort checking for a BSD-compatible install... /usr/bin/install -c checking for ar... /usr/bin/ar checking whether /usr/bin/ar is GNU ar... yes checking for ar arguments... q checking whether ranlib is needed... no checking whether /usr/bin/ar supports -input... no checking whether ln -s works... yes checking for sed... /bin/sed checking for time... no checking for gtar... no checking for tar... /bin/tar checking for HsColour... no checking for xmllint... /usr/bin/xmllint checking for DocBook DTD... ok checking for xsltproc... /usr/bin/xsltproc checking for DocBook XSL stylesheet directory... /usr/share/sgml/docbook/xsl-stylesheets checking for fop... no checking for fop.sh... no checking for fop.sh... no checking for xmltex... /usr/bin/xmltex checking for dvips... /usr/bin/dvips checking for pdfxmltex... /usr/bin/pdfxmltex checking for ghc-pkg matching /var/tmp/portage/dev-lang/ghc-6.8.2/work/usr/bin/ghc... (cached) /var/tmp/portage/dev-lang/ghc-6.8.2/work/usr/bin/ghc-pkg checking for happy... no checking for version of happy... checking for haddock... /usr/bin/haddock checking for alex... no checking for version of alex... checking for egrep... grep -E checking for ANSI C header files... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for _LARGE_FILES value needed for large files... no checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking bfd.h usability... yes checking bfd.h presence... yes checking for bfd.h... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking dirent.h usability... yes checking dirent.h presence... yes checking for dirent.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking grp.h usability... yes checking grp.h presence... yes checking for grp.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking nlist.h usability... no checking nlist.h presence... no checking for nlist.h... no checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/timeb.h usability... yes checking sys/timeb.h presence... yes checking for sys/timeb.h... yes checking sys/timers.h usability... no checking sys/timers.h presence... no checking for sys/timers.h... no checking sys/times.h usability... yes checking sys/times.h presence... yes checking for sys/times.h... yes checking sys/utsname.h usability... yes checking sys/utsname.h presence... yes checking for sys/utsname.h... yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking utime.h usability... yes checking utime.h presence... yes checking for utime.h... yes checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking winsock.h usability... no checking winsock.h presence... no checking for winsock.h... no checking readline/readline.h usability... yes checking readline/readline.h presence... yes checking for readline/readline.h... yes checking readline/history.h usability... yes checking readline/history.h presence... yes checking for readline/history.h... yes checking whether time.h and sys/time.h may both be included... yes checking for long long... yes checking for char... yes checking size of char... 1 checking for double... yes checking size of double... 8 checking for float... yes checking size of float... 4 checking for int... yes checking size of int... 4 checking for long... yes checking size of long... 4 checking for long long... (cached) yes checking size of long long... 8 checking for short... yes checking size of short... 2 checking for unsigned char... yes checking size of unsigned char... 1 checking for unsigned int... yes checking size of unsigned int... 4 checking for unsigned long... yes checking size of unsigned long... 4 checking for unsigned long long... yes checking size of unsigned long long... 8 checking for unsigned short... yes checking size of unsigned short... 2 checking for void *... yes checking size of void *... 4 checking for char... (cached) yes checking alignment of char... 1 checking for double... (cached) yes checking alignment of double... 4 checking for float... (cached) yes checking alignment of float... 4 checking for int... (cached) yes checking alignment of int... 4 checking for long... (cached) yes checking alignment of long... 4 checking for long long... (cached) yes checking alignment of long long... 4 checking for short... (cached) yes checking alignment of short... 2 checking for unsigned char... (cached) yes checking alignment of unsigned char... 1 checking for unsigned int... (cached) yes checking alignment of unsigned int... 4 checking for unsigned long... (cached) yes checking alignment of unsigned long... 4 checking for unsigned long long... (cached) yes checking alignment of unsigned long long... 4 checking for unsigned short... (cached) yes checking alignment of unsigned short... 2 checking for void *... (cached) yes checking alignment of void *... 4 checking for WinExec... no checking for GetModuleFileName... no checking return type of signal handlers... void checking for getclock... no checking for getrusage... yes checking for gettimeofday... yes checking for setitimer... yes checking for siginterrupt... yes checking for sysconf... yes checking for times... yes checking for ctime_r... yes checking whether ctime_r is declared... yes checking for getpagesize... yes checking for __gmpz_fdiv_qr in -lgmp... yes checking for closedir in -lmingwex... no checking for xmalloc in -liberty... yes checking for bfd_init in -lbfd... yes checking for atan... no checking for atan in -lm... yes checking for dlopen in -ldl... yes checking for working alloca.h... yes checking for alloca... yes checking for pid_t... yes checking for unistd.h... (cached) yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for an ANSI C-conforming const... yes checking whether byte ordering is bigendian... no checking whether float word order is big endian... no checking for nlist in -lelf... no checking leading underscore in symbol names... no checking whether ld understands -x... yes checking whether ld is GNU ld... yes checking for .subsections_via_symbols... no checking for GNU non-executable stack support... yes checking for clock_gettime in -lrt... yes checking for clock_gettime... yes checking for timer_create... yes checking for timer_settime... yes checking for a working timer_create(CLOCK_REALTIME)... yes checking for printf$LDBLStub... no checking for pkg-config... /usr/bin/pkg-config checking for PAPI_library_init in -lpapi... no checking papi.h usability... no checking papi.h presence... no checking for papi.h... no configure: creating ./config.status config.status: creating mk/config.mk config.status: creating ghc.spec config.status: creating extra-gcc-opts config.status: creating docs/users_guide/ug-book.xml config.status: creating mk/config.h config.status: executing mk/stamp-h commands make -j2 all make -C utils/mkdependC boot make[1]: Entering directory `/var/tmp/portage/dev-lang/ghc-6.8.2/work/ghc-6.8.2/utils/mkdependC' rm -f -f mkdependC echo '#!/usr/bin/perl' >> mkdependC echo '$DEFAULT_TMPDIR = "/tmp";' >> mkdependC echo '$CPP = "i686-pc-linux-gnu-gcc -E ";' >> mkdependC echo '$BUILDPLATFORM = "i386-unknown-linux";' >> mkdependC cat mkdependC.prl >> mkdependC chmod +x mkdependC make[1]: Leaving directory `/var/tmp/portage/dev-lang/ghc-6.8.2/work/ghc-6.8.2/utils/mkdependC' ------------------------------------------------------------------------ == make boot -r --jobserver-fds=3,4 -j; in /var/tmp/portage/dev-lang/ghc-6.8.2/work/ghc-6.8.2/gmp ------------------------------------------------------------------------ ------------------------------------------------------------------------ == make boot -r --jobserver-fds=3,4 -j; in /var/tmp/portage/dev-lang/ghc-6.8.2/work/ghc-6.8.2/includes ------------------------------------------------------------------------ Creating ghcautoconf.h... Creating ghcplatform.h... Done. Done. ../utils/mkdependC/mkdependC -f .depend -- -O -march=pentium-m -O2 -pipe -Wa,--noexecstack -DTABLES_NEXT_TO_CODE -I. -I../rts -- mkDerivedConstants.c gcc -O -march=pentium-m -O2 -pipe -Wa,--noexecstack -DTABLES_NEXT_TO_CODE -I. -I../rts -c mkDerivedConstants.c -o mkDerivedConstants.o In file included from Regs.h:28, from Stg.h:150, from Rts.h:19, from mkDerivedConstants.c:23: /usr/include/gmp.h:524: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:524: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:524: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:524: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:529: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:529: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:529: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:529: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:606: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:789: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:789: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:789: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:886: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:886: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:886: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:1074: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__gmpz_size’ /usr/include/gmp.h:1078: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__gmpz_sizeinbase’ /usr/include/gmp.h:1335: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:1426: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__gmpf_size’ /usr/include/gmp.h:1515: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__gmpn_get_str’ /usr/include/gmp.h:1567: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:1768: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__gmpz_size’ gcc -o mkGHCConstants.o -O -march=pentium-m -O2 -pipe -Wa,--noexecstack -DTABLES_NEXT_TO_CODE -I. -I../rts -c mkDerivedConstants.c -DGEN_HASKELL In file included from Regs.h:28, from Stg.h:150, from Rts.h:19, from mkDerivedConstants.c:23: /usr/include/gmp.h:524: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:524: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:524: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:524: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:529: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:529: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:529: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:529: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:606: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:789: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:789: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:789: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:886: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:886: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:886: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:1074: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__gmpz_size’ /usr/include/gmp.h:1078: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__gmpz_sizeinbase’ /usr/include/gmp.h:1335: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:1426: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__gmpf_size’ /usr/include/gmp.h:1515: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__gmpn_get_str’ /usr/include/gmp.h:1567: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gmp.h:1768: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__gmpz_size’In file included from Rts.h:142, from mkDerivedConstants.c:23: /usr/include/stdlib.h:140: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__ctype_get_mb_cur_max’ /usr/include/stdlib.h:337: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:367: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:369: error: nonnull argument with out-of-range operand number (argument 1, operand 4) /usr/include/stdlib.h:471: error: expected ‘)’ before ‘__size’ /usr/include/stdlib.h:473: error: expected ‘)’ before ‘__nmemb’ /usr/include/stdlib.h:485: error: expected declaration specifiers or ‘...’ before ‘size_t’ In file included from /usr/include/stdlib.h:497, from Rts.h:142, from mkDerivedConstants.c:23: /usr/include/alloca.h:33: error: expected ‘)’ before ‘__size’ In file included from Rts.h:142, from mkDerivedConstants.c:23: /usr/include/stdlib.h:502: error: expected ‘)’ before ‘__size’ /usr/include/stdlib.h:507: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:507: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:684: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:684: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:685: error: nonnull argument with out-of-range operand number (argument 1, operand 5) /usr/include/stdlib.h:689: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:689: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:690: error: nonnull argument with out-of-range operand number (argument 1, operand 4) /usr/include/stdlib.h:767: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:770: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:774: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:778: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:787: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:790: error: expected ‘)’ before ‘*’ token /usr/include/stdlib.h:794: error: expected declaration specifiers or ‘...’ before ‘wchar_t’ /usr/include/stdlib.h:798: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mbstowcs’ /usr/include/stdlib.h:801: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘wcstombs’ In file included from /usr/include/sched.h:35, from /usr/include/pthread.h:25, from OSThreads.h:25, from Rts.h:167, from mkDerivedConstants.c:23: /usr/include/bits/sched.h:193: error: expected ‘)’ before ‘__setsize’ /usr/include/bits/sched.h:195: error: expected ‘)’ before ‘__count’ In file included from /usr/include/pthread.h:26, from OSThreads.h:25, from Rts.h:167, from mkDerivedConstants.c:23: /usr/include/time.h:200: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strftime’ In file included from OSThreads.h:25, from Rts.h:167, from mkDerivedConstants.c:23: /usr/include/pthread.h:297: error: expected declaration specifiers or ‘...’ before ‘size_t’In file included from Rts.h:142, from mkDerivedConstants.c:23: /usr/include/stdlib.h:140: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__ctype_get_mb_cur_max’ /usr/include/stdlib.h:337: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/pthread.h:298: error: nonnull argument with out-of-range operand number (argument 1, operand 2) /usr/include/pthread.h:302: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/pthread.h:361: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/pthread.h:362: error: nonnull argument with out-of-range operand number (argument 1, operand 2) /usr/include/pthread.h:368: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/pthread.h:375: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/pthread.h:376: error: nonnull argument with out-of-range operand number (argument 1, operand 3) /usr/include/stdlib.h:367: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/pthread.h:382: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:369: error: nonnull argument with out-of-range operand number (argument 1, operand 4) /usr/include/stdlib.h:471: error: expected ‘)’ before ‘__size’ /usr/include/stdlib.h:473: error: expected ‘)’ before ‘__nmemb’ /usr/include/stdlib.h:485: error: expected declaration specifiers or ‘...’ before ‘size_t’ In file included from /usr/include/stdlib.h:497, from Rts.h:142, from mkDerivedConstants.c:23: /usr/include/alloca.h:33: error: expected ‘)’ before ‘__size’ In file included from Rts.h:142, from mkDerivedConstants.c:23: /usr/include/stdlib.h:502: error: expected ‘)’ before ‘__size’ /usr/include/stdlib.h:507: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:507: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:684: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:684: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:685: error: nonnull argument with out-of-range operand number (argument 1, operand 5) /usr/include/stdlib.h:689: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:689: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:690: error: nonnull argument with out-of-range operand number (argument 1, operand 4) /usr/include/stdlib.h:767: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:770: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:774: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:778: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:787: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:790: error: expected ‘)’ before ‘*’ token /usr/include/stdlib.h:794: error: expected declaration specifiers or ‘...’ before ‘wchar_t’ /usr/include/stdlib.h:798: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mbstowcs’ /usr/include/stdlib.h:801: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘wcstombs’ In file included from /usr/include/sched.h:35, from /usr/include/pthread.h:25, from OSThreads.h:25, from Rts.h:167, from mkDerivedConstants.c:23: /usr/include/bits/sched.h:193: error: expected ‘)’ before ‘__setsize’In file included from Rts.h:186, from mkDerivedConstants.c:23: RtsMessages.h:15:20: error: stdarg.h: No such file or directory In file included from Rts.h:186, from mkDerivedConstants.c:23: RtsMessages.h:32: error: expected declaration specifiers or ‘...’ before ‘va_list’ RtsMessages.h:47: error: expected declaration specifiers or ‘...’ before ‘va_list’ RtsMessages.h:61: error: expected declaration specifiers or ‘...’ before ‘va_list’ RtsMessages.h:73: error: expected declaration specifiers or ‘...’ before ‘va_list’ RtsMessages.h:78: error: expected declaration specifiers or ‘...’ before ‘va_list’ In file included from Rts.h:189, from mkDerivedConstants.c:23: Storage.h:523: error: expected declaration specifiers or ‘...’ before ‘ptrdiff_t’ /usr/include/bits/sched.h:195: error: expected ‘)’ before ‘__count’ In file included from /usr/include/pthread.h:26, from OSThreads.h:25, from Rts.h:167, from mkDerivedConstants.c:23: /usr/include/time.h:200: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strftime’ In file included from OSThreads.h:25, from Rts.h:167, from mkDerivedConstants.c:23: /usr/include/pthread.h:297: error: expected declaration specifiers or ‘...’ before ‘size_t’ In file included from /usr/include/stdio.h:75, from RtsFlags.h:12, from mkDerivedConstants.c:24: /usr/include/libio.h:332: error: expected specifier-qualifier-list before ‘size_t’ /usr/include/pthread.h:298: error: nonnull argument with out-of-range operand number (argument 1, operand 2) /usr/include/pthread.h:302: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/pthread.h:361: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/pthread.h:362: error: nonnull argument with out-of-range operand number (argument 1, operand 2) /usr/include/pthread.h:368: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/pthread.h:375: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/pthread.h:376: error: nonnull argument with out-of-range operand number (argument 1, operand 3) /usr/include/pthread.h:382: error: expected declaration specifiers or ‘...’ before ‘size_t’ In file included from Rts.h:186 /usr/include/libio.h:364: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/libio.h:373: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/libio.h:489: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’ /usr/include/libio.h:491: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’ /usr/include/libio.h:493: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_sgetn’ In file included from RtsFlags.h:12, from mkDerivedConstants.c:24: /usr/include/stdio.h:312: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdio.h:319: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdio.h:347: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’ /usr/include/stdio.h:352: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’ /usr/include/stdio.h:355: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’ /usr/include/stdio.h:361: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdio.h:363: error: format string argument not a string type /usr/include/stdio.h:365: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdio.h:366: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’ /usr/include/stdio.h:367: error: format string argument not a string type /usr/include/stdio.h:678: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread’ /usr/include/stdio.h:684: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite’ /usr/include/stdio.h:706: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread_unlocked’ /usr/include/stdio.h:708: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite_unlocked’ In file included from /usr/include/stdio.h:903, from RtsFlags.h:12, from mkDerivedConstants.c:24: /usr/include/bits/stdio.h:37: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’ /usr/include/bits/stdio.h: In function ‘vprintf’: /usr/include/bits/stdio.h:39: error: ‘__arg’ undeclared (first use in this function) /usr/include/bits/stdio.h:39: error: (Each undeclared identifier is reported only once /usr/include/bits/stdio.h:39: error: for each function it appears in.) /usr/include/bits/stdio.h:39: error: too many arguments to function ‘vfprintf’ mkDerivedConstants.c: In function ‘main’:, from mkDerivedConstants.c:23: RtsMessages.h:15:20: error: stdarg.h: No such file or directory In file included from Rts.h:186, from mkDerivedConstants.c:23: RtsMessages.h:32: error: expected declaration specifiers or ‘...’ before ‘va_list’ RtsMessages.h:47: error: expected declaration specifiers or ‘...’ before ‘va_list’ RtsMessages.h:61: error: expected declaration specifiers or ‘...’ before ‘va_list’ RtsMessages.h:73: error: expected declaration specifiers or ‘...’ before ‘va_list’ RtsMessages.h:78: error: expected declaration specifiers or ‘...’ before ‘va_list’ In file included from Rts.h:189, from mkDerivedConstants.c:23: Storage.h:523: error: expected declaration specifiers or ‘...’ before ‘ptrdiff_t’ mkDerivedConstants.c:194: error: ‘size_t’ undeclared (first use in this function) In file included from /usr/include/stdio.h:75, from RtsFlags.h:12, from mkDerivedConstants.c:24: /usr/include/libio.h:332: error: expected specifier-qualifier-list before ‘size_t’ /usr/include/libio.h:364: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/libio.h:373: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/libio.h:489: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’ /usr/include/libio.h:491: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’ /usr/include/libio.h:493: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_sgetn’ In file included from RtsFlags.h:12, from mkDerivedConstants.c:24: /usr/include/stdio.h:312: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdio.h:319: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdio.h:347: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’ /usr/include/stdio.h:352: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’ /usr/include/stdio.h:355: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’ /usr/include/stdio.h:361: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdio.h:363: error: format string argument not a string type /usr/include/stdio.h:365: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdio.h:366: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’ /usr/include/stdio.h:367: error: format string argument not a string type /usr/include/stdio.h:678: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread’ /usr/include/stdio.h:684: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite’ /usr/include/stdio.h:706: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread_unlocked’ /usr/include/stdio.h:708: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite_unlocked’ In file included from /usr/include/stdio.h:903, from RtsFlags.h:12, from mkDerivedConstants.c:24: /usr/include/bits/stdio.h:37: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’ /usr/include/bits/stdio.h: In function ‘vprintf’: /usr/include/bits/stdio.h:39: error: ‘__arg’ undeclared (first use in this function) /usr/include/bits/stdio.h:39: error: (Each undeclared identifier is reported only once /usr/include/bits/stdio.h:39: error: for each function it appears in.) /usr/include/bits/stdio.h:39: error: too many arguments to function ‘vfprintf’ mkDerivedConstants.c: In function ‘main’: mkDerivedConstants.c:194: error: ‘size_t’ undeclared (first use in this function) make[1]: *** [mkDerivedConstants.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: *** [mkGHCConstants.o] Error 1 make: *** [stage1] Error 1 * * ERROR: dev-lang/ghc-6.8.2 failed. * Call stack: * ebuild.sh, line 48: Called src_compile * environment, line 3245: Called die * The specific snippet of code: * emake all || die "make failed"; * The die message: * make failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-lang/ghc-6.8.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/ghc-6.8.2/temp/environment'. *