Subject: bootstrapping bmake fails (was: Re: MACHINE variable undefined or empty)
To: Hubert Feyrer <hubert@feyrer.de>
From: Sebastian Prause <sebastian-p@gmx.net>
List: tech-pkg
Date: 01/03/2004 17:50:32
On Saturday 03 January 2004 17:28, Hubert Feyrer wrote:
| On Sat, 3 Jan 2004, Sebastian Prause wrote:
| > # bmake show-var VARNAME=MACHINE
|
| ...
|
| > i can't find the definition for it on my netbsd box. where gets this
| > defined?
|
| MACHINE and MACHINE_ARCH should be compiled into the bmake binary.
| Seems that failed for your for some reason. ;(
i updated my base system from slackware 9 to 9.1 (new glibc, new compiler, ...),
but did not updated bmake. looks like this broke it.
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
arch.c:49: error: parse error before string constant
arch.c:49: warning: data definition has no type or storage class
arch.c:55: error: parse error before string constant
arch.c:55: warning: data definition has no type or storage class
arch.c: In function `ArchStatMember':
arch.c:531: error: `SARMAG' undeclared (first use in this function)
arch.c:531: error: (Each undeclared identifier is reported only once
arch.c:531: error: for each function it appears in.)
arch.c:535: error: storage size of `arh' isn't known
arch.c:582: error: storage size of `sarh' isn't known
arch.c:608: error: `ARMAG' undeclared (first use in this function)
arch.c:620: error: invalid application of `sizeof' to an incomplete type
arch.c:621: error: `ARFMAG' undeclared (first use in this function)
arch.c:689: error: invalid application of `sizeof' to an incomplete type
arch.c:691: error: invalid application of `sizeof' to an incomplete type
arch.c:582: error: storage size of `sarh' isn't known
arch.c: In function `ArchFindMember':
arch.c:855: error: `SARMAG' undeclared (first use in this function)
arch.c:868: error: `ARMAG' undeclared (first use in this function)
arch.c:884: error: dereferencing pointer to incomplete type
arch.c:885: error: dereferencing pointer to incomplete type
arch.c:888: error: invalid application of `sizeof' to an incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: `ARFMAG' undeclared (first use in this function)
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:889: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:896: error: dereferencing pointer to incomplete type
arch.c:904: error: dereferencing pointer to incomplete type
arch.c:904: error: dereferencing pointer to incomplete type
arch.c:914: error: invalid application of `sizeof' to an incomplete type
arch.c:960: error: dereferencing pointer to incomplete type
arch.c:960: error: dereferencing pointer to incomplete type
arch.c:961: error: dereferencing pointer to incomplete type
arch.c: In function `Arch_Touch':
arch.c:994: error: storage size of `arh' isn't known
arch.c:1007: error: invalid application of `sizeof' to an incomplete type
arch.c: In function `Arch_MTime':
arch.c:1080: error: dereferencing pointer to incomplete type
*** Error code 1
Stop.
bmake.boot: stopped in /usr/src/bootstrap-pkgsrc/bmake
make: *** [bootstrap] Error 1
===> exited with status 2
aborted.
any ideas?
Sebastian