https://bugs.llvm.org/show_bug.cgi?id=32425
Bug ID: 32425
Summary: Regression with Musl after adding support for
outputting to /dev/null
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedb...@nondot.org
Reporter: d...@golovin.in
CC: llvm-bugs@lists.llvm.org
Created attachment 18172
--> https://bugs.llvm.org/attachment.cgi?id=18172&action=edit
revert regressive commit
I believe that the regression was introduced with revision 291485 "Support
outputting to /dev/null."
I really don't know why is this the case, but it is proven to work. The patch
doesn't seem to affect anything with compilation process, but it does.
Symptoms:
LLVM builds fine, musl builds fine, linking with musl always fails with this
error message:
ld.lld: error: ../crt/crt1.c:(function _start_c): cannot preempt symbol
'__libc_start_main' defined in /path/to/sysroot/bin/../lib/libc.so
ld.lld: error: hello.c:(function main): cannot preempt symbol 'printf'
defined in /path/to/sysroot/bin/../lib/libc.so
clang-5.0: error: linker command failed with exit code 1 (use -v to see
invocation)
Steps to reproduce:
1. Build llvm with clang, lld and compiler-rt.
2. Build musl with resulting compiler.
3. Build a "Hello, World!" program and try to link it with musl.
It fails with anything newer than revision 291485. It will not fail if attached
patch is applied (but /dev/null as an output will also be unsupported).
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs