I'm emerging in an ARM machine, and I noticed that emerging some package fails during configure, if I'm in sandbox enviorment. The error reported is: configure: creating ./config.status config.status: creating Makefile config.status: creating defines.h awk: ./confHEgQBy/defines.awk:68: fatal error: internal error ./config.status: line 984: 17753 Aborted $AWK -f "$tmp/defines.awk" 'defines.h.in' config.status: error: could not create defines.h This happens emerging lighttpd, less, hddtemp and sandbox itself, but I think that this happens in many other packages (packages that use gawk during configure, I think). I searched in logs and the only thing I found is in config.log: config.status:774: creating Makefile config.status:774: creating defines.h config.status:986: error: could not create defines.h I found that it was sandbox because I tried to configure manually the packages, and it works fine, and to configure manually in sandbox environment, and it fails. I already tried to re-emerge sandbox and gawk but nothing changes. My emerge --info: Portage 2.1.6.13 (default/linux/arm/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.31-rc1-git11-edmini armv5tel) ================================================================= System uname: Linux-2.6.31-rc1-git11-edmini-armv5tel-Feroceon_rev_0_-v5l-with-glibc2.4 Timestamp of tree: Sun, 05 Jul 2009 11:30:13 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.5.4-r2 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63 sys-devel/automake: 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="arm" CBUILD="armv5tel-softfloat-linux-gnueabi" CFLAGS="-Os -march=armv5te -pipe" CHOST="armv5tel-softfloat-linux-gnueabi" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-Os -march=armv5te -pipe" DISTDIR="/var/distfiles" FEATURES="distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/" LDFLAGS="-Wl,-O1" PKGDIR="/usr/portage/packages" PORTAGE_COMPRESS="gzip" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS=" --recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-during --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude-from=/etc/portage/tree_exclude --compress-level=9 --sparse" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl arm berkdb bzip2 cli cracklib crypt cups fortran gdbm gpm iconv ipv6 isdnlog midi mudflap ncurses nls nonfsv4 nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl symlink sysfs tcpd unicode xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage sis tdfx trident vga voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY (btw, it was the same with gentoo-sources-2.6.29-r5)
Try with a clean chroot, as it works for me: Portage 2.1.6.13 (default/linux/arm/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.31-rc2-00261-gf36cf01 armv5tel) ================================================================= System uname: Linux-2.6.31-rc2-00261-gf36cf01-armv5tel-Feroceon_88FR131_rev_1_-v5l-with-glibc2.4 Timestamp of tree: Sat, 18 Jul 2009 15:30:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.5.4-r2 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="arm" CBUILD="armv5tel-softfloat-linux-gnueabi" CFLAGS="-Os -march=armv5te -pipe" CHOST="armv5tel-softfloat-linux-gnueabi" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.dei.uc.pt/pub/linux/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://darkstar.ist.utl.pt/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--prune-empty-dirs" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://boobie.gentoo.org/gentoo-portage" USE="arm berkdb bzip2 cli cracklib crypt fortran gdbm gpm iconv ipv6 isdnlog midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl sysfs tcpd unicode xorg xulrunner zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage sis tdfx trident vga voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTDIR_OVERLAY