[llvm-bugs] [Bug 32615] New: executable coredump under ubuntu 14.04 libgcc 4.8
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Apr 10 22:59:02 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=32615
Bug ID: 32615
Summary: executable coredump under ubuntu 14.04 libgcc 4.8
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: me at steazzalini.it
CC: llvm-bugs at lists.llvm.org
Considering the following source code:
#include <iostream>
#include <cmath>
int main() {
using namespace std;
const auto p = pow(1, 2);
cout << p;
}
Compiliing it with:
clang++-4.0 test.cpp -o test -std=c++1z -stdlib=libc++ -fuse-ld=lld -static
-lc++ -lc++abi -lpthread
Everything compiles without problems but executing test results in a coredump.
Using ld instead of lld solves the problem.
Omitting -static -lc++ -lc++abi -lpthread also works fine.
This is strictly related with ubuntu 14.04 using libgcc 4.8
// Stefano
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170411/d8b87c52/attachment.html>
More information about the llvm-bugs
mailing list