[llvm-bugs] [Bug 32425] New: Regression with Musl after adding support for outputting to /dev/null
llvm-bugs at lists.llvm.org
Sat Mar 25 15:12:37 PDT 2017
Bug ID: 32425
Summary: Regression with Musl after adding support for
outputting to /dev/null
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: dima at golovin.in
CC: llvm-bugs at lists.llvm.org
Created attachment 18172
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.
LLVM builds fine, musl builds fine, linking with musl always fails with this
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
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs