Hi Tom, Thanks for looking at this. Here's gcc --version:
[sunfire02:~/packages/valgrind-3.7.0] % gcc --version gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-51) Copyright (C) 2006 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. [sunfire02:~/packages/valgrind-3.7.0] % Note that $CC is set to gcc4 (previous message). Both gcc and gcc4 are valid commands in the search path. Here are "core tests" and the last lines in config.log: ## ----------- ## ## Core tests. ## ## ----------- ## configure:2510: checking for a BSD-compatible install configure:2578: result: /u/drsmith/local/bin/install -c configure:2589: checking whether build environment is sane configure:2639: result: yes configure:2780: checking for a thread-safe mkdir -p configure:2819: result: /bin/mkdir -p configure:2832: checking for gawk configure:2848: found /bin/gawk configure:2859: result: gawk configure:2870: checking whether make sets $(MAKE) configure:2892: result: yes configure:2974: checking whether to enable maintainer-specific portions of Makefiles configure:2983: result: no configure:3002: checking whether ln -s works configure:3006: result: yes configure:3061: checking for gcc configure:3088: result: gcc4 configure:3317: checking for C compiler version configure:3326: gcc4 --version >&5 gcc4 (GCC) 4.6.0 Copyright (C) 2011 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:3337: $? = 0 configure:3326: gcc4 -v >&5 Using built-in specs. COLLECT_GCC=gcc4 COLLECT_LTO_WRAPPER=/usr/pppl/gcc/4.6.0/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ./configure --prefix=/usr/pppl/gcc/4.6.0 --program-suffix=4 --with-mpc=/usr/pppl/mpc/0.9 --with-gmp=/usr/pppl/gmp/5.0.2 --with-mpfr=/usr/pppl/mpfr/3.0.1 Thread model: posix gcc version 4.6.0 (GCC) configure:3337: $? = 0 configure:3326: gcc4 -V >&5 gcc4: error: unrecognized option '-V' gcc4: fatal error: no input files compilation terminated. configure:3337: $? = 1 configure:3326: gcc4 -qversion >&5 gcc4: error: unrecognized option '-qversion' gcc4: fatal error: no input files compilation terminated. configure:3337: $? = 1 configure:3357: checking whether the C compiler works configure:3379: gcc4 -Wno-long-long conftest.c >&5 configure:3383: $? = 0 configure:3432: result: yes configure:3435: checking for C compiler default output file name configure:3437: result: a.out configure:3443: checking for suffix of executables configure:3450: gcc4 -o conftest -Wno-long-long conftest.c >&5 configure:3454: $? = 0 configure:3476: result: configure:3498: checking whether we are cross compiling configure:3506: gcc4 -o conftest -Wno-long-long conftest.c >&5 configure:3510: $? = 0 configure:3517: ./conftest configure:3521: $? = 0 configure:3536: result: no configure:3541: checking for suffix of object files configure:3563: gcc4 -c -Wno-long-long conftest.c >&5 configure:3567: $? = 0 configure:3588: result: o configure:3592: checking whether we are using the GNU C compiler configure:3611: gcc4 -c -Wno-long-long conftest.c >&5 configure:3611: $? = 0 configure:3620: result: yes configure:3629: checking whether gcc4 accepts -g configure:3649: gcc4 -c -g conftest.c >&5 configure:3649: $? = 0 configure:3690: result: yes configure:3707: checking for gcc4 option to accept ISO C89 configure:3771: gcc4 -c -Wno-long-long conftest.c >&5 configure:3771: $? = 0 configure:3784: result: none needed configure:3815: checking for style of include used by make configure:3843: result: GNU configure:3868: checking dependency style of gcc4 configure:3978: result: gcc3 configure:3994: checking whether gcc4 and cc understand -c and -o together configure:4025: gcc4 -c conftest.c -o conftest2.o >&5 configure:4029: $? = 0 configure:4035: gcc4 -c conftest.c -o conftest2.o >&5 configure:4039: $? = 0 configure:4050: cc -c conftest.c >&5 configure:4054: $? = 0 configure:4062: cc -c conftest.c -o conftest2.o >&5 configure:4066: $? = 0 configure:4072: cc -c conftest.c -o conftest2.o >&5 configure:4076: $? = 0 configure:4094: result: yes configure:4124: checking how to run the C preprocessor configure:4155: gcc4 -E conftest.c configure:4155: $? = 0 configure:4169: gcc4 -E conftest.c conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory compilation terminated. configure:4169: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "Valgrind" | #define PACKAGE_TARNAME "valgrind" | #define PACKAGE_VERSION "3.7.0" | #define PACKAGE_STRING "Valgrind 3.7.0" | #define PACKAGE_BUGREPORT "valgrind-users@lists.sourceforge.net" | #define PACKAGE_URL "" | #define PACKAGE "valgrind" | #define VERSION "3.7.0" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:4194: result: gcc4 -E configure:4214: gcc4 -E conftest.c configure:4214: $? = 0 configure:4228: gcc4 -E conftest.c conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory compilation terminated. configure:4228: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "Valgrind" | #define PACKAGE_TARNAME "valgrind" | #define PACKAGE_VERSION "3.7.0" | #define PACKAGE_STRING "Valgrind 3.7.0" | #define PACKAGE_BUGREPORT "valgrind-users@lists.sourceforge.net" | #define PACKAGE_URL "" | #define PACKAGE "valgrind" | #define VERSION "3.7.0" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:4368: checking for C++ compiler version configure:4377: g++4 --version >&5 g++4 (GCC) 4.6.0 Copyright (C) 2011 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:4388: $? = 0 configure:4377: g++4 -v >&5 Using built-in specs. COLLECT_GCC=g++4 COLLECT_LTO_WRAPPER=/usr/pppl/gcc/4.6.0/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ./configure --prefix=/usr/pppl/gcc/4.6.0 --program-suffix=4 --with-mpc=/usr/pppl/mpc/0.9 --with-gmp=/usr/pppl/gmp/5.0.2 --with-mpfr=/usr/pppl/mpfr/3.0.1 Thread model: posix gcc version 4.6.0 (GCC) configure:4388: $? = 0 configure:4377: g++4 -V >&5 g++4: error: unrecognized option '-V' g++4: fatal error: no input files compilation terminated. configure:4388: $? = 1 configure:4377: g++4 -qversion >&5 g++4: error: unrecognized option '-qversion' g++4: fatal error: no input files compilation terminated. configure:4388: $? = 1 configure:4392: checking whether we are using the GNU C++ compiler configure:4411: g++4 -c conftest.cpp >&5 configure:4411: $? = 0 configure:4420: result: yes configure:4429: checking whether g++4 accepts -g configure:4449: g++4 -c -g conftest.cpp >&5 configure:4449: $? = 0 configure:4490: result: yes configure:4515: checking dependency style of g++4 configure:4625: result: gcc3 configure:4696: checking for ranlib configure:4712: found /usr/bin/ranlib configure:4723: result: ranlib configure:4748: checking for a sed that does not truncate output configure:4812: result: /bin/sed configure:4825: checking for ar configure:4843: found /usr/bin/ar configure:4855: result: /usr/bin/ar configure:4878: checking for perl configure:4896: found /usr/bin/perl configure:4908: result: /usr/bin/perl configure:4920: checking for gdb configure:4938: found /usr/bin/gdb configure:4951: result: /usr/bin/gdb configure:4975: checking dependency style of gcc4 configure:5083: result: gcc3 configure:5102: checking for diff -u configure:5110: result: yes configure:5122: checking for a supported version of gcc configure:5157: result: no (4) configure:5159: error: please use gcc >= 3.0 or clang >= 2.9 .......... ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "Valgrind" #define PACKAGE_TARNAME "valgrind" #define PACKAGE_VERSION "3.7.0" #define PACKAGE_STRING "Valgrind 3.7.0" #define PACKAGE_BUGREPORT "valgrind-users@lists.sourceforge.net" #define PACKAGE_URL "" #define PACKAGE "valgrind" #define VERSION "3.7.0" #define GDB_PATH "/usr/bin/gdb" configure: exit 1 Thanks, Dave On May 17, 2012, at 10:29 AM, Tom Hughes wrote: > On 17/05/12 15:13, David Smith wrote: > >> Please help me diagnose the following configure error on a x86_64/Linux >> system. I searched google for solutions, but found none. The error seems >> or originate in [gcc-version] in configure.in. > > Well it looks like there is something very odd about your compiler because > although it is gcc 4 autoconf seems to think it is behaving like gcc 3 in > various ways. > > What is the output of "gcc --version"? > > Tom > > -- > Tom Hughes (t...@compton.nu) > http://compton.nu/ ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users