Subject: RE: Error compiling 1.4.1 kernel
To: 'Iggy Drougge' <optimus@canit.se>
From: Collin Baillie <sanac@optushome.com.au>
List: port-pmax
Date: 11/04/2001 10:22:58
Aye,

I'd say that it's nothing missing. If you look at the error messages, you're
getting a warning. There's a variable called 'cp' that is defined but never
used (ie wasting stack (?) space...) and there's a line saying cc has been
told to treat warnings as errors (and halt the compile process) I'd say it's
the -Werror option, but don't quote me.. try removing it or read man cc just
to see, and it should not stop on warnings, but errors will. If there's just
warnings though, it should compile.

Collin

-----Original Message-----
From: port-pmax-owner@netbsd.org [mailto:port-pmax-owner@netbsd.org]On
Behalf Of Iggy Drougge
Sent: Saturday, 3 November 2001 07:00
To: NetBSD/pmax
Subject: Error compiling 1.4.1 kernel


I tried to make a lighter, 3MAX-specific 1.4.1 kernel on my (surprise) 3MAX.
This is what happened after a while:

cc  -O2 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes  -Wno-
uninitializ
ed -Wpointer-arith -Wno-main -G 0  -mno-abicalls -mno-half-pic -I. -
I../../../..
/arch -I../../../.. -nostdinc -DMIPS1 -DLKM -DNKMEMCLUSTERS=1024 -DHZ=256 -
DMAXU
SERS=64 -D_KERNEL -Dpmax  -c ../../../../arch/pmax/dev/dc.c
cc1: warnings being treated as errors
../../../../arch/pmax/dev/dc.c: In function `dcrint':
../../../../arch/pmax/dev/dc.c:754: warning: unused variable `cp'
*** Error code 1

What could be missing? I downloaded the 1.4.1 version of syssrc, and have
not
removed any files from /usr/src as of yet.

I first made my own kernel config, based on GENERIC, then did a config on
it,
then make depend, and it was during the main make that it failed.

--
En ligne avec Thor 2.6a.

Gå med i SUGA, Swedish Usergroup of Amiga!
WWW: http://swedish.usergroup.amiga.tm/
BBS: 08-6582572, telnet sua.ath.cx, port 42512.