[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

--- Comment #19 from Kenneth Salerno <[email protected]> ---
Created attachment 193898
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=193898&action=edit
Patch to build lang/gcc6 with system clang

When /usr/bin/cc is clang, lang/gcc5 segfaults trying to stage xgcc compiling
itself. A workaround is to not build lang/gcc5 at all, which is only necessary
for a system that /usr/bin/cc is gcc 4.2.1 and needs >= gcc 4.9 to build
lang/gcc6 which cannot USE_GCC itself and therefore tries to bring in
lang/gcc5...

System tested on:
(qemu) info version
2.12.0

root@freebsd-ppc64# dmesg |head
Copyright (c) 1992-2018 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.2-BETA2 #4 r334114M: Wed May 30 09:48:40 EDT 2018
   
[email protected]:/usr/obj/powerpc.powerpc64/usr/src/sys/SALERNO
powerpc
gcc version 7.3.0 (FreeBSD Ports Collection for powerpc64)
WARNING: Running on a broken hypervisor that does not support mandatory
H_CLEAR_MOD and H_CLEAR_REF hypercalls. Performance will be suboptimal.
cpu0: IBM POWER9 revision 2.0, 1000.00 MHz
cpu0: Features dc005180<PPC32,PPC64,ALTIVEC,FPU,MMU,SMT,ARCH205,ARCH206,VSX>

-- 
You are receiving this mail because:
You are the assignee 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.