From owner-freebsd-bugs@FreeBSD.ORG Fri Sep 27 12:10:02 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id F2F507BB for ; Fri, 27 Sep 2013 12:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D34452727 for ; Fri, 27 Sep 2013 12:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8RCA1Ew059954 for ; Fri, 27 Sep 2013 12:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8RCA1nh059953; Fri, 27 Sep 2013 12:10:01 GMT (envelope-from gnats) Resent-Date: Fri, 27 Sep 2013 12:10:01 GMT Resent-Message-Id: <201309271210.r8RCA1nh059953@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jan Beich Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D0F5967D for ; Fri, 27 Sep 2013 12:04:10 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A495526F4 for ; Fri, 27 Sep 2013 12:04:10 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8RC49Eb065937 for ; Fri, 27 Sep 2013 12:04:09 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8RC49PJ065932; Fri, 27 Sep 2013 12:04:09 GMT (envelope-from nobody) Message-Id: <201309271204.r8RC49PJ065932@oldred.freebsd.org> Date: Fri, 27 Sep 2013 12:04:09 GMT From: Jan Beich To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: bin/182442: [regression][patch] 'CC' (clang) binary is invoked in C mode, not C++; breaks devel/cmake X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Sep 2013 12:10:02 -0000 >Number: 182442 >Category: bin >Synopsis: [regression][patch] 'CC' (clang) binary is invoked in C mode, not C++; breaks devel/cmake >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 27 12:10:01 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Jan Beich >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: CC was a hardlink to g++ before r242624 >Description: >How-To-Repeat: $ cat CMakeLists.txt project(foo) cmake_minimum_required(VERSION 2.8) include(CheckCXXSourceCompiles) CHECK_CXX_SOURCE_COMPILES(" #include int main() { std::isnan(5); return 0; } " STD_ISNAN_ACCEPTS_INTEGER) $ cmake . -- The C compiler identification is Clang 3.3.0 -- The CXX compiler identification is Clang 3.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/CC -- Check for working CXX compiler: /usr/bin/CC -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Performing Test STD_ISNAN_ACCEPTS_INTEGER -- Performing Test STD_ISNAN_ACCEPTS_INTEGER - Failed -- Configuring done -- Generating done -- Build files have been written to: /path/to/cwd >Fix: --- invoke_in_cxx_mode.diff begins here --- Index: contrib/llvm/tools/clang/tools/driver/driver.cpp =================================================================== --- contrib/llvm/tools/clang/tools/driver/driver.cpp (revision 255808) +++ contrib/llvm/tools/clang/tools/driver/driver.cpp (working copy) @@ -284,11 +284,13 @@ static void ParseProgName(SmallVectorImplRelease-Note: >Audit-Trail: >Unformatted: