README revision 1.14 1 1.14 cjep $NetBSD: README,v 1.14 2021/05/06 07:32:15 cjep Exp $
2 1.1 tv
3 1.1 tv Special notes for cross-hosting a NetBSD build on certain platforms.
4 1.1 tv Only those platforms which have been tested to complete a "build.sh" run
5 1.1 tv are listed.
6 1.7 lukem
7 1.10 jmc All hosts must have a POSIX compatible sh. /bin/sh is assumed unless
8 1.10 jmc otherwise set. This can be overridden by setting HOST_SH in the environment.
9 1.10 jmc
10 1.10 jmc In addition all hosts must provide the following local tools:
11 1.14 cjep gzip
12 1.14 cjep gcc
13 1.14 cjep g++
14 1.14 cjep zlib and headers (this requirement may be dropped in future)
15 1.10 jmc
16 1.14 cjep FreeBSD
17 1.14 cjep =======
18 1.10 jmc
19 1.14 cjep build.sh was recently tested on FreeBSD 13 with the compiler tools installed.
20 1.1 tv
21 1.14 cjep Linux
22 1.1 tv =====
23 1.1 tv
24 1.14 cjep build.sh has been tested on:
25 1.14 cjep * Amazon Linux 2 (x86)
26 1.14 cjep * Debian 10 (x86)
27 1.14 cjep * Red Hat Enterprise Linux 8 (x86)
28 1.14 cjep * SUSE Enterprise Server 15 (x86)
29 1.14 cjep * Ubuntu Server 20.04 (x86)
30 1.14 cjep
31 1.14 cjep * The gcc and g++ package must be installed, along with the typical system
32 1.14 cjep development packages (glibc-devel, etc.). The g++ package is sometimes
33 1.14 cjep called gcc-c++.
34 1.1 tv
35 1.14 cjep * The ncurses-devel package must be installed (for nbinfo).
36 1.12 jmc
37 1.14 cjep * The zlib and zlib-devel packages must be installed (these are
38 1.14 cjep called zlib1g and zlib1g-dev on Debian and Ubuntu Linux)
39 1.1 tv
40 1.14 cjep macOS/Darwin
41 1.14 cjep ============
42 1.1 tv
43 1.14 cjep build.sh was recently tested on macOS Big Sur with an APFS filesystem
44 1.14 cjep and the Xcode command line tools. (Previously, there have been issues
45 1.14 cjep building on case-insensitive HFS filesystems.)
46 1.9 dbj
47 1.14 cjep HP-UX
48 1.9 dbj =====
49 1.9 dbj
50 1.14 cjep * zlib must be available.
51 1.1 tv
52 1.14 cjep NetBSD (earlier releases)
53 1.14 cjep =========================
54 1.1 tv
55 1.1 tv * Tested on NetBSD 1.5.2 (machine-independently).
56 1.1 tv * Should need no special setup.
57 1.14 cjep * _NETBSD_SOURCE is *not* to be defined/pulled in during compat/tools builds.
58 1.14 cjep compat_defs.h will error out if it finds it defined.
59 1.1 tv
60 1.14 cjep Solaris
61 1.14 cjep =======
62 1.1 tv
63 1.13 palle (updated instruction for Solaris 11 further below)
64 1.13 palle
65 1.4 thorpej * Tested on Solaris/x86 8 (5.8) with gcc 2.95.2 and Solaris/sparc 8 (5.8)
66 1.4 thorpej with gcc 3.2 (not yet tested with SUNWspro).
67 1.1 tv
68 1.1 tv * $HOST_CC needs to be set properly (for gcc, it should be set to "gcc",
69 1.1 tv otherwise the improper /usr/ucb/cc may be invoked by accident).
70 1.1 tv
71 1.4 thorpej * The SUNWzlib package (or a built version of zlib visible to $HOST_CC,
72 1.4 thorpej such as SMCzlib from sunfreeware.com) must be installed. This will be
73 1.4 thorpej fixed in the future to include zlib in libnbcompat.
74 1.1 tv
75 1.1 tv * Needs the following paths, in this order, in $PATH:
76 1.1 tv
77 1.5 thorpej /usr/xpg4/bin
78 1.4 thorpej /usr/ccs/bin
79 1.4 thorpej <path to host C and C++ compilers>
80 1.4 thorpej /usr/bin
81 1.4 thorpej
82 1.4 thorpej /usr/ucb may optionally be placed before /usr/bin, per your preference,
83 1.4 thorpej but /usr/ucb *MUST NOT* be before /usr/ccs/bin or before the path to
84 1.4 thorpej the host C and C++ compilers.
85 1.13 palle
86 1.13 palle Solaris 11:
87 1.13 palle
88 1.13 palle * Solaris 11.3
89 1.13 palle * Set PATH to /usr/xpg6/bin:/usr/xpg4/bin:/usr/bin
90 1.13 palle * Set HOST_CC to /usr/bin/gcc
91 1.13 palle
92 1.13 palle * Solaris 11.4
93 1.13 palle * Install gcc-5 since the default installed gcc-7 has issues when compiling
94 1.13 palle toolchain version of groff (hypot())
95 1.13 palle * Set PATH to /usr/xpg7/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/bin
96 1.13 palle * set HOST_CC to /usr/gcc/5/bin/gcc
97 1.13 palle * set HOST_CXX to /usr/gcc/5/bin/g++
98