← Back to team overview

desktop-packages team mailing list archive

[Bug 1371899] [NEW] clang++ -flto fails to work unless -B /usr/lib/gold-ld is given

 

Public bug reported:

clang++ -flto does not seem to configure everything properly:

$ clang++ -stdlib=libc++ try.cpp -O3 -flto -Wall -Wextra 
/tmp/try-1083b9.o: file not recognized: Dateiformat nicht erkannt
clang: error: linker command failed with exit code 1 (use -v to see invocation)

$ clang++ -stdlib=libc++ try.cpp -O3 -flto -Wall -Wextra -B/usr/lib/gold-ld
however, works properly.

See the attached files for output from the same commands with "-v" added
on the respective command lines.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: clang-3.4 1:3.4-1ubuntu3
ProcVersionSignature: Ubuntu 3.13.0-35.62-generic 3.13.11.6
Uname: Linux 3.13.0-35-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.4
Architecture: amd64
CurrentDesktop: KDE
Date: Sat Sep 20 12:53:53 2014
SourcePackage: llvm-toolchain-3.4
UpgradeStatus: Upgraded to trusty on 2014-08-29 (21 days ago)

** Affects: llvm-toolchain-3.4 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug third-party-packages trusty

** Attachment added: "Output of clang++ -stdlib=libc++ try.cpp -O3 -flto -Wall -Wextra -v 2>&1 | tee clang-without-B.txt"
   https://bugs.launchpad.net/bugs/1371899/+attachment/4209576/+files/clang-without-B.txt

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to llvm-toolchain-3.4 in Ubuntu.
https://bugs.launchpad.net/bugs/1371899

Title:
  clang++ -flto fails to work unless -B /usr/lib/gold-ld is given

Status in “llvm-toolchain-3.4” package in Ubuntu:
  New

Bug description:
  clang++ -flto does not seem to configure everything properly:

  $ clang++ -stdlib=libc++ try.cpp -O3 -flto -Wall -Wextra 
  /tmp/try-1083b9.o: file not recognized: Dateiformat nicht erkannt
  clang: error: linker command failed with exit code 1 (use -v to see invocation)

  $ clang++ -stdlib=libc++ try.cpp -O3 -flto -Wall -Wextra -B/usr/lib/gold-ld
  however, works properly.

  See the attached files for output from the same commands with "-v"
  added on the respective command lines.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: clang-3.4 1:3.4-1ubuntu3
  ProcVersionSignature: Ubuntu 3.13.0-35.62-generic 3.13.11.6
  Uname: Linux 3.13.0-35-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.4
  Architecture: amd64
  CurrentDesktop: KDE
  Date: Sat Sep 20 12:53:53 2014
  SourcePackage: llvm-toolchain-3.4
  UpgradeStatus: Upgraded to trusty on 2014-08-29 (21 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-3.4/+bug/1371899/+subscriptions


Follow ups

References