| @@ -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 | |
3 | Special notes for cross-hosting a NetBSD build on certain platforms. | | 3 | Special notes for cross-hosting a NetBSD build on certain platforms. |
4 | Only those platforms which have been tested to complete a "build.sh" run | | 4 | Only those platforms which have been tested to complete a "build.sh" run |
5 | are listed. | | 5 | are listed. |
6 | | | 6 | |
7 | All hosts must have a POSIX compatible sh. /bin/sh is assumed unless | | 7 | All hosts must have a POSIX compatible sh. /bin/sh is assumed unless |
8 | otherwise set. This can be overridden by setting HOST_SH in the environment. | | 8 | otherwise set. This can be overridden by setting HOST_SH in the environment. |
9 | | | 9 | |
10 | In addition all hosts must provide the following local tools: | | 10 | In 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: |
55 | with up to date Xcode command line tools and APFS filesystems. | | 55 | with up to date Xcode command line tools and APFS filesystems. |
56 | Previously, there have been issues building on case-insensitive | | 56 | Previously, there have been issues building on case-insensitive |
57 | HFS filesystems. build.sh is not working yet on M1-based Macs. | | 57 | HFS filesystems. build.sh is not working yet on M1-based Macs. |
58 | | | 58 | |
59 | HP-UX | | 59 | HP-UX |
60 | ----- | | 60 | ----- |
61 | | | 61 | |
62 | * zlib must be available. | | 62 | * zlib must be available. |
63 | | | 63 | |
64 | OpenBSD | | 64 | OpenBSD |
65 | ------- | | 65 | ------- |
66 | | | 66 | |
67 | As of -current 20210629, ./build.sh will build src on OpenBSD 6.9 | | 67 | As of -current 20210629, ./build.sh will build src on OpenBSD 6.9 |
68 | for all targets except MIPS-based ones. | | 68 | for all platforms. |
69 | | | 69 | |
70 | For builds requiring the LLVM RT library (including X on amd64, | | 70 | Due to the default limits placed on user accounts, the host may experience |
71 | i386 and evbarm64-el), the build user's limits needs to be setup | | 71 | memory exhaustion on builds requiring the LLVM RT library (including |
72 | for higher memory usage, otherwise the build will fail. This can | | 72 | X on amd64, i386 and evbarm64-el) and for MIPS targets. |
73 | be achieved by either building as root (not recommended) or | | 73 | |
74 | by changing the datasize attribute to infinity for the relevant | | 74 | This can be avoided by building as root (not ideal) or by asking your |
75 | groups and users in /etc/login.conf. | | 75 | administrator to increase your limits in login.conf. These two variables |
| | | 76 | seem to be sufficient: |
| | | 77 | :datasize=infinity:\ |
| | | 78 | :stacksize-cur=8M:\ |
76 | | | 79 | |
77 | NetBSD (earlier releases) | | 80 | NetBSD (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 | |
85 | Solaris | | 88 | Solaris |
86 | ------- | | 89 | ------- |
87 | | | 90 | |
88 | (updated instruction for Solaris 11 further below) | | 91 | (updated instruction for Solaris 11 further below) |