From owner-freebsd-toolchain@freebsd.org Sun May 26 20:08:47 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7BEDB15AF6B2 for ; Sun, 26 May 2019 20:08:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 12F436CF96 for ; Sun, 26 May 2019 20:08:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id C725015AF6B1; Sun, 26 May 2019 20:08:46 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A4C2A15AF6B0 for ; Sun, 26 May 2019 20:08:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 42D216CF91 for ; Sun, 26 May 2019 20:08:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 9960A148AC for ; Sun, 26 May 2019 20:08:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x4QK8jRZ062880 for ; Sun, 26 May 2019 20:08:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x4QK8jsG062879 for toolchain@FreeBSD.org; Sun, 26 May 2019 20:08:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 237068] /usr/local/bin/ld: BFD (GNU Binutils) 2.30 assertion fail elflink.c:2824 Date: Sun, 26 May 2019 20:08:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 May 2019 20:08:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237068 --- Comment #40 from Mark Millard --- (In reply to Dimitry Andric from comment #27) (In reply to Antoine Brodin from comment #37) I've not managed to get 32-bit powerpc FreeBSD to build llvm60 (or other such) using a gcc8/g++8 related toolchain: same assertion. I have reduced a reproduction technique for the g++8 context for 32-bit powerpc FreeBSD -r347549 down to: /usr/local/bin/ld \ -Bshareable \ -o lib/libLLVM-6.0.so \ /usr/local/lib/gcc8/gcc/powerpc-portbld-freebsd13.0/8.3.0/crtbeginS.o \ --gc-sections \ -soname libLLVM-6.0.so \ --version-script /wrkdirs/usr/ports/devel/llvm60/work/.build/./lib/tools/llvm-shlib/simple_v= ersion_script.map \ --whole-archive \ lib/libLLVMSupport.a \ --no-whole-archive \ -ltinfo \ /usr/local/lib/gcc8/gcc/powerpc-portbld-freebsd13.0/8.3.0/crtendS.o /usr/local/bin/ld \ -Bshareable \ -o lib/libLTO.so.6.0.1 \ /usr/local/lib/gcc8/gcc/powerpc-portbld-freebsd13.0/8.3.0/crtbeginS.o \ --gc-sections \ -soname \ libLTO.so.6 \ lib/libLLVM-6.0.so \ /usr/local/lib/gcc8/gcc/powerpc-portbld-freebsd13.0/8.3.0/crtendS.o where lib/libLLVM-6.0.so ends up with: # ldd lib/libLLVM-6.0.so lib/libLLVM-6.0.so: libncurses.so.8 =3D> /lib/libncurses.so.8 (0x41e00000) libc.so.7 =3D> /lib/libc.so.7 (0x41862000) # readelf -asW /lib/libncurses.so.8 | egrep '(bss|Symbol)' 01 .ctors .dtors .jcr .data.rel.ro .dynamic .data .got .sdata .sbss = .plt .bss=20 [21] .sbss NOBITS 00057448 047448 000070 00 WA 0 = 0=20 4 [23] .bss NOBITS 00058410 047448 00085c 00 WA 0 = 0=20 8 Symbol table (.dynsym) contains 725 entries: 474: 0000000000057448 0 NOTYPE GLOBAL DEFAULT ABS __bss_start Symbol table (.symtab) contains 752 entries: 501: 0000000000057448 0 NOTYPE GLOBAL DEFAULT ABS __bss_start (Note: __bss_start has the .sbss 00057448 .) This ends up producing a lib/libLLVM-6.0.so with: # readelf -asW lib/libLLVM-6.0.so | egrep '(bss|Symbol )' 01 .tbss .init_array .ctors .dtors .data.rel.ro .got2 .dynamic .data .got .sdata .sbss .plt .bss=20 03 .tbss=20 [13] .tbss NOBITS 001522dc 1422dc 000004 00 WAT 0 = 0=20 4 [23] .sbss NOBITS 001574b8 1474b8 000025 00 WA 0 = 0=20 8 [25] .bss NOBITS 0015ac78 1474b8 001364 00 WA 0 = 0=20 8 Symbol table (.dynsym) contains 2510 entries: 1390: 00000000001574b8 0 NOTYPE GLOBAL DEFAULT 23 __bss_start@@LLVM_6.0 (2) Symbol table (.symtab) contains 3680 entries: 2560: 00000000001574b8 0 NOTYPE GLOBAL DEFAULT 23 __bss_start In other words, the .dynsym ends up with the @@LLVM_6.0 added. Removing either lib/libLLVMSupport.a or -ltinfo no longer gets the assert but does not include as much. --=20 You are receiving this mail because: You are the assignee for the bug.=