Subject: Building fails on i386 under bin/sh
To: None <port-i386@netbsd.org>
From: Greywolf <greywolf@starwolf.com>
List: port-i386
Date: 06/06/2001 10:42:19
I must be missing something.

I've looked at the UPDATING doc and:

* updated my ENTIRE source tree.  From scratch.  Twice.
* make obj
* reinstalled the .mk files
* rebuilt yacc and make
* rebuilt the rest of the toolchain (-DNOMAN -DNOPIC, since there is no
  manpage for collect2).

Aside from ncurses not compiling and libc++ not working for me (hence my
motivation to recompile the entire world), It bombs out in building sh
thus (forgive the long lines):

cc -O2 -O3 -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings -Wswitch -Wshadow -Werror    -o mkinit /usr/src/bin/sh/mkinit.c
cc1: warnings being treated as errors
/usr/src/bin/sh/mkinit.c:141: warning: initialization discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c:141: warning: initialization discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c:142: warning: initialization discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c:142: warning: initialization discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c:143: warning: initialization discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c:143: warning: initialization discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c: In function `main':
/usr/src/bin/sh/mkinit.c:181: warning: assignment discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c:182: warning: assignment discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c:183: warning: assignment discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c: In function `readfile':
/usr/src/bin/sh/mkinit.c:205: warning: passing arg 2 of `ckfopen' discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c:217: warning: passing arg 1 of `match' discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c:219: warning: passing arg 1 of `match' discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c: In function `gooddefine':
/usr/src/bin/sh/mkinit.c:268: warning: passing arg 1 of `match' discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c: In function `doevent':
/usr/src/bin/sh/mkinit.c:298: warning: passing arg 1 of `addstr' discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c:302: warning: passing arg 1 of `error' discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c:322: warning: passing arg 1 of `addstr' discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c: In function `doinclude':
/usr/src/bin/sh/mkinit.c:336: warning: passing arg 1 of `error' discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c:341: warning: passing arg 1 of `error' discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c: In function `dodecl':
/usr/src/bin/sh/mkinit.c:364: warning: passing arg 1 of `error' discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c:384: warning: passing arg 1 of `addstr' discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c: In function `output':
/usr/src/bin/sh/mkinit.c:404: warning: passing arg 1 of `ckfopen' discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c:404: warning: passing arg 2 of `ckfopen' discards `const' from pointer target type
/usr/src/bin/sh/mkinit.c: In function `ckmalloc':
/usr/src/bin/sh/mkinit.c:501: warning: passing arg 1 of `error' discards `const' from pointer target type
*** Error code 1

Stop.



				--*greywolf;
--
NetBSD: Microsoft ask you where you want to go.  BSD gets you there.