Subject: Re: nbmakefs building with wrong param.h
To: sgimips NetBSD list <>
From: Luke Mewburn <>
List: tech-toolchain
Date: 05/17/2004 10:27:44
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, May 16, 2004 at 11:18:03AM -0500, sgimips NetBSD list wrote:
  | I just noticed that when nbmakefs is built, it is picking up the
  | native param.h, resulting in the wrong MAXBSIZE for the target
  | OS when cross-compiling.  This behavious is exhibited when cross-buildi=
  | for example, NetBSD/sparc64 on a Solaris host.
  | The Solaris host defines MAXBSIZE to be 8192.  NetBSD defines it to be
  | MAXPHYS, which is defined in all platforms' machine param.h to be
  | 64K (with the exception of sun2 [56K] and arc [32K].
  | The result of this is that you can't generate release packages under
  | Solaris:
  | [ "work.built" =3D work.built -a -f install.fs -a ! install.fs -ot work=
.built ]  || {  echo '#  ' " create " instfs/install.fs;  rm -f install.fs =
install.fs.tmp;  /tiny/obj/sparc64-main/tooldir.SunOS-5.9-sparc/bin/nbmakef=
s -t ffs -B be -s 5m -F work.spec  -N /tiny/src/sparc64-main/etc -o bsize=
=3D4096,fsize=3D512  -o optimization=3Dspace,minfree=3D0  -o bsize=3D16k,fs=
ize=3D2k -f 15 install.fs.tmp work  && mv -f install.fs.tmp install.fs;  }
  | #    create  instfs/install.fs
  | Calculated size of `install.fs.tmp': 5242880 bytes, 949 inodes
  | block size 16384 is too large, maximum is 8192
  | *** Failed target:  install.fs
  | It seems obvious that the native MAXBSIZE is being used, even though
  | the target's MAXBSIZE should be considered for the maximum block size.
  | Perhaps the makefs code should reference the param.h files in the
  | source tree rather than /usr/include/{sys,machine}/param.h?

Could you submit a PR with these details, so the issue isn't forgotten?


Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.4 (NetBSD)