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
The following reply was made to PR port-amd64/57982; it has been noted by GNATS.
From: Hubert Feyrer <hubertf%gmx.de@localhost>
To: gnats-bugs%netbsd.org@localhost,
Harold 'logix' Gutch <logix%foobar.franken.de@localhost>
Cc: port-amd64-maintainer%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost
Subject: Re: port-amd64/57982: Build Error or netbsd-10 branch on Mac OS X
Date: Sun, 3 Mar 2024 10:37:30 +0100
--Apple-Mail=_FA031614-EEC7-4EA4-98DA-841BF828BC30
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
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/ab6e9a44ba8011d537cb71381c2a41=
a5e3354507
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=E2=80=A6
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=3Dgnu99 -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=3D2 =
-Wno-format-zero-length -Werror =
--sysroot=3D/Volumes/netbsd-src-objdestdir/netbsd-10/destdir.amd64 =
-DELFSIZE=3D64 -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
=EF=BF=BC=
--Apple-Mail=_FA031614-EEC7-4EA4-98DA-841BF828BC30
Content-Type: multipart/mixed;
boundary="Apple-Mail=_2AA8D04A-D709-47C0-BF4C-7E99DA199996"
--Apple-Mail=_2AA8D04A-D709-47C0-BF4C-7E99DA199996
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<html><head><meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;">Hi Harold,<br =
id=3D"lineBreakAtBeginningOfMessage"><div><br><blockquote =
type=3D"cite"><div>Am 02.03.2024 um 13:10 schrieb Harold Gutch =
<logix%foobar.franken.de@localhost>:</div><div><div>As for the failure - =
does adding an #include <ratio> to Chrono.h help<br> (as the error =
message suggests)? See also<br> =
https://github.com/llvm/llvm-project/commit/ab6e9a44ba8011d537cb71381c2a41=
a5e3354507<br></div></div></blockquote><div><br></div><div>Confirmed =
working, see the attached patch.</div><div>Tested against the netbsd-10 =
branch.</div><div>Please take over for this, but also see =
below.</div><br><div><br></div><br><blockquote type=3D"cite"><div><div> =
For the "user friendly versions", this is macOS 14.3.1 and Xcode =
15.1<br> or 15.2, right? I am guessing a bit based on the version =
numbers you<br> pasted. That's newer than what I have here, not =
sure I can<br> test/reproduce the =
error=E2=80=A6</div></div></blockquote></div><div><br></div>Yes, MacOS =
Sonoma 4.3.1 (23D60) and XCode 15.2 (plus Command Line =
tools)<div><br></div><div>With the patch above, things get further, but =
then:</div><div><br></div><div><div><font face=3D"Courier New">--- =
gcrt0.o ---</font></div><div><font face=3D"Courier =
New">/Users/feyrer/work/NetBSD/cvs/src-10/tooldir.Darwin/bin/x86_64--netbs=
d-gcc -O2 -fPIE -std=3Dgnu99 -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=3D2 =
-Wno-format-zero-length -Werror =
--sysroot=3D/Volumes/netbsd-src-objdestdir/netbsd-10/destdir.amd64 =
-DELFSIZE=3D64 -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</font></div><div><font face=3D"Courier New">during GIMPLE =
pass: evrp</font></div><div><font face=3D"Courier =
New">/Users/feyrer/work/NetBSD/cvs/src-10/lib/csu/common/crt0-common.c: =
In function '_preinit':</font></div><div><font face=3D"Courier =
New">/Users/feyrer/work/NetBSD/cvs/src-10/lib/csu/common/crt0-common.c:351=
:1: internal compiler error: Segmentation fault: =
11</font></div><div><font face=3D"Courier New"> 351 | =
}</font></div><div><font face=3D"Courier New"> | =
^</font></div><div><font face=3D"Courier New">libbacktrace could not =
find executable to open</font></div><div><font face=3D"Courier =
New">Please submit a full bug report,</font></div><div><font =
face=3D"Courier New">with preprocessed source if =
appropriate.</font></div><div><font face=3D"Courier New">See =
<http://www.NetBSD.org/support/send-pr.html> for =
instructions.</font></div></div><div><br></div><div><br></div><div><br></d=
iv><div> - =
Hubert</div><div><br></div><div><br></div><div></div></body></html>=
--Apple-Mail=_2AA8D04A-D709-47C0-BF4C-7E99DA199996
Content-Disposition: attachment;
filename="patch-port-amd64-57982;.txt"
Content-Type: text/plain;
x-unix-mode=0644;
name="patch-port-amd64-57982;.txt"
Content-Transfer-Encoding: quoted-printable
$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 @@
=20
#include <chrono>
#include <ctime>
+#include <ratio>
=20
namespace llvm {
=20
--Apple-Mail=_2AA8D04A-D709-47C0-BF4C-7E99DA199996
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
charset=us-ascii
<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div></div></body></html>
--Apple-Mail=_2AA8D04A-D709-47C0-BF4C-7E99DA199996--
--Apple-Mail=_FA031614-EEC7-4EA4-98DA-841BF828BC30--
Home |
Main Index |
Thread Index |
Old Index