| Issue |
62250
|
| Summary |
undefined reference to `mallinfo' (Compilation error occurred wiht aarch64-linux-musl + LLVM )
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
liucaicheng
|
[551/725] Compiling C object src/mesa/libmesa_common.a.p/main_teximage.c.o/opt/musl/bin/../lib/gcc/aarch64-linux-musl/10.2.1/../../../../aarch64-linux-musl/bi[552/725] Compiling C object src/mesa/libmesa_common.a.p/main_texenv.c.o: in function `llvm::sys::Process::GetMallocUsage()':
Process.cpp:(.text._ZN4llvm3sys7Process14GetMallocUsageEv+0xc): undefined reference to `mallinfo'
[553/725] Compiling C object src/mesa/libmesa_common.a.p/main_texformat.c.o/opt/musl/bin/../lib/gcc/aarch64-linux-musl/10.2.1/../../../../aarch64-linux-musl/bin/ld: /home/liucaicheng/llvm/llvm.aarch64/lib//libLLVMSupport.a(Threading.cpp.o): in function `llvm::get_thread_name(llvm::SmallVectorImpl<char>&)':
Threading.cpp:(.text._ZN4llvm15get_thread_nameERNS_15SmallVectorImplIcEE+0x28): undefined reference to `pthread_getname_np'
[623/725] Compiling C object src/mesa/libmesa_classic.a.p/swrast_s_fog.c.ocollect2: error: ld returned 1 exit status
[624/725] Compiling C object src/mesa/libmesa_classic.a.p/swrast_s_fragprog.c.omake[1]: *** [build/linux/modules/shared_library.mk:164: binary_ft_pci_wayland_debug/target_aarch64/libufwriter.so] Error 1
Today, I compiled opencl's libufwriter. so (wayland) and used the aarch64 Linux usl+llvm toolchain. The above error occurred. What is the reason for this? Welcome to answer my doubts!
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs