NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/54993: ./build.sh tools with MKLLVM=yes HAVE_LLVM=yes broken without terminfo library



>Number:         54993
>Category:       toolchain
>Synopsis:       ./build.sh tools with MKLLVM=yes HAVE_LLVM=yes broken without terminfo library
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 21 00:30:00 +0000 2020
>Originator:     Kamil Rytarowski
>Release:        NetBSD 9.99.47 amd64
>Organization:
TNF
>Environment:
NetBSD chieftec 9.99.47 NetBSD 9.99.47 (GENERIC) #0: Wed Feb 19 18:37:02 CET 2020  root@chieftec:/public/netbsd-root/sys/arch/amd64/compile/GENERIC amd64
>Description:
./build.sh tools for LLVM-style distribution is broken if host provides no devel libraries for terminfo.
>How-To-Repeat:
./build.sh -V MKGCC=no -V MKLLVM=yes -V HAVE_LLVM=yes tools

--- nbclang-tblgen ---
#      link  llvm-clang-tblgen/nbclang-tblgen
c++ -O -O2 -fno-rtti -fno-exceptions -fno-strict-aliasing -I/syzkaller/managers/netbsd-kmsan/kernel/obj/tooldir.Linux-4.15.0-1027-gcp-x86_64/include/compat -I/syzkaller/managers/netbsd-kmsan/kernel/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I. -I/syzkaller/managers/netbsd-kmsan/kernel/tools/llvm-clang-tblgen/../../external/apache2/llvm/bin/clang-tblgen/../../dist/clang/include -I/syzkaller/managers/netbsd-kmsan/kernel/tools/llvm-clang-tblgen/../../external/apache2/llvm/bin/clang-tblgen/../../dist/llvm/include -I/syzkaller/managers/netbsd-kmsan/kernel/tools/llvm-include/obj -I/syzkaller/managers/netbsd-kmsan/kernel/tools/llvm/obj/config/include -I/syzkaller/managers/netbsd-kmsan/kernel/tools/llvm/obj/config/tools/clang/include -std=c++14 -I. -I/syzkaller/managers/netbsd-kmsan/kernel/tools/llvm-clang-tblgen/../../external/apache2/llvm/bin/clang-tblgen/../../dist/clang/include -I/syzkaller/managers/netbsd-kmsan/kernel/tools/llvm-clang-tblgen/../../external/apache2/llv
 m/bin/clang-tblgen/../../dist/llvm/include -I/syzkaller/managers/netbsd-kmsan/kernel/tools/llvm-include/obj -I/syzkaller/managers/netbsd-kmsan/kernel/tools/llvm/obj/config/include -I/syzkaller/managers/netbsd-kmsan/kernel/tools/llvm/obj/config/tools/clang/include   -o nbclang-tblgen ClangASTNodesEmitter.lo ClangAttrEmitter.lo ClangCommentCommandInfoEmitter.lo ClangCommentHTMLNamedCharacterReferenceEmitter.lo ClangCommentHTMLTagsEmitter.lo ClangDataCollectorsEmitter.lo ClangDiagnosticsEmitter.lo ClangOpenCLBuiltinEmitter.lo ClangOpcodesEmitter.lo ClangOptionDocEmitter.lo ClangSACheckersEmitter.lo ClangTypeNodesEmitter.lo MveEmitter.lo NeonEmitter.lo TableGen.lo -L/syzkaller/managers/netbsd-kmsan/kernel/obj/tooldir.Linux-4.15.0-1027-gcp-x86_64/lib -lnbcompat -lrt -lz -L/syzkaller/managers/netbsd-kmsan/kernel/tools/llvm-lib/libLLVMTableGen/obj -lLLVMTableGen -L/syzkaller/managers/netbsd-kmsan/kernel/tools/llvm-lib/libLLVMSupport/obj -lLLVMSupport -L/syzkaller/managers/netbsd-kmsan/kern
 el/tools/llvm-lib/libLLVMDemangle/obj -lLLVMDemangle -ldl  -lpthread
/syzkaller/managers/netbsd-kmsan/kernel/tools/llvm-lib/libLLVMSupport/obj/libLLVMSupport.a(Process.lo): In function `llvm::sys::Process::FileDescriptorHasColors(int)':
Process.cpp:(.text+0x123d): undefined reference to `setupterm'
Process.cpp:(.text+0x1256): undefined reference to `tigetnum'
Process.cpp:(.text+0x125f): undefined reference to `set_curterm'
Process.cpp:(.text+0x1267): undefined reference to `del_curterm'
Process.cpp:(.text+0x128f): undefined reference to `setupterm'
Process.cpp:(.text+0x12a1): undefined reference to `tigetnum'
Process.cpp:(.text+0x12ad): undefined reference to `set_curterm'
Process.cpp:(.text+0x12b5): undefined reference to `del_curterm'
collect2: error: ld returned 1 exit status
*** [nbclang-tblgen] Error code 1
>Fix:
Disable terminfo features or provide a stub.



Home | Main Index | Thread Index | Old Index