From owner-freebsd-toolchain@freebsd.org Tue Jan 9 14:44:26 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 27F0CE9A5BF for ; Tue, 9 Jan 2018 14:44:26 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0E5107F701 for ; Tue, 9 Jan 2018 14:44:26 +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 039D67987 for ; Tue, 9 Jan 2018 14:44:26 +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 w09EiPG9084123 for ; Tue, 9 Jan 2018 14:44:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w09EiPMo084122 for freebsd-toolchain@FreeBSD.org; Tue, 9 Jan 2018 14:44:25 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: freebsd-toolchain@FreeBSD.org Subject: [Bug 225025] Base c++ seems to find errors in the /usr/include/c++/v1/type_traits header in base Date: Tue, 09 Jan 2018 14:44:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to 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.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2018 14:44:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225025 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-bugs@FreeBSD.org |freebsd-toolchain@FreeBSD.o | |rg --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Tue Jan 9 15:19:15 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 70F17E5B6C6 for ; Tue, 9 Jan 2018 15:19:15 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 56E1880CD0 for ; Tue, 9 Jan 2018 15:19:15 +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 4C2D77DC1 for ; Tue, 9 Jan 2018 15:19:15 +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 w09FJFo6097948 for ; Tue, 9 Jan 2018 15:19:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w09FJF7V097947 for freebsd-toolchain@FreeBSD.org; Tue, 9 Jan 2018 15:19:15 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: freebsd-toolchain@FreeBSD.org Subject: [Bug 225025] Base c++ seems to find errors in the /usr/include/c++/v1/type_traits header in base Date: Tue, 09 Jan 2018 15:19:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dim@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to cc bug_status 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.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2018 15:19:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225025 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-toolchain@FreeBSD.o |dim@FreeBSD.org |rg | CC| |dim@FreeBSD.org Status|New |Open --- Comment #1 from Dimitry Andric --- Looks like something is defining `__invoke`, and then including the C++ headers. That should be avoided, any identifiers starting with `_` are reserved. Try to find the part of the program that is defining __invoke, and fix that. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Tue Jan 9 16:35:53 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A3C1FE622CC for ; Tue, 9 Jan 2018 16:35:53 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8A8C31257 for ; Tue, 9 Jan 2018 16:35:53 +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 7DE9110923 for ; Tue, 9 Jan 2018 16:35:53 +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 w09GZrBx089250 for ; Tue, 9 Jan 2018 16:35:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w09GZrco089249 for freebsd-toolchain@FreeBSD.org; Tue, 9 Jan 2018 16:35:53 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: freebsd-toolchain@FreeBSD.org Subject: [Bug 216316] objcopy (elfcopy) in 11 appears to have a regression compared to the version in 10 Date: Tue, 09 Jan 2018 16:35:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: mhorne063@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2018 16:35:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216316 Mitchell horne changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mhorne063@gmail.com --- Comment #3 from Mitchell horne --- (In reply to pete from comment #2) Here's the readelf section information on the file you provided: $ readelf --sections ipxe.pxe.tmp File: ipxe.pxe.tmp There are 20 section headers, starting at offset 0x702650: Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk I= nf Al [ 0] NULL 00000000 000000 000000 00 0 = 0=20 0 [ 1] .prefix PROGBITS 00000000 000134 000cb1 00 WAX 0 = 0=20 1 [ 2] .text16.early PROGBITS 00000000 000df0 0000ee 00 WAX 0 = 0=20 2 [ 3] .text16.late PROGBITS 000000f0 000ee0 0007f2 00 WAX 0 = 0 16 [ 4] .data16 PROGBITS 00000000 0016e0 000150 00 WA 0 = 0 16 [ 5] .bss.data16 NOBITS 00000150 0cb780 003040 00 WA 0 = 0 16 [ 6] .textdata PROGBITS 00000000 001830 0c9ec8 00 WAX 0 = 0=20 4 [ 7] .bss.textdata NOBITS 000c9f00 0cb780 0a5580 00 WA 0 = 0 128 [ 8] .zinfo PROGBITS 00000000 0cb6f8 000080 00 A 0 = 0=20 1 [ 9] .debug_info PROGBITS 00000000 0cb778 398f31 00 0 = 0=20 1 [10] .debug_abbrev PROGBITS 00000000 4646a9 054828 00 0 = 0=20 1 [11] .debug_aranges PROGBITS 00000000 4b8ed1 008e50 00 0 = 0=20 1 [12] .debug_line PROGBITS 00000000 4c1d21 059425 00 0 = 0=20 1 [13] .debug_str PROGBITS 00000000 51b146 05a0b9 01 MS 0 = 0=20 1 [14] .debug_frame PROGBITS 00000000 575200 02ec7c 00 0 = 0=20 4 [15] .debug_loc PROGBITS 00000000 5a3e7c 15183d 00 0 = 0=20 1 [16] .debug_ranges PROGBITS 00000000 6f56b9 00ced0 00 0 = 0=20 1 [17] .shstrtab STRTAB 00000000 702589 0000c5 00 0 = 0=20 1 [18] .symtab SYMTAB 00000000 702970 01af40 10 19 4= 079=20 4 [19] .strtab STRTAB 00000000 71d8b0 01ebe8 00 0 = 0=20 1 It appears that .bss.data16 and .bss.textdata overlap with .debug_info and = this is causing them to be moved. According to the ELF specification, "Sections in a file m= ay not overlap.=20=20 No byte in a file resides in more than one section" [1]. So whatever progra= m is generating your ELF file is doing so incorrectly. Although GNU objcopy is able to igno= re this when generating a binary file, it will adjust the section offsets similar to elftoolchain objcopy when performing other operations (e.g. objcopy -R .zinfo ipxe.pxe.tmp). However, I'm not sure why this would be causing you problems either way. Wh= en converting an ELF file to binary, sections with NOBITS type are ignored since they take u= p no actual space in the file itself. This is the case regardless of which implementation of objcopy you use.=20 Perhaps elftoolchain has a different bug in the binary creation procedure, = but to find that=20 you would need to provide additional info on how the binary output file is unusable. The simplest workaround (if you still need it at this point) is to use the = GNU version of objcopy provided in the binutils package. [1] http://www.skyfree.org/linux/references/ELF_Format.pdf --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Jan 11 13:43:34 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 13088E628EE for ; Thu, 11 Jan 2018 13:43:34 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 949E7711E4 for ; Thu, 11 Jan 2018 13:43:32 +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 BDE6B5A1 for ; Thu, 11 Jan 2018 13:43:31 +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 w0BDhVTD039904 for ; Thu, 11 Jan 2018 13:43:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w0BDhVWX039903 for freebsd-toolchain@FreeBSD.org; Thu, 11 Jan 2018 13:43:31 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: freebsd-toolchain@FreeBSD.org Subject: [Bug 223333] science/simlib: crashes nm(1) during build Date: Thu, 11 Jan 2018 13:43:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: Kurt@OpenLDAP.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jan 2018 13:43:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223333 Kurt@OpenLDAP.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Kurt@OpenLDAP.org --- Comment #4 from Kurt@OpenLDAP.org --- I ran into this bug using a different port (lcov)... so it's not just "affe= cts only me". --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Jan 12 13:45:50 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A5FC8E65657 for ; Fri, 12 Jan 2018 13:45:50 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8C5B36A3C9 for ; Fri, 12 Jan 2018 13:45:50 +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 806FF156B9 for ; Fri, 12 Jan 2018 13:45:50 +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 w0CDjoq4065981 for ; Fri, 12 Jan 2018 13:45:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w0CDjomB065979 for freebsd-toolchain@FreeBSD.org; Fri, 12 Jan 2018 13:45:50 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: freebsd-toolchain@FreeBSD.org Subject: [Bug 216080] science/bddsolve: fails to build with lang/gcc6 or later Date: Fri, 12 Jan 2018 13:45:50 +0000 X-Bugzilla-Reason: CC 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-patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ed@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: blocked 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.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jan 2018 13:45:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216080 Jan Beich changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |224669 --- Comment #7 from Jan Beich --- Clang 6 defaults to C++14, so pkg-fallout@ will complain soon. Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224669 [Bug 224669] [exp-run] Against projects/clang600-import branch --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Jan 12 14:39:05 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 165E0E6877C for ; Fri, 12 Jan 2018 14:39:05 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 98E006D825 for ; Fri, 12 Jan 2018 14:39:04 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-wm0-x22b.google.com with SMTP id 81so2678753wmb.1 for ; Fri, 12 Jan 2018 06:39:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=IAYTn9s3uHLNSDE/MGGpbIsSSLx7lC6BND+FACIpBJk=; b=2P5Ai2vWa9oQvA0RfFobKH9lDsuJy+aUMdtuir9digVyNCRsJJWY3umHriv8GHSSgB tWZ2VC/f6HbafzuOBzmureg/TDsl0NxG/bN/T0REWgc87xa4dbJEJTwhEFUzCL/kqWJA XPz67UvQHjEr2RAOq68SxK4ZeR5SOWtvSb3j7UY3fCRwlPAkn/hV0yrs66nWmxxFZSen roJOcHwHoEuRWRn2LZp3fgtbvbcazXLk0uwZ8o9+tOJTg6BIvVdL0M9b3R6KPOzDhcRa cDpSrwoLMgDUkfxMWw/bzPwHTYF/gtkJvYNnew6sLsNScqkijUGl9shFYEUlAP7OQpD3 zUAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=IAYTn9s3uHLNSDE/MGGpbIsSSLx7lC6BND+FACIpBJk=; b=Lfvphdcmx0ZdKnfCXo96HmODnNmMVfm3o4NVGglH5TBtAnhgg+EbFtOXDfIg/uP2Qe TVXSwN5yboFujr9FfKOOFSX9xojYPBMPEwYiKiJczBa5yfTFC62bou3kxgQx8ec32nrp iyPd42wzjG8XXk9oi/Se0hsShRxgIxHkVCbjdPfQvQke9V9dUMWZl/cUXIvTTZoove8h cupP5hEpGXIBg4UUMHK8fTyqhasBkbRz+wZG1IN7oJA3vQNihvuUVZvaI6cREpa94lk6 U+mxzBmVx3w16GZPYvepsik8koZXJcoxt6Jeh3a9MU64YPRRPYti0QGHjU9CLcnnJd1p x5EQ== X-Gm-Message-State: AKwxytegX8NHs2J9/9S7Fb7NR2HQrAS3a1aZ8S118UG0X4+1zAaftLV8 WckaAwIe998DMqTd9CSAr69+jvN693Zye9EAxJpUzmQ86irerjkVJYYV41JpOJtzCm6Ad5hxMnJ j5+kbbE/J2oZCAyfsHKbxxzHXAr3PGA14/LEeI7anyzk/bqPFA9wmLZQgHak2m7erZyWWRpslm2 CsZk+73toZEA== X-Google-Smtp-Source: ACJfBosr9K3/i0IM1ihEV1zetgF0xnhJn/JChamM7vL9huxcIM66tlsKMrNKo/7FTXCbQyijxSSV3w== X-Received: by 10.28.10.70 with SMTP id 67mr4090791wmk.12.1515767942510; Fri, 12 Jan 2018 06:39:02 -0800 (PST) Received: from mutt-hbsd (ip239.ip-144-217-60.net. [144.217.60.239]) by smtp.gmail.com with ESMTPSA id 11sm2099340wmd.33.2018.01.12.06.38.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Jan 2018 06:39:01 -0800 (PST) Date: Fri, 12 Jan 2018 09:38:51 -0500 From: Shawn Webb To: freebsd-toolchain@freebsd.org Cc: dim@freebsd.org Subject: projects/clang600-import and ld.lld Message-ID: <20180112143851.wzp373hapbsxyntu@mutt-hbsd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2ev7dbguvrqy72wp" Content-Disposition: inline X-Operating-System: FreeBSD mutt-hbsd 12.0-CURRENT FreeBSD 12.0-CURRENT X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0x6A84658F52456EEE User-Agent: NeoMutt/20171208 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jan 2018 14:39:05 -0000 --2ev7dbguvrqy72wp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey All, I know it's early in the game, but I thought I'd report this anyways. I have lld as the default linker (MK_LLD_IS_LD=3Dyes). When lld tries to link usr.bin/clang/llvm-extract/llvm-extract, lld errors out with some unresolved symbols. The log is below. Has anyone else run into this? /usr/obj/scratch/hbsd-playground/amd64.amd64/tmp/usr/bin/ld: error: undefin= ed symbol: compressBound = =20 >>> referenced by Compression.cpp:63 (/scratch/hbsd-playground/contrib/llvm= /lib/Support/Compression.cpp:63) = =20 >>> Compression.o:(llvm::zlib::compress(llvm::StringRef, llvm= ::SmallVectorImpl&, llvm::zlib::CompressionLevel)) in archive /usr/ob= j/scratch/hbsd-playground/amd64.amd64 /lib/clang/libllvm/libllvm.a /usr/obj/scratch/hbsd-playground/amd64.amd64/tmp/usr/bin/ld: error: undefin= ed symbol: compress2 >>> referenced by Compression.cpp:66 (/scratch/hbsd-playground/contrib/llvm= /lib/Support/Compression.cpp:66) >>> Compression.o:(llvm::zlib::compress(llvm::StringRef, llvm= ::SmallVectorImpl&, llvm::zlib::CompressionLevel)) in archive /usr/ob= j/scratch/hbsd-playground/amd64.amd64 /lib/clang/libllvm/libllvm.a /usr/obj/scratch/hbsd-playground/amd64.amd64/tmp/usr/bin/ld: error: undefin= ed symbol: uncompress >>> referenced by Compression.cpp:79 (/scratch/hbsd-playground/contrib/llvm= /lib/Support/Compression.cpp:79) >>> Compression.o:(llvm::zlib::uncompress(llvm::StringRef, ch= ar*, unsigned long&)) in archive /usr/obj/scratch/hbsd-playground/amd64.amd= 64/lib/clang/libllvm/libllvm.a /usr/obj/scratch/hbsd-playground/amd64.amd64/tmp/usr/bin/ld: error: undefin= ed symbol: crc32 >>> referenced by Compression.cpp:98 (/scratch/hbsd-playground/contrib/llvm= /lib/Support/Compression.cpp:98) >>> Compression.o:(llvm::zlib::crc32(llvm::StringRef)) in arc= hive /usr/obj/scratch/hbsd-playground/amd64.amd64/lib/clang/libllvm/libllvm= =2Ea c++: error: linker command failed with exit code 1 (use -v to see invocatio= n) --- llvm-extract.full --- *** [llvm-extract.full] Error code 1 make[5]: stopped in /scratch/hbsd-playground/usr.bin/clang/llvm-extract Thanks, --=20 Shawn Webb Cofounder and Security Engineer HardenedBSD Tor-ified Signal: +1 443-546-8752 GPG Key ID: 0x6A84658F52456EEE GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE --2ev7dbguvrqy72wp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAlpYyHgACgkQaoRlj1JF bu5BthAAxq65bLHtzXLi+Yub6EdeaTjZmub4TW295gEoejVpHHCBudyH0TAQY5vh oJX0rrNHueWJxSz8hOoFz/Rt9Wz6qkCRiWZeKYP4LUIM8Wk0gYcK0hw5GL/8CgpR y+G8D+hB5LamZe1NRVu/SOw6mEcHDO+cCDreCFzWm2RV8iUggOyBc18kP3aPKgzy 2QFkaJXD6EYZW59aCd0QKOybH6poQqpwZNRNLUox/kk1VSbZO46QX8XTOFQu1wJf tkljq9D8TLC0A3TL8rfzpwmaWifDouyKipivcRWMoJJlzu2jNFl+abLrLmGcpJ// qmn5GTpvibHeupWOZl2aYr5ATwG1rzHOA8JmWCikqRUDVaLz8GbfsoUhc5wKRNR3 uhvmgxXDCTi/Zo9V1VvUMH2wLxLtXWXVzGyr56Lax0UjrYsS78dUXF/oxpQ3olem 0mfbHWeheyd44DOpcvo7qPVjpS9HW2HKTjf1ntK6et6KkyGkJ/BOLlAPMmeEKSjY WisD/s1suKnKcyP4cuhAmBiYHC0NSBA2qgkKeT7MOd5y0U+rJqQZXeq+uRe22wBE KCh/Zz7v4JfwmGytvcB1I8G9dlSNBxU+VS4OQ2nPc61EEBe6A3Oio1oWAoDySdJe nsr8U3L89H8T6B2UvB4BTzfax5pj5NYvPcGvLJsFbcH+E8u6tyg= =EE8/ -----END PGP SIGNATURE----- --2ev7dbguvrqy72wp-- From owner-freebsd-toolchain@freebsd.org Fri Jan 12 15:18:00 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 105A3E6A5CE for ; Fri, 12 Jan 2018 15:18:00 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C7AFC6F3F5 for ; Fri, 12 Jan 2018 15:17:59 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from coleburn.home.andric.com (coleburn.home.andric.com [192.168.0.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 05BED4715F; Fri, 12 Jan 2018 16:17:51 +0100 (CET) From: Dimitry Andric Message-Id: <7D27872B-1FAF-4DCE-AD90-B8F9EB866C75@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_958BF566-E4BD-4763-B01A-DC6E11C542CA"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: projects/clang600-import and ld.lld Date: Fri, 12 Jan 2018 16:17:50 +0100 In-Reply-To: <20180112143851.wzp373hapbsxyntu@mutt-hbsd> Cc: freebsd-toolchain@freebsd.org To: Shawn Webb References: <20180112143851.wzp373hapbsxyntu@mutt-hbsd> X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jan 2018 15:18:00 -0000 --Apple-Mail=_958BF566-E4BD-4763-B01A-DC6E11C542CA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 12 Jan 2018, at 15:38, Shawn Webb wrote: >=20 > I know it's early in the game, but I thought I'd report this anyways. > I have lld as the default linker (MK_LLD_IS_LD=3Dyes). When lld tries = to > link usr.bin/clang/llvm-extract/llvm-extract, lld errors out with some > unresolved symbols. The log is below. >=20 > Has anyone else run into this? >=20 > /usr/obj/scratch/hbsd-playground/amd64.amd64/tmp/usr/bin/ld: error: = undefined symbol: compressBound >>>> referenced by Compression.cpp:63 = (/scratch/hbsd-playground/contrib/llvm/lib/Support/Compression.cpp:63) >>>> Compression.o:(llvm::zlib::compress(llvm::StringRef, = llvm::SmallVectorImpl&, llvm::zlib::CompressionLevel)) in archive = /usr/obj/scratch/hbsd-playground/amd64.amd64 > /lib/clang/libllvm/libllvm.a It links fine for me, and I haven't heard any other reports of this, but can you please try adding a line: LIBADD+=3D z to usr.bin/clang/llvm-extract/Makefile locally, and see if that fixes it for you? At some point I've tried minimizing the number of libraries pulled in, and on my systems llvm-extract didn't use any of the compression functions. If you compile it differently, it could end up pulling in those functions anyway. Do you have any non-default settings in make.conf or src.conf? -Dimitry P.S. The clang600-import branch should be mostly ready for general consumption, except for a number of ports that are still problematic, see https://bugs.freebsd.org/224669 --Apple-Mail=_958BF566-E4BD-4763-B01A-DC6E11C542CA Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWljRngAKCRCwXqMKLiCW o1dmAJ9LnW28mOziEFLpJ/KHh6EYRftIrQCfRgJi4ZggPHrRDzvbBrUxFQgaX3w= =7ixN -----END PGP SIGNATURE----- --Apple-Mail=_958BF566-E4BD-4763-B01A-DC6E11C542CA-- From owner-freebsd-toolchain@freebsd.org Fri Jan 12 15:27:31 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D9DDCE6AE30 for ; Fri, 12 Jan 2018 15:27:31 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7E3766F979 for ; Fri, 12 Jan 2018 15:27:31 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-wm0-x233.google.com with SMTP id f140so12510779wmd.2 for ; Fri, 12 Jan 2018 07:27:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Z26XxE2q9ndh0WtJrSWmuBYgNiHTlE9/gTSlm/FMEmU=; b=ec5Xc9ER/g2NJ5Wn5XAxHI6w+l9IP8bI1i686QQnNpnNR3Nt/eb1KbsqwovgLqtTf3 RTxm1akeR6vQB3UNfu6cx3Ci9IovaxVngmROM8/YJGyfZNeSlDJP7OVAy1PoGSD4Dh2a UTdVILvfApMLPp2TCHqtTeP0uf8MLeXH5gmtWOiIOtNPC4xTSUiPa5Scy46ZW5mAoE00 fWZjOxweyExjzTAHma8MmzkfMJH5tX1Wm3jSjiR4au4qePB3i5WXUJS1/hshhIFYF8vl bM7E0dUyptC3livx8U5CCTqMOsyWDnP7+6Ay7xU56QV3uNAo7dVohYf7VlJoN/ZMrZpV Wx4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Z26XxE2q9ndh0WtJrSWmuBYgNiHTlE9/gTSlm/FMEmU=; b=q7bc+RgIJxfmGAr7UezgNcV36rTjmWu9vYvXEmPULkbdM2fDh/IPL4+rHiCPgFJBHJ jftmVEcxeHuX4B6H7r/5skXNSsuYdR64O/2hzXEZsTGxxaMqQhDrLAYHEOTviH4CH3UA cL1m7YEPJ+G6q/qqZx60Nwu6DaiachK8cdzofmJG4SbE4Q4WXkhdufe20/R3808t0k1z ZBspDewR2F1UvDC7Raew69XzmMPphkfprUobqs9pQ2Gf5xqNbgV6F0nh3UmExrm9zz3E p9lVVsW05QuZLBLaFErwl3RLrX+jZCOfq3YsPcuB6pmHAw7sJx251ax7K+dNl5ibvjZM 1Vbg== X-Gm-Message-State: AKGB3mIWhND4Vujm9Y0wwkbgp2GRlS8P9lYTjDLgJqHm6bc9vofZkAwC HMZoQn97Fhy7yvdPxmN/QoaIfA== X-Google-Smtp-Source: ACJfBosE+V6vb5lZvkGbQ+69OISvPFCrLdjhZhKqNDKR8MAhHZwdAfuy74nnFJKKz7+Gn4HNIFdG6w== X-Received: by 10.80.231.13 with SMTP id a13mr36599588edn.264.1515770849749; Fri, 12 Jan 2018 07:27:29 -0800 (PST) Received: from mutt-hbsd ([94.177.123.116]) by smtp.gmail.com with ESMTPSA id k42sm5103588edb.44.2018.01.12.07.27.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Jan 2018 07:27:28 -0800 (PST) Date: Fri, 12 Jan 2018 10:26:59 -0500 From: Shawn Webb To: Dimitry Andric Cc: freebsd-toolchain@freebsd.org Subject: Re: projects/clang600-import and ld.lld Message-ID: <20180112152659.rqkvhzny6hzczv3k@mutt-hbsd> References: <20180112143851.wzp373hapbsxyntu@mutt-hbsd> <7D27872B-1FAF-4DCE-AD90-B8F9EB866C75@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5reuvyv7mw6kigem" Content-Disposition: inline In-Reply-To: <7D27872B-1FAF-4DCE-AD90-B8F9EB866C75@FreeBSD.org> X-Operating-System: FreeBSD mutt-hbsd 12.0-CURRENT FreeBSD 12.0-CURRENT X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0x6A84658F52456EEE User-Agent: NeoMutt/20171208 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jan 2018 15:27:31 -0000 --5reuvyv7mw6kigem Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 12, 2018 at 04:17:50PM +0100, Dimitry Andric wrote: > On 12 Jan 2018, at 15:38, Shawn Webb wrote: > >=20 > > I know it's early in the game, but I thought I'd report this anyways. > > I have lld as the default linker (MK_LLD_IS_LD=3Dyes). When lld tries to > > link usr.bin/clang/llvm-extract/llvm-extract, lld errors out with some > > unresolved symbols. The log is below. > >=20 > > Has anyone else run into this? > >=20 > > /usr/obj/scratch/hbsd-playground/amd64.amd64/tmp/usr/bin/ld: error: und= efined symbol: compressBound > >>>> referenced by Compression.cpp:63 (/scratch/hbsd-playground/contrib/l= lvm/lib/Support/Compression.cpp:63) > >>>> Compression.o:(llvm::zlib::compress(llvm::StringRef, ll= vm::SmallVectorImpl&, llvm::zlib::CompressionLevel)) in archive /usr/= obj/scratch/hbsd-playground/amd64.amd64 > > /lib/clang/libllvm/libllvm.a >=20 > It links fine for me, and I haven't heard any other reports of this, but > can you please try adding a line: >=20 > LIBADD+=3D z Can do. I'm also using llvm-ar as the default ar and ranlib, llvm-nm as the default nm, and llvm-objdump as the default objdump. It might be the combination (I kinda suspect llvm-ar) that could be the issue. It's possible there's a regression in llvm-ar. >=20 > to usr.bin/clang/llvm-extract/Makefile locally, and see if that fixes it > for you? I'll give that a shot, but it seems the error is within lld itself. >=20 > At some point I've tried minimizing the number of libraries pulled in, > and on my systems llvm-extract didn't use any of the compression > functions. If you compile it differently, it could end up pulling in > those functions anyway. >=20 > Do you have any non-default settings in make.conf or src.conf? Nope. This is HardenedBSD's source tree, though, so we do have several different WITH_* flags. I'm working on pulling in the retpoline patch into a feature branch in the HardenedBSD Playground repo[1]. >=20 > -Dimitry >=20 > P.S. The clang600-import branch should be mostly ready for general > consumption, except for a number of ports that are still problematic, > see https://bugs.freebsd.org/224669 >=20 Great to hear! [1]: https://github.com/hardenedbsd/hardenedbsd-playground/tree/hardened/cu= rrent/retpoline Thanks for the help. I'll do more investigating and report back. In the meantime, if you have any further ideas, please let me know. Thanks again, --=20 Shawn Webb Cofounder and Security Engineer HardenedBSD Tor-ified Signal: +1 443-546-8752 GPG Key ID: 0x6A84658F52456EEE GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE --5reuvyv7mw6kigem Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAlpY08EACgkQaoRlj1JF bu7XwxAAvoFpROHxhjS0GKkAY0cvyrQP+kme0C2Kq1FjmcN14pZ02QJR+fWvc7vt 7opyfkJ7eS9KsCJQoCeO8iYsYky70l2rrQGOyUArMQ2+nc+hVuuQDKjtUGQ2lm0/ uedrbx565738dacHPyLjBVT11sjgJExjCAhrUDKk93ZHQvlg99JsdLtrooOyoitq oajaQOBNT3VzggAYI04n0PfIziVmDHu+GEJjWYVccVQ8FWuDPRB7lYtrguAXxp1F ZN4qhdIDUCVgvqpkVcLFszOZB9LLuMSKHSKEERODsQbO8pltYupX011dbSfkf+Bt j1fG7eq2KYlDv2dXwg6QeQ3BbqgnGK/sgvIUMh8lpDbXsfp5JGqzTwFLME7rLR80 1C1nlE4UvGyRNJAQ7u90GdkwaAPAQomF9GAnEy2I8/sfa4oulqLnpXFPP5JCYP0S uDZvqSPo6mPIPRgg6QSc1l95dccH86KTIAF56zh1OIhecSGyqllGfis9edNW51R2 /2qU4BUx9lmW+WbJnys/Igjiq0Y7M2XCL8FXdi1Q16Rm2JDu5FW0fAP9sNHRmcKd kNte3YbnovbJyCgMDYxc7lHab0PWdCal7lSUfEAR8Ch01BtsSLet3cia5ykc8xgp aFksDWyJfn1RI7DeaXiiZ8SUnshgnmsuEGNV4hzogKTBSpcrjic= =8+ei -----END PGP SIGNATURE----- --5reuvyv7mw6kigem-- From owner-freebsd-toolchain@freebsd.org Fri Jan 12 17:04:58 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CBA9CE704EE for ; Fri, 12 Jan 2018 17:04:58 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-wr0-x22b.google.com (mail-wr0-x22b.google.com [IPv6:2a00:1450:400c:c0c::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 57FE473DEF for ; Fri, 12 Jan 2018 17:04:58 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-wr0-x22b.google.com with SMTP id z48so5876373wrz.6 for ; Fri, 12 Jan 2018 09:04:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2wA9pLI/yu5Z7xG6G/Ml5RJtzVcd4A8Sb1UtMx3aPx8=; b=y2rfoo0IHJ8jdAbDgUaH85bboOk/oi8B+8/9Sgi5jQUoL7L920q9i8vs+zqBZDe9bX Q1qQZVQHN9ygnsn0cgEbcpUp7ceEhY7ddN1HmNd7+AuTudUVoqEuKot/HsBsRX6dn4T1 S+qr1Mf494oQ9TgWb74y8z8AB8NkJ/9pOxDiJ2zoqgdHRjDmR8+5joDl9pCy0eB0XdQY zt5thLRQ0wWW8Gfk3HPgLARRP1Aqx0ZRWLKnRQeDPKpdj+FYj+MRzykgDL4Adt5UvaBv T3vbBFSdZ+l33WD10EjfCAW56QdVQwAYe5Q7B+UHOeuNdQRXth+WC7bKbRaXBw9d3X+5 mdRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2wA9pLI/yu5Z7xG6G/Ml5RJtzVcd4A8Sb1UtMx3aPx8=; b=qQZ2DDAZnxlijFrpuuYT5BnyBbBt2jU6sYWBPw6/aaeuZ+a5q9Cqxlf7o+L70+ghD9 iB53QLiEHEzu744YA/k8iFQ7a6MdoD0D4HR+xf9BL1LTAnc1M5oMG/qflPdEKsUJEuod GCdO9Gh/lcZsgdLVtZe6hhNHpzSxtwdW6f3dctyg+nG/Utewjvd/KdYpjmLsD1M2YSAu Jrazb9RbV+x290oRm+1iuwrGLCzivb8GOQRkiY9NGZh2WcuJ6xw0Tgv5b2IUZuvuA3KG 5RgHkSD86J8RoYSBS7KFygNxiGI1WovEter2GvVORWP5aTSmrM0a99TH4oPeAPe0PUK5 U0KA== X-Gm-Message-State: AKGB3mIcG1oW7i32SUuDNjIkNDPdboZLJcdKwVVR3rmKI3OCkFMcSo3S xQafGy+FokUjwqRbONjK5NixzhDAwvo= X-Google-Smtp-Source: ACJfBovg4eYI40GIGQezOs9Wr85FRWNr1EIz2Y7YofWodWNzIvo2hhXkeH1MOWvSdapas9Y93i6BrQ== X-Received: by 10.223.199.197 with SMTP id y5mr20482829wrg.158.1515776696410; Fri, 12 Jan 2018 09:04:56 -0800 (PST) Received: from mutt-hbsd ([5.188.10.8]) by smtp.gmail.com with ESMTPSA id j89sm6855516wrj.18.2018.01.12.09.04.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Jan 2018 09:04:55 -0800 (PST) Date: Fri, 12 Jan 2018 12:04:46 -0500 From: Shawn Webb To: Dimitry Andric Cc: freebsd-toolchain@freebsd.org Subject: Re: projects/clang600-import and ld.lld Message-ID: <20180112170446.knmihdnrrsqzwyba@mutt-hbsd> References: <20180112143851.wzp373hapbsxyntu@mutt-hbsd> <7D27872B-1FAF-4DCE-AD90-B8F9EB866C75@FreeBSD.org> <20180112152659.rqkvhzny6hzczv3k@mutt-hbsd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="miw4ckkvngodbw6t" Content-Disposition: inline In-Reply-To: <20180112152659.rqkvhzny6hzczv3k@mutt-hbsd> X-Operating-System: FreeBSD mutt-hbsd 12.0-CURRENT FreeBSD 12.0-CURRENT X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0x6A84658F52456EEE User-Agent: NeoMutt/20171208 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jan 2018 17:04:58 -0000 --miw4ckkvngodbw6t Content-Type: multipart/mixed; boundary="pumelxrelb6mbmqh" Content-Disposition: inline --pumelxrelb6mbmqh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 12, 2018 at 10:26:59AM -0500, Shawn Webb wrote: > On Fri, Jan 12, 2018 at 04:17:50PM +0100, Dimitry Andric wrote: > > On 12 Jan 2018, at 15:38, Shawn Webb wrote: > > >=20 > > > I know it's early in the game, but I thought I'd report this anyways. > > > I have lld as the default linker (MK_LLD_IS_LD=3Dyes). When lld tries= to > > > link usr.bin/clang/llvm-extract/llvm-extract, lld errors out with some > > > unresolved symbols. The log is below. > > >=20 > > > Has anyone else run into this? > > >=20 > > > /usr/obj/scratch/hbsd-playground/amd64.amd64/tmp/usr/bin/ld: error: u= ndefined symbol: compressBound > > >>>> referenced by Compression.cpp:63 (/scratch/hbsd-playground/contrib= /llvm/lib/Support/Compression.cpp:63) > > >>>> Compression.o:(llvm::zlib::compress(llvm::StringRef, = llvm::SmallVectorImpl&, llvm::zlib::CompressionLevel)) in archive /us= r/obj/scratch/hbsd-playground/amd64.amd64 > > > /lib/clang/libllvm/libllvm.a > >=20 > > It links fine for me, and I haven't heard any other reports of this, but > > can you please try adding a line: > >=20 > > LIBADD+=3D z >=20 > Can do. I'm also using llvm-ar as the default ar and ranlib, llvm-nm > as the default nm, and llvm-objdump as the default objdump. It might > be the combination (I kinda suspect llvm-ar) that could be the issue. > It's possible there's a regression in llvm-ar. >=20 > >=20 > > to usr.bin/clang/llvm-extract/Makefile locally, and see if that fixes it > > for you? >=20 > I'll give that a shot, but it seems the error is within lld itself. >=20 > >=20 > > At some point I've tried minimizing the number of libraries pulled in, > > and on my systems llvm-extract didn't use any of the compression > > functions. If you compile it differently, it could end up pulling in > > those functions anyway. > >=20 > > Do you have any non-default settings in make.conf or src.conf? >=20 > Nope. This is HardenedBSD's source tree, though, so we do have several > different WITH_* flags. I'm working on pulling in the retpoline patch > into a feature branch in the HardenedBSD Playground repo[1]. >=20 > >=20 > > -Dimitry > >=20 > > P.S. The clang600-import branch should be mostly ready for general > > consumption, except for a number of ports that are still problematic, > > see https://bugs.freebsd.org/224669 > >=20 >=20 > Great to hear! >=20 > [1]: https://github.com/hardenedbsd/hardenedbsd-playground/tree/hardened/= current/retpoline >=20 > Thanks for the help. I'll do more investigating and report back. In > the meantime, if you have any further ideas, please let me know. I've attached a patch which allows buildworld to succeed on HardenedBSD's retpoline branch. Thanks, --=20 Shawn Webb Cofounder and Security Engineer HardenedBSD Tor-ified Signal: +1 443-546-8752 GPG Key ID: 0x6A84658F52456EEE GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE --pumelxrelb6mbmqh Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="clang600.patch.txt" Content-Transfer-Encoding: quoted-printable diff --git a/lib/clang/liblldb/Makefile b/lib/clang/liblldb/Makefile index 9c99507acf9..ca6ce80a060 100644 --- a/lib/clang/liblldb/Makefile +++ b/lib/clang/liblldb/Makefile @@ -19,6 +19,7 @@ SRCS+=3D API/SBAttachInfo.cpp SRCS+=3D API/SBBlock.cpp SRCS+=3D API/SBBreakpoint.cpp SRCS+=3D API/SBBreakpointLocation.cpp +SRCS+=3D API/SBBreakpointOptionCommon.cpp SRCS+=3D API/SBBroadcaster.cpp SRCS+=3D API/SBCommandInterpreter.cpp SRCS+=3D API/SBCommandReturnObject.cpp @@ -47,6 +48,7 @@ SRCS+=3D API/SBModule.cpp SRCS+=3D API/SBModuleSpec.cpp SRCS+=3D API/SBPlatform.cpp SRCS+=3D API/SBProcess.cpp +SRCS+=3D API/SBProcessInfo.cpp SRCS+=3D API/SBQueue.cpp SRCS+=3D API/SBQueueItem.cpp SRCS+=3D API/SBSection.cpp diff --git a/usr.bin/clang/llvm-extract/Makefile b/usr.bin/clang/llvm-extra= ct/Makefile index 6079e1c0006..cc356a060c4 100644 --- a/usr.bin/clang/llvm-extract/Makefile +++ b/usr.bin/clang/llvm-extract/Makefile @@ -5,4 +5,6 @@ PROG_CXX=3D llvm-extract SRCDIR=3D tools/llvm-extract SRCS+=3D llvm-extract.cpp =20 +LIBADD+=3D z + .include "../llvm.prog.mk" --pumelxrelb6mbmqh-- --miw4ckkvngodbw6t Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAlpY6qsACgkQaoRlj1JF bu64SQ//b5ZxKajjoUvxgZgo0RFnY3JfsOI8V1X24oEbvZOhjwU2svSzzUsmiIR+ y0yKxrt2BGzwqGeqHcSjEMUz8iPX7bgCgIPo1WrckNCzCYRatJ7N2MOT1uQkq6Xq 4TOI0JAPO9TC5d2FuMMuBpjATAtULVRrO7hLCxUtFkZaw7dnGo6zYGYN0fsQhaBM cNTWUUfwFXmBBSIs6dpqOECoNVSH+z4SSd+ghkpgo+xG+LL8gvipCTgj5fNO18aq h/XugmEuyR2zlHlp4VHefw0sKgTg4koVeaUq21Yd30CXgUXeZO5WB1XPgaNquLOm DCLMlaL8DI5NMWS/OtNXTjk7DsdeGMpdS1bOJ4FrDhXl0H5ijhJbF/8IL1KiECt3 2us8kIjE8n9REPEkbeEjrVq2zJmVXX6mBRIR+PHF0rVArc8m7Jby/tT7pL5pKmuU tCwx1bcJoaAerKBuBtRSqNKSMHy3gqzxdQ4yR8Z+eJSk5g9GMQbh8Io2Qoj04mCe dmIKq3pJpelog6WcCc2jCy18sVW3qwUMEdu91eCNCsSsOldFo2I7YEZ9eQzwz3dZ WtGIzFbNrRLJWnZfIqlqHSPMlX/Kalj1R87nmmWvBpkwgsHIOzOH3yATmt7oapmN V4sgRN3YrETbbXTbn5f2tfz1eHAwr1PezHbpl/6k/nhvNTQVSmk= =3YgX -----END PGP SIGNATURE----- --miw4ckkvngodbw6t-- From owner-freebsd-toolchain@freebsd.org Fri Jan 12 19:42:36 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BA776E784A0 for ; Fri, 12 Jan 2018 19:42:36 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-133.reflexion.net [208.70.210.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 512DA7C3CB for ; Fri, 12 Jan 2018 19:42:35 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 6593 invoked from network); 12 Jan 2018 19:15:54 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 12 Jan 2018 19:15:54 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.40.4) with SMTP; Fri, 12 Jan 2018 14:15:54 -0500 (EST) Received: (qmail 30811 invoked from network); 12 Jan 2018 19:15:53 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 12 Jan 2018 19:15:53 -0000 Received: from [192.168.1.25] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 4314EEC9471; Fri, 12 Jan 2018 11:15:53 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: elfdump [a forward to toolchain] Message-Id: <62685F43-93A3-4380-B2C2-7FF386173999@dsl-only.net> Date: Fri, 12 Jan 2018 11:15:52 -0800 To: bygg@cafax.se, FreeBSD Toolchain X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jan 2018 19:42:36 -0000 Johnny Eriksson bygg at cafax.se wrote on Fri Jan 12 10:59:10 UTC 2018 : > When parsing a 64-bit big-endian elf file (on a 64-bit X86-64 system), > the sh_flags entry in the section header is mis-parsed since the routine > used only reads a 32-bit value. > > *** elfdump.c Fri Jan 12 10:43:35 2018 > --- elfdump.c.org Fri Jan 12 10:42:11 2018 > *************** > *** 798,804 **** > v = (char *)sh + i * shentsize; > name = elf_get_word(e, v, SH_NAME); > type = elf_get_word(e, v, SH_TYPE); > ! flags = elf_get_size(e, v, SH_FLAGS); > addr = elf_get_addr(e, v, SH_ADDR); > offset = elf_get_off(e, v, SH_OFFSET); > size = elf_get_size(e, v, SH_SIZE); > --- 798,804 ---- > v = (char *)sh + i * shentsize; > name = elf_get_word(e, v, SH_NAME); > type = elf_get_word(e, v, SH_TYPE); > ! flags = elf_get_word(e, v, SH_FLAGS); > addr = elf_get_addr(e, v, SH_ADDR); > offset = elf_get_off(e, v, SH_OFFSET); > size = elf_get_size(e, v, SH_SIZE); > > Possibly the (new) call to elf_get_size() should be changed to something > a little bit more informative. > > --Johnny === Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Sat Jan 13 13:53:59 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 74747E66583 for ; Sat, 13 Jan 2018 13:53:59 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 35A902BF5 for ; Sat, 13 Jan 2018 13:53:59 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from coleburn.home.andric.com (coleburn.home.andric.com [192.168.0.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 009794720B; Sat, 13 Jan 2018 14:53:55 +0100 (CET) From: Dimitry Andric Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_1B0D5698-0BF5-45DE-A943-353CB8DF9A0E"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: projects/clang600-import and ld.lld Date: Sat, 13 Jan 2018 14:53:49 +0100 In-Reply-To: <20180112170446.knmihdnrrsqzwyba@mutt-hbsd> Cc: freebsd-toolchain@freebsd.org To: Shawn Webb References: <20180112143851.wzp373hapbsxyntu@mutt-hbsd> <7D27872B-1FAF-4DCE-AD90-B8F9EB866C75@FreeBSD.org> <20180112152659.rqkvhzny6hzczv3k@mutt-hbsd> <20180112170446.knmihdnrrsqzwyba@mutt-hbsd> X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jan 2018 13:53:59 -0000 --Apple-Mail=_1B0D5698-0BF5-45DE-A943-353CB8DF9A0E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 12 Jan 2018, at 18:04, Shawn Webb wrote: >=20 > On Fri, Jan 12, 2018 at 10:26:59AM -0500, Shawn Webb wrote: >> On Fri, Jan 12, 2018 at 04:17:50PM +0100, Dimitry Andric wrote: >>> On 12 Jan 2018, at 15:38, Shawn Webb = wrote: >>>>=20 >>>> I know it's early in the game, but I thought I'd report this = anyways. >>>> I have lld as the default linker (MK_LLD_IS_LD=3Dyes). When lld = tries to >>>> link usr.bin/clang/llvm-extract/llvm-extract, lld errors out with = some >>>> unresolved symbols. The log is below. >>>>=20 >>>> Has anyone else run into this? >>>>=20 >>>> /usr/obj/scratch/hbsd-playground/amd64.amd64/tmp/usr/bin/ld: error: = undefined symbol: compressBound >>>>>>> referenced by Compression.cpp:63 = (/scratch/hbsd-playground/contrib/llvm/lib/Support/Compression.cpp:63) >>>>>>> Compression.o:(llvm::zlib::compress(llvm::StringRef, = llvm::SmallVectorImpl&, llvm::zlib::CompressionLevel)) in archive = /usr/obj/scratch/hbsd-playground/amd64.amd64 >>>> /lib/clang/libllvm/libllvm.a ... > I've attached a patch which allows buildworld to succeed on > HardenedBSD's retpoline branch. Committed in r327918. -Dimitry --Apple-Mail=_1B0D5698-0BF5-45DE-A943-353CB8DF9A0E Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWloPcwAKCRCwXqMKLiCW ozY4AKDOmfNtnimMWE+T12E/YimBiWIr9ACfbHmCApyPbW0VdF+OmljHIGQI/A4= =nU6E -----END PGP SIGNATURE----- --Apple-Mail=_1B0D5698-0BF5-45DE-A943-353CB8DF9A0E--