Installing gccgo breaks clang++

Bug #1313389 reported by Václav Haisman
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
llvm-toolchain-3.4 (Ubuntu)
Confirmed
Undecided
Unassigned
llvm-toolchain-3.5 (Ubuntu)
Confirmed
Undecided
Unassigned
llvm-toolchain-3.6 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The clang++ driver will not find standard C++ headers and the libstdc++ library when there is gccgo-4.9 package installed as well. This appears to be due to gccgo-4.9 installing few things into /usr/bin/lib/gcc/x86_64-linux-gnu/4.9. The clang++ driver sees this directory and thinks it contains full C++ headers and run time installation when it does not, because there are only some parts relevant to gccgo-4.9. Uninstalling gccgo-4.9 fixes the issue because clang++ then finds only the 4.8 directory and uses that.

The same issue occurs with gccgo-5 and GCC 5, which installs a partial GCC 5 installation, enough for the clang++ driver to try to use it but not including libstdc++ so clang++ fails to build.

ProblemType: Bug
DistroRelease: Ubuntu 14.04, Ubuntu 15.04
Package: clang-3.5 1:3.5~svn201651-1ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
CurrentDesktop: XFCE
Date: Sun Apr 27 18:38:36 2014
InstallationDate: Installed on 2011-11-13 (896 days ago)
InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: llvm-toolchain-snapshot
UpgradeStatus: Upgraded to trusty on 2014-04-19 (8 days ago)

Revision history for this message
Václav Haisman (vzeman79) wrote :
Revision history for this message
Václav Haisman (vzeman79) wrote :

Attached bad.txt shows how it looks like when it does not work.

Revision history for this message
Václav Haisman (vzeman79) wrote :

The attached file shows how it looks like when it works.

Revision history for this message
Matthias Klose (doko) wrote :

there is nothing to do in gccgo, clang shouldn't have such a bad check for whatever

affects: llvm-toolchain-snapshot (Ubuntu) → llvm-toolchain-3.4 (Ubuntu)
summary: - Installing gccgo-4.9 breaks clang++
+ Installing gccgo breaks clang++
tags: added: vivid
description: updated
Revision history for this message
Robert Knight (robertknight) wrote :

The same issue occurs with gccgo-5 on Ubuntu 15.04, this time installing gccgo-5 causes a partial installation of GCC 5 to be installed. clang++ then tries to use the partial GCC 5 install instead of GCC 4.9 and fails because libstdc++ is missing from the GCC 5 partial installation in /usr/lib/gcc/x86_64-linux-gnu/5.0.1

Revision history for this message
Robert Knight (robertknight) wrote :
Revision history for this message
Robert Knight (robertknight) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in llvm-toolchain-3.4 (Ubuntu):
status: New → Confirmed
Changed in llvm-toolchain-3.5 (Ubuntu):
status: New → Confirmed
Changed in llvm-toolchain-3.6 (Ubuntu):
status: New → Confirmed
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.