Go to file
martin 489c11d4fa Pull up following revision(s) (requested by kamil in ticket #126):
external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m64/Makefile: revision 1.3
	external/bsd/compiler_rt/lib/clang/lib/netbsd/msan_cxx-m64/Makefile: revision 1.3
	external/gpl2/lvm2/lvm2tools.mk: revision 1.5
	common/lib/libc/gmon/mcount.c: revision 1.14
	Makefile: revision 1.331
	share/mk/Makefile: revision 1.51
	external/bsd/fetch/lib/Makefile: revision 1.12
	external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m64/Makefile: revision 1.3
	tests/lib/libc/net/Makefile: revision 1.12
	external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m64/Makefile: revision 1.3
	external/bsd/compiler_rt/lib/clang/lib/netbsd/msan-m64/Makefile: revision 1.3
	distrib/sets/lists/base/mi: revision 1.1213
	share/mk/bsd.lib.mk: revision 1.380
	external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m64/Makefile: revision 1.3
	external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64/Makefile: revision 1.3
	share/mk/bsd.sanitizer.mk: revision 1.1
	share/mk/bsd.prog.mk: revision 1.323
	external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan-m64/Makefile: revision 1.3
	external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan_cxx-m64/Makefile: revision 1.3
	lib/libc/gen/sysctlgetmibinfo.c: revision 1.14

Enhance the support of LLVM sanitizers

Define _REENTRANT for MKSANITIZER build. This is needed for at least stdio
code. This caused new build issued with duplicated symbols in few places
and rump kernel code picking different code paths borrowed from libc.

Handle all this in one go.

Add bsd.sanitizer.mk to share common code used by programs and libraries.

Switch from realall to beforeinstall target in .syms files. This is more
reliable in MKSANITIZER.
2019-09-01 10:44:22 +00:00
bin Pull up following revision(s) (requested by kamil in ticket #24): 2019-08-07 08:25:32 +00:00
common Pull up following revision(s) (requested by kamil in ticket #126): 2019-09-01 10:44:22 +00:00
compat make all lines look the same, and put one arch per line. 2019-06-13 21:17:54 +00:00
crypto Remove superfluous Li; rename section to match standards. 2019-07-23 14:28:24 +00:00
dist/pf - enlarge buffer to avoid snprintf() truncation 2019-02-03 10:48:46 +00:00
distrib Pull up following revision(s) (requested by kamil in ticket #126): 2019-09-01 10:44:22 +00:00
doc Tickets #120 and #121 2019-08-29 16:58:40 +00:00
etc Pull up following revision(s) (requested by kamil in ticket #60): 2019-08-16 19:10:42 +00:00
external Pull up following revision(s) (requested by kamil in ticket #126): 2019-09-01 10:44:22 +00:00
extsrc
games The mother of all demos 2019-07-26 07:41:22 +00:00
include Sync with 2019b (field name change) 2019-07-03 15:49:21 +00:00
lib Pull up following revision(s) (requested by kamil in ticket #126): 2019-09-01 10:44:22 +00:00
libexec Pull up following revision(s) (requested by kamil in ticket #61): 2019-08-16 19:12:46 +00:00
regress Eliminate regress/libexec/ld.elf_so/expand 2019-04-06 16:25:52 +00:00
rescue fix duplicated chunk from merge 2019-01-27 04:33:29 +00:00
sbin Pull up following revision(s) (requested by roy in ticket #108): 2019-08-26 13:37:26 +00:00
share Pull up following revision(s) (requested by kamil in ticket #126): 2019-09-01 10:44:22 +00:00
sys Pull up following revision(s) (requested by nakayama in ticket #118): 2019-08-26 14:13:42 +00:00
tests Pull up following revision(s) (requested by kamil in ticket #126): 2019-09-01 10:44:22 +00:00
tools Bring back two lines deleted by accident. From Kamil Rytarowski. 2019-06-22 14:40:33 +00:00
usr.bin Pull up following revision(s) (requested by kamil in ticket #96): 2019-08-19 16:01:52 +00:00
usr.sbin Pull up following revision(s) (requested by martin in ticket #130): 2019-08-29 06:46:13 +00:00
BUILDING Fix a typo 2019-05-08 14:03:57 +00:00
Makefile Pull up following revision(s) (requested by kamil in ticket #126): 2019-09-01 10:44:22 +00:00
Makefile.inc
README.md Tidy up a bit. 2018-10-23 15:44:42 +00:00
UPDATING Note update hickup build issue for uefi boot. 2019-07-27 07:55:18 +00:00
build.sh Fix long-term broken pattern match when determining if uname -p output is 2019-06-07 15:49:20 +00:00

README.md

NetBSD

NetBSD is a free, fast, secure, and highly portable Unix-like Open Source operating system. It is available for a wide range of platforms, from large-scale servers and powerful desktop systems to handheld and embedded devices.

Building

You can cross-build NetBSD from most UNIX-like operating systems. To build for amd64 (x86_64), in the src directory:

./build.sh -U -u -j4 -m amd64 -O ~/obj release

Additional build information available in the BUILDING file.

Binaries

Testing

On a running NetBSD system:

cd /usr/tests; atf-run | atf-report

Troubleshooting

Latest sources

To fetch the main CVS repository:

cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P src

To work in the Git mirror, which is updated every few hours from CVS:

git clone https://github.com/NetBSD/src.git