README revision 1.13
11.13Spalle$NetBSD: README,v 1.13 2018/09/09 19:17:21 palle Exp $ 21.1Stv 31.1StvSpecial notes for cross-hosting a NetBSD build on certain platforms. 41.1StvOnly those platforms which have been tested to complete a "build.sh" run 51.1Stvare listed. 61.7Slukem 71.10SjmcAll hosts must have a POSIX compatible sh. /bin/sh is assumed unless 81.10Sjmcotherwise set. This can be overridden by setting HOST_SH in the environment. 91.10Sjmc 101.10SjmcIn addition all hosts must provide the following local tools: 111.10Sjmc 121.10Sjmcgzip 131.10Sjmc 141.7Slukem===== 151.7Slukem 161.11SjmcNetBSD: 171.11Sjmc 181.11Sjmc* _NETBSD_SOURCE is *not* to be defined/pulled in during compat/tools builds. 191.11Sjmc compat_defs.h will error out if it finds it defined. 201.11Sjmc 211.8SlukemHP-UX: 221.7Slukem 231.7Slukem* zlib must be available. 241.7Slukem This will be fixed in the future to include zlib in libnbcompat. 251.1Stv 261.1Stv===== 271.1Stv 281.1StvLINUX: 291.1Stv 301.1Stv* Tested on RedHat Linux 7.1 (i386). 311.6Sbriggs Tested on RedHat Linux 7.3 (i686) on 16 Sep 2002. Requires "LANG=C" 321.6Sbriggs in the environment. 331.1Stv 341.10Sjmc* Tested on Redhat Linux 8.0 (i686) in Fall 2003. Requires no special settings. 351.10Sjmc 361.12Sjmc* Tested on Redhat ES3 and AS3 in spring of 2004. Requires no special settings. 371.12Sjmc 381.1Stv* The gcc (and libstdc++, if needed) package must be installed, along 391.1Stv with the typical system development packages (glibc-devel, etc.). 401.1Stv 411.1Stv* The ncurses-devel package must be installed (for nbinfo). 421.1Stv 431.1Stv* The zlib and zlib-devel packages must be installed. This will be 441.1Stv fixed in the future to include zlib in libnbcompat. 451.9Sdbj 461.9Sdbj===== 471.9Sdbj 481.9SdbjMACOS 491.12Sjmc Requires a case sensitive filesystem such as UFS 501.9Sdbj 511.9Sdbj* Tested on 10.2.8 with Dec 2002 Developer Tools 521.9Sdbj - may require a fix to /usr/bin/join, netbsd's join should work fine 531.12Sjmc* Tested on 10.3 with xcode 1.5 541.9Sdbj - compiles fine out of the box 551.1Stv 561.1Stv===== 571.1Stv 581.1StvNETBSD (earlier releases): 591.1Stv 601.1Stv* Tested on NetBSD 1.5.2 (machine-independently). 611.1Stv 621.1Stv* Should need no special setup. 631.1Stv 641.1Stv===== 651.1Stv 661.1StvSOLARIS: 671.1Stv 681.13Spalle(updated instruction for Solaris 11 further below) 691.13Spalle 701.4Sthorpej* Tested on Solaris/x86 8 (5.8) with gcc 2.95.2 and Solaris/sparc 8 (5.8) 711.4Sthorpej with gcc 3.2 (not yet tested with SUNWspro). 721.1Stv 731.1Stv* $HOST_CC needs to be set properly (for gcc, it should be set to "gcc", 741.1Stv otherwise the improper /usr/ucb/cc may be invoked by accident). 751.1Stv 761.4Sthorpej* The SUNWzlib package (or a built version of zlib visible to $HOST_CC, 771.4Sthorpej such as SMCzlib from sunfreeware.com) must be installed. This will be 781.4Sthorpej fixed in the future to include zlib in libnbcompat. 791.1Stv 801.1Stv* Needs the following paths, in this order, in $PATH: 811.1Stv 821.5Sthorpej /usr/xpg4/bin 831.4Sthorpej /usr/ccs/bin 841.4Sthorpej <path to host C and C++ compilers> 851.4Sthorpej /usr/bin 861.4Sthorpej 871.4Sthorpej /usr/ucb may optionally be placed before /usr/bin, per your preference, 881.4Sthorpej but /usr/ucb *MUST NOT* be before /usr/ccs/bin or before the path to 891.4Sthorpej the host C and C++ compilers. 901.13Spalle 911.13SpalleSolaris 11: 921.13Spalle 931.13Spalle* Solaris 11.3 941.13Spalle * Set PATH to /usr/xpg6/bin:/usr/xpg4/bin:/usr/bin 951.13Spalle * Set HOST_CC to /usr/bin/gcc 961.13Spalle 971.13Spalle* Solaris 11.4 981.13Spalle * Install gcc-5 since the default installed gcc-7 has issues when compiling 991.13Spalle toolchain version of groff (hypot()) 1001.13Spalle * Set PATH to /usr/xpg7/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/bin 1011.13Spalle * set HOST_CC to /usr/gcc/5/bin/gcc 1021.13Spalle * set HOST_CXX to /usr/gcc/5/bin/g++ 103