Subject: Building on MacOS X
To: None <tech-toolchain@netbsd.org>
From: =?ISO-8859-1?Q?R=E9mi_Zara?= <rzara@remi-zara.org>
List: tech-toolchain
Date: 03/16/2003 19:17:04
Hi,

Since I saw that Jason made some changes to build on Mac OS X, I =20
decided to try it to build for my mac68k machines.
With fresh -current as of a few houres ago, the build fails in the =20
tools:

<snip>
cc -O -I. -I/Volumes/SourcesNetBSD/src/tools/installboot =20
-I/Volumes/SourcesNetBSD/src/tools/installboot/../mips-elf2ecoff =20
-no-cpp-precomp -I/Volumes/SourcesNetBSD/src/tools/compat/obj =20
-I/Volumes/SourcesNetBSD/src/tools/compat/obj/include  =20
-I/Volumes/SourcesNetBSD/src/tools/installboot/../compat =20
-DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=3D64  =20
-I/Volumes/SourcesNetBSD/src/tools/installboot/../../usr.sbin/=20
installboot -I. -c -o ffs_bswap.lo.o =20
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c: In function =20
`ffs_sb_swap':
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c:102: structure has =20=

no member named `fs_avgfilesize'
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c:102: structure has =20=

no member named `fs_avgfilesize'
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c:102: structure has =20=

no member named `fs_avgfilesize'
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c:102: structure has =20=

no member named `fs_avgfilesize'
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c:102: structure has =20=

no member named `fs_avgfilesize'
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c:103: structure has =20=

no member named `fs_avgfpdir'
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c:103: structure has =20=

no member named `fs_avgfpdir'
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c:103: structure has =20=

no member named `fs_avgfpdir'
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c:103: structure has =20=

no member named `fs_avgfpdir'
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c:103: structure has =20=

no member named `fs_avgfpdir'
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c:105: structure has =20=

no member named `fs_pendingblocks'
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c:105: structure has =20=

no member named `fs_pendingblocks'
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c:105: structure has =20=

no member named `fs_pendingblocks'
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c:105: structure has =20=

no member named `fs_pendingblocks'
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c:105: structure has =20=

no member named `fs_pendingblocks'
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c:106: structure has =20=

no member named `fs_pendinginodes'
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c:106: structure has =20=

no member named `fs_pendinginodes'
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c:106: structure has =20=

no member named `fs_pendinginodes'
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c:106: structure has =20=

no member named `fs_pendinginodes'
/Volumes/SourcesNetBSD/src/sys/ufs/ffs/ffs_bswap.c:106: structure has =20=

no member named `fs_pendinginodes'
*** Error code 1

Stop.
nbmake: stopped in /Volumes/SourcesNetBSD/src/tools/installboot
*** Error code 1

Stop.
nbmake: stopped in /Volumes/SourcesNetBSD/src/tools/installboot
*** Error code 1

Stop.
nbmake: stopped in /Volumes/SourcesNetBSD/src/tools

ERROR: failed to make tools
*** BUILD ABORTED ***
Terminated

Here is the command line I used:
#sudo ./build.sh -m mac68k -D /Volumes/SourcesNetBSD/dest -R =20
/Volumes/SourcesNetBSD/release -j 2 tools

I checked in the fs.h files and the fields are indeed there. But they =20=

are not in /usr/include/ufs/ffs/fs.h.

So I have a few question:
  * Do I have to use the -X option anywhere ?
  * Is it normal that I saw it show warning about things in /usr/include
p.ex.:
In file included from /usr/include/machine/ansi.h:33,
                  from /usr/include/stdlib.h:60,
                  from =20
/Volumes/SourcesNetBSD/src/tools/toolchain/../../gnu/dist/toolchain/=20
libiberty/splay-tree.c:32:
/usr/include/ppc/ansi.h:2:3: warning: style of line directive is a GCC =20=

extension
Shouldn't it all be self contained in the netbsd src tree ? My earlier =20=

problem seems to be related to that too.

Thanks for your help,

R=E9mi Zara
--
R=E9mi Zara
web: http://www.remi-zara.net/=