Re: netbsd-8 gcc gets Illegal instruction on R3000

Izumi Tsutsui <[email protected]>
Newsgroups gmane.os.netbsd.ports.mips.devel,gmane.os.netbsd.ports.pmax,gmane.os.netbsd.ports.newsmips
Message-ID <[email protected]>
I wrote:

> I've tried to build an application on NWS-3470D (R3000) running
> NetBSD/newsmips 8.0, but gcc gets an illegal instruction error immediately:
 :
> % cc test.c
> cc1: internal compiler error: Illegal instruction

It turns out that /usr/libexec/cc1 binary on my NWS-3470D
(installed via sysinst) is somewhat broken:

---
% ls -l /usr/libexec/cc1 /usr/libexec/cc1.orig
-r-xr-xr-x  1 root  wheel  19382412 Jul 17 23:59 /usr/libexec/cc1*
-r-xr-xr-x  1 root  wheel  19382412 Jul 17 23:59 /usr/libexec/cc1.orig*
% md5 /usr/libexec/cc1 /usr/libexec/cc1.orig
MD5 (/usr/libexec/cc1) = 47e06de4b15033e8e10b0ff878c67c94
MD5 (/usr/libexec/cc1.orig) = 275f55654dcb49f56df1735b264ed311
% 

---

Re-extracting cc1 binary from NetBSD/newsmips 8.0 comp.tgz
resolve the issue.

It looks there are still random segfaults on building
applications, but I'll check how often it happens.

Thanks,

---
Izumi Tsutsui
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.