[Bug 225629] powerpc64 (POWER9) segfaults randomly (e.g., building lang/gcc5)

[email protected]
Newsgroups gmane.os.freebsd.devel.ppc
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225629

Kenneth Salerno <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #18 from Kenneth Salerno <[email protected]> ---
(In reply to Mark Millard from comment #17)
Mark, there is indeed a segfault that happens when you try to build lang/gcc5
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 != uname -r
OSREL = ${_OSRELEASE:C/-.*//}
.   if exists(/usr/local/bin/powerpc64-unknown-freebsd${OSREL}-gcc)
XCC = /usr/local/bin/powerpc64-unknown-freebsd${OSREL}-gcc
XCXX = /usr/local/bin/powerpc64-unknown-freebsd${OSREL}-g++
XCPP = /usr/local/bin/powerpc64-unknown-freebsd${OSREL}-cpp
CROSS_BINUTILS_PREFIX = /usr/local/bin/powerpc64-unknown-freebsd${OSREL}-
WITHOUT_FORMAT_EXTENSIONS = yes
NO_WERROR =
WERROR =
WITHOUT_GCC = yes
WITHOUT_GCC_BOOTSTRAP = yes
WITHOUT_GNUCXX = yes
WITH_CLANG = yes
WITH_CLANG_BOOTSTRAP = yes
WITH_CLANG_FULL = yes
WITH_CLANG_IS_CC = yes
WITH_LLD = 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     : [email protected]
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 <[email protected]>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.