svn commit: r368338 - head/tools/build

2020-12-04 Thread Alex Richardson
Author: arichardson Date: Fri Dec 4 15:53:44 2020 New Revision: 368338 URL: https://svnweb.freebsd.org/changeset/base/368338 Log: make.py: Also pass STRIPBIN This is required for cross-building to allow stripping the installed binaries. Submitted By: Henry Vogt Modified: head/tool

svn commit: r368337 - in head: . usr.sbin/crunch/crunchgen

2020-12-04 Thread Alex Richardson
Author: arichardson Date: Fri Dec 4 15:53:37 2020 New Revision: 368337 URL: https://svnweb.freebsd.org/changeset/base/368337 Log: crunchgen: fix NULL-deref bug introduced in r364647 While porting over the local changes from CheriBSD for upstreaming, I accidentally committed a broken vers

svn commit: r368071 - head/share/mk

2020-11-26 Thread Alex Richardson
Author: arichardson Date: Thu Nov 26 17:37:27 2020 New Revision: 368071 URL: https://svnweb.freebsd.org/changeset/base/368071 Log: bsd.lib.mk: Work around build system raciness We are seeing regular build failures due to libc.so being installed again and another parallel make job tries to

svn commit: r368070 - head/sys/riscv/include

2020-11-26 Thread Alex Richardson
Author: arichardson Date: Thu Nov 26 17:37:22 2020 New Revision: 368070 URL: https://svnweb.freebsd.org/changeset/base/368070 Log: Add .cfi_{start,end}proc for RISC-V assembly functions This allows GDB to print more useful backtraces when setting a breakpoint on an assembly function.

svn commit: r368055 - head/contrib/netbsd-tests/lib/libpthread

2020-11-26 Thread Alex Richardson
Author: arichardson Date: Thu Nov 26 13:31:57 2020 New Revision: 368055 URL: https://svnweb.freebsd.org/changeset/base/368055 Log: Significantly speed up libthr/mutex_test and make more reliable Instead of using a simple global++ as the data race, with this change we perform the increment

svn commit: r367720 - head/tools/build

2020-11-16 Thread Alex Richardson
Author: arichardson Date: Mon Nov 16 11:38:51 2020 New Revision: 367720 URL: https://svnweb.freebsd.org/changeset/base/367720 Log: Revert "When building on Ubuntu bootstrap bmake with bash as the default shell" This reverts r365950 since the latest bmake update includes fixes for the test

svn commit: r367636 - head

2020-11-13 Thread Alex Richardson
Author: arichardson Date: Fri Nov 13 13:18:48 2020 New Revision: 367636 URL: https://svnweb.freebsd.org/changeset/base/367636 Log: Makefile.inc1: remove no-longer required variable This variable is unsed since r364760 but I forgot to delete it in that commit. Reported By: bdrewery Mo

svn commit: r367331 - head/usr.sbin/jls

2020-11-04 Thread Alex Richardson
Author: arichardson Date: Wed Nov 4 14:31:52 2020 New Revision: 367331 URL: https://svnweb.freebsd.org/changeset/base/367331 Log: Fix bad libbxo format strings in jls The existing format string for the empty case was trying to read varargs values that weren't passed to xo_emit. This appe

svn commit: r367102 - head

2020-10-28 Thread Alex Richardson
Author: arichardson Date: Wed Oct 28 11:54:09 2020 New Revision: 367102 URL: https://svnweb.freebsd.org/changeset/base/367102 Log: Speed up Cirrus CI by using CROSS_TOOLCHAIN Installing the llvm11 package instead of bootstrapping it from the source tree reduces the build time by about 20

svn commit: r367101 - head/lib/googletest/tests

2020-10-28 Thread Alex Richardson
Author: arichardson Date: Wed Oct 28 11:54:04 2020 New Revision: 367101 URL: https://svnweb.freebsd.org/changeset/base/367101 Log: Significantly reduce compile time for googletest internal tests Clang's optimizer spends a really long time on these tests at -O2, so we now use -O0 instead.

svn commit: r367100 - head

2020-10-28 Thread Alex Richardson
Author: arichardson Date: Wed Oct 28 11:54:00 2020 New Revision: 367100 URL: https://svnweb.freebsd.org/changeset/base/367100 Log: clang-format: Avoid breaking after the opening paren of function definitions This depends on https://reviews.llvm.org/D90246 to have any effect, but once that

svn commit: r367099 - head

2020-10-28 Thread Alex Richardson
Author: arichardson Date: Wed Oct 28 11:53:55 2020 New Revision: 367099 URL: https://svnweb.freebsd.org/changeset/base/367099 Log: clang-format: place sys/systm.h immediately after sys/param.h Should fix one of the objections to r366993. See also https://reviews.freebsd.org/D26981. R

svn commit: r366850 - in head/lib/googletest: gmock gmock/tests gmock_main gmock_main/tests gtest gtest/tests gtest_main gtest_main/tests tests tests/gmock tests/gmock_main tests/gtest tests/gtest_...

2020-10-19 Thread Alex Richardson
Author: arichardson Date: Mon Oct 19 19:50:57 2020 New Revision: 366850 URL: https://svnweb.freebsd.org/changeset/base/366850 Log: Major improvement to build parallelism for googletest internal tests Currently the googletest internal tests build after the matching library. However, each o

svn commit: r366851 - head/lib/googletest

2020-10-19 Thread Alex Richardson
Author: arichardson Date: Mon Oct 19 19:51:03 2020 New Revision: 366851 URL: https://svnweb.freebsd.org/changeset/base/366851 Log: Enable SUBDIR_PARALLEL for lib/googletest This saves a few seconds in a parallel build since we can build the gtest_main and gmock subdirectories in parallel.

svn commit: r366815 - in head: . usr.bin/mkimg/tests

2020-10-18 Thread Alex Richardson
Author: arichardson Date: Sun Oct 18 18:35:23 2020 New Revision: 366815 URL: https://svnweb.freebsd.org/changeset/base/366815 Log: Significantly speed up mkimg_test It turns out that the majority of the test time for the mkimg tests isn't mkimg itself but rather the use of jot and hexdump

svn commit: r366708 - in head/sbin/pfctl/tests: . files

2020-10-14 Thread Alex Richardson
ause file is newly added) +++ head/sbin/pfctl/tests/pfctl_test.c Wed Oct 14 17:39:50 2020 (r366708) @@ -0,0 +1,230 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright 2020 Alex Richardson + * + * This software was developed by SRI International and the University o

svn commit: r366698 - head/sys/modules

2020-10-14 Thread Alex Richardson
Author: arichardson Date: Wed Oct 14 12:28:48 2020 New Revision: 366698 URL: https://svnweb.freebsd.org/changeset/base/366698 Log: Don't build the malo module with clang 10 Compiling it with LLVM 10 triggers https://bugs.llvm.org/show_bug.cgi?id=44351 While LLVM 11 is the default compiler

svn commit: r366699 - in head: kerberos5/include tools/build tools/build/cross-build/include/common/sys

2020-10-14 Thread Alex Richardson
Author: arichardson Date: Wed Oct 14 12:28:54 2020 New Revision: 366699 URL: https://svnweb.freebsd.org/changeset/base/366699 Log: Fix more -Wundef warnings during bootstrap Modified: head/kerberos5/include/config.h head/tools/build/Makefile head/tools/build/cross-build/include/common/sys

svn commit: r366697 - head/usr.bin/xinstall

2020-10-14 Thread Alex Richardson
Author: arichardson Date: Wed Oct 14 12:28:41 2020 New Revision: 366697 URL: https://svnweb.freebsd.org/changeset/base/366697 Log: install(1): Avoid unncessary fstatfs() calls and use mmap() based on size According to git blame the trymmap() function was added in 1996 to skip mmap() calls

svn commit: r366664 - head/share/mk

2020-10-13 Thread Alex Richardson
Author: arichardson Date: Tue Oct 13 08:14:33 2020 New Revision: 34 URL: https://svnweb.freebsd.org/changeset/base/34 Log: Stop using -O instead of -O2 for MIPS Until clang 11 that was equivalent to -O2, but clang changed it to -O1 so generated MIPS code will now be unnecessarily

svn commit: r366644 - in head/stand/efi: boot1 loader

2020-10-12 Thread Alex Richardson
Author: arichardson Date: Mon Oct 12 11:27:08 2020 New Revision: 366644 URL: https://svnweb.freebsd.org/changeset/base/366644 Log: Link efi programs with -pie rather than -shared This was causing build failures in CheriBSD where we were passing -pie already by default. Reviewed By:

svn commit: r366634 - head/contrib/nvi/common

2020-10-12 Thread Alex Richardson
Author: arichardson Date: Mon Oct 12 10:42:24 2020 New Revision: 366634 URL: https://svnweb.freebsd.org/changeset/base/366634 Log: Fix buildworld on Linux/macOS after nvi update This re-applies r365941 which was lost in the nvi update. Modified: head/contrib/nvi/common/common.h Modified

svn commit: r366635 - head

2020-10-12 Thread Alex Richardson
Author: arichardson Date: Mon Oct 12 10:42:28 2020 New Revision: 366635 URL: https://svnweb.freebsd.org/changeset/base/366635 Log: Fix build with -DBOOTSTRAP_ALL_TOOLS sbin/sysctl can no longer be bootstrapped on FreeBSD 12 after r366465, so create a symlink to the host tool instead of tr

svn commit: r366636 - head/lib/libclang_rt

2020-10-12 Thread Alex Richardson
Author: arichardson Date: Mon Oct 12 10:42:33 2020 New Revision: 366636 URL: https://svnweb.freebsd.org/changeset/base/366636 Log: Enable SUBDIR_PARELLEL in lib/libclang_rt I noticed that this part of the build was taking much longer than expected. Turns out it's due to not running the su

svn commit: r366633 - head/share/mk

2020-10-12 Thread Alex Richardson
Author: arichardson Date: Mon Oct 12 10:42:19 2020 New Revision: 366633 URL: https://svnweb.freebsd.org/changeset/base/366633 Log: Don't use install(1) for the library symlinks in the build directory It appears this was changed from ln to use install in rS245752. I noticed this because my

svn commit: r366632 - head/lib/libc/gen

2020-10-12 Thread Alex Richardson
Author: arichardson Date: Mon Oct 12 10:42:14 2020 New Revision: 366632 URL: https://svnweb.freebsd.org/changeset/base/366632 Log: Fix building on Linux/macOS after r366622 We have to bootstrap arc4random.c, so guard the FenestrasX code to avoid using it on Linux/macOS. Reviewed By:

svn commit: r366074 - in head/.github: . workflows

2020-09-23 Thread Alex Richardson
Author: arichardson Date: Wed Sep 23 12:54:37 2020 New Revision: 366074 URL: https://svnweb.freebsd.org/changeset/base/366074 Log: Add github CI for testing cross-building from Linux and macOS This builds the kernel-toolchain target and an amd64 GENERIC kernel on Ubuntu 18.04, 20.04 and t

svn commit: r366075 - head/contrib/byacc

2020-09-23 Thread Alex Richardson
Author: arichardson Date: Wed Sep 23 12:54:42 2020 New Revision: 366075 URL: https://svnweb.freebsd.org/changeset/base/366075 Log: byacc: fix UBSan signed shift range error I've submitted this patch upstream, so apply this to contrib/ until a new version containing this change has been re

svn commit: r365969 - head/contrib/one-true-awk

2020-09-21 Thread Alex Richardson
Author: arichardson Date: Mon Sep 21 19:03:12 2020 New Revision: 365969 URL: https://svnweb.freebsd.org/changeset/base/365969 Log: Fix another UBSan error in awk This applies my upstreamed fix: https://github.com/onetrueawk/awk/commit/ad9bd2f40a89ec9533b92254b86a756cf4f40fd4 Found By:

svn commit: r365970 - head/usr.bin/mkcsmapper

2020-09-21 Thread Alex Richardson
Author: arichardson Date: Mon Sep 21 19:03:17 2020 New Revision: 365970 URL: https://svnweb.freebsd.org/changeset/base/365970 Log: mkcsmapper: Fix UBSan signed shift error usr.bin/mkcsmapper/yacc.y:466:18: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' Mod

svn commit: r365968 - head/contrib/one-true-awk

2020-09-21 Thread Alex Richardson
Author: arichardson Date: Mon Sep 21 19:03:07 2020 New Revision: 365968 URL: https://svnweb.freebsd.org/changeset/base/365968 Log: awk: Fix subobject out-of-bounds access When matching a regex with ^, it would attempt to access gototab[NSTATES][NCHARS+2], and therefore access the state fo

svn commit: r365950 - head/tools/build

2020-09-21 Thread Alex Richardson
Author: arichardson Date: Mon Sep 21 15:49:02 2020 New Revision: 365950 URL: https://svnweb.freebsd.org/changeset/base/365950 Log: When building on Ubuntu bootstrap bmake with bash as the default shell The Ubuntu /bin/sh (dash) removes all environment variables that contain characters out

svn commit: r365949 - head/tools/build

2020-09-21 Thread Alex Richardson
build/make.pyMon Sep 21 15:48:57 2020(r365949) @@ -0,0 +1,241 @@ +#!/usr/bin/env python3 +# PYTHON_ARGCOMPLETE_OKAY +# - +# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# +# Copyright (c) 2018 Alex Richardson +# +# Redistribution and use in source and binary forms, with or wi

svn commit: r365939 - head

2020-09-21 Thread Alex Richardson
Author: arichardson Date: Mon Sep 21 09:03:32 2020 New Revision: 365939 URL: https://svnweb.freebsd.org/changeset/base/365939 Log: Prefer bootstrapped tools when running certctl.sh Otherwise we get lots of warnings when building on Linux/macOS during installworld: Scanning /local/scrat

svn commit: r365941 - head/contrib/nvi/common

2020-09-21 Thread Alex Richardson
Author: arichardson Date: Mon Sep 21 09:03:42 2020 New Revision: 365941 URL: https://svnweb.freebsd.org/changeset/base/365941 Log: Fix vi build on Linux/macOS This absolute include causes a build failure on Linux for me: .../cheri/freebsd/contrib/nvi/cl/../common/common.h:10:10: fatal err

svn commit: r365940 - head/usr.bin/grep

2020-09-21 Thread Alex Richardson
Author: arichardson Date: Mon Sep 21 09:03:37 2020 New Revision: 365940 URL: https://svnweb.freebsd.org/changeset/base/365940 Log: Fix -Wpointer-sign warnings in usr.bin/grep Reviewed By: kevans Differential Revision: https://reviews.freebsd.org/D26479 Modified: head/usr.bin/grep/file

svn commit: r365901 - in head: cddl/lib/libspl tools/build/cross-build/include/common tools/build/cross-build/include/common/sys tools/build/cross-build/include/linux/sys tools/build/cross-build/in...

2020-09-19 Thread Alex Richardson
Author: arichardson Date: Sat Sep 19 12:08:16 2020 New Revision: 365901 URL: https://svnweb.freebsd.org/changeset/base/365901 Log: Fix dtrace tools bootstrap on non-FreeBSD after OpenZFS import This required surprisingly few build system changes and only two changes to the openZFS compat

svn commit: r365882 - head/lib/libarchive/tests

2020-09-18 Thread Alex Richardson
Author: arichardson Date: Fri Sep 18 14:05:31 2020 New Revision: 365882 URL: https://svnweb.freebsd.org/changeset/base/365882 Log: Remove unnecessary include "../Makefile.inc" This is already pulled in by bsd.init.mk. Reported By: kevans Modified: head/lib/libarchive/tests/Makefile

svn commit: r365876 - in head/lib/libarchive: . tests

2020-09-18 Thread Alex Richardson
Author: arichardson Date: Fri Sep 18 11:22:34 2020 New Revision: 365876 URL: https://svnweb.freebsd.org/changeset/base/365876 Log: libarchive: fix mismatch between library and test configuration I was investigating libarchive test failures on CheriBSD and it turns out we get a reproducibl

svn commit: r365836 - head/share/mk

2020-09-17 Thread Alex Richardson
Author: arichardson Date: Thu Sep 17 15:07:25 2020 New Revision: 365836 URL: https://svnweb.freebsd.org/changeset/base/365836 Log: Stop using lorder and ranlib when building libraries Use of ranlib or lorder is no longer necessary with current linkers (probably anything newer than ~1990)

svn commit: r365708 - head/sbin/pfctl/tests

2020-09-14 Thread Alex Richardson
Author: arichardson Date: Mon Sep 14 08:51:18 2020 New Revision: 365708 URL: https://svnweb.freebsd.org/changeset/base/365708 Log: pfctl_test: avoid 200 calls to atf_get_srcdir I have been trying to reduce the time that testsuite runs take for CheriBSD on QEMU (currently about 22 hours).

svn commit: r365583 - head/tools/build/mk

2020-09-10 Thread Alex Richardson
Author: arichardson Date: Thu Sep 10 15:37:24 2020 New Revision: 365583 URL: https://svnweb.freebsd.org/changeset/base/365583 Log: Silence GCC's -Wno-unused-result during bootstrap Unlike clang, GCC still warns even with (void) casts (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425) Mo

svn commit: r365584 - in head: . usr.bin/mandoc

2020-09-10 Thread Alex Richardson
Author: arichardson Date: Thu Sep 10 15:37:29 2020 New Revision: 365584 URL: https://svnweb.freebsd.org/changeset/base/365584 Log: Ensure that the makewhatis symlink is added in the bootstrap-tools stage We currently set MK_MAN=no in $BSARGS so MK_MAN_UTILS will also be false which means

svn commit: r365581 - head/kerberos5/include

2020-09-10 Thread Alex Richardson
Author: arichardson Date: Thu Sep 10 15:37:15 2020 New Revision: 365581 URL: https://svnweb.freebsd.org/changeset/base/365581 Log: Fix a noisy -Wundef warning when bootstrapping tools Modified: head/kerberos5/include/config.h Modified: head/kerberos5/include/config.h

svn commit: r365582 - head/usr.bin/sort

2020-09-10 Thread Alex Richardson
Author: arichardson Date: Thu Sep 10 15:37:19 2020 New Revision: 365582 URL: https://svnweb.freebsd.org/changeset/base/365582 Log: Fix -Wpointer-sign warnings in bwstring.c Modified: head/usr.bin/sort/bwstring.c Modified: head/usr.bin/sort/bwstring.c =

svn commit: r365580 - in head: cddl/lib/drti cddl/lib/libctf cddl/lib/libdtrace cddl/usr.bin/ctfconvert cddl/usr.bin/ctfdump cddl/usr.bin/ctfmerge cddl/usr.sbin/dtrace cddl/usr.sbin/lockstat cddl/u...

2020-09-10 Thread Alex Richardson
Author: arichardson Date: Thu Sep 10 15:37:07 2020 New Revision: 365580 URL: https://svnweb.freebsd.org/changeset/base/365580 Log: Remove -I flag for include path that doesn't exist Found this while trying to get macOS bootstrap to work again after OpenZFS merge. Reviewed By: #zfs, f

svn commit: r365576 - head

2020-09-10 Thread Alex Richardson
Author: arichardson Date: Thu Sep 10 14:11:29 2020 New Revision: 365576 URL: https://svnweb.freebsd.org/changeset/base/365576 Log: Set AlignTrailingComments in the clang-format config This seems to be fairly common in existing code and often looks better when adding trailing comments to e

svn commit: r365575 - head

2020-09-10 Thread Alex Richardson
Author: arichardson Date: Thu Sep 10 14:11:24 2020 New Revision: 365575 URL: https://svnweb.freebsd.org/changeset/base/365575 Log: Use the correct config names for some .clang-format entries Those values are enum entries and should use "Never" instead of "false". clang-format currently ac

svn commit: r364809 - head/share/mk

2020-08-26 Thread Alex Richardson
Author: arichardson Date: Wed Aug 26 10:21:38 2020 New Revision: 364809 URL: https://svnweb.freebsd.org/changeset/base/364809 Log: Avoid recomputing COMPILER_/LINKER_ variables when set explicitly I noticed that when we build libraries for a different ABI (in CheriBSD) we were calling ${X

svn commit: r364808 - head/lib

2020-08-26 Thread Alex Richardson
Author: arichardson Date: Wed Aug 26 09:19:49 2020 New Revision: 364808 URL: https://svnweb.freebsd.org/changeset/base/364808 Log: Move libsqlite3 to the top of the SUBDIR list In parallel builds, this should allow sqlite to start building earlier and increase parallelism when building li

svn commit: r364807 - in head: share/mk sys/conf

2020-08-26 Thread Alex Richardson
Author: arichardson Date: Wed Aug 26 09:19:44 2020 New Revision: 364807 URL: https://svnweb.freebsd.org/changeset/base/364807 Log: Fix builds that set LD=ld.lld after r364761 When using relative paths for the linker we have to transform the name since clang does not like -fuse-ld=ld.lld a

svn commit: r364766 - head/share/man/man5

2020-08-25 Thread Alex Richardson
Author: arichardson Date: Tue Aug 25 13:30:29 2020 New Revision: 364766 URL: https://svnweb.freebsd.org/changeset/base/364766 Log: style.Makefile: list CSTD between WARNS and CFLAGS This was suggested by emaste in https://reviews.freebsd.org/D25928 and matches most uses in the tree. Modi

svn commit: r364765 - in head: sbin/newfs_msdos usr.sbin/makefs

2020-08-25 Thread Alex Richardson
Author: arichardson Date: Tue Aug 25 13:30:24 2020 New Revision: 364765 URL: https://svnweb.freebsd.org/changeset/base/364765 Log: Fix makefs bootstrap on macOS after D25563 The macOS assert.h header does not define static_assert when compiling in C99 mode. To fix this compile with -std=c

svn commit: r364767 - in head: contrib/lua/src lib/liblua

2020-08-25 Thread Alex Richardson
Author: arichardson Date: Tue Aug 25 13:30:34 2020 New Revision: 364767 URL: https://svnweb.freebsd.org/changeset/base/364767 Log: Fix -Wundef warnings when building liblua We need to define the LUA_FLOAT_INT64 macro even if we don't use it (copied from stand/luaconf.h). While touching lu

svn commit: r364761 - in head: share/mk sys/conf sys/modules/cloudabi32 sys/modules/cloudabi64 sys/modules/linux sys/modules/linux64

2020-08-25 Thread Alex Richardson
Author: arichardson Date: Tue Aug 25 13:30:03 2020 New Revision: 364761 URL: https://svnweb.freebsd.org/changeset/base/364761 Log: Pass -fuse-ld=/path/to/ld if ${LD} != "ld" This is needed so that setting LD/XLD is not ignored when linking with $CC instead of directly using $LD. Currently

svn commit: r364764 - head

2020-08-25 Thread Alex Richardson
Author: arichardson Date: Tue Aug 25 13:30:19 2020 New Revision: 364764 URL: https://svnweb.freebsd.org/changeset/base/364764 Log: Fix typo in r364325 that broke tinderbox with -DBUILD_WITH_STRICT_TMPPATH ${TARGET_ARCH} is empty here which results in empy MAKE_PARAMS being passed to the b

svn commit: r364760 - in head: . sys/conf tools/build tools/build/bootstrap-m4 tools/build/cross-build/fake_chflags usr.bin/m4

2020-08-25 Thread Alex Richardson
Author: arichardson Date: Tue Aug 25 13:29:57 2020 New Revision: 364760 URL: https://svnweb.freebsd.org/changeset/base/364760 Log: Add necessary Makefile.inc1 infrastructure for building on non-FreeBSD The most awkward bit in this patch is the bootstrapping of m4: We can't simply use the

svn commit: r364763 - head

2020-08-25 Thread Alex Richardson
Author: arichardson Date: Tue Aug 25 13:30:14 2020 New Revision: 364763 URL: https://svnweb.freebsd.org/changeset/base/364763 Log: Use bootstrapped install(1) install of tools/install.sh in world stage This should be noticeably faster due to fewer processes being forked and also handles o

svn commit: r364762 - head

2020-08-25 Thread Alex Richardson
Author: arichardson Date: Tue Aug 25 13:30:09 2020 New Revision: 364762 URL: https://svnweb.freebsd.org/changeset/base/364762 Log: Fix running the builddtb target on a noexec file system Obtained from:CheriBSD Modified: head/Makefile.inc1 Modified: head/Makefile.inc1 ===

svn commit: r364759 - in head: lib/libc/gen lib/libcapsicum tools/build tools/build/cross-build tools/build/libc-bootstrap tools/build/mk

2020-08-25 Thread Alex Richardson
_to_symlink+= /bin/bash:sh +_host_tools_to_symlink:=${_host_tools_to_symlink:Nsh} +.endif host-symlinks: @echo "Linking host tools into ${DESTDIR}/bin" Added: head/tools/build/cross-build/capsicum_stubs.c == --- /dev/null 00:00:00 1970 (empty, because

svn commit: r364757 - in head/tools/build/cross-build/include: . common common/machine common/sys linux linux/sys mac mac/sys

2020-08-25 Thread Alex Richardson
right 2018-2020 Alex Richardson + * + * This software was developed by SRI International and the University of + * Cambridge Computer Laboratory (Department of Computer Science and + * Technology) under DARPA contract HR0011-18-C-0016 ("ECATS"), as part of the + * DARPA SSITH res

svn commit: r364650 - head

2020-08-24 Thread Alex Richardson
Author: arichardson Date: Mon Aug 24 09:20:38 2020 New Revision: 364650 URL: https://svnweb.freebsd.org/changeset/base/364650 Log: Also print number of available CPUs on Linux Without this change the buildworld/buildkernel epilogue looks like this: >>> World built in 249 seconds, sysctl:

svn commit: r364649 - in head: lib/libcompiler_rt lib/libgcc_eh lib/libprocstat stand/userboot/userboot

2020-08-24 Thread Alex Richardson
Author: arichardson Date: Mon Aug 24 09:20:33 2020 New Revision: 364649 URL: https://svnweb.freebsd.org/changeset/base/364649 Log: Avoid adding duplicates to SRCS/OBJS/SOBJS/POBJS This is a change in preparation for stopping to use lorder.sh (D26044) and instead assume that we have a link

svn commit: r364648 - head/usr.sbin/makefs/msdos

2020-08-24 Thread Alex Richardson
Author: arichardson Date: Mon Aug 24 09:20:27 2020 New Revision: 364648 URL: https://svnweb.freebsd.org/changeset/base/364648 Log: makefs (msdosfs): Use fprintf instead of debug print for errors The added print was very helpful for debugging failed disk image creation. Reviewed By: em

svn commit: r364647 - head/usr.sbin/crunch/crunchgen

2020-08-24 Thread Alex Richardson
f Maryland at College Park */ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright 2020 Alex Richardson + * + * This software was developed by SRI International and the University of + * Cambridge Computer Laboratory (Department of Computer Science and + * Technology) under DARPA contr

svn commit: r364645 - head

2020-08-24 Thread Alex Richardson
Author: arichardson Date: Mon Aug 24 09:20:13 2020 New Revision: 364645 URL: https://svnweb.freebsd.org/changeset/base/364645 Log: Pass the installworld install(1) flags to make buildenv This ensure that running make install inside buildenv correctly includes the METALOG flags when buildi

svn commit: r364646 - head/usr.sbin/crunch/crunchgen

2020-08-24 Thread Alex Richardson
Author: arichardson Date: Mon Aug 24 09:20:18 2020 New Revision: 364646 URL: https://svnweb.freebsd.org/changeset/base/364646 Log: Re-indent crunched_main.c in preparation for D25998 Modified: head/usr.sbin/crunch/crunchgen/crunched_main.c Modified: head/usr.sbin/crunch/crunchgen/crunched_ma

svn commit: r364234 - in head: tools/build usr.sbin/crunch/crunchgen

2020-08-14 Thread Alex Richardson
Author: arichardson Date: Fri Aug 14 09:45:41 2020 New Revision: 364234 URL: https://svnweb.freebsd.org/changeset/base/364234 Log: crunchgen: use pwd -P without env The -P flag is required by POSIX so we don't have to care whether pwd is a shell builtin or not. This also allows removing p

svn commit: r364190 - head/tools/build

2020-08-13 Thread Alex Richardson
Author: arichardson Date: Thu Aug 13 14:14:46 2020 New Revision: 364190 URL: https://svnweb.freebsd.org/changeset/base/364190 Log: Add pwd to the list of tools that are linked to $WORLDTMP/legacy After r364166 and r364174, crunchgen needs a pwd binary in $PATH instead of using a hardcoded

svn commit: r364191 - head/share/mk

2020-08-13 Thread Alex Richardson
Author: arichardson Date: Thu Aug 13 14:14:51 2020 New Revision: 364191 URL: https://svnweb.freebsd.org/changeset/base/364191 Log: Make bsd.linker.mk work with the MacOS linker This is not strictly required for crossbuilding but having lots of warnings from bsd.linker.mk in the output was

svn commit: r364174 - head/usr.sbin/crunch/crunchgen

2020-08-12 Thread Alex Richardson
Author: arichardson Date: Wed Aug 12 17:27:24 2020 New Revision: 364174 URL: https://svnweb.freebsd.org/changeset/base/364174 Log: Use env pwd instead of pwd in crunchgen.c In r364166 I changed /bin/pwd to pwd, but pwd can be shell builtin that may not correctly return a real path. To ens

svn commit: r364167 - head/stand/common

2020-08-12 Thread Alex Richardson
Author: arichardson Date: Wed Aug 12 15:49:10 2020 New Revision: 364167 URL: https://svnweb.freebsd.org/changeset/base/364167 Log: Fix stand/newvers.sh with zsh in sh mode When building on macOS with sh==zsh, newvers.sh was producing an unterminated string literal due to \\n being turned

svn commit: r364166 - head/usr.sbin/crunch/crunchgen

2020-08-12 Thread Alex Richardson
Author: arichardson Date: Wed Aug 12 15:49:06 2020 New Revision: 364166 URL: https://svnweb.freebsd.org/changeset/base/364166 Log: Fix crunchgen usage of mkstemp() On Glibc systems mkstemp can only be used once with the same template string since it will be modified in-place and no longer

svn commit: r364125 - in head: share/mk sys/conf

2020-08-11 Thread Alex Richardson
Author: arichardson Date: Tue Aug 11 16:47:00 2020 New Revision: 364125 URL: https://svnweb.freebsd.org/changeset/base/364125 Log: Allow linking the kernel with a linker that doesn't support -z ifunc-noplt This can happen when linking with upstream LLD < 9.0. Reviewed By: markj Diff

svn commit: r364124 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2020-08-11 Thread Alex Richardson
Author: arichardson Date: Tue Aug 11 16:46:54 2020 New Revision: 364124 URL: https://svnweb.freebsd.org/changeset/base/364124 Log: Fix libdtrace build with zsh as /bin/sh When zsh runs in POSIX sh mode it does not support the -e flag to echo. Use printf instead of echo to avoid the "-e" c

svn commit: r364122 - head/share/mk

2020-08-11 Thread Alex Richardson
Author: arichardson Date: Tue Aug 11 16:46:43 2020 New Revision: 364122 URL: https://svnweb.freebsd.org/changeset/base/364122 Log: Add CLANG/LLD/LLD to BROKEN_OPTIONS when building on non-FreeBSD These tools require a bootstrap llvm-tblgen/clang-tblgen and that cannot be built with the cu

svn commit: r364123 - in head: . cddl/contrib/opensolaris/lib/libdtrace/common

2020-08-11 Thread Alex Richardson
Author: arichardson Date: Tue Aug 11 16:46:48 2020 New Revision: 364123 URL: https://svnweb.freebsd.org/changeset/base/364123 Log: Fix -DBUILD_WITH_STRICT_TMPPATH dtrace builds Some of the scripts used for libdtrace invoke nawk instead of awk (for example cddl/contrib/opensolaris/lib/libd

svn commit: r364121 - head/usr.sbin/pwd_mkdb/bootstrap

2020-08-11 Thread Alex Richardson
Author: arichardson Date: Tue Aug 11 16:46:38 2020 New Revision: 364121 URL: https://svnweb.freebsd.org/changeset/base/364121 Log: Fix bootstrapping of pwd_mkdb after r364049 I moved the bootstrap pwd.h to a subdirectory in r364049 but forgot to adjust the #include path. Modified: head

svn commit: r364120 - head/tools/build

2020-08-11 Thread Alex Richardson
Author: arichardson Date: Tue Aug 11 16:46:33 2020 New Revision: 364120 URL: https://svnweb.freebsd.org/changeset/base/364120 Log: Fix bootstrapping ldd after r362152 r362152 started using DF_1_PIE, which is not present in older versions of sys/elf_common.h. To fix this include the ELF he

svn commit: r364119 - in head: . share/mk stand/i386/loader sys/modules/linux sys/modules/linux64

2020-08-11 Thread Alex Richardson
Author: arichardson Date: Tue Aug 11 16:46:27 2020 New Revision: 364119 URL: https://svnweb.freebsd.org/changeset/base/364119 Log: Allow overriding the tool used for stripping binaries Since the make variable STRIP is already used for other purposes, this uses STRIPBIN (which is also used

svn commit: r364049 - in head: usr.bin/chpass usr.sbin/pwd_mkdb usr.sbin/pwd_mkdb/bootstrap

2020-08-08 Thread Alex Richardson
Author: arichardson Date: Sat Aug 8 10:05:27 2020 New Revision: 364049 URL: https://svnweb.freebsd.org/changeset/base/364049 Log: Fix i386 build of chpass after r363992 My change to allow bootstrapping pwd_mkdb (r363992) resulted in i386 build failures because the bootstrap header was be

svn commit: r364027 - in head/sys/cddl: compat/opensolaris/sys contrib/opensolaris/uts/common/fs/zfs contrib/opensolaris/uts/common/fs/zfs/sys

2020-08-07 Thread Alex Richardson
Author: arichardson Date: Fri Aug 7 16:04:21 2020 New Revision: 364027 URL: https://svnweb.freebsd.org/changeset/base/364027 Log: Fix linker error in libuutil with recent LLVM Not marking the function as static can result in a linker error: undefined reference to __assfail [--no-allow-sh

svn commit: r364025 - head/usr.sbin/tzsetup

2020-08-07 Thread Alex Richardson
Author: arichardson Date: Fri Aug 7 16:04:10 2020 New Revision: 364025 URL: https://svnweb.freebsd.org/changeset/base/364025 Log: Don't link against libdialog/ncurses when bootstrapping tzsetup Modified: head/usr.sbin/tzsetup/Makefile Modified: head/usr.sbin/tzsetup/Makefile ===

svn commit: r364022 - in head: cddl/contrib/opensolaris/lib/libctf/common cddl/contrib/opensolaris/tools/ctf/cvt sys/cddl/compat/opensolaris/sys sys/cddl/contrib/opensolaris/uts/common/sys

2020-08-07 Thread Alex Richardson
Author: arichardson Date: Fri Aug 7 16:03:55 2020 New Revision: 364022 URL: https://svnweb.freebsd.org/changeset/base/364022 Log: Fix cddl tools bootstrapping on macOS and Linux Reviewed By: brooks Differential Revision: https://reviews.freebsd.org/D25979 Modified: head/cddl/contrib/

svn commit: r364026 - head

2020-08-07 Thread Alex Richardson
Author: arichardson Date: Fri Aug 7 16:04:15 2020 New Revision: 364026 URL: https://svnweb.freebsd.org/changeset/base/364026 Log: Fix duplicate assignment of _localedef in Makefile.inc1 The same .if exists a few lines below. Modified: head/Makefile.inc1 Modified: head/Makefile.inc1 ===

svn commit: r364024 - head/usr.sbin/makefs/msdos

2020-08-07 Thread Alex Richardson
Author: arichardson Date: Fri Aug 7 16:04:06 2020 New Revision: 364024 URL: https://svnweb.freebsd.org/changeset/base/364024 Log: makefs: Drop unnecessary sys/clock.h include This breaks the build on macOS where this header doesn't exist. I could also add a compat header to tools/build/c

svn commit: r364023 - head/usr.bin/grep

2020-08-07 Thread Alex Richardson
Author: arichardson Date: Fri Aug 7 16:04:01 2020 New Revision: 364023 URL: https://svnweb.freebsd.org/changeset/base/364023 Log: Always install usr.bin/grep as grep when bootstrapping We have to bootstrap grep when cross-building from macOS/Linux. Modified: head/usr.bin/grep/Makefile

svn commit: r363992 - head/usr.sbin/pwd_mkdb

2020-08-06 Thread Alex Richardson
Thu Aug 6 20:46:13 2020 (r363992) @@ -0,0 +1,66 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright 2018-2020 Alex Richardson + * + * This software was developed by SRI International and the University of + * Cambridge Computer Laboratory (Department of Computer

svn commit: r363993 - head/stand

2020-08-06 Thread Alex Richardson
Author: arichardson Date: Thu Aug 6 20:46:18 2020 New Revision: 363993 URL: https://svnweb.freebsd.org/changeset/base/363993 Log: stand: use portable ln -n instead of ln -h This fixes the build on Linux Differential Revision: https://reviews.freebsd.org/D24783 Modified: head/stand/

svn commit: r363991 - head/cddl/contrib/opensolaris/tools/ctf/cvt

2020-08-06 Thread Alex Richardson
Author: arichardson Date: Thu Aug 6 20:44:40 2020 New Revision: 363991 URL: https://svnweb.freebsd.org/changeset/base/363991 Log: ctfmerge: Fix missing pthread_cond_init() This does not appear to matter on FreeBSD or Linux, but when building an amd64 kernel on macOS I was seeing infinite

svn commit: r363806 - head/usr.sbin/nmtree

2020-08-03 Thread Alex Richardson
Author: arichardson Date: Mon Aug 3 18:08:10 2020 New Revision: 363806 URL: https://svnweb.freebsd.org/changeset/base/363806 Log: Allow bootstrapping mtree on Linux systems Linux glibc has a dummy lchmod that always fails and emitting a linker warning when used. Don't fail the build due

svn commit: r363805 - head/lib/libc/gen

2020-08-03 Thread Alex Richardson
Author: arichardson Date: Mon Aug 3 18:08:04 2020 New Revision: 363805 URL: https://svnweb.freebsd.org/changeset/base/363805 Log: Allow building setmode.c on Linux/macOS We bootstrap this file to allow compiling FreeBSD on Linux systems since some boostrap tools use setmode(). Unfortunat

svn commit: r363730 - head/sys/mips/conf

2020-07-31 Thread Alex Richardson
Author: arichardson Date: Fri Jul 31 11:28:09 2020 New Revision: 363730 URL: https://svnweb.freebsd.org/changeset/base/363730 Log: Include virtio support in std.MALTA The MALTA kernel config is generally used for QEMU and having support for VirtIO there by default is quite useful. Re

svn commit: r363471 - in head/sys: amd64/conf arm64/conf i386/conf powerpc/conf riscv/conf

2020-07-24 Thread Alex Richardson
Author: arichardson Date: Fri Jul 24 08:40:04 2020 New Revision: 363471 URL: https://svnweb.freebsd.org/changeset/base/363471 Log: Include TMPFS in all the GENERIC kernel configs Being able to use tmpfs without kernel modules is very useful when building small MFS_ROOT kernels without a r

svn commit: r363230 - head/usr.bin/xinstall

2020-07-15 Thread Alex Richardson
Author: arichardson Date: Wed Jul 15 17:24:39 2020 New Revision: 363230 URL: https://svnweb.freebsd.org/changeset/base/363230 Log: Allow install(1)'s create_tempfile() to work on Linux hosts GLibc expects six 'X' characters in the mkstemp template argument and will return EINVAL otherwise

svn commit: r363229 - head/lib/libmd

2020-07-15 Thread Alex Richardson
Author: arichardson Date: Wed Jul 15 17:24:34 2020 New Revision: 363229 URL: https://svnweb.freebsd.org/changeset/base/363229 Log: Remove warning that is no longer accurate after r361853 We now build the skein assembly with clangs integrated assembler. Reviewed By: emaste Differenti

svn commit: r363217 - head/usr.bin/localedef

2020-07-15 Thread Alex Richardson
Author: arichardson Date: Wed Jul 15 12:07:53 2020 New Revision: 363217 URL: https://svnweb.freebsd.org/changeset/base/363217 Log: Add missing newline and return in localedef error message I hit those error messages when using a localedef built against headers that don't match the target

svn commit: r363218 - in head/usr.bin/localedef: . bootstrap

2020-07-15 Thread Alex Richardson
:00:00 1970 (empty, because file is newly added) +++ head/usr.bin/localedef/bootstrap/_ctype.h Wed Jul 15 12:07:59 2020 (r363218) @@ -0,0 +1,48 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright 2018-2020 Alex Richardson + * + * This software was developed by SRI I

svn commit: r363219 - head/tools/build

2020-07-15 Thread Alex Richardson
Author: arichardson Date: Wed Jul 15 12:08:06 2020 New Revision: 363219 URL: https://svnweb.freebsd.org/changeset/base/363219 Log: Fix BUILD_WITH_STRICT_TMPPATH builds We need dd in $PATH for some of the MK_BOOT code and some tests also use it. Obtained from:CheriBSD Modified:

svn commit: r363216 - head/lib/libpmc

2020-07-15 Thread Alex Richardson
Author: arichardson Date: Wed Jul 15 12:07:47 2020 New Revision: 363216 URL: https://svnweb.freebsd.org/changeset/base/363216 Log: Avoid rebuilding libpmc in every incremental rebuild Generate libpmc_events.c in a temporary file first and only overwrite it if the files are actually differ

  1   2   3   >