clang package should also contain clang++

Bug #584759 reported by jdm64
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
clang (Debian)
Fix Released
Unknown
clang (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Lucid by jdm64
Nominated for Maverick by jdm64

Bug Description

Binary package hint: clang

The packages summary for the clang package currently reads:

  "Clang project is a new C, C++, Objective C and Objective C++ front-end
  for the LLVM compiler. Some of its goals include the following:
  .....
   *A single unified parser for C, Objective C, C++, and Objective C++
   * Conformance with C/C++/ObjC and their variants"

But, the c++ front-end is not included, but most would assume from the summary that it would be.

One of the following should happen to fix this issue:

 1) The package summary should specify that the c++ front-end is not included
 2) The front-end should be included in this package
 3) A new package "clang++" should be build

Related branches

Revision history for this message
Anton Korobeynikov (anton-korobeynikov) wrote :

I believe that C++ frontend is definitely included. "clang -x c++" is your friend.

Revision history for this message
jdm64 (jdm64) wrote : Re: [Bug 584759] Re: clang package should also contain clang++

Anton Korobeynikov <email address hidden> wrote on 5 Aug 2010, 01:29
PM:
Subject: [Bug 584759] Re: clang package should also contain clang++
>I believe that C++ frontend is definitely included. "clang -x c++" is
>your friend.

That didn't work, it still gives the same error I've seen when I built
clang from the svn sources and didn't build the c++ frontend or forgot to
tell it where the c++ libraries are. It gives multiple "undefined
reference" to c++ libraries when compiling, even with your suggested -x
c++. Last time I built clang from the svn sources it built a clang++
binary, I can't remember if I had to enable building of the c++ frontend.
Either way, the clang package doesn't seem to compile c++ files. Either the
c++ frontend (clang++) isn't being build or the c++ library setup is not
being configured correctly.

Justin

-----------------------------------------------------------------------------------------------------------------------
Send big files for free. Simple steps. No registration.
Visit now http://www.nawelny.com

Revision history for this message
Janos Zsitvai (zsitvaij) wrote :

Actually, it seems that a symlink from clang to clang++ would be all that's needed. (And to c++-analyzer fromccc-analyzer.)

Revision history for this message
jdm64 (jdm64) wrote :

  On 08/06/2010 03:59 AM, Janos Zsitvai wrote:
> Actually, it seems that a symlink from clang to clang++ would be all
> that's needed. (And to c++-analyzer fromccc-analyzer.)

I can confirm that the symlink to clang++ works. It compiled my c++
files without library errors.
Can this be added to the official clang package?

Justin

Revision history for this message
Anders Kaseorg (andersk) wrote :

Here’s a trivial packaging fix that makes scan-view (bug 574719) and clang++ work. I’ve tested it in my PPA <https://launchpad.net/~anders-kaseorg/+archive/ppa>; I can now compile a C++ program with clang++.

Evan Broder (broder)
Changed in clang (Ubuntu):
assignee: nobody → Evan Broder (broder)
status: New → In Progress
Evan Broder (broder)
Changed in clang (Ubuntu):
assignee: Evan Broder (broder) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package clang - 2.7-0ubuntu4

---------------
clang (2.7-0ubuntu4) maverick; urgency=low

  [ Anders Kaseorg ]
  * Install all scan-build files into /usr/share/clang/scan-build.
    (LP: #574719)
  * Install /usr/bin/clang++ symlink. (LP: #584759)

  [ Evan Broder ]
  * Touch up the maintainer field.
 -- Evan Broder <email address hidden> Mon, 09 Aug 2010 23:29:42 -0400

Changed in clang (Ubuntu):
status: In Progress → Fix Released
Changed in clang (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.