I've tried building the latest version 3 times without USE_NOBTCFI=Yes,
but every time it crashed with a native error. I'm attaching the error
log.

Adding USE_NOBTCFI=Yes fixes the build and I can run csharp interactive
shell again, as well as some FNA games. Diff at the bottom to add this.
ok?

cd /usr/ports/pobj/mono-6.12.0.199/mono-6.12.0.199/mcs && gmake 
--no-print-directory -s NO_DIR_CHECK=1
 PROFILES='binary_reference_assemblies net_4_x xbuild_12 xbuild_14              
' CC='cc' all-profiles

=================================================================
        Native Crash Reporting
=================================================================
Got a TERM while executing native code. [...]

=================================================================
        Native stacktrace:
=================================================================
        0x9a1d4bb22f1 - 
/usr/ports/pobj/mono-6.12.0.199/mono-6.12.0.199/mono/mini/mono : mono_breakpoi
nt_clean_code
        0x9a1d4b4790e - 
/usr/ports/pobj/mono-6.12.0.199/mono-6.12.0.199/mono/mini/mono : mono_debugger
_run_finally

[...]

=================================================================
        Managed Stacktrace:
=================================================================
          at System.OutOfMemoryException:.ctor <0x00000>
          at <Module>:runtime_invoke_void__this___object <0x000c3>
=================================================================
Abort trap (core dumped)

Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/mono/Makefile,v
retrieving revision 1.153
diff -u -p -r1.153 Makefile
--- Makefile    15 Jul 2023 11:52:42 -0000      1.153
+++ Makefile    15 Jul 2023 23:30:44 -0000
@@ -1,4 +1,5 @@
 USE_WXNEEDED=  Yes
+USE_NOBTCFI=   Yes
 
 COMMENT=       cross platform, open source .NET developement framework
 
@@ -6,6 +7,7 @@ V=              6.12.0.199
 MONOLITEV=     1A5E0066-58DC-428A-B21C-0AD6CDAE2789
 
 DISTNAME=      mono-${V}
+REVISION=      0
 
 CATEGORIES=    lang devel
 

Reply via email to