From owner-freebsd-ppc@freebsd.org Fri Jun 1 19:11:24 2018 Return-Path: Delivered-To: freebsd-ppc@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 C5D38EF939E for ; Fri, 1 Jun 2018 19:11:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6B7D56D7C4 for ; Fri, 1 Jun 2018 19:11:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 5F2B81394F; Fri, 1 Jun 2018 19:11:24 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 40DE41394D for ; Fri, 1 Jun 2018 19:11:24 +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 EB3296D7BF for ; Fri, 1 Jun 2018 19:11:23 +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 2300812BCD for ; Fri, 1 Jun 2018 19:11:23 +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 w51JBNZR049326 for ; Fri, 1 Jun 2018 19:11:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w51JBNaC049325 for powerpc@FreeBSD.org; Fri, 1 Jun 2018 19:11:23 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: powerpc@FreeBSD.org Subject: [Bug 225629] powerpc64 (POWER9) segfaults randomly (e.g., building lang/gcc5) Date: Fri, 01 Jun 2018 19:11:21 +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: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kennethsalerno@yahoo.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ppc@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-ppc@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2018 19:11:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225629 Kenneth Salerno changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kennethsalerno@yahoo.com --- Comment #18 from Kenneth Salerno --- (In reply to Mark Millard from comment #17) Mark, there is indeed a segfault that happens when you try to build lang/gc= c5 with the system llvm/clang. I worked around the issue by avoiding building lang/gcc5 altogether (see attached patch). My system was built using lang/gcc7 amd64->ppc64 using the following config: _OSRELEASE !=3D uname -r OSREL =3D ${_OSRELEASE:C/-.*//} . if exists(/usr/local/bin/powerpc64-unknown-freebsd${OSREL}-gcc) XCC =3D /usr/local/bin/powerpc64-unknown-freebsd${OSREL}-gcc XCXX =3D /usr/local/bin/powerpc64-unknown-freebsd${OSREL}-g++ XCPP =3D /usr/local/bin/powerpc64-unknown-freebsd${OSREL}-cpp CROSS_BINUTILS_PREFIX =3D /usr/local/bin/powerpc64-unknown-freebsd${OSREL}- WITHOUT_FORMAT_EXTENSIONS =3D yes NO_WERROR =3D WERROR =3D WITHOUT_GCC =3D yes WITHOUT_GCC_BOOTSTRAP =3D yes WITHOUT_GNUCXX =3D yes WITH_CLANG =3D yes WITH_CLANG_BOOTSTRAP =3D yes WITH_CLANG_FULL =3D yes WITH_CLANG_IS_CC =3D yes WITH_LLD =3D yes root@freebsd-ppc64# uname -rp 11.2-BETA2 powerpc64 root@freebsd-ppc64# cc -v FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0) Target: powerpc64-unknown-freebsd11.2 Thread model: posix InstalledDir: /usr/bin root@freebsd-ppc64# pkg info gcc6 gcc6-6.4.0_7 Name : gcc6 Version : 6.4.0_7 Installed on : Fri Jun 1 01:49:58 2018 EDT Origin : lang/gcc6 Architecture : FreeBSD:11:powerpc64 Prefix : /usr/local Categories : lang java Licenses : GPLv3, GPLv3RLE Maintainer : gerald@FreeBSD.org WWW : https://gcc.gnu.org Comment : GNU Compiler Collection 6 Options : BOOTSTRAP : off GRAPHITE : off JAVA : off MULTILIB : off Shared Libs required: libmpc.so.3 libgmp.so.10 libmpfr.so.6 Shared Libs provided: libitm.so.1 libssp.so.0 libcc1plugin.so.0 libgomp.so.1 libcc1.so.0 libgcc_s.so.1 libatomic.so.1 liblto_plugin.so.0 libgfortran.so.3 libstdc++.so.6 Annotations : FreeBSD_version: 1101515 cpe : cpe:2.3:a:gnu:gcc:6.4.0:::::freebsd11:powerpc64:7 Flat size : 141MiB Description : GCC, the GNU Compiler Collection, supports a number of languages. This port installs the C, C++, Fortran and Java front ends as gcc6, g++6, gfortran6, and gcj6, respectively. WWW: https://gcc.gnu.org Gerald Pfeifer --=20 You are receiving this mail because: You are on the CC list for the bug.=