From owner-freebsd-toolchain@freebsd.org Thu Oct 4 18:07:41 2018 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 A29D210B529E for ; Thu, 4 Oct 2018 18:07:41 +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 3BD787CA9C for ; Thu, 4 Oct 2018 18:07:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id F393C10B529C; Thu, 4 Oct 2018 18:07:40 +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 E1AF710B5299 for ; Thu, 4 Oct 2018 18:07:40 +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 7F8D67CA96 for ; Thu, 4 Oct 2018 18:07:40 +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 B0055165FB for ; Thu, 4 Oct 2018 18:07:39 +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 w94I7dWP056496 for ; Thu, 4 Oct 2018 18:07:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w94I7den056485 for toolchain@FreeBSD.org; Thu, 4 Oct 2018 18:07:39 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 231952] emulators/rpcs3: clang crashes during build Date: Thu, 04 Oct 2018 18:07:39 +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 Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to bug_file_loc 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.27 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, 04 Oct 2018 18:07:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231952 Jan Beich changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|ports-bugs@FreeBSD.org |toolchain@FreeBSD.org URL| |http://beefy12.nyi.freebsd. | |org/data/head-amd64-default | |/p481194_s339174/logs/error | |s/rpcs3-0.0.5.968.log --- Comment #3 from Jan Beich --- Clang crashes since https://github.com/RPCS3/rpcs3/commit/1b740995a4b6 Affe= cts at least Clang 8.0.0 (20181001), 7.0.0, 6.0.1 while GCC 8.2.0, 7.3.0 are fi= ne. Earlier versions don't support C++17 required by RPCS3. Can you help analyze what's wrong with Clang on FreeBSD? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Oct 4 18:26:32 2018 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 6EB6810B6132 for ; Thu, 4 Oct 2018 18:26:32 +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 079617DDBB for ; Thu, 4 Oct 2018 18:26:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id BE4C310B612F; Thu, 4 Oct 2018 18:26:31 +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 AD0FA10B612E for ; Thu, 4 Oct 2018 18:26:31 +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 706107DDB3 for ; Thu, 4 Oct 2018 18:26:31 +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 BEA03168D5 for ; Thu, 4 Oct 2018 18:26:30 +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 w94IQUbl064769 for ; Thu, 4 Oct 2018 18:26:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w94IQUmo064768 for toolchain@FreeBSD.org; Thu, 4 Oct 2018 18:26:30 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 231952] emulators/rpcs3: clang crashes during build Date: Thu, 04 Oct 2018 18:26:30 +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, regression 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: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords 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.27 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, 04 Oct 2018 18:26:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231952 Jan Beich changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression --- Comment #4 from Jan Beich --- Clang 6.0.0 on FreeBSD 11.2 is not affected, see https://ptpb.pw/wO-Z OTOH, devel/llvm60 does crash on FreeBSD 11.2. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Oct 5 02:16:30 2018 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 C199810C010E for ; Fri, 5 Oct 2018 02:16:30 +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 5E3F08D7EB for ; Fri, 5 Oct 2018 02:16:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 2067110C010B; Fri, 5 Oct 2018 02:16:30 +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 0F39410C0109 for ; Fri, 5 Oct 2018 02:16:30 +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 A576B8D7E4 for ; Fri, 5 Oct 2018 02:16:29 +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 D3D781A9EF for ; Fri, 5 Oct 2018 02:16:28 +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 w952GS2m021247 for ; Fri, 5 Oct 2018 02:16:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w952GSKQ021243 for toolchain@FreeBSD.org; Fri, 5 Oct 2018 02:16:28 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 230857] loading carp module panic i386 kernel (VIMAGE related) Date: Fri, 05 Oct 2018 02:16:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: panic, vimage X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bz@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bz@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.27 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, 05 Oct 2018 02:16:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230857 Bjoern A. Zeeb changed: What |Removed |Added ---------------------------------------------------------------------------- CC|net@FreeBSD.org |toolchain@FreeBSD.org --- Comment #3 from Bjoern A. Zeeb --- Looks like this is a toolchain issue that circumvents dpcpu/vnet magic. I'll explain in full details in the morning. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Oct 5 19:57:08 2018 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 EF36A10B50D7 for ; Fri, 5 Oct 2018 19:57:07 +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 8C45A8E6E1 for ; Fri, 5 Oct 2018 19:57:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 4D6A610B50D4; Fri, 5 Oct 2018 19:57:07 +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 3BED410B50D3 for ; Fri, 5 Oct 2018 19:57:07 +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 D104A8E6DB for ; Fri, 5 Oct 2018 19:57:06 +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 23A9A23D3C for ; Fri, 5 Oct 2018 19:57:06 +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 w95Jv6fp060666 for ; Fri, 5 Oct 2018 19:57:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w95Jv6w5060665 for toolchain@FreeBSD.org; Fri, 5 Oct 2018 19:57:06 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 230857] loading carp module panic i386 kernel (VIMAGE related) Date: Fri, 05 Oct 2018 19:57:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: panic, vimage X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bz@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bz@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.27 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, 05 Oct 2018 19:57:08 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230857 Bjoern A. Zeeb changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |In Progress --- Comment #4 from Bjoern A. Zeeb --- Ok, so the short explanation is that having a non-simple-type at the end of= the dpcpu or vnet linker sets and an intelligent compiler/linker combination can result in the last symbol not being relocated. In the case of i386/carp th= is was the PCPU stats glebius introduced which is an array of 16 pointers. I've spent a day to think of possible work around and the only one was to a= dd padding to the end of the section; with the help of arichardson managed to work my way around linker scripts and with an extra 8 hours I have a dual-s= tage linker-script solution which will only adjust the kernel modules which actu= ally do have a vnet_set or pcpu_set section and not create one in every module w= ith the size of 1 byte. I'll write the entire details up including sample code and the hacked up prototype solution and post it all here and in phab sometime the next days (possibly after the weekend). TODO: investigate which other architectures but i386 are possibly affected = by this as well. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Sat Oct 6 06:10:38 2018 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 5191710CA31B for ; Sat, 6 Oct 2018 06:10:38 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic302-20.consmr.mail.ne1.yahoo.com (sonic302-20.consmr.mail.ne1.yahoo.com [66.163.186.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C86D584B80 for ; Sat, 6 Oct 2018 06:10:37 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 0FUEkoIVM1mO4ce7.LY0RVvh6d51ysPo27mmEIChH_LuFn2rgCvvTAznEwrPCwf OEvmT3jn9vs1PLNL0xskTOetFz03DTn8a6EqzN.3aH8G_8xRkZ85HFt_NfmLhuBjBCL9b9nuFGkA BLo1uCEBroKYfM5r2qhZ3LL3QbPNY1l._ld1AwWbPrCQnMvQMPLPH68ybBJfbHr2jMYiNF5FKfPM WQJNmRMeTChLxEBnd7OoTefu3ehRjvVokfz7a1ind.xOsSnwlSaFwRPqPkvR3h78FuNqLE27Ry5h OiGtzhDfVECHZ5wXKaX.Kg89bk7io9VUMoVQ6mbO.PgzPgq09LNXMmBsTGx4XDTyeYNcUyV2azc0 CdV1Z.OdkPktYzqASJQQmfihqB3cSlOhqv_EYMKhOLRrCcl2bKvHntE9oaSfdqdkTRkpsigHsdnd FFP33K4otFVhF73GOzEhSKv85KyBbUYSl0Q8cAmzNA7MgL8lwZnxXJ5QIvCRNPqalUExGAiR8NNh YwRX1mYsnGaVxeNSf6cXrRVAhRI7zW6Zb6oAOe8I93pN13zC_dVi8pMSgJ48BgyCDYGL.Wauj5YX _I32sLhTABpsfxULsDQBExpkW5Vvd24xdBdTH2zdvyjNkxY1l_FVAvLmc70s3avprwzKcMDZ2v6s ixfdmKtOsqcYUTNicuE43UkjFG1H5tiJiZDm6roaDgpeUFiUMDJRH4V4O_jLHsL0tZTh6hBzHfD. 1b8myVEFQBhAQJ9LKRcomzlOK_8MLLorJnvSck4gMgWAgsjcAAjL1EQre4XV2NuNbMstemmHa5Cg VdU1Hrj_ryLhfh3Ljl2YalxbQJ2rd4rXBR5B12OKwf1KZDEnbUiZ1SVuGr0FHc8PRrb561n8HBNv kz7FXnhv9OZzDlMvabDZueNXyxYBJztHJrJs8Aw1Axbn4ZU.4d4qRigccJc.1tffGt4sWbJtFnwR V3YRh1JwsTC5RtoZbmtmHx8NF.trEhlI1H4UhuIx__A25YeaS6Yy_lqSVIBGj2QOPSLgLuup7RBZ .vumqsH8XiepJj.EjuIkaDEGSQRTCSfH5WYeXGcikRyvuuuyJPQdpg7dWBG8pC0Xb7w-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Sat, 6 Oct 2018 06:10:30 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.101]) ([76.115.7.162]) by smtp426.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 1ff73baf47add1e17f628df79a51eb2e; Sat, 06 Oct 2018 06:00:19 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: base/binutils vs. /usr/local/lib references and also: undefined reference to `pthread_create' (powerpc64 targeting example) Message-Id: <4C338B84-1179-4569-A964-CA18A22AF1D7@yahoo.com> Date: Fri, 5 Oct 2018 23:00:18 -0700 To: FreeBSD Toolchain , FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 06 Oct 2018 06:10:38 -0000 In trying to follow the base/binutils part of = https://wiki.freebsd.org/ExternalGCC (or /usr/ports/base/README) for targeting powerpc64 I got: ( My /etc/make.conf has: WRKDIRPREFIX?=3D/wrkdirs .) # cd ../../base/binutils/ # make CROSS_TOOLCHAIN=3Dpowerpc64-gcc = CROSS_SYSROOT=3D/usr/obj/DESTDIRs/xtcgcc-powerpc64-installworld package . . . --- recode-sr-latin --- /bin/sh ../libtool --tag=3DCC --mode=3Dlink = /usr/local/bin/powerpc64-unknown-freebsd12.0-gcc = --sysroot=3D/usr/obj/DESTDIRs/xtcgcc-powerpc64-installworld -O2 -pipe = -DLIBICONV_PLUG -g -fno-strict-aliasing -o recode-sr-latin = recode_sr_latin-recode-sr-latin.o recode_sr_latin-filter-sr-latin.o = ../gnulib-lib/libgettextlib.la ../intl/libintl.la -L/usr/local/lib --- cldr_plurals-cldr-plural.o --- . . . --- recode-sr-latin --- libtool: link: /usr/local/bin/powerpc64-unknown-freebsd12.0-gcc = --sysroot=3D/usr/obj/DESTDIRs/xtcgcc-powerpc64-installworld -O2 -pipe = -DLIBICONV_PLUG -g -fno-strict-aliasing -o .libs/recode-sr-latin = recode_sr_latin-recode-sr-latin.o recode_sr_latin-filter-sr-latin.o = ../gnulib-lib/.libs/libgettextlib.so = /wrkdirs/usr/ports/devel/gettext-tools/work/gettext-0.19.8.1/gettext-tools= /intl/.libs/libintl.so -L/usr/local/lib ../intl/.libs/libintl.so -lm = -lncurses -Wl,-rpath -Wl,/usr/local/lib --- hostname --- . . . --- recode-sr-latin --- = /wrkdirs/usr/ports/devel/gettext-tools/work/gettext-0.19.8.1/gettext-tools= /intl/.libs/libintl.so: undefined reference to `pthread_create' collect2: error: ld returned 1 exit status *** [recode-sr-latin] Error code 1 make[16]: stopped in = /wrkdirs/usr/ports/devel/gettext-tools/work/gettext-0.19.8.1/gettext-tools= /src The use of -L/usr/local/lib and -Wl,-rpath -Wl,/usr/local/lib look suspect for such cross builds: # ls /usr/obj/DESTDIRs/xtcgcc-powerpc64-installworld/usr/local/lib/ ls: /usr/obj/DESTDIRs/xtcgcc-powerpc64-installworld/usr/local/lib/: No = such file or directory Then there is also: undefined reference to `pthread_create'. Is there a missing -pthread or some such? (Or is the /usr/local/lib reference a cause?) [FYI: The earlier pkg build seem to have worked.] Looks like this way of getting to 12 or later for powerpc64 without use of gcc 4.2.1 is currently blocked. (The issue may not be limited to powerpc64.) (It is also unclear how the process involving base/* mixes with doing later FreeBSD updates from source --including any use of a delete-old step if WITHOUT_BINUTILS=3D is used at the time. For the cross = buildworld itself it is not clear what options are intended.) Notes about some typos on: https://wiki.freebsd.org/ExternalGCC /usr/ports/devel/ports-mgmt/pkg should be: /usr/ports/ports-mgmt/pkg 3 examples of CROSS_TOOCLAHIN should be: CROSS_TOOLCHAIN Notes about the /usr/ports/base/README : No mention is made of the pkg build so that it can be set up on the target. Only https://wiki.freebsd.org/ExternalGCC has that information. /usr/ports/base/README does not reference https://wiki.freebsd.org/ExternalGCC either. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-toolchain@freebsd.org Sat Oct 6 19:42:32 2018 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 0637310C487E for ; Sat, 6 Oct 2018 19:42:32 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic313-20.consmr.mail.gq1.yahoo.com (sonic313-20.consmr.mail.gq1.yahoo.com [98.137.65.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8763A80FFC for ; Sat, 6 Oct 2018 19:42:31 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: vLtscRgVM1k29rImfuaGZOLNamqT0.Z44G.DytqjVZ2FR6GjTQIM1bX.bsIc0dk 35u3SUZVqnhuCl6yCQFnwqQyJ8RwibLXc1a_Ui3itOIj0oDahCFZQJOUG1MCrdVB0EgFvpL_AD.Q 7iMJcLxnXvJe9OJAP2nJurlC_1RhCaWnTkvL1I3KYbHiKAdy2caJOSLwoTx.gevQ6hbt2N1dOveG eTI8X9ewTD6q8jSwNY_rlxzCwGqi.Ju716obsGBQDvLwtXHArgM5l77XX96AfJQJt6CbJazhTGun Ad1qFYXdP0w5G_bhN45.fpIN_1epz1RqymzKXQ2bp1Gk_7.BryBr_wG2Prdj0pUoHiuBOwXZYtpn TfhbKM2VKNDMnQ7zoFL99vbjxmcse88tuh_x5pmqbgeKOGcwevwHV9ignlnGjZBmUXpv4NHds6qz YMqFNsk0LyrUIN6p.ldwlz9dPlcphAlehDnTiYoQSqb72.MumqD3iORvuocRmHteXkZtRVELyOu8 Pzo2VJqa0pj_sMTMr6x83rzTfC_jmtGL1ilZ6Wf4qqPY0A8cF2_VoQZONHbxOxQcmhSioXI4BO9j DjYAd_.eYWYzKmmwZTf5lwbVdz2iMG94X_4kmfLNdjSMeAQ_DKKTmh0QnlJPAOA0IZnfyuXqK8t5 COnjgVLBqIqczGyEXEfRyUBTK63ZNJ27Z0WAM5obDaMjLIybQlvWfHUff3XDJti6dPr3DOytct3P EKZ_OoEX0GKoKAR1U1lujkrqHjKy9t38Qrrgm_.aRbNZ9qgl7f2IVWX5HeYE.lVhiEUA95LslgRI gvCZ12s5dlirMdTWeQqhoZkjw1nxsoY2RNqVgbVWpNOQRNQcdZkNWvG37_WKIADosvrPG5MUWklB KYnrPvzSNiWuvAFijz6Hb.Xyl0UeHYHOlLtxE9fABIThhQH94kmfuEkW.Fab895m3al0LuQ7caKE PkrIyD2y1E8mCqIJGtQ9ajS9CkFbid0dyYlroLXpHkwyvRgkTJpSiXm9im49DW4MPmjY6eCuHYoL q0Cc1xNf1f.Gn2yWXXrvjRfjbb.OcIH0vJndIgoZMDDwEJpVhtJulzmOElpAUtBVCs.U- Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Sat, 6 Oct 2018 19:42:30 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.101]) ([76.115.7.162]) by smtp426.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 3b05b74320b694923ebd026ecb983173; Sat, 06 Oct 2018 19:22:13 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: base/binutils vs. /usr/local/lib references and also: undefined reference to `pthread_create' (powerpc64 targeting example) Date: Sat, 6 Oct 2018 12:22:12 -0700 References: <4C338B84-1179-4569-A964-CA18A22AF1D7@yahoo.com> To: FreeBSD Toolchain , FreeBSD PowerPC ML In-Reply-To: <4C338B84-1179-4569-A964-CA18A22AF1D7@yahoo.com> Message-Id: X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 06 Oct 2018 19:42:32 -0000 [Actually devel/gettext-tools is a build time dependency: it should not = be using libtool: link: /usr/local/bin/powerpc64-unknown-freebsd12.0-gcc = --sysroot=3D. . . It looks like the /usr/local/lib references are correct but the wrong = linker was being used. About 5 other ports have a similar status for making = base/binutils as a cross build.] On 2018-Oct-5, at 11:00 PM, Mark Millard wrote: > In trying to follow the base/binutils part of = https://wiki.freebsd.org/ExternalGCC > (or /usr/ports/base/README) for targeting powerpc64 I got: >=20 > ( My /etc/make.conf has: WRKDIRPREFIX?=3D/wrkdirs .) >=20 > # cd ../../base/binutils/ > # make CROSS_TOOLCHAIN=3Dpowerpc64-gcc = CROSS_SYSROOT=3D/usr/obj/DESTDIRs/xtcgcc-powerpc64-installworld package > . . . Note: This should involve building devel/gettext-tools targetting amd64 (the host environment in this example) because devel/gettext-tools is a build-time dependency, not to be run on the target system. > --- recode-sr-latin --- > /bin/sh ../libtool --tag=3DCC --mode=3Dlink = /usr/local/bin/powerpc64-unknown-freebsd12.0-gcc = --sysroot=3D/usr/obj/DESTDIRs/xtcgcc-powerpc64-installworld -O2 -pipe = -DLIBICONV_PLUG -g -fno-strict-aliasing -o recode-sr-latin = recode_sr_latin-recode-sr-latin.o recode_sr_latin-filter-sr-latin.o = ../gnulib-lib/libgettextlib.la ../intl/libintl.la -L/usr/local/lib So the following is wrong: --mode=3Dlink /usr/local/bin/powerpc64-unknown-freebsd12.0-gcc = --sysroot=3D/usr/obj/DESTDIRs/xtcgcc-powerpc64-installworld here and analogous points are later. > --- cldr_plurals-cldr-plural.o --- > . . . > --- recode-sr-latin --- > libtool: link: /usr/local/bin/powerpc64-unknown-freebsd12.0-gcc = --sysroot=3D/usr/obj/DESTDIRs/xtcgcc-powerpc64-installworld -O2 -pipe = -DLIBICONV_PLUG -g -fno-strict-aliasing -o .libs/recode-sr-latin = recode_sr_latin-recode-sr-latin.o recode_sr_latin-filter-sr-latin.o = ../gnulib-lib/.libs/libgettextlib.so = /wrkdirs/usr/ports/devel/gettext-tools/work/gettext-0.19.8.1/gettext-tools= /intl/.libs/libintl.so -L/usr/local/lib ../intl/.libs/libintl.so -lm = -lncurses -Wl,-rpath -Wl,/usr/local/lib > --- hostname --- > . . . > --- recode-sr-latin --- > = /wrkdirs/usr/ports/devel/gettext-tools/work/gettext-0.19.8.1/gettext-tools= /intl/.libs/libintl.so: undefined reference to `pthread_create' devel/gettext-tools has an option to enable/disable building for thread use, with a default of enabled. > collect2: error: ld returned 1 exit status > *** [recode-sr-latin] Error code 1 >=20 > make[16]: stopped in = /wrkdirs/usr/ports/devel/gettext-tools/work/gettext-0.19.8.1/gettext-tools= /src >=20 >=20 > The use of -L/usr/local/lib and -Wl,-rpath -Wl,/usr/local/lib look > suspect for such cross builds: >=20 > # ls /usr/obj/DESTDIRs/xtcgcc-powerpc64-installworld/usr/local/lib/ > ls: /usr/obj/DESTDIRs/xtcgcc-powerpc64-installworld/usr/local/lib/: No = such file or directory I went the wrong direction with this: it should not be a powerpc64 targeted operation and so /usr/local/lib appears to be a correct aspect. > Then there is also: undefined reference to `pthread_create'. Is there > a missing -pthread or some such? (Or is the /usr/local/lib reference > a cause?) [FYI: The earlier pkg build seem to have worked.] This sort of aspect might still apply. > Looks like this way of getting to 12 or later for powerpc64 without > use of gcc 4.2.1 is currently blocked. (The issue may not be limited > to powerpc64.) May be if devel/gettext-tools had been pre-built and installed before trying the CROSS_TOOLCHAIN=3Dpowerpc64-gcc CROSS_SYSROOT=3D/usr/obj/DESTDIRs/xtcgcc-powerpc64-installworld based build activity it would have been okay? [I try such later below and report on the results.] There are no words on https://wiki.freebsd.org/ExternalGCC or in /usr/ports/base/README for such special build-sequence instructions. > (It is also unclear how the process involving base/* mixes with doing > later FreeBSD updates from source --including any use of a delete-old > step if WITHOUT_BINUTILS=3D is used at the time. For the cross = buildworld > itself it is not clear what options are intended.) >=20 >=20 >=20 > Notes about some typos on: https://wiki.freebsd.org/ExternalGCC >=20 > /usr/ports/devel/ports-mgmt/pkg should be: > /usr/ports/ports-mgmt/pkg >=20 > 3 examples of CROSS_TOOCLAHIN should be: > CROSS_TOOLCHAIN >=20 >=20 > Notes about the /usr/ports/base/README : >=20 > No mention is made of the pkg build so that it can be > set up on the target. Only https://wiki.freebsd.org/ExternalGCC > has that information. /usr/ports/base/README does not > reference https://wiki.freebsd.org/ExternalGCC either. There may be more material needed on one or both of https://wiki.freebsd.org/ExternalGCC and/or /usr/ports/base/README for the likes of how/when things like devel/gettext-tools should be built vs. when CROSS_TOOLCHAIN=3D. . . CROSS_SYSROOT=3D . . . builds build steps should be done. There may be more material needed about the build options to use for various steps, such as if devel/gettext-tools should have threading enabled vs. disabled. The following seem to have a similar status to devel/gettext-tools: math/gmp math/mpfr devel/bison devel/m4 (indirectly via devel/bison) devel/gmake devel/gettext-tools (just for list completeness)=20 in that each is a build dependency for devel/binutils variants, such as base/binutils . With those 6 ports pre-installed as host non-cross-build material (amd64 here) the cross build/package of base/binutils worked, given that it was not already installed as host material. [In thinking about it I think I made similar notes and sent them out on the lists long ago. base/* have improved much since then: I reported a lot more then as well that does not apply now.] =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)