*BSD News Article 18549


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!howland.reston.ans.net!spool.mu.edu!olivea!pagesat!news.cerf.net!nic.cerf.net!speakez
From: speakez@nic.cerf.net (Robert Crowe)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Why can't I build kernel with gcc 2?
Date: 17 Jul 1993 17:09:46 GMT
Organization: CERFnet Dial n' CERF Customer
Lines: 28
Message-ID: <229boq$9ss@news.cerf.net>
References: <CA85M0.733@bi-link.owl.de>
NNTP-Posting-Host: nic.cerf.net

In article <CA85M0.733@bi-link.owl.de> martin@bi-link.owl.de (Martin Husemann) writes:
>
>After upgrading to NetBSD-current two weeks ago I was able to replace
>cc with gcc 2.4.5 for anything in the system. But when building a 
>kernel I have to use gcc 1.39.
>
>Why? Is there a trick or did I overlook something?
>
If you are using SUP, the update your source tree. You will find that 
1.39 is no longer even in the distribution, and the kernel compiles just
fine with 2.5 which replaced the older version of gcc.

If you built gcc2 yourself, did you add HANDLE_SYSV_PRAGM to the 386bsd.h 
config file?  If not your getting nailed by structure alignment problems, 
I think.

The newewst NetBSD-current has many of the older GNU utilities updated, 
and is well worth getting.

>
>Martin
>-- 
>"In computer languages, beauty is only scan deep"    -    Larry Wall


Good Luck,

Bob.     bob@prepress.com