NetBSD Problem Report #54993

From www@netbsd.org  Fri Feb 21 00:27:28 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 956991A9213
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 21 Feb 2020 00:27:28 +0000 (UTC)
Message-Id: <20200221002727.A3D621A9217@mollari.NetBSD.org>
Date: Fri, 21 Feb 2020 00:27:27 +0000 (UTC)
From: n54@gmx.com
Reply-To: n54@gmx.com
To: gnats-bugs@NetBSD.org
Subject: ./build.sh tools with MKLLVM=yes HAVE_LLVM=yes broken without terminfo library
X-Send-Pr-Version: www-1.0

>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.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.