[llvm-bugs] [Bug 32615] executable coredump under ubuntu 14.04 libgcc 4.8
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 13 01:56:51 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=32615
George Rimar <grimar at accesssoftek.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |grimar at accesssoftek.com
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #6 from George Rimar <grimar at accesssoftek.com> ---
I installed ubuntu 14.04 VM to check this. And used precompiled "Clang for
x86_64 Ubuntu 14.04" package from http://releases.llvm.org/download.html#4.0.0
page.
Issue reporduced from me with LLD from package:
(I have to add -lm to invocation because had undefined symbol 'pow' error)
umb at ubuntu:~/temp/test/original$
./clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/ld.lld -v
LLD 4.0.0
umb at ubuntu:~/temp/test/original$
./clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/clang-4.0 test.cpp -o test
-std=c++1z -stdlib=libc++ -fuse-ld=lld -static -lc++ -lc++abi -lpthread -lm
umb at ubuntu:~/temp/test/original$ ./test
Segmentation fault (core dumped)
Then I built LLD head and replaced old LLD with it:
umb at ubuntu:~/temp/test$
./clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/ld.lld -v
LLD 5.0.0 (trunk 307837) (compatible with GNU linkers)
umb at ubuntu:~/temp/test$
./clang+llvm-4.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/clang-4.0 test.cpp -o test
-std=c++1z -stdlib=libc++ -fuse-ld=lld -static -lc++ -lc++abi -lpthread -lm
umb at ubuntu:~/temp/test$ ./test
1umb at ubuntu:~/temp/test$
As can be seen HEAD LLD works fine here, issue is fixed.
--
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/20170713/dd120f66/attachment-0001.html>
More information about the llvm-bugs
mailing list