Commit Graph

1411 Commits

Author SHA1 Message Date
christos 6135670d36 remap arm directory names, the same way the source does. 2023-02-07 20:37:30 +00:00
christos 342a25befd Disable enabling executable stack when the gnu stack note is missing.
Merge common configure arguments.
2023-01-18 12:52:55 +00:00
mrg 41d5ee3235 fix the binutils build with read-only source trees
don't play with m68k-parse.c in tools/binutils/Makefile but disable
the rules that rebuild it so we always use the upstream version,
using the standard "NetBSD_DISABLED" method.

this was necessary to build on linux in 2014 (which may or may not
still ne necessary), but it also avoids triggering rebuild rules
based upon the timestamps on .y vs .c.

tested with amiga, amd64, and i386 "build.sh tools" builds.
2022-12-31 05:44:25 +00:00
christos 8b0a0c21a2 Handle both places where m68k-parse can be found (for 2.34 and 2.39) 2022-12-25 17:25:22 +00:00
christos 7aa193d2ef Adjust for binutils-2.39 2022-12-24 20:17:46 +00:00
christos b74001cc4e don't require gettext 2022-10-29 13:53:35 +00:00
mrg 7f2f931bcb bump the netbsd version GCC to yesterday's date. 2022-07-23 19:01:18 +00:00
mrg 7e76252b1d don't rename codecvt.cc here, do it in a Makefile when consumed.
since the Makefiles already need updates for these, it's easier
if all of the changes are there.
2022-07-22 06:50:26 +00:00
andvar 2a76d4a970 s/hidding/hiding/ 2022-05-28 22:00:55 +00:00
jkoshy 242fdcb1b6 Prepare the ground for <elfdefinitions.h> to be used by the 'tools'
build of 'libctf'.
2022-05-03 10:50:42 +00:00
jkoshy b5818589d8 Bug fix: use the correct target path in a dependency. 2022-05-02 18:28:38 +00:00
jkoshy f56b29a750 Make the generated <sys/elfdefinitions.h> file visible when compiling
libdwarf.
2022-05-01 17:25:19 +00:00
jkoshy 8d566712d0 Remove the 'tools/lib{elf,dwarf}' directories.
These have been moved to under 'tools/elftoolchain'.
2022-04-22 15:47:03 +00:00
jkoshy b47ec9f9c1 Disconnect 'tools/lib{elf,dwarf}' from the build.
These libraries are now built by 'tools/elftoolchain/lib{elf,dwarf}'
respectively.
2022-04-18 19:46:35 +00:00
jkoshy 6969f6c52d Update 'tools/ctf{merge,convert}' to use the new build locations for
'libelf' and 'libdwarf'.
2022-04-18 19:40:06 +00:00
jkoshy 2718af68c3 Build 'libelf' and 'libdwarf' under 'tools/elftoolchain', after
'tools/elftoolchain/common' has been built.

This change aligns the 'tools' build with the regular build.

Subsequent commits will change 'tools/libctf' and
'tools/cft{merge,convert}' to use the new build paths.
2022-04-18 14:11:43 +00:00
jkoshy 9577c37ab9 Add a Makefile missed out in a previous commit. 2022-04-13 17:54:05 +00:00
jkoshy 42c1249ebe When building tools use a dedicated subdirectory for compiling
Elftoolchain code.

Build and install <sys/elfdefinitions.h> in ${TOOLDIR}/include.

This change prepares the ground for upgrading libelf and libdwarf to
their current Elftoolchain versions.
2022-04-13 17:52:56 +00:00
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