NetBSD Problem Report #54457

From martin@aprisoft.de  Sun Aug 11 13:28:46 2019
Return-Path: <martin@aprisoft.de>
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 8C9877A10E
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 11 Aug 2019 13:28:46 +0000 (UTC)
Message-Id: <20190811132836.8A4CF5CC853@emmas.aprisoft.de>
Date: Sun, 11 Aug 2019 15:28:36 +0200 (CEST)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: failure to build gallium_dri.so
X-Send-Pr-Version: 3.95

>Number:         54457
>Category:       xsrc
>Synopsis:       failure to build gallium_dri.so
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    martin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 11 13:30:01 +0000 2019
>Closed-Date:    Mon Aug 12 09:41:12 +0000 2019
>Last-Modified:  Mon Aug 12 09:41:12 +0000 2019
>Originator:     Martin Husemann
>Release:        NetBSD 9.99.7
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD seven-days-to-the-wolves.aprisoft.de 9.99.7 NetBSD 9.99.7 (GENERIC) #299: Sun Aug 11 09:54:13 CEST 2019 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:

I have no idea what I am doing wrong, but on this machine builds fail for me
with:

#     build  gallium/gallium_dri.so.0.link
rm -f gallium_dri.so.0.link
/work/tools/bin/x86_64--netbsd-c++  -shared -Wl,-soname,gallium_dri.so.0  -Wl,--warn-shared-textrel -Wl,-Map=gallium_dri.so.0.map   --sysroot=/ -pthread -Wl,--version-script=/work/xsrc/external/mit/MesaLib/dist/src/gallium/targets/dri/dri.sym -Wl,-z,relro -Wl,-rpath,/usr/X11R7/lib -L=/usr/X11R7/lib  -o gallium_dri.so.0.link.tmp  -Wl,-rpath-link,//lib  -L=/lib -Wl,-x  -Wl,--whole-archive gallium_dri_pic.a  -Wl,--no-whole-archive /work/obj/external/bsd/llvm/librt/libLLVMTransformsCoroutines/libLLVMTransformsCoroutines_pic.a /work/obj/external/bsd/llvm/librt/libLLVMPasses/libLLVMPasses_pic.a /work/obj/external/bsd/llvm/librt/libLLVMMCJIT/libLLVMMCJIT_pic.a /work/obj/external/bsd/llvm/librt/libLLVMExecutionEngine/libLLVMExecutionEngine_pic.a /work/obj/external/bsd/llvm/librt/libLLVMRuntimeDyld/libLLVMRuntimeDyld_pic.a /work/obj/external/bsd/llvm/librt/libLLVMAMDGPUCodeGen/libLLVMAMDGPUCodeGen_pic.a /work/obj/external/bsd/llvm/librt/libLLVMAMDGPUMCTargetDesc/libLLVMAMDGPUMCTargetDesc_pic.
 a /work/obj/external/bsd/llvm/librt/libLLVMAMDGPUAsmPrinter/libLLVMAMDGPUAsmPrinter_pic.a /work/obj/external/bsd/llvm/librt/libLLVMAMDGPUTargetInfo/libLLVMAMDGPUTargetInfo_pic.a /work/obj/external/bsd/llvm/librt/libLLVMAMDGPUAsmParser/libLLVMAMDGPUAsmParser_pic.a /work/obj/external/bsd/llvm/librt/libLLVMAMDGPUUtils/libLLVMAMDGPUUtils_pic.a /work/obj/external/bsd/llvm/librt/libLLVMX86Disassembler/libLLVMX86Disassembler_pic.a /work/obj/external/bsd/llvm/librt/libLLVMX86CodeGen/libLLVMX86CodeGen_pic.a /work/obj/external/bsd/llvm/librt/libLLVMX86MCTargetDesc/libLLVMX86MCTargetDesc_pic.a /work/obj/external/bsd/llvm/librt/libLLVMX86Disassembler/libLLVMX86Disassembler_pic.a /work/obj/external/bsd/llvm/librt/libLLVMX86MCTargetDesc/libLLVMX86MCTargetDesc_pic.a /work/obj/external/bsd/llvm/librt/libLLVMX86AsmPrinter/libLLVMX86AsmPrinter_pic.a /work/obj/external/bsd/llvm/librt/libLLVMX86TargetInfo/libLLVMX86TargetInfo_pic.a /work/obj/external/bsd/llvm/librt/libLLVMX86Utils/libLLVMX86Utils_pic.a
  /work/obj/external/bsd/llvm/librt/libLLVMGlobalISel/libLLVMGlobalISel_pic.a /work/obj/external/bsd/llvm/librt/libLLVMMCDisassembler/libLLVMMCDisassembler_pic.a /work/obj/external/bsd/llvm/librt/libLLVMSelectionDAG/libLLVMSelectionDAG_pic.a /work/obj/external/bsd/llvm/librt/libLLVMAsmPrinter/libLLVMAsmPrinter_pic.a /work/obj/external/bsd/llvm/librt/libLLVMCodeGen/libLLVMCodeGen_pic.a /work/obj/external/bsd/llvm/librt/libLLVMTarget/libLLVMTarget_pic.a /work/obj/external/bsd/llvm/librt/libLLVMInstCombine/libLLVMInstCombine_pic.a /work/obj/external/bsd/llvm/librt/libLLVMScalarOpts/libLLVMScalarOpts_pic.a /work/obj/external/bsd/llvm/librt/libLLVMDebugInfoCodeView/libLLVMDebugInfoCodeView_pic.a /work/obj/external/bsd/llvm/librt/libLLVMObject/libLLVMObject_pic.a /work/obj/external/bsd/llvm/librt/libLLVMBitReader/libLLVMBitReader_pic.a /work/obj/external/bsd/llvm/librt/libLLVMMCParser/libLLVMMCParser_pic.a /work/obj/external/bsd/llvm/librt/libLLVMMC/libLLVMMC_pic.a /work/obj/external/bsd/l
 lvm/librt/libLLVMipo/libLLVMipo_pic.a /work/obj/external/bsd/llvm/librt/libLLVMInstrumentation/libLLVMInstrumentation_pic.a /work/obj/external/bsd/llvm/librt/libLLVMIRReader/libLLVMIRReader_pic.a /work/obj/external/bsd/llvm/librt/libLLVMAsmParser/libLLVMAsmParser_pic.a /work/obj/external/bsd/llvm/librt/libLLVMVectorize/libLLVMVectorize_pic.a /work/obj/external/bsd/llvm/librt/libLLVMTransformsAggressiveInstCombine/libLLVMTransformsAggressiveInstCombine_pic.a /work/obj/external/bsd/llvm/librt/libLLVMProfileData/libLLVMProfileData_pic.a /work/obj/external/bsd/llvm/librt/libLLVMAnalysis/libLLVMAnalysis_pic.a /work/obj/external/bsd/llvm/librt/libLLVMIR/libLLVMIR_pic.a /work/obj/external/bsd/llvm/librt/libLLVMLinker/libLLVMLinker_pic.a /work/obj/external/bsd/llvm/librt/libLLVMBinaryFormat/libLLVMBinaryFormat_pic.a /work/obj/external/bsd/llvm/librt/libLLVMTransformsUtils/libLLVMTransformsUtils_pic.a /work/obj/external/bsd/llvm/librt/libLLVMSupport/libLLVMSupport_pic.a -lterminfo -lpthread 
 -L/work/obj/lib/libpthread -lpthread -L/work/obj/lib/libm -lm -L/work/obj/external/mit/xorg/lib/libdrm -ldrm -L/work/obj/external/mit/xorg/lib/libdrm_intel -ldrm_intel -L/work/obj/external/mit/xorg/lib/libdrm_radeon -ldrm_radeon -L/work/obj/external/mit/xorg/lib/libdrm_amdgpu -ldrm_amdgpu -L/work/obj/external/mit/xorg/lib/libdrm_nouveau -ldrm_nouveau -L/work/obj/external/mit/xorg/lib/libglapi -lglapi -L/work/obj/external/mit/expat/lib/libexpat -lexpat -L/work/obj/lib/libterminfo -lterminfo -L/work/obj/lib/libz -lz -L/work/obj/lib/libexecinfo -lexecinfo -L/work/obj/external/mit/xorg/lib/libX11/libX11-xcb -lX11-xcb -L/work/obj/external/mit/xorg/lib/libxcb/dri2 -lxcb-dri2 
/work/tools/lib/gcc/x86_64--netbsd/7.4.0/../../../../x86_64--netbsd/bin/ld: /work/obj/external/bsd/llvm/librt/libLLVMAMDGPUCodeGen/libLLVMAMDGPUCodeGen_pic.a(AMDGPUCodeGenPrepare.pico)(.debug_info+0x10bfb08): reloc against `.debug_str': error 4
/work/tools/lib/gcc/x86_64--netbsd/7.4.0/../../../../x86_64--netbsd/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status


>How-To-Repeat:
no idea, fails consistently on this machine

>Fix:

n/a

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: xsrc-manager->martin
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Mon, 12 Aug 2019 09:41:12 +0000
Responsible-Changed-Why:
my bug


State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Mon, 12 Aug 2019 09:41:12 +0000
State-Changed-Why:
local issue


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.