Sun Jul 11 06:15:42 2021 UTC ()
Final note on OpenBSD cross-buildling. Remaining issues were due to
default limits on the build host.


(cjep)
diff -r1.20 -r1.21 src/tools/compat/README

cvs diff -r1.20 -r1.21 src/tools/compat/README (expand / switch to unified diff)

--- src/tools/compat/README 2021/07/04 12:57:48 1.20
+++ src/tools/compat/README 2021/07/11 06:15:42 1.21
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1$NetBSD: README,v 1.20 2021/07/04 12:57:48 cjep Exp $ 1$NetBSD: README,v 1.21 2021/07/11 06:15:42 cjep Exp $
2 2
3Special notes for cross-hosting a NetBSD build on certain platforms.  3Special notes for cross-hosting a NetBSD build on certain platforms.
4Only those platforms which have been tested to complete a "build.sh" run 4Only those platforms which have been tested to complete a "build.sh" run
5are listed. 5are listed.
6 6
7All hosts must have a POSIX compatible sh. /bin/sh is assumed unless  7All hosts must have a POSIX compatible sh. /bin/sh is assumed unless
8otherwise set. This can be overridden by setting HOST_SH in the environment. 8otherwise set. This can be overridden by setting HOST_SH in the environment.
9 9
10In addition all hosts must provide the following local tools: 10In addition all hosts must provide the following local tools:
11 gzip 11 gzip
12 gcc 12 gcc
13 g++ 13 g++
14 zlib and headers (this requirement may be dropped in future) 14 zlib and headers (this requirement may be dropped in future)
@@ -55,34 +55,37 @@ build.sh was recently tested on: @@ -55,34 +55,37 @@ build.sh was recently tested on:
55with up to date Xcode command line tools and APFS filesystems.  55with up to date Xcode command line tools and APFS filesystems.
56Previously, there have been issues building on case-insensitive  56Previously, there have been issues building on case-insensitive
57HFS filesystems. build.sh is not working yet on M1-based Macs. 57HFS filesystems. build.sh is not working yet on M1-based Macs.
58 58
59HP-UX 59HP-UX
60----- 60-----
61 61
62* zlib must be available. 62* zlib must be available.
63 63
64OpenBSD 64OpenBSD
65------- 65-------
66 66
67As of -current 20210629, ./build.sh will build src on OpenBSD 6.9 67As of -current 20210629, ./build.sh will build src on OpenBSD 6.9
68for all targets except MIPS-based ones.  68for all platforms.
69 69
70For builds requiring the LLVM RT library (including X on amd64,  70Due to the default limits placed on user accounts, the host may experience
71i386 and evbarm64-el), the build user's limits needs to be setup  71memory exhaustion on builds requiring the LLVM RT library (including
72for higher memory usage, otherwise the build will fail. This can 72X on amd64, i386 and evbarm64-el) and for MIPS targets.
73be achieved by either building as root (not recommended) or 73
74by changing the datasize attribute to infinity for the relevant 74This can be avoided by building as root (not ideal) or by asking your
75groups and users in /etc/login.conf. 75administrator to increase your limits in login.conf. These two variables
 76seem to be sufficient:
 77 :datasize=infinity:\
 78 :stacksize-cur=8M:\
76 79
77NetBSD (earlier releases) 80NetBSD (earlier releases)
78------------------------- 81-------------------------
79 82
80* Tested on NetBSD 1.5.2 (machine-independently). 83* Tested on NetBSD 1.5.2 (machine-independently).
81* Should need no special setup. 84* Should need no special setup.
82* _NETBSD_SOURCE is *not* to be defined/pulled in during compat/tools builds. 85* _NETBSD_SOURCE is *not* to be defined/pulled in during compat/tools builds.
83 compat_defs.h will error out if it finds it defined.  86 compat_defs.h will error out if it finds it defined.
84 87
85Solaris 88Solaris
86------- 89-------
87 90
88(updated instruction for Solaris 11 further below) 91(updated instruction for Solaris 11 further below)