> Please help me diagnose the following configure error on a x86_64/Linux 
> system.

The error happens because the logic in ./configure does not like "gcc4" as the
name of the compiler.  The logic confuses the trailing '4' as part of the
numerical version "4.6.0".  But there is no dot '.' after the first '4',
and the logic cannot handle this.

> [sunfire02:~/packages/valgrind-3.7.0] % $CC --version
> 
> gcc4 (GCC) 4.6.0

$ echo "gcc4 (GCC) 4.6.0" | sed 's/^[^0-9]*\([0-9.]*\).*$/\1/'
4
# Notice there is no dot '.' after the '4' above, because the '4'
# comes from "gcc4" and not from "4.6.0".

# Then notice that the 'case' logic in the configure script
# _does_ expect the dot ("notclang-4."):

case "${is_clang}-${gcc_version}" in
     notclang-4.*)

The easiest work-around is to change "gcc4 " to "gcc " before any further
analysis:

gcc_version=`${CC} --version \
             | head -n 1 \
             | $SED 's/gcc[^ ]* /gcc /' \
             | $SED 's/i686-apple-darwin10//' \
             | $SED 's/i686-apple-darwin11//' \
             | $SED 's/^[^0-9]*\([0-9.]*\).*$/\1/'`

-- 

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to