README revision 1.13 1 1.13 palle $NetBSD: README,v 1.13 2018/09/09 19:17:21 palle 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.10 jmc
12 1.10 jmc gzip
13 1.10 jmc
14 1.7 lukem =====
15 1.7 lukem
16 1.11 jmc NetBSD:
17 1.11 jmc
18 1.11 jmc * _NETBSD_SOURCE is *not* to be defined/pulled in during compat/tools builds.
19 1.11 jmc compat_defs.h will error out if it finds it defined.
20 1.11 jmc
21 1.8 lukem HP-UX:
22 1.7 lukem
23 1.7 lukem * zlib must be available.
24 1.7 lukem This will be fixed in the future to include zlib in libnbcompat.
25 1.1 tv
26 1.1 tv =====
27 1.1 tv
28 1.1 tv LINUX:
29 1.1 tv
30 1.1 tv * Tested on RedHat Linux 7.1 (i386).
31 1.6 briggs Tested on RedHat Linux 7.3 (i686) on 16 Sep 2002. Requires "LANG=C"
32 1.6 briggs in the environment.
33 1.1 tv
34 1.10 jmc * Tested on Redhat Linux 8.0 (i686) in Fall 2003. Requires no special settings.
35 1.10 jmc
36 1.12 jmc * Tested on Redhat ES3 and AS3 in spring of 2004. Requires no special settings.
37 1.12 jmc
38 1.1 tv * The gcc (and libstdc++, if needed) package must be installed, along
39 1.1 tv with the typical system development packages (glibc-devel, etc.).
40 1.1 tv
41 1.1 tv * The ncurses-devel package must be installed (for nbinfo).
42 1.1 tv
43 1.1 tv * The zlib and zlib-devel packages must be installed. This will be
44 1.1 tv fixed in the future to include zlib in libnbcompat.
45 1.9 dbj
46 1.9 dbj =====
47 1.9 dbj
48 1.9 dbj MACOS
49 1.12 jmc Requires a case sensitive filesystem such as UFS
50 1.9 dbj
51 1.9 dbj * Tested on 10.2.8 with Dec 2002 Developer Tools
52 1.9 dbj - may require a fix to /usr/bin/join, netbsd's join should work fine
53 1.12 jmc * Tested on 10.3 with xcode 1.5
54 1.9 dbj - compiles fine out of the box
55 1.1 tv
56 1.1 tv =====
57 1.1 tv
58 1.1 tv NETBSD (earlier releases):
59 1.1 tv
60 1.1 tv * Tested on NetBSD 1.5.2 (machine-independently).
61 1.1 tv
62 1.1 tv * Should need no special setup.
63 1.1 tv
64 1.1 tv =====
65 1.1 tv
66 1.1 tv SOLARIS:
67 1.1 tv
68 1.13 palle (updated instruction for Solaris 11 further below)
69 1.13 palle
70 1.4 thorpej * Tested on Solaris/x86 8 (5.8) with gcc 2.95.2 and Solaris/sparc 8 (5.8)
71 1.4 thorpej with gcc 3.2 (not yet tested with SUNWspro).
72 1.1 tv
73 1.1 tv * $HOST_CC needs to be set properly (for gcc, it should be set to "gcc",
74 1.1 tv otherwise the improper /usr/ucb/cc may be invoked by accident).
75 1.1 tv
76 1.4 thorpej * The SUNWzlib package (or a built version of zlib visible to $HOST_CC,
77 1.4 thorpej such as SMCzlib from sunfreeware.com) must be installed. This will be
78 1.4 thorpej fixed in the future to include zlib in libnbcompat.
79 1.1 tv
80 1.1 tv * Needs the following paths, in this order, in $PATH:
81 1.1 tv
82 1.5 thorpej /usr/xpg4/bin
83 1.4 thorpej /usr/ccs/bin
84 1.4 thorpej <path to host C and C++ compilers>
85 1.4 thorpej /usr/bin
86 1.4 thorpej
87 1.4 thorpej /usr/ucb may optionally be placed before /usr/bin, per your preference,
88 1.4 thorpej but /usr/ucb *MUST NOT* be before /usr/ccs/bin or before the path to
89 1.4 thorpej the host C and C++ compilers.
90 1.13 palle
91 1.13 palle Solaris 11:
92 1.13 palle
93 1.13 palle * Solaris 11.3
94 1.13 palle * Set PATH to /usr/xpg6/bin:/usr/xpg4/bin:/usr/bin
95 1.13 palle * Set HOST_CC to /usr/bin/gcc
96 1.13 palle
97 1.13 palle * Solaris 11.4
98 1.13 palle * Install gcc-5 since the default installed gcc-7 has issues when compiling
99 1.13 palle toolchain version of groff (hypot())
100 1.13 palle * Set PATH to /usr/xpg7/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/bin
101 1.13 palle * set HOST_CC to /usr/gcc/5/bin/gcc
102 1.13 palle * set HOST_CXX to /usr/gcc/5/bin/g++
103