NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-amd64/57982: Build Error or netbsd-10 branch on Mac OS X



Hi Harold,

Am 02.03.2024 um 13:10 schrieb Harold Gutch <logix%foobar.franken.de@localhost>:
As for the failure - does adding an #include <ratio> to Chrono.h help
(as the error message suggests)?  See also
https://github.com/llvm/llvm-project/commit/ab6e9a44ba8011d537cb71381c2a41a5e3354507

Confirmed working, see the attached patch.
Tested against the netbsd-10 branch.
Please take over for this, but also see below.



For the "user friendly versions", this is macOS 14.3.1 and Xcode 15.1
or 15.2, right?  I am guessing a bit based on the version numbers you
pasted.  That's newer than what I have here, not sure I can
test/reproduce the error…

Yes, MacOS Sonoma 4.3.1 (23D60) and XCode 15.2 (plus Command Line tools)

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 {
 


Home | Main Index | Thread Index | Old Index