Commit Graph

1393 Commits

Author SHA1 Message Date
rillig c153636995 tools: allow tools to use C99
The previous requirement was that tools should only use C89 features.
Several tools did not follow this rule for years.  Since nobody
complained about not being able to build NetBSD in a C89 environment,
drop that rule, now requiring C99.

https://mail-index.netbsd.org/tech-toolchain/2022/01/30/msg004091.html
2022-02-03 20:32:38 +00:00
skrll 36f4db587e Make dtc on riscv 2021-11-14 15:48:02 +00:00
christos a043955316 Patch the build script and toolchain to allow passing through
HOST_CPPFLAGS, HOST_CXXFLAGS, but not LIBRARY_PATH because it breaks
the build. These variables are necessary to support building NetBSD
from a GNU Guix or NixOS host, where /usr/include, /lib, and all
but /bin/sh do not exist.  In many cases, support for HOST_CPPFLAGS
was incomplete. From Ryan Sundberg
2021-09-18 01:47:07 +00:00
rillig 4c66371fdc tools: in non-verbose mode, build the tools silently 2021-08-29 08:36:00 +00:00
mrg 5399f8db9c fetch experimental_headers, experimental_bits_headers, and ext_host_headers
to install install experimental/* and ext/opt_random.h.
2021-08-16 06:25:45 +00:00
cjep ce74361f40 Final note on OpenBSD cross-buildling. Remaining issues were due to
default limits on the build host.
2021-07-11 06:15:42 +00:00
cjep 0534019bd5 LLVM RT library will actually cross-build from OpenBSD provided sufficient
limits are in place for the build user.
2021-07-04 12:57:48 +00:00
cjep 47c30ebc16 Note OpenBSD cross-build progress 2021-06-29 10:02:34 +00:00
cjep c1a451e849 avoid triggering conflict indicator warnings 2021-06-28 07:18:01 +00:00
cjep a09ab67fff note on Darwin/Mac 2021-06-28 07:16:46 +00:00
cjep 63399de5f3 PR port-amiga/56188
Include a prototype for __nbcompat_heapsort. The tools for amiga now
build on Darwin where one Amiga specific tool uses heapsort.

Despite being a one-liner, ./build.sh -m amiga tools was tested on
NetBSD, Darwin, FreeBSD & Linux with the change.

Discussed various options with jdc & thorpej. Perhaps in the future
we could look at using qsort instead of heapsort as qsort is
standardised and more likely to be available. We could then remove
heapsort from the compatibility library.
2021-05-30 10:39:41 +00:00
joerg 53d1339bf7 Update LLVM build system for 249b40b558955afe5ac2b549edcf2d7f859c8cc9
This enables the use of modules for a significant build performance gain
when building with clang as host compiler or when using HAVE_LLVM=yes.
Switch libc++ to using the copy from the mono-repo.
2021-05-30 01:56:44 +00:00
cjep 778a2675ae If we are building date earlier, we need to use an uninstalled copy
of host-mkdep and libnbcompat otherwise the build process looks for
tools that might not be there yet (e.g. fresh build).
Reviewed by martin.
2021-05-27 08:41:35 +00:00
christos f5c6b13fa0 Add a date tool 2021-05-26 20:19:15 +00:00
uwe fbfae67d9f Fix typo in pathname in a comment. 2021-05-24 23:07:40 +00:00
cjep ac6ba04d2d Add macOS High Sierra to the list of verified build platforms 2021-05-12 06:39:28 +00:00
christos cc3abd3a65 Disable again initfini; breaks some archs and not worth dealing with when
we have both gcc's active in the tree.
2021-05-08 19:36:28 +00:00
christos 6bf278a2a9 enable initfini-array since all platforms support it. 2021-05-07 23:00:04 +00:00
cjep 72496168ad More test notes from using build.sh against non NetBSD platforms. 2021-05-07 14:52:59 +00:00
rin 735b9693ea PR port-mvme68k/56146
Build wrtvid as tools.
2021-05-06 13:23:36 +00:00
cjep b84b6c59df Update with information from recent testing of different Linux variants
on AWS. Also FreeBSD 13.
2021-05-06 07:32:15 +00:00
christos 433776ffe2 Make mips-elf2ecoff available for all mips 2021-04-25 15:11:28 +00:00
mrg c30145c84d add a netbsd version for GCC 10. properly generate omp-device-properties.h. 2021-04-11 23:55:47 +00:00
mrg 8aa3f3d2d3 fetch omp-device-properties.h and don't try to fetch sanitizer
stuff automatically yet.
2021-04-11 07:35:45 +00:00
mrg d369354e2d make mknative-gcc.old for GCC 9. begin to update mknative-gcc for GCC 10. 2021-04-11 01:44:14 +00:00
christos 142620627d Add reallocarray; this is used by the new regex code and we don't want to
convert it to reallocarr so the code is kept similar with the original from
FreeBSD.
2021-02-25 13:41:58 +00:00
rin 1fb63bb836 Fix copy-paste error for heapsort(3), so that it is declared appropriately. 2021-02-23 16:03:00 +00:00
dbj e1f6b977ca tools: allow MKCROSSGDB to work when not building gcc 2021-02-06 16:14:55 +00:00
rillig c5b23e2249 lint: make path to lint data configurable
This is needed for strict bool mode, to make the custom header stdbool.h
available when lint is run as part of build.sh.
2021-01-24 16:55:09 +00:00
rillig 568ebf3743 lint: fix path to installed stdbool.h for strict bool mode 2021-01-24 16:22:55 +00:00
christos e2e1ee60e1 Install lint's custom stdbool.h and make lint search for it in the right place. 2021-01-24 15:43:09 +00:00
christos 575adc5486 Don't bother with gdbserver for archs that don't build it. 2020-12-05 21:27:31 +00:00
rin 6053aa6ca7 Correct target directory; src/external/gpl3/gdb.old not gdb. 2020-10-09 23:48:42 +00:00
rin 547879b380 Nowadays, mknative-gdb puts files into external/gpl3/gdb/lib,
instead of external/gpl3/gdb/bin/gdb.

Also, we need to nbmake-MACHINE in external/gpl3/gdb in order to
build dependent libraries correctly.
2020-10-09 23:44:46 +00:00
mrg 4dfd2f9831 initial working version of native-gmp support.
does not use mknative.common yet, so always updates files and does
not mark them with NetBSD rcsid.  (not a regression from the manual
version at least.)
2020-09-26 20:56:53 +00:00
christos 254454c5af grab the gdbserver version 2020-09-24 14:53:17 +00:00
christos 833251feb8 Add gdbserver 2020-09-23 23:21:29 +00:00
christos cfd59bbc53 put gnulib stuff under gnulib/ because things import "gnulib/config.h" 2020-09-17 16:54:31 +00:00
christos 6b8c077795 remove obsolete 2020-09-17 16:07:39 +00:00
christos 576200d14e refine 2020-09-17 16:05:34 +00:00
christos d377601318 Save the mknative-gdb for 8.3 and prepare the mknative-gdb for 10.x 2020-09-17 02:14:48 +00:00
mrg d875c5372c more consolidation and properly condition all variables like previously. 2020-09-09 07:12:04 +00:00
mrg ca7ab82162 consolidate a bunch of libstdc++ variable collection. 2020-09-09 04:52:32 +00:00
mrg d841008ee6 oops, pull out the value of pstl_headers. 2020-09-08 19:17:24 +00:00
mrg 006c30bace mark GCC 9 as (so far) netbsd 20200907 version. this should fix the
compiler saying it is "gcc version 9.3.0 ()".

(needs mknative redo.)
2020-09-06 21:59:33 +00:00
mrg 6e26327fd8 pass down earm* not earmv5* to mknative-gcc. 2020-09-06 02:24:38 +00:00
mrg ecb0fdec1f disable fetching stuff from libsanitizer for now. it needs libstdc++
to build in mknative using gcc makefiles, and our locale changes break
the "normal" build of this.

make sure MKNATIVE_TARGET is always set.  since mknative-gcc doesn't
care about the version any more (we keep two versions for gcc/gcc.old)
simply set it to "gcc".
2020-09-05 10:58:08 +00:00
mrg ef2e34874f pull out a few more things for GCC 9. 2020-09-05 09:49:32 +00:00
mrg 6df74746d4 port to GCC 9.3. 2020-09-05 09:16:46 +00:00
mrg d1531a5681 set MODULE to ${EXTERNAL_GCC_SUBDIR} so this actually works.. 2020-08-13 10:57:53 +00:00