[NLUUG]   Welcome to ftp.nluug.nl
Current directory: /pub/NetBSD/NetBSD-current/src/tools/compat/
 
Current bandwidth utilization 2214.26 Mbit/s
Bandwidth utilization bar
Contents of README:
$NetBSD: README,v 1.29 2023/09/02 18:45:48 palle Exp $

Special notes for cross-hosting a NetBSD build on certain platforms.  
Only those platforms which have been tested to complete a "build.sh" run
are listed.

All hosts must have a POSIX compatible sh. /bin/sh is assumed unless 
otherwise set. This can be overridden by setting HOST_SH in the environment.

In addition all hosts must provide the following local tools:
  gzip
  gcc
  g++
  zlib and headers (this requirement may be dropped in future)

FreeBSD
-------

build.sh was recently tested on:
* FreeBSD 13 (amd64, aarch64) 
* FreeBSD 12.2 (amd64, aarch64)
* FreeBSD 11.4 (amd64)
* FreeBSD 10.4 (amd64)

Linux
-----

build.sh has been tested on:
* Amazon Linux 2 (x86)
* Debian 10 (x86, aarch64)
* Red Hat Enterprise Linux 8 (x86, aarch64)
* SUSE Enterprise Server 15 (x86)
* Ubuntu Server 20.04 (x86, aarch64)
* Ubuntu Server 18.04 (x86)

* The gcc and g++ package must be installed, along with the typical system 
  development packages (glibc-devel, etc.). The g++ package is sometimes 
  called gcc-c++.

* The ncurses-devel package must be installed (for nbinfo).

* The zlib and zlib-devel packages must be installed (these are
  called zlib1g and zlib1g-dev on Debian and Ubuntu Linux)

* There is a known build problem on Linux/aarch64 with glibc <2.28

macOS/Darwin
------------

build.sh was recently tested on:
* macOS Big Sur (x86)
* macOS Catalina
* macOS High Sierra

with up to date Xcode command line tools and APFS filesystems. 
Previously, there have been issues building on case-insensitive 
HFS filesystems. build.sh is not working yet on M1-based Macs.

HP-UX
-----

* zlib must be available.

OpenBSD
-------

As of -current 20210629, ./build.sh will build src on OpenBSD 6.9
for all platforms.

Due to the default limits placed on user accounts, the host may experience
memory exhaustion on builds requiring the LLVM RT library (including 
X on amd64, i386 and evbarm64-el) and for MIPS targets.

This can be avoided by building as root (not ideal) or by asking your
administrator to increase your limits in login.conf. These two variables
seem to be sufficient:
        :datasize=infinity:\
        :stacksize-cur=8M:\

NetBSD (earlier releases)
-------------------------

* Tested on NetBSD 1.5.2 (machine-independently).
* Should need no special setup.
* _NETBSD_SOURCE is *not* to be defined/pulled in during compat/tools builds.
  compat_defs.h will error out if it finds it defined. 

Solaris
-------

(updated instruction for Solaris 10 and 11 further below)

* Tested on Solaris/x86 8 (5.8) with gcc 2.95.2 and Solaris/sparc 8 (5.8)
  with gcc 3.2 (not yet tested with SUNWspro).

* $HOST_CC needs to be set properly (for gcc, it should be set to "gcc",
  otherwise the improper /usr/ucb/cc may be invoked by accident).

* The SUNWzlib package (or a built version of zlib visible to $HOST_CC,
  such as SMCzlib from sunfreeware.com) must be installed.  This will be
  fixed in the future to include zlib in libnbcompat.

* Needs the following paths, in this order, in $PATH:

      /usr/xpg4/bin
      /usr/ccs/bin
      <path to host C and C++ compilers>
      /usr/bin

  /usr/ucb may optionally be placed before /usr/bin, per your preference,
  but /usr/ucb *MUST NOT* be before /usr/ccs/bin or before the path to
  the host C and C++ compilers.


Solaris 10:

* Solaris 10 1/13 (u11)
 * POSIX.1-2001, SUSv3 (see standards(7))
 * Using gcc-5 from opencsw.org
 * Set PATH to /usr/xpg6/bin:/usr/xpg4/bin:/usr/bin:/usr/ccs/bin
 * Set HOST_CC to /opt/csw/bin/gcc
 * Set HOST_SH to /usr/bin/bash


Solaris 11:

* Solaris 11.3
 * POSIX.1-2001, SUSv3 (see standards(7))
 * Using gcc-12 from pkgsrc.org (installed in $GCC12INSTALLDIR)
 * Set PATH to /usr/xpg6/bin:/usr/xpg4/bin:/usr/bin:$GCC12INSTALLDIR/bin
 * Set HOST_CC to $GCC12INSTALLDIR/bin/gcc
 * Set HOST_SH to /usr/bin/bash

* Solaris 11.4 (CBE)
 * POSIX.1-2008, SUSv4 (see standards(7))
 * Using gcc-11
 * Set PATH to /usr/xpg7/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/bin
 * Set HOST_CC to /usr/bin/gcc
 * Set HOST_SH to /usr/bin/bash

* Solaris 11.4 (SRU57)
 * POSIX.1-2008, SUSv4 (see standards(7))
 * Using gcc-12
 * Set PATH to /usr/xpg7/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/bin
 * Set HOST_CC to /usr/bin/gcc
 * Set HOST_SH to /usr/bin/bash

Icon  Name                                  Last modified      Size  
[DIR] Parent Directory - [DIR] CVS/ 13-Jul-2024 05:01 - [DIR] buildaux/ 21-Jul-2023 05:01 - [DIR] crypto/ 25-Dec-2009 07:54 - [DIR] dev/ 23-Dec-2014 04:06 - [DIR] fs/ 27-Jan-2013 04:03 - [DIR] sys/ 08-May-2019 05:01 - [DIR] ufs/ 25-Dec-2009 07:54 - [   ] Makefile 31-May-2023 05:01 5.3K [TXT] README 03-Sep-2023 05:01 4.2K [TXT] aclocal.m4 21-Jul-2023 05:01 757 [TXT] cdbr.h 11-Dec-2013 04:04 184 [TXT] cdbw.h 03-Jun-2012 23:02 184 [TXT] compat_defs.h 22-Jul-2023 05:01 30K [TXT] compat_getopt.h 08-Nov-2007 21:30 389 [TXT] compat_pwd.h 18-Jan-2009 02:44 2.2K [TXT] configure 21-Jul-2023 05:01 212K [TXT] configure.ac 21-Jul-2023 05:01 11K [TXT] db.h 16-Oct-2006 21:44 181 [TXT] defs.mk.in 04-Jun-2023 05:01 3.0K [TXT] dprintf.c 05-Mar-2013 17:29 2.2K [TXT] fgetln.c 10-Oct-2015 05:04 2.0K [TXT] flock.c 28-Apr-2008 22:24 2.2K [TXT] fpurge.c 04-Oct-2017 05:01 1.8K [TXT] fts.h 27-Oct-2003 01:12 181 [TXT] getline.c 17-Sep-2014 05:03 2.9K [TXT] getmode.c 05-Nov-2008 00:31 1.9K [TXT] glob.h 27-Oct-2003 01:12 184 [TXT] issetugid.c 27-Oct-2003 01:12 344 [TXT] lchflags.c 28-Apr-2008 22:24 2.0K [TXT] lchmod.c 28-Apr-2008 22:24 1.9K [TXT] lchown.c 28-Apr-2008 22:24 1.9K [TXT] md2.h 27-Oct-2003 01:12 178 [TXT] md4.h 27-Oct-2003 01:12 178 [TXT] md5.h 27-Oct-2003 01:12 178 [TXT] mpool.h 21-Jan-2002 21:04 92 [TXT] namespace.h 27-Oct-2003 01:12 380 [TXT] nbtool_config.h.in 21-Jul-2023 05:01 25K [TXT] ndbm.h 03-Feb-2010 16:34 169 [TXT] nl_types.h 13-Nov-2014 04:06 185 [TXT] pread.c 28-Apr-2008 22:24 1.9K [TXT] putc_unlocked.c 28-Apr-2008 22:24 1.7K [TXT] pwrite.c 28-Apr-2008 22:24 1.9K [TXT] regex.h 04-Jul-2023 05:01 125 [TXT] rmd160.h 07-Feb-2013 21:30 190 [TXT] setenv.c 28-Apr-2008 22:24 1.9K [TXT] setgroupent.c 27-Oct-2003 01:12 227 [TXT] setpassent.c 27-Oct-2003 01:12 223 [TXT] setprogname.c 28-Apr-2008 22:24 1.9K [TXT] sha1.h 07-Feb-2013 21:30 184 [TXT] sha2.h 07-Feb-2013 21:31 184 [TXT] snprintf.c 27-Oct-2003 01:12 14K [TXT] tzfile.h 31-Jan-2002 23:43 94 [TXT] vis.h 27-Oct-2003 01:12 181

NLUUG - Open Systems. Open Standards
Become a member and get discounts on conferences and more, see the NLUUG website!