Commit graph

5755 commits

Author SHA1 Message Date
Dimitry Andric cb14a3fe51 Merge llvm-project main llvmorg-18-init-15692-g007ed0dccd6a
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project main llvmorg-18-init-15692-g007ed0dccd6a.

PR:		276104
MFC after:	1 month
2024-04-06 22:13:06 +02:00
Dimitry Andric 5f757f3ff9 Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

PR:		276104
MFC after:	1 month
2024-04-06 22:11:55 +02:00
Olivier Cochard a927571469 OptionalObsoleteFiles: add missed cuda wrappers include files
Files introduced since clang 17.0.2.

Approved by:	dim
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D44597
2024-04-02 22:59:28 +02:00
Dag-Erling Smørgrav 125c4560bc usr.bin: Make lorder conditional on MK_TOOLCHAIN.
MFC after:	1 week
Reviewed by:	allanjude, markj
Differential Revision:	https://reviews.freebsd.org/D44558
2024-04-01 15:18:35 +02:00
Mina Galić 280085ef0c tools/git: ensure git-arc is more platform indepdendent
Summary:
Linux systems' tail doesn't have `-r`.
Instead, we can use git's own `--reverse` sorting for `rev-list`s.

Reviewed by:	markj, imp, jhibbits
Differential Revision: https://reviews.freebsd.org/D39975
2024-03-27 09:57:01 -04:00
Brooks Davis d9108adbc0 lib{c,sys}: really fix incremental builds
Reported by:	andrew
Fixes:		a650ec0e55 lib{c,sys}: fix incremental builds
2024-03-18 18:52:42 +00:00
Baptiste Daroussin a42d6f7601 nuageinit: add basic support for cloudinit.
this is a very early script to support cloudinit, it does not intend to
be a full featured cloudinit client, but will support a good enough
subset to be viable in most case.

It support nocloud and openstack config-2 config drive mode (iso9660 or
msdosfs)

The following features are currently supported:
- adding users (including a default user named 'freebsd' with password
  'freebsd'
- adding groups
- adding ssh keys
- static ipv4, static ipv6, dynamic ipv4

With this one is able to use the 'bring your own image feature" out of
box.

It is expected that the script grows the support of other clouds
supporting cloud-init, contributions are welcomed.

It is designed to be only run once via the firstboot mecanism.

Sponsored by:	OVHCloud
MFC After:	3 weeks
Differential Revision:	https://reviews.freebsd.org/D44141
2024-03-15 09:22:16 +01:00
Brooks Davis a650ec0e55 lib{c,sys}: fix incremental builds
I removed lib/libsys/{aarch64,arm,riscv}/syscall.S in favor of an
idential generated version.  We need to clean out the .ddepend files to
ensure the generated version is actually generated.

The guard here is technically too strict, but should be fine in practice
and I've verified both the breakage and fix on an armv7 build.

Reported by:	imp
Fixes:		e6ffc7669a Remove pointless MD syscall(2)
Fixes:		0ee0ae2373 Remove pointless MD syscall(2)
Fixes:		7b3836c281 Remove pointless MD syscall(2)
2024-03-08 19:14:24 +00:00
John F. Carr 42b117a4bd gpioevents: Fix build with newer Clang
PR:		277422
2024-03-02 10:38:04 -05:00
Brooks Davis 2956f5885c Add an UNDEFINED_VERSION option
When enabled (current default) link with --undefined-version to allow
symbol maps to contain symbols not defined by libraries.  When disabled,
link with --no-undefined-version to disallow these bugs.

WITHOUT_UNDEFINED_VERSION is currently broken.  Once it is fixed it
should be made the default and this option should likely be removed.

Reviewed by:	dim, emaste
Differential Revision:	https://reviews.freebsd.org/D44169
2024-03-01 23:22:11 +00:00
Peter Holm 81b7ebe32e stress2: Added a few regression tests 2024-02-27 11:05:26 +01:00
Peter Holm d19f34821d stress2: Add a helper tool 2024-02-24 07:26:16 +01:00
Peter Holm 1ec33855a8 stress2: Added a new NFS test scenario 2024-02-24 06:47:12 +01:00
Joseph Koshy 81dc3a4d3b
tools/net80211/wlanwatch: Remove obsolete code.
The symbol NI_WITHSCOPEID has not been defined by <netdb.h> since
May 2005 (since SVN r146690).
2024-02-20 08:27:30 +00:00
Warner Losh 078a31136c boot/universe.sh: Add tests to keep MK_LOADER_BIOS_TEXTONLY working
Sponsored by:		Netflix
2024-02-17 23:29:07 -07:00
Warner Losh 63e9c97664 loader: Add new option WITH_LOADER_BIOS_TEXTONLY
This option will omit all the graphics support, the teken terminal
library, video mode support, etc and support a simple, basic, text-only
video console for the x86 BIOS boot loader. It uses the FreeBSD 12
version of vidconsole.c. It defaults to NO.

Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D43912
2024-02-17 23:29:07 -07:00
Dimitry Andric 73ff7384e0 Optionally create full debuginfo for llvm-related executables
Commit de6feefdb7 limited the amount of debuginfo generated for clang
and other llvm-related executables. This was done to save disk space and
memory during building, but it makes debugging any of these executables
much harder.

Add a new src.conf(5) setting, WITH_LLVM_FULL_DEBUGINFO, to generate
full debuginfo instead. This is off by default, but could for example be
enabled for release builds or snapshots, so llvm executables are easier
to debug.

Reviewed by:	emaste
MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D43839
2024-02-17 00:15:32 +01:00
Warner Losh e1735b35e3 git-arc: Retain color status messages
Newer versions of archanist have an --ansi option to always include the
ansi colors when doing an arc list (or any command really). Add this to
the arc list that's relevant. Add filter to filter out the 'bolding'
though since that interferes with our parsing. This should restore the
color output after df834e06bb.

Fixes:			df834e06bb
Sponsored by:		Netflix
Reviewed by:		markj, jhb
Differential Revision:	https://reviews.freebsd.org/D43459
2024-02-06 14:16:51 -07:00
Warner Losh 22d12caad6 checkstyle9.pl: Differentiate errors and warnings
Use ::error and ::warning as appropriate to give better meaning to the
messages.

Sponsored by:		Netflix
2024-02-02 00:24:32 -07:00
Warner Losh ac9abe93e8 checkstyle9.pl: Another correction to github workflow
Remove extra space...

Sponsored by:		Netflix
2024-02-01 23:27:37 -07:00
Warner Losh c2f5306c64 checkstyle9.pl: Correct github output
Change the : between file and line to a ,. This should fix this...

Sponsored by:		Netflix
2024-02-01 23:15:13 -07:00
Warner Losh 0949b237bb checkstyle9.pl: Add --github to output for github workflows
If you add "::error file=foo/bar.c:line=123:" before the error message,
it will appear inline.

Sponsored by:		Netflix
2024-02-01 22:50:19 -07:00
Gregory Neil Shapiro 1b6a5580c1 New sendmail 8.18.1 cf file 2024-02-01 00:13:58 +00:00
Jessica Clarke b771d5705f tools/build/make.py: Avoid Python 3.7+ subprocess.run capture_output
This is just a convenient alias for setting stdout and stderr to PIPE,
so substitute it for that to be compatible with Python 3.6.

Fixes:	69cfdc81ea ("tools/build/make.py: Keep bootstrapped bmake binary up-to-date")
2024-01-31 19:45:59 +00:00
Peter Holm 7304bd7a52 stress2: Remove fdisk(8) regression test 2024-01-24 09:55:34 +01:00
Peter Holm d7e45d5b90 stress2: remove the usage of fdisk(8) as this is soon to be removed 2024-01-24 09:54:17 +01:00
Jessica Clarke edec803c5b tools/build/make.py: Add missing comma to fix tinderbox and worlds
The missing comma meant this was interpreted as a single target called
"tinderboxworlds", and so neither tinderbox nor worlds were recognised
as being MI targets (i.e. still required TARGET(_ARCH) to be given).

Fixes:	5157b451c6 ("tools/build/make.py: Grow the list of MI targets")
2024-01-20 22:07:48 +00:00
Warner Losh 57623b3b74 checkstyle9.pl: Soften the single line braces requirement
We inherited the error for single line statements needing braces from
the original script. Style(9) allow that, and could be read to encourage
that, but does not require that.

Sponsored by:		Netflix
2024-01-15 17:57:28 -07:00
Warner Losh 787cb30d20 git-arc: Add -c flag to patch to commit the change
git arc patch -c D1234 will download differential D1234, try to apply it
to the tree, and if successful will ask phab for the title and
summary. It will construct a commit message with that, the reviewers,
and the differential revision. It also tries its best to deduce the
proper 'author' to use for the commit, and warn if it thinks it has made
a bad choice.

Sponsored by:		Netflix
Reviewed by:		markj
Differential Revision:	https://reviews.freebsd.org/D39992
2024-01-14 19:23:46 -07:00
Warner Losh 9f48ef1fca git-arc: Cope with extra output
On my machine, for reasons beyond my understanding, I get this warning
two times when running arc:

Warning: Module "openssl" is already loaded in Unknown on line 0

so grep -v ^Warning: on all the arc call-conduit calls to filter them
out so we can properly parse the JSON with jq.

Sponsored by:		Netflix
Reviewed by:		markj, jhb
Differential Revision:	https://reviews.freebsd.org/D36583
2024-01-14 19:23:45 -07:00
Warner Losh df834e06bb git-arc: Just strip escape sequences form arc log
Just strip escape sequences and Warning: lines from 'arc list' output. I
upgraded and they changed and git arc list broke. This restores its
functionality.

Note: jhb didn't like this, so if others object, I'll fix...

Sponsored by:		Netflix
Reviewed by:		markj
Differential Revision:	https://reviews.freebsd.org/D36553
2024-01-14 19:23:45 -07:00
Peter Holm bd9ddbc9cd stress2: Remove useless test scenario 2024-01-09 11:31:05 +01:00
Peter Holm f1bc2f67a3 stress2: Reduce idle time. Remove debug output 2024-01-09 11:28:26 +01:00
Kyle Evans 5d1ecf0b61 build: only inspect the first word of toolchain tools
CC/CXX/CPP/LD may all have arguments supplied in various circumstances,
which break the logic here.  We only need to determine which of these
tools we're expecting to invoke from PATH, which just requires
examination of the first word.  Limit our scope to exactly that.

Patch suggested by:	jrtc27
Reviewed by:		imp, jrtc27
Differential Revision:	https://reviews.freebsd.org/D43372
2024-01-08 22:22:25 -06:00
Warner Losh 4748db6ffd checkstyle9.pl: Don't use $root if not defined
$root is only defined when given on the command line. Don't try to use
its value when it's not defined.

Sponsored by:		Netflix
2024-01-07 09:51:49 -07:00
Warner Losh 1e81724578 checkstyle9: Remove irrelevant stuff from qemu
Remove some qemu project specific things we don't care about

o Remove python interpreter check
o Remove linux header check
o Remove trace file specail treatment
o Add $FreeBSD$ tag additions
o Remove some experiemntal code we won't need
o Remove commented out initializer code that we don't explicitly have a
  rule for.

Sponsored by:		Netflix
2024-01-07 09:51:49 -07:00
Warner Losh 2c5dcc5447 make_check: Deobit fmake support
We don't need make_check to work in a fmake world anymore (nor have we
in the past decade). Just remove it here.

Note in passing it's been 10 years since we've added a new test here and
maybe we're past the need for this part of the build (or need to revamp
it to include all the features added to bmake since 2016 that the build
system silently depends on).

Sponsored by:		Netflix
Reviewed by: brooks
Pull Request: https://github.com/freebsd/freebsd-src/pull/980
2024-01-03 12:14:17 -07:00
Peter Holm 1db45a4066 stress2: Handle the new output format of vmstat(8) 2024-01-02 14:43:46 +01:00
Warner Losh 259e6fefc0 test-includes: Add -ansi to the compile line to catch problems
We support C89 files, but compile everything in the tree with C99 or
newer. By compiling these -ansi, that will force C89 which doesn't
understand inline. All our header files must use __inline instead of
inline when they define inline functions.

Sponsored by:		Netflix
Reviewed by:		emaste
Differential Revision:	https://reviews.freebsd.org/D43235
2023-12-31 23:14:08 -07:00
Warner Losh 39e39ba056 nanobsd: Revert back to 1G (really 927M) partitions for rescue.
The last bump to 8G was caused by all the new symbols and debug info we
install by default. Turning those off gets us back to a reasonable size:

Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/md1s1a    927M    771M     83M    90%    /mnt

Sponsored by:		Netflix
Reviewed by:		jlduran@gmail.com
Differential Revision:	https://reviews.freebsd.org/D43232
2023-12-31 23:13:57 -07:00
John Baldwin e7300a8f63 OptionalObsoleteFiles.inc: Add libnss_tacplus_p.a as an old profiled library
Noticed this was still present after upgrading a 12.x stable host to
14.0 stable.
2023-12-28 14:20:54 -08:00
Gordon Bergling 63c928f17e gpioevents: Fix a typo in a diagnostic output message
- s/recieved/received/

MFC after:	3 days
2023-12-27 09:41:48 +01:00
Tijl Coosemans 272b4b764b devd: Don't install autofs.conf with WITHOUT_AUTOFS 2023-12-22 15:27:50 +01:00
Gleb Smirnoff 330089470f nanobsd: Fix the fix to a typo
Submitted by:		jlduran@gmail.com
Reviewed by:		imp, glebius, emaste
PR:			275691
Differential Revision:	https://reviews.freebsd.org/D43035
Fixes:			d8c70d6dfb
2023-12-21 10:13:44 -08:00
Yuri Pankov 7d413ee805 Revert "locale: regenerate SJIS charmap from CLDR"
...as it broke colldef build.

This reverts commit a4a9d2a64a.
2023-12-20 14:14:27 +07:00
Yuri Pankov a4a9d2a64a locale: regenerate SJIS charmap from CLDR
There are some noticable differences affecting the '\' and '~'
characters between our current charmap and latest CLDR version.

PR:		264299, 275444
Reviewed by:	bapt
Tested by:	uratan@miomio.jp
Differential Revision:	https://reviews.freebsd.org/D42848
2023-12-20 13:24:22 +07:00
Peter Holm 2134b35e0f stress2: Fix "-Wunused-but-set-variable" warnings. Style fixes, while here 2023-12-19 10:36:41 +01:00
Jessica Clarke ff7c12c1f1 Make kldxref a bootstrap tool and use unconditionally
Now that kldxref is a generic cross tool and can be built on non-FreeBSD
we can bootstrap it during the build and thus remove the condition for
whether it exists. We also need to make sure to add it to the METALOG
for -DNO_ROOT builds.

Reviewed by:	brooks, imp
Differential Revision:	https://reviews.freebsd.org/D43051
2023-12-13 21:43:10 +00:00
Jessica Clarke 881ec81372 tools/build: Provide sys/linker_set.h when cross-building
This is needed for kldxref, which will shortly become a bootstrap tool.
Linux can use the same one as FreeBSD (provided the cross-building
sys/cdefs.h is augmented appropriately), whilst macOS needs its own
Mach-O-specific implementation.

Reviewed by:	brooks
Differential Revision:	https://reviews.freebsd.org/D43049
2023-12-13 21:43:09 +00:00
Peter Holm 41667b04e5 stress2: Only extract the allocation with the exact name "pts" 2023-12-10 09:34:38 +01:00