NetBSD Problem Report #32980

From www@netbsd.org  Fri Mar  3 17:44:29 2006
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 78FC863B871; Fri,  3 Mar 2006 17:44:29 +0000 (UTC)
Message-Id: <20060303174429.78FC863B871@narn.netbsd.org>
Date: Fri,  3 Mar 2006 17:44:29 +0000 (UTC)
From: gdamore@netbsd.org
Reply-To: gdamore@netbsd.org
To: gnats-bugs@netbsd.org
Subject: Au1500 cannot build pkgsrc pkgtools/digest
X-Send-Pr-Version: www-1.0

>Number:         32980
>Category:       port-evbmips
>Synopsis:       Au1500 cannot build pkgsrc pkgtools/digest
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-evbmips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 03 17:45:00 +0000 2006
>Closed-Date:    
>Last-Modified:  Sat Sep 11 13:20:02 +0000 2010
>Originator:     Garrett D'Amore
>Release:        3.99.15
>Organization:
Tadpole Computer, Inc.
>Environment:
name -garrett@meteor{1}> uname -a
NetBSD meteor 3.99.15 NetBSD 3.99.15 (METEOR) #29: Thu Mar  2 14:40:16 PST 2006  garrett@zippy:/home/garrett/netbsd/src/sys/arch/evbmips/compile/obj/METEOR evbmips


>Description:
When trying to build pkgsrc/pkgtools/digest, cc1 typically segfaults trying to build SHA2.  It doesn't happen every time, and it does not seem to occur on the au1550, only on the au1500.  Several people have seen this problem.

Intersting information: this problem occurs with 3.0_STABLE.  It does *not* occur with some internal version of gcc at wasabi.  We do not know what changes wasabi made to make this work.

Cross-compiling for the au1500 (which is what most folks would probably do anyway, the au1500 is kinda slow relative to modern PCs) doesn't have this problem.

We've not seen any other specific problems that seem related, but it is hard to know.
>How-To-Repeat:
*on an au1500*:

cd pkgsrc/tools/digest
cp -pr files files.test
cd files.test
./configure && make


>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 06 Jun 2010 05:57:46 +0000
State-Changed-Why:
Does this still happen with gcc4?


State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 06 Jun 2010 06:25:47 +0000
State-Changed-Why:
feedback bounced; anyone have one of these? ("au1500")


From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: port-evbmips-maintainer@netbsd.org, netbsd-bugs@netbsd.org,
	gnats-admin@netbsd.org, dholland@NetBSD.org, gdamore@netbsd.org
Subject: Re: port-evbmips/32980 (Au1500 cannot build pkgsrc pkgtools/digest)
Date: Sun, 6 Jun 2010 14:14:27 +0200

 On Sun, Jun 06, 2010 at 06:25:48AM +0000, dholland@NetBSD.org wrote:
 > Synopsis: Au1500 cannot build pkgsrc pkgtools/digest
 > State-Changed-Why:
 > feedback bounced; anyone have one of these? ("au1500")


 I have a meshcube:

 4G Systems MTX-1
 total memory = 65536 KB
 avail memory = 59868 KB
 timecounter: Timecounters tick every 1.953 msec
 mainbus0 (root)
 cpu0 at mainbus0: 324.00MHz (hz cycles = 632813, delay divisor = 324)
 cpu0: Alchemy Au1500 (Rev 2 core) (0x1030202) Rev. 2 with software emulated floa
 ting point
 cpu0: 16KB/32B 4-way set-associative L1 Instruction cache, 32 TLB entries
 cpu0: 16KB/32B 4-way set-associative write-back L1 Data cache

 ... but I'm pretty sure it won't boot current :-(
 Can try though.

 Martin

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-evbmips/32980 (Au1500 cannot build pkgsrc pkgtools/digest)
Date: Sun, 6 Jun 2010 14:25:46 +0200

 I did a quick test with:

 # gcc -v
 Using built-in specs.
 Target: mipsel--netbsd
 Configured with: /usr/src/tools/gcc/../../gnu/dist/gcc4/configure --enable-long-long --disable-multilib --enable-threads --disable-symvers --build=x86_64-unknown-netbsd4.99.72 --host=mipsel--netbsd --target=mipsel--netbsd --enable-__cxa_atexit
 Thread model: posix
 gcc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120)

 and it failed:

 ===> Building for digest-20080510
 cc -DHAVE_CONFIG_H -I. -I. -DHOST=\"mipsel--netbsd\" -DVERSION=\"20080510\"  -O2 -c digest.c -o digest.o
 digest.c: In function 'digest_file':
 digest.c:158: internal compiler error: Segmentation fault
 Please submit a full bug report,
 with preprocessed source if appropriate.
 See <URL:http://www.NetBSD.org/Misc/send-pr.html> for instructions.

 Martin

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: Martin Husemann <martin@netbsd.org>
Subject: Re: port-evbmips/32980 (Au1500 cannot build pkgsrc pkgtools/digest)
Date: Sun, 6 Jun 2010 20:06:01 +0000

 On Sun, Jun 06, 2010 at 12:30:05PM +0000, Martin Husemann wrote:
  >  I did a quick test with: [4.99.72]
  >  
  >  and it failed:
  >  ===> Building for digest-20080510
  >  cc -DHAVE_CONFIG_H -I. -I. -DHOST=\"mipsel--netbsd\" -DVERSION=\"20080510\"  -O2 -c digest.c -o digest.o
  >  digest.c: In function 'digest_file':
  >  digest.c:158: internal compiler error: Segmentation fault
  >  Please submit a full bug report,
  >  with preprocessed source if appropriate.
  >  See <URL:http://www.NetBSD.org/Misc/send-pr.html> for instructions.

 Joy. All right, I'll put it on my list of things to look into
 sometime...

 Thanks.

 -- 
 David A. Holland
 dholland@netbsd.org

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-evbmips/32980 (Au1500 cannot build pkgsrc pkgtools/digest)
Date: Sat, 11 Sep 2010 09:31:27 +0200

 After MIPS now works again, I tried it with current:

 ===> Building for digest-20080510
 cc -DHAVE_CONFIG_H -I. -I. -DHOST=\"mipsel--netbsd\" -DVERSION=\"20080510\"  -O2 -c digest.c -o digest.o
 cc -DHAVE_CONFIG_H -I. -I. -DHOST=\"mipsel--netbsd\" -DVERSION=\"20080510\"  -O2 -c md5c.c -o md5c.o
 md5c.c: In function 'MD5Init':
 md5c.c:199: internal compiler error: Segmentation fault
 Please submit a full bug report,
 with preprocessed source if appropriate.
 See <URL:http://gnats.NetBSD.org/support/send-pr.html> for instructions.
 *** Error code 1


 and cc1 catches a segfault:
 pid 1286(cc1): sig 11: cause=0x10 epc=0x9 va=0x9
 registers:                                            
 [ 0]=00000000 [ 1]=ffffffe0 [ 2]=00000000 [ 3]=7db32611
 [ 4]=7db5f3c0 [ 5]=009b0000 [ 6]=7db76090 [ 7]=0000003d
 [ 8]=00000003 [ 9]=7dc07300 [10]=7dcf9e00 [11]=efffffff
 [12]=7fffffff [13]=fdffffff [14]=fbffffff [15]=feffffff
 [16]=7db5f3c0 [17]=00000000 [18]=009a6fd4 [19]=009a0000
 [20]=009a1274 [21]=009a1220 [22]=7fffe1f3 [23]=005f918c
 [24]=00000000 [25]=00000009 [26]=00000000 [27]=00000000
 [28]=00c227dc [29]=7fffcc90 [30]=00000000 [31]=004d6164


 Will try again on sgimips later today, but gut feeling lets me suspect
 a kernel bug instead of a gcc issue first.

 Martin

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-evbmips/32980 (Au1500 cannot build pkgsrc pkgtools/digest)
Date: Sat, 11 Sep 2010 15:18:29 +0200

 I tried on sgimips and it works fine there.

 Martin

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.