clang++ does not work with gccgo-6 installed

Bug #1611676 reported by Julian Taylor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
llvm-toolchain-3.8 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

In 16.04 with gcc 5 as default, gccgo-6 fills /usr/lib/gcc/x86_64-linux-gnu/6 which triggers clang to select gcc6 stdlib folders. But the gcc6 installation is incomplete so all compilations will fail with not finding headers or standard libraries.

E.g.
#include <cstdio>
int main() {}

fails with cannot find cstdio

See the verbose output where it selects gcc 6 as base.
clang++ -v file.cc

removing gccgo-6 makes it functional again by choosing the complete gcc 5 installation.

Julian Taylor (jtaylor)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in llvm-toolchain-3.8 (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.