LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 608 - configure does not correctly detect gcc version on cygwin
Summary: configure does not correctly detect gcc version on cygwin
Status: RESOLVED FIXED
Alias: None
Product: Build scripts
Classification: Unclassified
Component: autoconf (show other bugs)
Version: 1.0
Hardware: PC Windows XP
: P normal
Assignee: Unassigned LLVM Bugs
URL: http://illuvium.com/cgi-bin/cvsweb.cg...
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-27 12:04 PDT by Tzu-Chien Chiu
Modified: 2010-02-22 12:54 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tzu-Chien Chiu 2005-07-27 12:04:36 PDT
% ../llvm/configure
[skipped]
checking for llvm-gcc... no
checking for llvm-g++... no
checking tool compatibility... configure: error: gcc 3.x required, but you have
a lower version

% gcc --version
gcc (GCC) 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
Copyright (C) 2004 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.

% gcc --version | head -n 1 | awk '{print $NF;}'
0.125)

I deleted this check, proceeded the build process, and everything was fine.

configure, 1.196

24843: if test "$GCC" = "yes"
24844: then
24845:   gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24846:   if test "$gccmajor" -lt "3"
24847:   then
24848:     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a
lower version" >&5
24849: echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24850:    { (exit 1); exit 1; }; }
24851:   fi
24852: fi