Hi Harold,
Confirmed working, see the attached patch. Tested against the netbsd-10 branch. Please take over for this, but also see below.
With the patch above, things get further, but then: --- gcrt0.o --- /Users/feyrer/work/NetBSD/cvs/src-10/tooldir.Darwin/bin/x86_64--netbsd-gcc -O2 -fPIE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wsystem-headers -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wold-style-definition -Wsign-compare -Wformat=2 -Wno-format-zero-length -Werror --sysroot=/Volumes/netbsd-src-objdestdir/netbsd-10/destdir.amd64 -DELFSIZE=64 -I/Users/feyrer/work/NetBSD/cvs/src-10/lib/csu/common -I. -c -fPIC -DMCRT0 /Users/feyrer/work/NetBSD/cvs/src-10/lib/csu/common/crt0-common.c -o gcrt0.o.c.o during GIMPLE pass: evrp /Users/feyrer/work/NetBSD/cvs/src-10/lib/csu/common/crt0-common.c: In function '_preinit': /Users/feyrer/work/NetBSD/cvs/src-10/lib/csu/common/crt0-common.c:351:1: internal compiler error: Segmentation fault: 11 351 | } | ^ libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. See <http://www.NetBSD.org/support/send-pr.html> for instructions. - Hubert |
$NetBSD$ Fix Build on MacOS X, see port-amd64/57982; --- ./external/apache2/llvm/dist/llvm/include/llvm/Support/Chrono.h.orig 2024-03-03 09:14:48.777651920 +0000 +++ ./external/apache2/llvm/dist/llvm/include/llvm/Support/Chrono.h @@ -14,6 +14,7 @@ #include <chrono> #include <ctime> +#include <ratio> namespace llvm {