Issue 73960
Summary only planning to import ld.lld from the 17.0.5 folder
Labels lld
Assignees
Reporter ferdian91
    $ where is ld.lld
`/home/ferdian/llvm-17.0.5/bin/ld.lld`
`/usr/bin/ld.lld`
`/bin/ld.lld`

$ /home/ferdian/llvm-17.0.5/bin/ld.lld -v
`LLD 17.0.5 (compatible with GNU linkers)`
$ /usr/bin/ld.lld -v
`Ubuntu LLD 14.0.0 (compatible with GNU linkers)`

when I rename ld.lld to ld.lld.bak from `usr/bin/ld.lld`

```
#0 0x0000005eb9954054 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/ferdian/llvm-17.0.5/bin/lld+0x7f8054)
 #1 0x0000005eb995221c llvm::sys::RunSignalHandlers() (/home/ferdian/llvm-17.0.5/bin/lld+0x7f621c)
 #2 0x0000005eb9954a94 SignalHandler(int) Signals.cpp:0:0
 #3 0x00000075f1aca668 (linux-vdso.so.1+0x668)
 #4 0x00000075f157de70 __libc_realloc (/lib/aarch64-linux-gnu/libc.so.6+0x8de70)
 #5 0x0000005eb990ecfc llvm::SmallVectorBase<unsigned int>::grow_pod(void*, unsigned long, unsigned long) (/home/ferdian/llvm-17.0.5/bin/lld+0x7b2cfc)
 #6 0x0000005eb9bb2320 void addRelativeReloc<true>(lld::elf::InputSectionBase&, unsigned long, lld::elf::Symbol&, long, lld::elf::RelExpr, unsigned int) Relocations.cpp:0:0
 #7 0x0000005eb9bb8728 void (anonymous namespace)::RelocationScanner::scanSection<llvm::object::ELFType<(llvm::support::endianness)1, true>>(lld::elf::InputSectionBase&) Relocations.cpp:0:0
 #8 0x0000005eb9bb7a94 std::_Function_handler<void (), void lld::elf::scanRelocations<llvm::object::ELFType<(llvm::support::endianness)1, true>>()::'lambda'()>::_M_invoke(std::_Any_data const&) (/home/ferdian/llvm-17.0.5/bin/lld+0xa5ba94)
 #9 0x0000005ebc6e4268 std::_Function_handler<void (), llvm::parallel::TaskGroup::spawn(std::function<void ()>, bool)::$_0>::_M_invoke(std::_Any_data const&) Parallel.cpp:0:0
#10 0x0000005ebc6e39f0 llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::work(llvm::ThreadPoolStrategy, unsigned int) Parallel.cpp:0:0
#11 0x00000075f17a31fc (/lib/aarch64-linux-gnu/libstdc++.so.6+0xd31fc)
#12 0x00000075f156d5c8 (/lib/aarch64-linux-gnu/libc.so.6+0x7d5c8)
#13 0x00000075f15d5d9c (/lib/aarch64-linux-gnu/libc.so.6+0xe5d9c)
scripts/link-vmlinux.sh: line 137:  5386 Segmentation fault      ${LD} ${KBUILD_LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} -T ${lds} ${objects}
make: *** [Makefile:1159: vmlinux] Error 139
```

and when I change it back, the build runs normally

```
  MODPOST vmlinux.o
  KSYM    .tmp_kallsyms1.o
 KSYM    .tmp_kallsyms2.o
  LD      vmlinux
  SORTEX  vmlinux
 SYSMAP  System.map
  OBJCOPY arch/arm64/boot/Image
  Building modules, stage 2.
  MODPOST 0 modules
  GZIP    arch/arm64/boot/Image.gz
 DTC     arch/arm64/boot/dts/qcom/sm8150-v2.dtb
  DTC arch/arm64/boot/dts/qcom/sm8150.dtb
  CAT arch/arm64/boot/Image.gz-dtb
```

I'm only planning to import ld.lld from the 17.0.5 folder...

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to