Subject: Re: bootstrapping bmake fails (was: Re: MACHINE variable undefined or empty)
To: None <tech-pkg@netbsd.org>
From: Klaus Heinz <k.heinz.jan.vier@onlinehome.de>
List: tech-pkg
Date: 01/04/2004 05:32:01
Sebastian Prause wrote:

> now bootstrapping bmake fails with this error:
> 
> gcc -I.. -I./.. -I. -I. -DHAVE_CONFIG_H  -I./missing -DNEED_HOST_CDEFS_H -D_PATH_DEFSYSPATH="/usr/pkg/share/mk" -DMAKE_BOOTSTRAP    -c -o lstForEachFrom.o lstForEachFrom.c
> gcc -I.. -I./.. -I. -I. -DHAVE_CONFIG_H  -I./missing -DNEED_HOST_CDEFS_H -D_PATH_DEFSYSPATH="/usr/pkg/share/mk" -DMAKE_BOOTSTRAP    -c -o lstDestroy.o lstDestroy.c
> gcc -I.. -I./.. -I. -I. -DHAVE_CONFIG_H  -I./missing -DNEED_HOST_CDEFS_H -D_PATH_DEFSYSPATH="/usr/pkg/share/mk" -DMAKE_BOOTSTRAP    -c -o lstNext.o lstNext.c
> make[1]: Leaving directory `/usr/src/bootstrap-pkgsrc/bmake/lst.lib'
> gcc *.o lst.lib/*.o -o bmake.boot 
> rm -f *.[ado] */*.[ado] 
> CC="gcc" MAKESYSPATH=/usr/pkg/share/mk ./bmake.boot -f Makefile 
> gcc -O3 -pipe -march=athlon-xp -mcpu=athlon-xp  -Werror   -c arch.c

On the HP testdrive machine with Slackware 9.1 it looks like this and
worked without a problem (bootstrap-pkgsrc from today):

  $ ./bootstrap --prefix=$HOME/slackware/pkg --pkgdbdir=$HOME/slackware/pkgdb
  --pkgsrcdir=$HOME/pkgsrc --ignore-user-check
  ...
  CC="gcc" MAKESYSPATH=/house/heinz/slackware/pkg/share/mk ./bmake.boot -f Makefile 
  gcc -O2 -I. -I. -DHAVE_CONFIG_H  -I./missing -DNEED_HOST_CDEFS_H
  "-D_PATH_DEFSYSPATH=\"/house/heinz/slackware/pkg/share/mk\""
  -DSIGNAL_FLAGS=SA_RESTART  -Werror   -c arch.c

Does it work if you disable the optimization flags (-O3 -march=athlon-xp
-mcpu=athlon-xp)?

ciao
     Klaus