On both sparc and amd64, using compiler gcc-3.4.6-r{1,2} (-r1 on amd64, -r2 on sparc), anw with USE flags: USE="X berkdb readline ssl tetex -doc -gmp -java -minimal -odbc -static -threads" FEATURES=test emerge -uv swi-prolog fails with: ================================================== In file included from pl-incl.h:2175, from pl-wam.c:27: pl-funcs.h:922: error: syntax error before "PL_thread_info_t" ================================================== And the offending source line is: COMMON(int) unify_thread_id(term_t id, PL_thread_info_t *info); HOWEVER, if instead I do =========================== FEATURES=test USE=threads emerge -uv swi-prolog =========================== then everything builds fine. In other words, currently swi-prolog-5.6.23 requires USE=threads in order to build. (I don't care much, because all tests pass on both architectures with USE=threads.) =========================== =========================== For the record, here's the 'emerge --info' from sparc; amd64 is similar. (In this case, however, it's irrelevant I think except for the fact that I do not USE threads by default.) ================================================== polylepis ~ # emerge --info Portage 2.1.2_rc1-r7 (default-linux/sparc/sparc64/2006.0, gcc-3.4.6, glibc-2.3.6-r5, 2.6.15-gentoo-r4-SB1000 sparc64) ================================================================= System uname: 2.6.15-gentoo-r4-SB1000 sparc64 sun4u Gentoo Base System version 1.12.6 Last Sync: Wed, 15 Nov 2006 12:30:01 +0000 distcc 2.18.3 sparc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5-r3, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r6 ACCEPT_KEYWORDS="sparc" AUTOCLEAN="yes" CBUILD="sparc-unknown-linux-gnu" CFLAGS="-O2 -mcpu=ultrasparc3 -pipe -D__GLX_ALIGN64" CHOST="sparc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/share/X11/xkb /usr/share/config /usr/spool/PBS" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -mcpu=ultrasparc3 -pipe -D__GLX_ALIGN64" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache cvs distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://mirror.phy.olemiss.edu/mirror/gentoo" LC_ALL="en_US.utf8" 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="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="sparc X Xaw3d apache2 berkdb bitmap-fonts bzip2 cairo cli cracklib crypt cscope cups dlloader dri eds elibc_glibc emboss encode esd examples fbcon firebird foomaticdb fortran gcc64 gdbm gif glx graphviz gstreamer gtk gtk2 iconv imlib input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg kerberos kernel_linux libwww lzw-tiff mad mikmod motif mpeg mysql ncurses nls nptl ogg opengl oss pam pcre pdf perl png pppd python qt3 readline reflection ruby ruby18 sdl session spell spl sqlite ssl stroke tcl tcltk tcpd tetex tiff tk truetype truetype-fonts type1-fonts udev userland_GNU video_cards_dummy video_cards_fbdev video_cards_sunffb vorbis xml xorg xv zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS ========================================== I am copying amd64 & sparc because the build fails for me identically on both architectures.
Thanks for reporting this. Fixed in cvs, and patch sent upstream. Keri