Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Apr 2018 20:49:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 225182] devel/powerpc64-xtoolchain-gcc: SLOF Data Storage Exception on boot with kernel built with devel/powerpc64-xtoolchain-gcc
Message-ID:  <bug-225182-8-N4F4P5iZe6@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-225182-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-225182-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=3D225182

--- Comment #23 from Kenneth Salerno <kennethsalerno@yahoo.com> ---
I want to add two somewhat related notes here.

1. At some point devel/binutils started using a BUTARGET?=3D=20=20=20=20=20
${PKGNAMEPREFIX}unknown-${OPSYS:tl}${OSREL} which equates to
CROSS_BINUTILS_PREFIX=3D /usr/local/bin/powerpc64-unknown-freebsd11.1- in my
environment, where previously I was used to seeing CROSS_BINUTILS_PREFIX=3D
powerpc64-freebsd- (devel/amd64-binutils forces this previous behavior I was
used to with BUTARGET=3D       x86_64-${OPSYS:tl})

The net of this is I had a CROSS_BINUTILS_PREFIX pointing to nowhere. Fixed
that in my make.conf. Still have RELEASE-11.1 kernel blowing up with gcc5&6
either way, but want to ensure I'm using binutils 2.30.

2. This one is a complete mystery to me: if I set KERNCONF, even if I copy
GENERIC64 exactly, I get the Data Storage Exception in SLOF. If I copy my
kernel config to overwrite GENERIC64 (and not set KERNCONF) the kernel will
boot normally, if built with the system compiler (again, still getting Data
Storage Exception with gcc5&6 no matter what configuration I use).

To reproduce error with system compiler:
cp /usr/src/sys/powerpc/conf/GENERIC64 /usr/src/sys/powerpc/conf/SALERNO
make buildkernel __MAKE_CONF=3D/dev/null __SRC_CONF=3D/dev/null KERNCONF=3D=
SALERNO
ARCH=3Dpowerpc TARGET_ARCH=3Dpowerpc64
(this kernel will cause a Data Storage Exception)

Then take the custom kernel config and overwrite GENERIC64:
cp /root/kernels/SALERNO /usr/src/sys/powerpc/conf/GENERIC64
make buildkernel __MAKE_CONF=3D/dev/null __SRC_CONF=3D/dev/null ARCH=3Dpowe=
rpc
TARGET_ARCH=3Dpowerpc64
(this kernel will boot normally)

3. Previously in RELEASE-11.0 and older, I could build and boot a kernel
excluding CTF. Now with 11.1, I get a Data Storage Exception if I do this,
forcing me to build including CTF.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



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