Home | History | Annotate | Line # | Download | only in src
UPDATING revision 1.378
      1  1.378  pgoyette $NetBSD: UPDATING,v 1.378 2025/04/27 22:03:22 pgoyette Exp $
      2    1.1       abs 
      3  1.123       jmc This file (UPDATING) is intended to be a brief reference to recent
      4  1.123       jmc changes that might cause problems in the build process, and a guide for
      5  1.123       jmc what to do if something doesn't work.
      6    1.1       abs 
      7  1.123       jmc For a more detailed description of the recommended way to build NetBSD
      8  1.123       jmc using build.sh, see the BUILDING file.
      9  1.123       jmc 
     10  1.123       jmc Note that much of the advice in this UPDATING file was written before
     11  1.123       jmc build.sh existed.  Nevertheless, the advice here may be useful for
     12  1.123       jmc working around specific problems with build.sh.
     13  1.123       jmc 
     14  1.257       apb Sections are marked with "^^^^^".  After the section on "Recent changes"
     15  1.257       apb are several sections containing more general information.
     16  1.257       apb 
     17  1.123       jmc See also: BUILDING, build.sh, Makefile.
     18    1.1       abs 
     19    1.1       abs Recent changes:
     20    1.1       abs ^^^^^^^^^^^^^^^
     21  1.230       tls 
     22  1.378  pgoyette 20250427:
     23  1.378  pgoyette 	The KERNEL_DIR option to build.sh is now functional.  Set it
     24  1.378  pgoyette 	with ``-V KERNEL_DIR=yes'' on yuor build.sh command.
     25  1.378  pgoyette 	With this, you can now colocate kernel and associated modules
     26  1.378  pgoyette 	in /netbsd/{kernel,kernel.dbg,modules} instead of having the
     27  1.378  pgoyette 	kernel in / but modules in /stand.
     28  1.378  pgoyette 
     29  1.378  pgoyette 	Note that you'll need new bootstrap code to use this feature.
     30  1.378  pgoyette 
     31  1.378  pgoyette 	This compleetes work begun many years ago by christos@ :-)
     32  1.378  pgoyette 
     33  1.377  riastrad 20250413:
     34  1.377  riastrad 	A change to bsd.lib.mk requires a clean build of all libraries.
     35  1.377  riastrad 
     36  1.375  christos 20250131:
     37  1.375  christos 	The switch to the new jemalloc requires cleaning in libc.
     38  1.376     palle 
     39  1.367  riastrad 20241122:
     40  1.373  riastrad 	Changes to various libraries' build options require cleaning
     41  1.373  riastrad 	their objdirs in update builds:
     42  1.368  riastrad 
     43  1.372  riastrad 	cd external/bsd/file/lib && $TOOLDIR/bin/nbmake-$ARCH clean
     44  1.370  riastrad 	cd external/bsd/libarchive/lib && $TOOLDIR/bin/nbmake-$ARCH clean
     45  1.372  riastrad 	cd external/public-domain/xz/lib && $TOOLDIR/bin/nbmake-$ARCH clean
     46  1.368  riastrad 
     47  1.374  riastrad 	Also, for architectures with MKCOMPAT, it is necessary to clean
     48  1.374  riastrad 	the compat objdirs too.  The easiest way is:
     49  1.374  riastrad 
     50  1.374  riastrad 	rm -rf OBJDIR/compat/*/*/external/bsd/file/lib
     51  1.374  riastrad 	rm -rf OBJDIR/compat/*/*/external/bsd/libarchive/lib
     52  1.374  riastrad 	rm -rf OBJDIR/compat/*/*/external/public-domain/xz/lib
     53  1.374  riastrad 
     54  1.367  riastrad 	Changes to bsd.lib.mk to improve detecting differences in
     55  1.367  riastrad 	shared library symbol exports may cause some .actsym files in
     56  1.367  riastrad 	the objdir to become stale in update builds.
     57  1.367  riastrad 
     58  1.367  riastrad 	To work around this, delete all files matching `*.actsym' in
     59  1.367  riastrad 	the objdir.  For example:
     60  1.367  riastrad 
     61  1.367  riastrad 	find OBJDIR -name '*.actsym' -type f -print0 | xargs -0 rm
     62  1.367  riastrad 
     63  1.363    martin 20241104:
     64  1.363    martin 	Changes around the integration of the zstd compression
     65  1.363    martin 	library may require manual deletion of some object directories
     66  1.366  riastrad 	if you update from a build from a few days ago:
     67  1.366  riastrad 	rm -rf DESTDIR/usr/lib/*/libarchive*
     68  1.366  riastrad 	rm -rf DESTDIR/usr/lib/*/libmagic*
     69  1.366  riastrad 	rm -rf DESTDIR/usr/lib/*/libzstd*
     70  1.366  riastrad 	rm -rf DESTDIR/usr/lib/libarchive*
     71  1.366  riastrad 	rm -rf DESTDIR/usr/lib/libmagic*
     72  1.366  riastrad 	rm -rf DESTDIR/usr/lib/libzstd*
     73  1.366  riastrad 	rm -rf OBJDIR/compat/*/*/external/bsd/file/
     74  1.366  riastrad 	rm -rf OBJDIR/compat/*/*/external/bsd/libarchive/
     75  1.366  riastrad 	rm -rf OBJDIR/compat/*/*/external/bsd/zstd/
     76  1.366  riastrad 	rm -rf OBJDIR/external/bsd/file/
     77  1.366  riastrad 	rm -rf OBJDIR/external/bsd/libarchive/
     78  1.366  riastrad 	rm -rf OBJDIR/external/bsd/zstd/
     79  1.366  riastrad 	rm -rf OBJDIR/external/gpl3/gcc/
     80  1.366  riastrad 	rm -rf OBJDIR/tools/gcc/
     81  1.363    martin 
     82  1.360       wiz 20240926:
     83  1.360       wiz 	Building -current when running on amd64 from about 20240924
     84  1.360       wiz 	to about 20240926 will not work due to a "malloc_np.h"
     85  1.360       wiz 	error. Please downgrade to a version from 20240924 or older,
     86  1.360       wiz 	or upgrade to a newer version e.g. using a binary release from
     87  1.360       wiz 	the NetBSD build servers.
     88  1.360       wiz 
     89  1.358    martin 20240923:
     90  1.358    martin 	Update builds will require cleaning the object directories for
     91  1.359    martin 	jemalloc (like: "rm -rf $OBJ/external/bsd/jemalloc*") and the
     92  1.359    martin 	libc dependency files (like: "rm $OBJ/lib/libc/jemalloc.*").
     93  1.359    martin 	On architectures with COMPAT libs, those also have to be cleaned,
     94  1.359    martin 	e.g. on sparc64: "rm -rf $OBJ/compat/sparc64/sparc/external/bsd/jemalloc*"
     95  1.359    martin 	and "rm $OBJ/compat/sparc64/sparc/lib/libc/jemalloc.*".
     96  1.358    martin 
     97  1.357  christos 20240817:
     98  1.357  christos 	Update builds will require cleaning in src/external/historical/nawk/bin
     99  1.357  christos 	in order to remove the awk binary since now there is a subdirectory
    100  1.357  christos 	called awk.
    101  1.358    martin 
    102  1.355    martin 20240812:
    103  1.355    martin 	Update builds will require removing the tools objdir for gdb
    104  1.355    martin 	if building with MKCROSSGDB=yes. All architectures use gdb.old
    105  1.355    martin 	now.
    106  1.356  riastrad 
    107  1.354    martin 20240630:
    108  1.353    martin 	Update builds will require removing the tools objdir for binutils
    109  1.353    martin 	(as most architectures should use binutils.old now).
    110  1.353    martin 
    111  1.352       kre 20240610:
    112  1.352       kre 	Update builds are likely to require removing the objdir for
    113  1.352       kre 	distrib/<arch>/cdroms - or at least references to libarchive
    114  1.352       kre 	from within there after the recent libarchive update.
    115  1.352       kre 
    116  1.350  riastrad 20240504:
    117  1.350  riastrad 	Update builds on x86 require making the `cleandir' target in
    118  1.350  riastrad 	lib/libm, or deleting the objdir for lib/libm.
    119  1.350  riastrad 
    120  1.349      maya 20240423:
    121  1.349      maya 	Update builds with x11 may fail after switching to Mesa 21.
    122  1.349      maya 
    123  1.346  riastrad 20240410:
    124  1.346  riastrad 	Update builds may require manually deleting
    125  1.346  riastrad 	$DESTDIR/var/run/named (and, potentially,
    126  1.346  riastrad 	$DESTDIR/var/run/lwresd) in order to avoid checkflist failure.
    127  1.346  riastrad 
    128  1.347       nia 20240409:
    129  1.347       nia 	32-bit compatibility libraries were moved into the base32
    130  1.347       nia 	and debug32 sets.  HTML man pages were moved into the manhtml set.
    131  1.347       nia 
    132  1.343  riastrad 20230828:
    133  1.343  riastrad 	If:
    134  1.343  riastrad         - you updated to current and ran postinstall between 20230826
    135  1.343  riastrad 	  and 20230828 inclusive, and
    136  1.343  riastrad         - you are not using anything outside the base system to
    137  1.343  riastrad 	  populate /etc/openssl/certs (e.g., manually adding
    138  1.343  riastrad 	  certificates or using ca-certificates or mozilla-rootcerts or
    139  1.343  riastrad 	  mozilla-rootcerts-openssl from pkgsrc),
    140  1.343  riastrad 	delete /etc/openssl/certs and rerun postinstall or just
    141  1.343  riastrad 	`certctl rehash'.
    142  1.343  riastrad 
    143  1.343  riastrad 	Otherwise, certctl(8) will think someone else has left
    144  1.343  riastrad 	/etc/openssl/certs in the way and will avoid clobbering it on
    145  1.343  riastrad 	upgrade from older NetBSD.
    146  1.343  riastrad 
    147  1.341     lukem 20230718:
    148  1.341     lukem 	build.sh will use mk.conf in the same directory as build.sh instead
    149  1.341     lukem 	of /etc/mk.conf, unless MAKECONF is already defined in the environment.
    150  1.341     lukem 
    151  1.342    martin 20230714:
    152  1.342    martin 	Import of gcc 10.5 requires a clean build of at least tools/gcc
    153  1.342    martin 	and external/gpl3/gcc* object directories. An update build
    154  1.342    martin 	without cleaning will result in obscure failures in rare corner
    155  1.342    martin 	cases.
    156  1.342    martin 
    157  1.339    martin 20230604:
    158  1.339    martin 	Building native kernels with the installed make(1) instead of
    159  1.339    martin 	the $TOOLDIR/bin/nbmake-${arch} wrapper will fail if userland
    160  1.339    martin 	has not been updated. Note that this is an unsupported build
    161  1.339    martin 	configuration (but usually works if userland is -current enough).
    162  1.338     lukem 
    163  1.338     lukem 20230523:
    164  1.338     lukem 	ctfmerge was fixed as macOS host tool. This may require a clean tools
    165  1.338     lukem 	rebuild to detect the update to tools/compat/configure.
    166  1.338     lukem 
    167  1.340    martin 20230515:
    168  1.340    martin 	New openssl build requires removal of the crypto/external/bsd/openssl
    169  1.345    andvar 	and tests/crypto/libcrypto subdirectories in the ${OBJDIR} hierarchy.
    170  1.340    martin 	Otherwise test results may be wrong due to wrong "golden" output
    171  1.340    martin 	files being installed.
    172  1.340    martin 
    173  1.337       mrg 20230322:
    174  1.337       mrg 	Fixes for moved /lib/libisns* mean that builds will complain about
    175  1.337       mrg 	./usr/lib/libisns* being missing until src/lib/libisns is forced
    176  1.337       mrg 	to (re)install the files, including the symlinks.  The simplest
    177  1.337       mrg 	way is to clean this subdir before building.
    178  1.337       mrg 
    179  1.336    martin 20230112:
    180  1.336    martin 	New binutils require an updated ld.elf_so. If you are doing
    181  1.336    martin 	(unsupported) in-place self builds (with the -E flag to build.sh),
    182  1.336    martin 	make sure to have installed latest ld.elf_so before you rebuild
    183  1.336    martin 	userland.
    184  1.336    martin 
    185  1.335       chs 20221116:
    186  1.335       chs 	The addition to NetBSD's version of UFS2 of support for extended
    187  1.335       chs 	attributes broke backward compatibility with previous releases
    188  1.335       chs 	of NetBSD, so UFS2 has been restored to being compatible with
    189  1.335       chs 	previous NetBSD releases by disabling extended attributes.
    190  1.335       chs 	(Note that ACLs are implemented as extended attributes, so
    191  1.335       chs 	this changes disables ACLs as well.)
    192  1.335       chs 
    193  1.335       chs 	Support for UFS2 with extended attributes is now available in a new
    194  1.335       chs 	UFS variant called UFS2ea.  If you have created extended attributes
    195  1.335       chs 	in an original UFS2 file system then "fsck -p" will now fail due to
    196  1.335       chs 	the unexpected presence of extended attributes and "fsck -y" will
    197  1.335       chs 	remove all extended attributes.  If you wish to preserve extended
    198  1.335       chs 	attributes rather than delete them, there is a utility to convert
    199  1.335       chs 	a UFS2 file system to UFS2ea and leave extended attributes in place,
    200  1.335       chs 	but this should be used with caution since it will preserve any
    201  1.335       chs 	extended attributes that have been corrupted by the backward
    202  1.335       chs 	incompatibility too.
    203  1.335       chs 
    204  1.335       chs 	If you wish to use a UFS2ea file system as your root file system,
    205  1.335       chs 	then you will need to update your boot loader to a version that
    206  1.335       chs 	supports UFS2ea.
    207  1.335       chs 
    208  1.335       chs 	For more information, see:
    209  1.335       chs 	https://wiki.netbsd.org/features/UFS2ea
    210  1.335       chs 
    211  1.334       mrg 20221111:
    212  1.334       mrg 	The new libdrm import worsened the conflict issues for the
    213  1.334       mrg 	kdump/ktruss ioctl, and i915 now conflicts with base, and has
    214  1.334       mrg 	been turned off.  This will cause update build issues like:
    215  1.334       mrg 
    216  1.334       mrg 		kdump-ioctl.c:12175:143: error: 'DRM_IOCTL_I915_DESTROY_HEAP'
    217  1.334       mrg 		   undeclared here (not in a function);
    218  1.334       mrg 		   did you mean 'DRM_IOCTL_MODE_DESTROY_DUMB'?
    219  1.334       mrg 
    220  1.334       mrg 	You'll need to clean usr.bin/ktruss, usr.bin/kdump, and rescue.
    221  1.334       mrg 
    222  1.331  riastrad 20220921:
    223  1.331  riastrad 	Since the kernel version was bumped to 9.99.100, the bootloader
    224  1.333  riastrad 	must be updated on x86 or EFI boot platforms in order to load
    225  1.333  riastrad 	modules from boot.cfg(5) or interactively at the bootloader
    226  1.333  riastrad 	prompt.
    227  1.333  riastrad 
    228  1.333  riastrad 	The kernel can still load modules at runtime, with modload(8)
    229  1.333  riastrad 	or modules.conf(5), with no bootloader update.  This will not
    230  1.333  riastrad 	affect release branches because it only applies to patch
    231  1.333  riastrad 	numbers >=100.
    232  1.333  riastrad 
    233  1.333  riastrad 	On x86 (i386 or amd64) with BIOS boot, this requires copying a
    234  1.333  riastrad 	new /usr/mdec/boot to /boot.  You can build this in the destdir
    235  1.333  riastrad 	by running `$TOOLDIR/bin/nbmake-$ARCH dependall install' in
    236  1.333  riastrad 	sys/arch/i386/stand.
    237  1.333  riastrad 
    238  1.333  riastrad 	On platforms with EFI boot (including x86 with EFI boot), this
    239  1.333  riastrad 	requires copying a new /usr/mdec/boot*.efi to the EFI/BOOT/
    240  1.333  riastrad 	directory on the EFI system partition.  The boot*.efi file is:
    241  1.333  riastrad 
    242  1.333  riastrad 	aarch64	bootaa64.efi
    243  1.333  riastrad 	amd64	bootx64.efi
    244  1.333  riastrad 	arm	bootarm.efi	(32-bit arm)
    245  1.333  riastrad 	i386	bootx32.efi
    246  1.333  riastrad 
    247  1.333  riastrad 	You can build this in the destdir by running
    248  1.333  riastrad 	`$TOOLDIR/bin/nbmake-$ARCH dependall install' in
    249  1.333  riastrad 	sys/stand/efiboot/boot*.
    250  1.331  riastrad 
    251  1.330     lukem 20220821:
    252  1.330     lukem 	Support for building extsrc/ has been deprecated.
    253  1.330     lukem 	EXTSRCSRCDIR and MKEXTSRC have been deprecated.
    254  1.330     lukem 
    255  1.329       mrg 20220714:
    256  1.329       mrg 	Updates to xorg-server and associated drivers may cause builds to
    257  1.329       mrg 	fail.  Cleaning both DESTDIR and the xorg build tree may be needed.
    258  1.329       mrg 
    259  1.328    martin 20220628:
    260  1.328    martin 	Changes in the build of src/games/robots require a clean build
    261  1.328    martin 	of that program.
    262  1.328    martin 
    263  1.324    martin 20211116:
    264  1.324    martin 	Changes in the xorg build require clean obj dirs for external/mit/xorg
    265  1.325    martin 	(or a full clean/non-update build).
    266  1.324    martin 
    267  1.323       nia 20211112:
    268  1.323       nia 	Device tree sources were updated for evbarm.  Some device nodes
    269  1.323       nia 	(in particular, ld(4) devices on the ROCKPro64) will be renumbered.
    270  1.323       nia 
    271  1.322    martin 20211014:
    272  1.323       nia 	MKPIE default for aarch64 has changed, a clean build is required.
    273  1.322    martin 
    274  1.321  christos 20210917:
    275  1.321  christos 	Changed MNT_ACLS to default to POSIX1e ACLs instead of NFSv4
    276  1.321  christos 	ACLs, to be compatible with FreeBSD. If you are using NFSv4 ACLs
    277  1.321  christos 	and have "acls" in /etc/fstab you'll need to change it to "nfs4acls".
    278  1.321  christos 
    279  1.319       mrg 20210711:
    280  1.319       mrg 	Updated GMP sources may require cleaning in tools/gmp and/or in
    281  1.319       mrg 	external/lgpl3/gmp/lib, particularly if GCC itself does not build.
    282  1.319       mrg 
    283  1.318       mrg 20210417:
    284  1.318       mrg 	GCC 10 was enabled for several platforms.  If builds fail in either
    285  1.351  gutterid 	tools/gcc or external/gpl3/gcc, first try cleaning those objects and
    286  1.318       mrg 	removing the $DESTDIR/usr/include/g++ subdirectory.
    287  1.318       mrg 
    288  1.316       mrg 20201016:
    289  1.316       mrg 	MIPS kernel modules have been disabled until they work.  This will
    290  1.316       mrg 	turn up in extra files in the DESTDIR, which should be cleaned.
    291  1.316       mrg 
    292  1.315       mrg 20200925:
    293  1.315       mrg 	GNU MPC and MPFR have been updated.  At least MPFR needs cleaning
    294  1.315       mrg 	in both the tools and external dirs.
    295  1.315       mrg 
    296  1.314       mrg 20200912:
    297  1.314       mrg 	GCC 9 has arrived for Arm and x86 platforms, and will be coming
    298  1.314       mrg 	for several more, as will binutils 2.34.  Clean as required.
    299  1.314       mrg 
    300  1.313       mrg 20200907:
    301  1.313       mrg 	GCC 9 is coming, and binutils has been updated for MIPS.  This
    302  1.313       mrg 	probably requires cleaning the tools/binutils.
    303  1.313       mrg 
    304  1.311       mrg 20200811:
    305  1.312       mrg 	GCC updates may require cleaning the objdir.  This may occur
    306  1.312       mrg 	due to GCC 7.5 update, GCC 8.4 move to gcc.old, or the upcoming
    307  1.312       mrg 	GCC 9 upgrade.
    308  1.311       mrg 
    309  1.309  christos 20200614:
    310  1.310  christos 	blacklist* has been renamed to blocklist*. postinstall(8)
    311  1.332  gutterid 	should handle the migration.
    312  1.309  christos 
    313  1.308  christos 20200601:
    314  1.308  christos 	Due to a mistake in LIBISPRIVATE handling, .so libraries were
    315  1.308  christos 	created in the build directories and need cleaning.
    316  1.308  christos 
    317  1.307       mrg 20200311:
    318  1.307       mrg 	GCC 8 ports will need cleaning in src/tools/gcc and
    319  1.307       mrg 	src/external/gpl3/gcc due to GCC 8.4 update.
    320  1.307       mrg 
    321  1.306  christos 20191118:
    322  1.306  christos 	More architectures were switched to gcc8:
    323  1.306  christos 	    i386, ia64 powerpc64, sparc, sparc64, arm
    324  1.306  christos 	The same comments as in 20191022 apply.
    325  1.306  christos 
    326  1.305    martin 20191112:
    327  1.305    martin 	The LLVM update requires a clean rebuild for all architectures using
    328  1.305    martin 	LLVM during the tools build phase (i386, amd64, aarch64).
    329  1.305    martin 
    330  1.304    martin 20191022:
    331  1.304    martin 	Ports amd64 and aarch64 switched to GCC 8.3 by default.
    332  1.304    martin 	In-place ("expert mode", build.sh -E) builds are not supported
    333  1.304    martin 	when going from a GCC 7 userland to GCC 8. Do a regular
    334  1.304    martin 	build to a different DESTDIR (or preferably: build.sh -U) at least
    335  1.306  christos 	once and install sets, or download comp.{tar.xz,tgz} from the
    336  1.304    martin 	daily builds and install that before doing the next in-place build.
    337  1.304    martin 
    338  1.303       mrg 20191001:
    339  1.303       mrg 	GCC 8.3 was imported.  Builds of src/tools/gcc may fail if
    340  1.303       mrg 	old builds with GCC 7 output now uses GCC 8.  Clean this
    341  1.303       mrg 	directory, and also clean src/external/gpl3/gcc.
    342  1.303       mrg 
    343  1.302  riastrad 20190903:
    344  1.306  christos 	Files with names that coincide with existing files' names on
    345  1.302  riastrad 	case-insensitive file systems were inadvertently committed, for
    346  1.302  riastrad 	radeon GPU firmware.  We cannot mark these as obsolete for
    347  1.302  riastrad 	postinstall to fix, so if you updated src since 2019-08-26, and
    348  1.302  riastrad 	ran build.sh distribution or ran build.sh release, you must
    349  1.302  riastrad 	manually delete the following files in your DESTDIR (which is
    350  1.302  riastrad 	usually $OBJDIR/destir.$ARCH), or from / if you have installed
    351  1.302  riastrad 	them:
    352  1.302  riastrad 
    353  1.302  riastrad 		/libdata/firmware/radeon/bonaire_ce.bin
    354  1.302  riastrad 		/libdata/firmware/radeon/bonaire_mc.bin
    355  1.302  riastrad 		/libdata/firmware/radeon/bonaire_me.bin
    356  1.302  riastrad 		/libdata/firmware/radeon/bonaire_mec.bin
    357  1.302  riastrad 		/libdata/firmware/radeon/bonaire_pfp.bin
    358  1.302  riastrad 		/libdata/firmware/radeon/bonaire_rlc.bin
    359  1.302  riastrad 		/libdata/firmware/radeon/bonaire_sdma.bin
    360  1.302  riastrad 		/libdata/firmware/radeon/bonaire_smc.bin
    361  1.302  riastrad 		/libdata/firmware/radeon/bonaire_uvd.bin
    362  1.302  riastrad 		/libdata/firmware/radeon/hainan_ce.bin
    363  1.302  riastrad 		/libdata/firmware/radeon/hainan_mc.bin
    364  1.302  riastrad 		/libdata/firmware/radeon/hainan_me.bin
    365  1.302  riastrad 		/libdata/firmware/radeon/hainan_pfp.bin
    366  1.302  riastrad 		/libdata/firmware/radeon/hainan_rlc.bin
    367  1.302  riastrad 		/libdata/firmware/radeon/hainan_smc.bin
    368  1.302  riastrad 		/libdata/firmware/radeon/hawaii_ce.bin
    369  1.302  riastrad 		/libdata/firmware/radeon/hawaii_mc.bin
    370  1.302  riastrad 		/libdata/firmware/radeon/hawaii_me.bin
    371  1.302  riastrad 		/libdata/firmware/radeon/hawaii_mec.bin
    372  1.302  riastrad 		/libdata/firmware/radeon/hawaii_pfp.bin
    373  1.302  riastrad 		/libdata/firmware/radeon/hawaii_rlc.bin
    374  1.302  riastrad 		/libdata/firmware/radeon/hawaii_sdma.bin
    375  1.302  riastrad 		/libdata/firmware/radeon/hawaii_smc.bin
    376  1.302  riastrad 		/libdata/firmware/radeon/kabini_ce.bin
    377  1.302  riastrad 		/libdata/firmware/radeon/kabini_me.bin
    378  1.302  riastrad 		/libdata/firmware/radeon/kabini_mec.bin
    379  1.302  riastrad 		/libdata/firmware/radeon/kabini_pfp.bin
    380  1.302  riastrad 		/libdata/firmware/radeon/kabini_rlc.bin
    381  1.302  riastrad 		/libdata/firmware/radeon/kabini_sdma.bin
    382  1.302  riastrad 		/libdata/firmware/radeon/kaveri_ce.bin
    383  1.302  riastrad 		/libdata/firmware/radeon/kaveri_me.bin
    384  1.302  riastrad 		/libdata/firmware/radeon/kaveri_mec.bin
    385  1.302  riastrad 		/libdata/firmware/radeon/kaveri_mec2.bin
    386  1.302  riastrad 		/libdata/firmware/radeon/kaveri_pfp.bin
    387  1.302  riastrad 		/libdata/firmware/radeon/kaveri_rlc.bin
    388  1.302  riastrad 		/libdata/firmware/radeon/kaveri_sdma.bin
    389  1.302  riastrad 		/libdata/firmware/radeon/mullins_ce.bin
    390  1.302  riastrad 		/libdata/firmware/radeon/mullins_me.bin
    391  1.302  riastrad 		/libdata/firmware/radeon/mullins_mec.bin
    392  1.302  riastrad 		/libdata/firmware/radeon/mullins_pfp.bin
    393  1.302  riastrad 		/libdata/firmware/radeon/mullins_rlc.bin
    394  1.302  riastrad 		/libdata/firmware/radeon/mullins_sdma.bin
    395  1.302  riastrad 		/libdata/firmware/radeon/oland_ce.bin
    396  1.302  riastrad 		/libdata/firmware/radeon/oland_mc.bin
    397  1.302  riastrad 		/libdata/firmware/radeon/oland_me.bin
    398  1.302  riastrad 		/libdata/firmware/radeon/oland_pfp.bin
    399  1.302  riastrad 		/libdata/firmware/radeon/oland_rlc.bin
    400  1.302  riastrad 		/libdata/firmware/radeon/oland_smc.bin
    401  1.302  riastrad 		/libdata/firmware/radeon/pitcairn_ce.bin
    402  1.302  riastrad 		/libdata/firmware/radeon/pitcairn_mc.bin
    403  1.302  riastrad 		/libdata/firmware/radeon/pitcairn_me.bin
    404  1.302  riastrad 		/libdata/firmware/radeon/pitcairn_pfp.bin
    405  1.302  riastrad 		/libdata/firmware/radeon/pitcairn_rlc.bin
    406  1.302  riastrad 		/libdata/firmware/radeon/pitcairn_smc.bin
    407  1.302  riastrad 		/libdata/firmware/radeon/tahiti_ce.bin
    408  1.302  riastrad 		/libdata/firmware/radeon/tahiti_mc.bin
    409  1.302  riastrad 		/libdata/firmware/radeon/tahiti_me.bin
    410  1.302  riastrad 		/libdata/firmware/radeon/tahiti_pfp.bin
    411  1.302  riastrad 		/libdata/firmware/radeon/tahiti_rlc.bin
    412  1.302  riastrad 		/libdata/firmware/radeon/tahiti_smc.bin
    413  1.302  riastrad 		/libdata/firmware/radeon/verde_ce.bin
    414  1.302  riastrad 		/libdata/firmware/radeon/verde_mc.bin
    415  1.302  riastrad 		/libdata/firmware/radeon/verde_me.bin
    416  1.302  riastrad 		/libdata/firmware/radeon/verde_pfp.bin
    417  1.302  riastrad 		/libdata/firmware/radeon/verde_rlc.bin
    418  1.302  riastrad 		/libdata/firmware/radeon/verde_smc.bin
    419  1.302  riastrad 
    420  1.302  riastrad 	We will re-import these radeon firmware images another way
    421  1.302  riastrad 	later.
    422  1.302  riastrad 
    423  1.301    martin 20190727:
    424  1.301    martin 	The uefi bootloader has gained tftp support and needs a clean
    425  1.301    martin 	build. If you do update builds, manually clean its object
    426  1.301    martin 	directory by something like:
    427  1.301    martin 	cd sys/arch/i386/stand/efiboot && make clean
    428  1.301    martin 
    429  1.300    martin 20190723:
    430  1.344  gutterid 	The jemalloc allocator in libc is now built without extended
    431  1.300    martin 	debugging (for performance reasons). In update builds make sure
    432  1.326    andvar 	to rebuild it completely, by removing all affected object files,
    433  1.300    martin 	including compat builds, something like:
    434  1.300    martin 	cd /usr/obj && find . -type d -name jemalloc|xargs rm -rf
    435  1.300    martin 
    436  1.299       mrg 20190207:
    437  1.299       mrg 	GCC 7 switched for many ports.  Update builds are likely to fail.
    438  1.299       mrg 
    439    1.1       abs Hints for a more successful build:
    440    1.1       abs ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    441  1.123       jmc     Use build.sh, but do not use its "expert mode":
    442  1.132      jmmv 	This will automatically build the tools in the
    443  1.123       jmc 	   correct order, and it will keep the tools and the
    444  1.123       jmc 	   new build products from interfering with the running
    445  1.123       jmc 	   system.  This will allow you to ignore most of the
    446  1.123       jmc 	   other advice in this file.
    447    1.2       mrg     Build a new kernel first:
    448    1.2       mrg 	This makes sure that any new system calls or features
    449    1.2       mrg 	   expected by the new userland will be present.  This
    450    1.2       mrg 	   helps to avoid critical errors when upgrading.
    451    1.1       abs     Use object directories:
    452    1.1       abs 	This helps to keep stale object
    453    1.1       abs 	   files from polluting the build if a Makefile "forgets"
    454    1.1       abs 	   about one.  It also makes it easier to clean up after
    455    1.1       abs 	   a build.  It's also necessary if you want to use the
    456    1.1       abs 	   same source tree for multiple machines.
    457  1.123       jmc 	   To use object directories with build.sh:
    458  1.123       jmc 	    a) invoke build.sh with the "-M" or "-O" options.
    459  1.123       jmc 	   To use object directories without using build.sh:
    460    1.1       abs 	    a) cd /usr/src ; make cleandir
    461    1.2       mrg 	    b) Add "OBJMACHINE=yes" to /etc/mk.conf
    462    1.2       mrg 	    c) Add "MKOBJDIRS=yes" to /etc/mk.conf
    463    1.1       abs 	    d) cd /usr/src ; make build
    464    1.2       mrg 	   Note that running "make obj" in a directory will create
    465    1.2       mrg 	   in obj.$MACHINE directory.
    466    1.1       abs     Build to a DESTDIR:
    467  1.123       jmc 	This helps to keep old installed files (especially libraries)
    468  1.123       jmc 	   from interfering with the new build.
    469  1.123       jmc 	   To build to a DESTDIR with build.sh, use the "-D" option.
    470  1.123       jmc 	   To build to a DESTDIR without using build.sh, set the DESTDIR
    471  1.123       jmc 	   environment variable before running make build.  It should be
    472  1.123       jmc 	   set to the pathname of an initially empty directory.
    473  1.123       jmc 	   Problems: if you do not use build.sh, you might need to
    474  1.123       jmc 		update critical utilities without using DESTDIR since
    475  1.123       jmc 		nothing is executed from what is installed in DESTDIR.
    476  1.123       jmc 		(See critical utils, below.)
    477    1.1       abs     Build often:
    478    1.1       abs 	This keeps critical utilities current enough to not choke
    479    1.1       abs 	on any other part of the source tree that depends on up to
    480  1.123       jmc 	date functionality.  If you use build.sh, you should not have
    481  1.123       jmc 	this problem.
    482  1.241       wiz 
    483    1.1       abs What to do if things don't work:
    484    1.1       abs ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    485  1.230       tls When things don't work there are usually a few things that commonly
    486    1.1       abs should be done.
    487    1.1       abs     1)	make includes
    488    1.1       abs 	This should be done automatically by make build.
    489    1.1       abs     2)  cd share/mk && make install
    490    1.1       abs 	Again, automatically done by make build.
    491    1.1       abs 
    492    1.1       abs Failsafe rebuild of a small part of the tree:
    493    1.1       abs ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    494    1.1       abs To make sure you rebuild something correctly you want to do
    495    1.1       abs something like the following:
    496    1.1       abs     1)  Make sure the includes and .mk files are up to date.
    497    1.1       abs     2)  Make sure any program used to build the particular
    498    1.1       abs 	utility is up to date.  (yacc, lex, etc...)
    499    1.1       abs     3)  cd ...path/to/util...
    500    1.1       abs 	make cleandir
    501    1.1       abs 	rm ...all obj directories...
    502    1.1       abs 	make cleandir			# yes, again
    503    1.1       abs 	make obj
    504    1.1       abs 	make depend && make
    505    1.1       abs 
    506    1.1       abs Failsafe rebuild of the entire tree:
    507    1.1       abs ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    508    1.1       abs If you really want to make sure the source tree is clean and
    509    1.2       mrg ready for a build try the following.  Note that sourcing /etc/mk.conf
    510    1.2       mrg (a make(1) Makefile) in this manner is not right, and will not work
    511    1.2       mrg for anyone who uses any make(1) features in /etc/mk.conf.
    512    1.1       abs 
    513    1.1       abs ---cut here---
    514    1.1       abs #!/bin/sh
    515    1.1       abs . /etc/mk.conf
    516    1.1       abs 
    517   1.58     lukem if [ -z $NETBSDSRCDIR ] ; then
    518   1.58     lukem     NETBSDSRCDIR=/usr/src
    519    1.1       abs fi
    520   1.58     lukem if [ \! -d $NETBSDSRCDIR ] ; then
    521    1.1       abs     echo Unable to find sources
    522    1.1       abs     exit 1
    523    1.1       abs fi
    524   1.58     lukem find $NETBSDSRCDIR -name \*.o -o -name obj.\* -o -name obj -exec rm \{\} \;
    525    1.1       abs 
    526    1.1       abs if [ -z $BSDOBJDIR ] ; then
    527    1.1       abs     BSDOBJDIR=/usr/obj
    528    1.1       abs fi
    529    1.1       abs if [ -d $BSDOBJDIR ] ; then
    530    1.1       abs     rm -rf $BSDOBJDIR
    531    1.1       abs fi
    532    1.1       abs 
    533   1.58     lukem cd $NETBSDSRCDIR && make cleandir
    534    1.1       abs 
    535    1.1       abs ---cut here---
    536    1.1       abs 
    537    1.1       abs Critical utilities:
    538    1.1       abs ^^^^^^^^^^^^^^^^^^^
    539    1.1       abs 	usr.bin/make
    540    1.1       abs 	usr.bin/yacc
    541    1.1       abs 	usr.bin/lex
    542   1.11     lukem 	usr.bin/xlint
    543  1.142  drochner 	usr.bin/config
    544    1.1       abs 
    545   1.34    simonb Other problems and possible solutions:
    546    1.1       abs ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    547    1.1       abs Symptom:Complaints involving a Makefile.
    548   1.17       erh Fix:	Rebuild usr.bin/make:
    549   1.17       erh 	cd usr.bin/make && make && make install
    550  1.111    simonb 	Or, a failsafe method if that doesn't work:
    551  1.348    rillig 	cd usr.bin/make && cc -DMAKE_NATIVE *.c -I. -o make \
    552  1.348    rillig 	&& install make /usr/bin
    553   1.17       erh 
    554    1.1       abs Fix:	Make sure .mk files are up to date.
    555    1.1       abs 	cd share/mk && make install
    556    1.2       mrg 
    557    1.2       mrg Symptom:Kernel `config' fails to configure any kernel, including GENERIC.
    558  1.142  drochner Fix:	Rebuild usr.bin/config
    559    1.1       abs 
    560    1.4    itojun Symptom:Obsolete intermediate files are used during compilation
    561    1.4    itojun Fix:	Try the following sequence of commands in the directory in question.
    562    1.4    itojun 	make cleandir; rm `make print-objdir`; make cleandir; make obj
    563    1.4    itojun 	(If you built the tree without "make obj" in the past, obsolete files
    564    1.4    itojun 	may remain.  The command tries to clean everything up)
    565    1.5       wiz 
    566  1.207   mbalmer Symptom:.../sysinst/run.c:xx: warning: initialization from incompatible
    567  1.207   mbalmer 	pointer type
    568    1.5       wiz Fix:	Rebuild and install usr.bin/menuc
    569   1.12    itojun 
    570   1.12    itojun Symptom:mklocale not found during build in share/locale/ctype
    571   1.12    itojun Fix:	Build and install usr.bin/mklocale
    572   1.13    dogcow 
    573   1.86    kleink Symptom:undefined reference to `__assert13' or `__unsetenv13'
    574   1.13    dogcow Fix:    Rebuild and install lib/libc
    575   1.13    dogcow 
    576  1.142  drochner Symptom:usr.bin/config fails to build.
    577   1.19       cgd Fix:	Try building with -DMAKE_BOOTSTRAP added to CFLAGS in Makefile.
    578   1.13    dogcow 
    579   1.19       cgd Symptom:undefined reference to `getprogname' or `setprogname'
    580   1.19       cgd Fix:    Rebuild and install lib/libc
    581   1.24       abs 
    582  1.223     joerg Symptom:Update build fails in src/tools/gcc complaining that a variable
    583  1.223     joerg 	(e.g. CPPFLAGS) has changed since the previous run.
    584  1.223     joerg Fix:    Run "nbmake-${ARCH} clean" in src/tools/gcc or do a clean build.
    585  1.257       apb 
    586  1.257       apb Symptom:cvs [update aborted]: cannot open directory /cvsroot/src/...:
    587  1.257       apb 	No such file or directory.
    588  1.257       apb Cause:	If a directory is created by mistake, then it is sometimes
    589  1.257       apb 	deleted from the CVS repository using administrative commands
    590  1.257       apb 	that bypass the normal cvs access controls.  If your cvs working tree
    591  1.257       apb 	contains references to a directory that has been deleted on the
    592  1.257       apb 	server in this way, then "cvs update" reports this error.
    593  1.257       apb Fix:	Recursively delete the affected directory from your working tree
    594  1.257       apb 	and try the update again.
    595