Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Dec 2015 18:34:09 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 205183] powerpc64 11.0-CURRENT clang (3.7) crashes during buildworld's atf-check.cpp compile
Message-ID:  <bug-205183-8-ldMNXQpGCy@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-205183-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-205183-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205183

--- Comment #1 from Mark Millard <markmi@dsl-only.net> ---
I should have noted that the running powerpc64 11.0-CURRENT system was built
with a modern devel/powerpc-gcc that was running on the powerpc64. (Sort of a
self-hosted cross compile.) It is WITH_LIBCPLUSPLUS based, no gcc 4.2.1
present. WITHOUT_CLANG_BOOTSTRAP= but WITH_CLANG= .

devel/powerpc-gcc had been build by lang/gcc49.

Other environment oddities in use for the powerpc64-gcc based context:

# ls -al /usr/lib/libstdc*
lrwxr-xr-x  1 root  wheel  8 Dec  5 05:41 /usr/lib/libstdc++.a -> libc++.a
lrwxr-xr-x  1 root  wheel  9 Dec  5 05:41 /usr/lib/libstdc++.so -> libc++.so

# ls -l /usr/bin/g[c+][c+]
lrwxr-xr-x  1 root  wheel  48 Dec  5 05:38 /usr/bin/g++ ->
/usr/local/bin/powerpc64-portbld-freebsd11.0-g++
lrwxr-xr-x  1 root  wheel  48 Dec  5 05:38 /usr/bin/gcc ->
/usr/local/bin/powerpc64-portbld-freebsd11.0-gcc

# svnlite diff /usr/src/
Index: /usr/src/sys/boot/ofw/Makefile.inc
===================================================================
--- /usr/src/sys/boot/ofw/Makefile.inc    (revision 291891)
+++ /usr/src/sys/boot/ofw/Makefile.inc    (working copy)
@@ -2,7 +2,7 @@

.if ${MACHINE_ARCH} == "powerpc64"
CFLAGS+=    -m32 -mcpu=powerpc
-LDFLAGS+=    -m elf32ppc_fbsd
+LDFLAGS+=    -Wl,-m -Wl,elf32ppc_fbsd
.endif

.include "../Makefile.inc"
Index: /usr/src/sys/boot/powerpc/Makefile.inc
===================================================================
--- /usr/src/sys/boot/powerpc/Makefile.inc    (revision 291891)
+++ /usr/src/sys/boot/powerpc/Makefile.inc    (working copy)
@@ -2,6 +2,7 @@

.if ${MACHINE_ARCH} == "powerpc64"
CFLAGS+=    -m32 -mcpu=powerpc
+LDFLAGS+=    -Wl,-m -Wl,elf32ppc_fbsd
.endif

.include "../Makefile.inc"
Index: /usr/src/sys/boot/uboot/Makefile.inc
===================================================================
--- /usr/src/sys/boot/uboot/Makefile.inc    (revision 291891)
+++ /usr/src/sys/boot/uboot/Makefile.inc    (working copy)
@@ -2,7 +2,7 @@

.if ${MACHINE_ARCH} == "powerpc64"
CFLAGS+=    -m32 -mcpu=powerpc
-LDFLAGS+=    -m elf32ppc_fbsd
+LDFLAGS+=    -Wl,-m -Wl,elf32ppc_fbsd
.endif

.include "../Makefile.inc"

(I've not listed the sys/powerpc/ofw/ofw_machdep.c hack for making PowerMac
G5's boot reliably.)

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205183-8-ldMNXQpGCy>