NetBSD Problem Report #53067

From www@NetBSD.org  Sat Mar  3 02:06:52 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 563787A1C8
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  3 Mar 2018 02:06:52 +0000 (UTC)
Message-Id: <20180303020651.500E57A1F0@mollari.NetBSD.org>
Date: Sat,  3 Mar 2018 02:06:51 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: HEAD-llvm style build produces non executable binaries on NetBSD/macppc
X-Send-Pr-Version: www-1.0

>Number:         53067
>Category:       toolchain
>Synopsis:       HEAD-llvm style build produces non executable binaries on NetBSD/macppc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 03 02:10:00 +0000 2018
>Last-Modified:  Mon Mar 05 21:35:01 +0000 2018
>Originator:     Sevan Janiyan
>Release:        NetBSD 8.99.12
>Organization:
>Environment:
>Description:
On investigating the build failure for macppc port in the HEAD-LLVM branch, I managed to build a release successfully from FreeBSD 11.1.

ofwboot.xcf on the CD is non bootable an explodes shortly after producing the first line of test with the version / date the build happened. This issue was previously reported by jmmv on the port-macppc
list
https://mail-index.netbsd.org/port-macppc/2017/12/03/msg002464.html

Turns out the kernels built in this release work just fine.
I copied the netbsd-install.gz kernel to disk & booted the system from that instead. I was able to perform an upgrade of an existing install partially without issue. All the sets I'd built extracted just fine but the final steps such as the sysupgrade process failed to run.
Reboot the system, the kernel boot up just fine but as the system went to go multi-user, the init process crashed with 
trap: pid 1.1 (init): user read DSI trap @ 0x10 by 0xfde171c8 (DSISR 0x40000000, err=14)
and continued to fill the screen with the same message over & over again.

>How-To-Repeat:
./build.sh -U -m macppc -V MKLLVM=yes -V HAVE_LLVM=yes -V MKGCC=no release
and install on a PowerPC Mac
>Fix:

>Audit-Trail:
From: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/53067: HEAD-llvm style build produces non executable
 binaries on NetBSD/macppc
Date: Sat, 3 Mar 2018 05:13:45 +0000

 > This issue was previously reported by jmmv on the port-macppc list

 This is also tracked as port-macppc/44895 which contains more info

From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: toolchain-manager@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: toolchain/53067: HEAD-llvm style build produces non executable
 binaries on NetBSD/macppc
Date: Sat, 3 Mar 2018 20:06:19 +0100

 On Sat, Mar 03, 2018 at 02:10:00AM +0000, venture37@geeklan.co.uk wrote:
 > trap: pid 1.1 (init): user read DSI trap @ 0x10 by 0xfde171c8 (DSISR 0x40000000, err=14)

 Try to revert https://bitbucket.org/netbsd/src/commits/a847f7002e9a

 Joerg

From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/53067: HEAD-llvm style build produces non executable
 binaries on NetBSD/macppc
Date: Sun, 4 Mar 2018 01:24:02 +0000

 On 03/03/18 19:10, Joerg Sonnenberger wrote:
 >  On Sat, Mar 03, 2018 at 02:10:00AM +0000, venture37@geeklan.co.uk wrote:
 >  > trap: pid 1.1 (init): user read DSI trap @ 0x10 by 0xfde171c8 (DSISR 0x40000000, err=14)
 >  
 >  Try to revert https://bitbucket.org/netbsd/src/commits/a847f7002e9a

 Reverted and brought sources up to date before starting a fresh build.
 GENERIC kernel wont boot.

 Before I tested the new build, I poked around & found that on the
 INSTALL kernel with the minimal tools on memory disk, things worked
 (binaries did not crash upon execution) so I mounted the hard disk which
 NetBSD was installed on and tried to execute the binaries there. The
 standard utilities which are dynamically linked would not work but the
 statically linked tools in /rescue did. So, I copied the statically
 linked init from /rescue to /sbin & tried to boot the system. I ploughed
 forward & went down in a flaming ball as various other tools which were
 critical failed to execute and I did not have a static version in
 /rescue e.g getty.

 Sevan

From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/53067: HEAD-llvm style build produces non executable
 binaries on NetBSD/macppc
Date: Sun, 4 Mar 2018 14:51:43 +0000

 I tried to roll a new release on NetBSD/i386 (running a stock build, not
 HEAD-LLVM).

 "ofwboot.xcf on the CD is non bootable an explodes shortly after
 producing the first line of test with the version / date the build
 happened. This issue was previously reported by jmmv on the port-macppc
 list
 https://mail-index.netbsd.org/port-macppc/2017/12/03/msg002464.html"

 ofwboot.xcf now fails differently, I get loadsize=0 adler32=1

 LOAD-SIZE is too small

 The image is odd in that I'm unable to extract some of the sets, systems
 complains about not being able to read from stdin during the upgrade
 process.

 I shall wait to try the next releng build from nycdn. The image should
 now be buildable.


 Sevan

From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: toolchain-manager@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org, venture37@geeklan.co.uk
Subject: Re: toolchain/53067: HEAD-llvm style build produces non executable
 binaries on NetBSD/macppc
Date: Mon, 5 Mar 2018 22:33:50 +0100

 On Sun, Mar 04, 2018 at 01:35:01AM +0000, Sevan Janiyan wrote:
 > The following reply was made to PR toolchain/53067; it has been noted by GNATS.
 > 
 > From: Sevan Janiyan <venture37@geeklan.co.uk>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: toolchain/53067: HEAD-llvm style build produces non executable
 >  binaries on NetBSD/macppc
 > Date: Sun, 4 Mar 2018 01:24:02 +0000
 > 
 >  On 03/03/18 19:10, Joerg Sonnenberger wrote:
 >  >  On Sat, Mar 03, 2018 at 02:10:00AM +0000, venture37@geeklan.co.uk wrote:
 >  >  > trap: pid 1.1 (init): user read DSI trap @ 0x10 by 0xfde171c8 (DSISR 0x40000000, err=14)
 >  >  
 >  >  Try to revert https://bitbucket.org/netbsd/src/commits/a847f7002e9a
 >  
 >  Reverted and brought sources up to date before starting a fresh build.
 >  GENERIC kernel wont boot.

 Yeah, I'm looking at the second problem right now.

 Joerg

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.