I try to emerge nasm 0.98.39-r1 and get the following result: configure: error: NASM requires ANSI C header files to compile Reproducible: Always Steps to Reproduce: 1. emerge -av nasm 2. 3. Actual Results: # emerge -av nasm .... >>> emerge (1 of 1) dev-lang/nasm-0.98.39-r1 to / .... configure: error: NASM requires ANSI C header files to compile .... !!! ERROR: dev-lang/nasm-0.98.39-r1 failed. !!! Function econf, Line 485, Exitcode 0 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. Expected Results: I expected the package to emerge. # emerge -av nasm These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] dev-lang/nasm-0.98.39-r1 -build -doc 0 kB Total size of downloads: 0 kB Do you want me to merge these packages? [Yes/No] yes >>> emerge (1 of 1) dev-lang/nasm-0.98.39-r1 to / >>> md5 files ;-) nasm-0.98.39.ebuild >>> md5 files ;-) ChangeLog >>> md5 files ;-) metadata.xml >>> md5 files ;-) nasm-0.98.39-r1.ebuild >>> md5 files ;-) files/digest-nasm-0.98.39 >>> md5 files ;-) files/digest-nasm-0.98.39-r1 >>> md5 src_uri ;-) nasm-0.98.39.tar.bz2 >>> Unpacking source... >>> Unpacking nasm-0.98.39.tar.bz2 to /var/tmp/portage/nasm-0.98.39-r1/work >>> Source unpacked. ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/ share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for i686-pc-linux-gnu-gcc... 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 gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking whether ln -s works... yes checking whether make sets $(MAKE)... yes checking for a BSD-compatible install... /bin/install -c checking for nroff... nroff checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... no configure: error: NASM requires ANSI C header files to compile !!! Please attach the config.log to your bug report: !!! /var/tmp/portage/nasm-0.98.39-r1/work/nasm-0.98.39/config.log !!! ERROR: dev-lang/nasm-0.98.39-r1 failed. !!! Function econf, Line 485, Exitcode 0 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. ############################################################## ############################################################## ############################################################## Here is the /var/tmp/portage/nasm-0.98.39-r1/work/nasm-0.98.39/config.log file: # cat /var/tmp/portage/nasm-0.98.39-r1/work/nasm-0.98.39/config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.59. Invocation command line was $ ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/ share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib ## --------- ## ## Platform. ## ## --------- ## hostname = jt uname -m = i686 uname -r = 2.6.10-gentoo-r6 uname -s = Linux uname -v = #1 SMP Fri Feb 18 17:55:18 MST 2005 /usr/bin/uname -p = Celeron (Mendocino) /bin/uname -X = unknown /bin/arch = i686 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/lib/ccache/bin PATH: /sbin PATH: /usr/sbin PATH: /usr/lib/portage/bin PATH: /bin PATH: /usr/bin PATH: /usr/local/bin PATH: /opt/bin PATH: /usr/i686-pc-linux-gnu/gcc-bin/3.3 PATH: /opt/blackdown-jdk-1.4.2.01/bin PATH: /opt/blackdown-jdk-1.4.2.01/jre/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1371: checking for i686-pc-linux-gnu-gcc configure:1397: result: gcc configure:1679: checking for C compiler version configure:1682: gcc --version </dev/null >&5 gcc (GCC) 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:1685: $? = 0 configure:1687: gcc -v </dev/null >&5 Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/specs Configured with: /var/tmp/portage/gcc-3.3.4-r1/work/gcc-3.3.4/configure --prefix=/usr --bindir=/ usr/i686-pc-linux-gnu/gcc-bin/3.3 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3 --mandir=/usr/share/gcc-data/i686-pc- linux-gnu/3.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared -- host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++ --enable-threads=posix --enable-long-long --disable-checking --disable-libunwind-exceptions -- enable-cstdio=stdio --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc- lib/i686-pc-linux-gnu/3.3.4/include/g++-v3 --with-local-prefix=/usr/local --enable-shared -- enable-nls --without-included-gettext --disable-multilib --enable-__cxa_atexit --enable- clocale=generic Thread model: posix gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6) configure:1690: $? = 0 configure:1692: gcc -V </dev/null >&5 gcc: `-V' option must have argument configure:1695: $? = 1 configure:1718: checking for C compiler default output file name configure:1721: gcc -O3 -march=pentium2 -pipe -fomit-frame-pointer conftest.c >&5 configure:1724: $? = 0 configure:1770: result: a.out configure:1775: checking whether the C compiler works configure:1781: ./a.out configure:1784: $? = 0 configure:1801: result: yes configure:1808: checking whether we are cross compiling configure:1810: result: no configure:1813: checking for suffix of executables configure:1815: gcc -o conftest -O3 -march=pentium2 -pipe -fomit-frame-pointer conftest.c >&5 configure:1818: $? = 0 configure:1843: result: configure:1849: checking for suffix of object files configure:1870: gcc -c -O3 -march=pentium2 -pipe -fomit-frame-pointer conftest.c >&5 configure:1873: $? = 0 configure:1895: result: o configure:1899: checking whether we are using the GNU C compiler configure:1923: gcc -c -O3 -march=pentium2 -pipe -fomit-frame-pointer conftest.c >&5 configure:1929: $? = 0 configure:1933: test -z || test ! -s conftest.err configure:1936: $? = 0 configure:1939: test -s conftest.o configure:1942: $? = 0 configure:1955: result: yes configure:1961: checking whether gcc accepts -g configure:1982: gcc -c -g conftest.c >&5 configure:1988: $? = 0 configure:1992: test -z || test ! -s conftest.err configure:1995: $? = 0 configure:1998: test -s conftest.o configure:2001: $? = 0 configure:2012: result: yes configure:2029: checking for gcc option to accept ANSI C configure:2099: gcc -c -O3 -march=pentium2 -pipe -fomit-frame-pointer conftest.c >&5 configure:2105: $? = 0 configure:2109: test -z || test ! -s conftest.err configure:2112: $? = 0 configure:2115: test -s conftest.o configure:2118: $? = 0 configure:2136: result: none needed configure:2154: gcc -c -O3 -march=pentium2 -pipe -fomit-frame-pointer conftest.c >&5 conftest.c:2: error: syntax error before "me" configure:2160: $? = 1 configure: failed program was: | #ifndef __cplusplus | choke me | #endif configure:2293: checking whether ln -s works configure:2297: result: yes configure:2304: checking whether make sets $(MAKE) configure:2324: result: yes configure:2417: checking for a BSD-compatible install configure:2472: result: /bin/install -c configure:2495: checking for nroff configure:2511: found /usr/bin/nroff configure:2521: result: nroff configure:2540: checking how to run the C preprocessor configure:2575: gcc -E conftest.c configure:2581: $? = 0 configure:2613: gcc -E conftest.c conftest.c:9:28: ac_nonexistent.h: No such file or directory configure:2619: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:2658: result: gcc -E configure:2682: gcc -E conftest.c configure:2688: $? = 0 configure:2720: gcc -E conftest.c conftest.c:9:28: ac_nonexistent.h: No such file or directory configure:2726: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:2770: checking for egrep configure:2780: result: grep -E configure:2785: checking for ANSI C header files configure:2810: gcc -c -O3 -march=pentium2 -pipe -fomit-frame-pointer conftest.c >&5 configure:2816: $? = 0 configure:2820: test -z || test ! -s conftest.err configure:2823: $? = 0 configure:2826: test -s conftest.o configure:2829: $? = 0 configure:2915: gcc -o conftest -O3 -march=pentium2 -pipe -fomit-frame-pointer conftest.c >&5 conftest.c: In function `main': conftest.c:28: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/nasm-0.98.39-r1/temp/ccdabLP9.out file, please attach this to your bugreport. configure:2918: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | #include <ctype.h> | #if ((' ' & 0x0FF) == 0x020) | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | #else | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') || ('j' <= (c) && (c) <= 'r') || ('s' <= (c) && (c) <= 'z')) | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | #endif | | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | int | main () | { | int i; | for (i = 0; i < 256; i++) | if (XOR (islower (i), ISLOWER (i)) | || toupper (i) != TOUPPER (i)) | exit(2); | exit (0); | } configure:2938: result: no configure:2949: error: NASM requires ANSI C header files to compile ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_c_compiler_gnu=yes ac_cv_env_CC_set=set ac_cv_env_CC_value=gcc ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-O3 -march=pentium2 -pipe -fomit-frame-pointer' ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=i686-pc-linux-gnu ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_exeext= ac_cv_header_stdc=no ac_cv_objext=o ac_cv_path_install='/bin/install -c' ac_cv_prog_CC=gcc ac_cv_prog_CPP='gcc -E' ac_cv_prog_NROFF=nroff ac_cv_prog_cc_g=yes ac_cv_prog_cc_stdc= ac_cv_prog_egrep='grep -E' ac_cv_prog_make_make_set=yes ac_cv_prog_make_vpathok=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## CC='gcc' CFLAGS='-O3 -march=pentium2 -pipe -fomit-frame-pointer' CPP='gcc -E' CPPFLAGS='' DEFS='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='grep -E' EXEEXT='' GCCFLAGS='-Wall -std=c99 -pedantic' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' LDFLAGS='' LIBOBJS='' LIBS='' LN_S='ln -s' LTLIBOBJS='' NROFF='nroff' OBJEXT='o' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_VERSION='' PATH_SEPARATOR=':' SET_MAKE='' SHELL='/bin/sh' ac_ct_CC='' ac_prefix_program='' bindir='${exec_prefix}/bin' build_alias='' datadir='/usr/share' exec_prefix='NONE' host_alias='i686-pc-linux-gnu' includedir='${prefix}/include' infodir='/usr/share/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localstatedir='/var/lib' mandir='/usr/share/man' oldincludedir='/usr/include' prefix='/usr' program_transform_name='s,x,x,' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE_BUGREPORT "" #define PACKAGE_NAME "" #define PACKAGE_STRING "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" configure: exit 1 ############################################################## ############################################################## ############################################################## Here is my emerge info Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686) =============================================================== == System uname: 2.6.10-gentoo-r6 i686 Celeron (Mendocino) Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Feb 4 2005, 23:10:50)] dev-lang/python: 2.3.4 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r5 sys-devel/automake: 1.8.5-r1 sys-devel/binutils: 2.14.90.0.8-r1 sys-devel/libtool: 1.5.2-r5 virtual/os-headers: 2.4.21-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/ share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/ gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acl afs alsa apache2 apm arts avi berkdb bitmap-fonts bxlib crypt cups curl dbm emboss encode esd foomaticdb fortran gdbm gif gnome gpm gtk gtk2 hardened hardenedphp imlib ipv6 jabber java jpeg junit kde libg++ libwww mad maildir mailwrapper mbox mikmod milter mime motif mp3 mpeg msn mssql mysql mysqli ncurses nls odbc oggvorbis opengl oss pam pcre pdflib perl php png posix python qt quicktime readline samba sdl shared sharedmem slp snmp soap sockets spell ssl svga sysvipc tcpd tiff truetype truetype-fonts type1-fonts usb x xml xml2 xmlrpc xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Emerge sync, upgrade your linux-headers to 2.6.8.1-r2, upgrade your toolchain (gcc, glibc, binutils) to latest stable version etc., and try again. Reopen if you still have problems. Your system is pretty outdated! P.S. Just a note - remove the redundant double spaces from C[XX]FLAGS in make.conf as well, causes problems with some ebuilds.