jpype-project / jpype

JPype is cross language bridge to allow Python programs full access to Java class libraries.
http://www.jpype.org
Apache License 2.0
1.12k stars 182 forks source link

startJVM crashes Apple M1 #1143

Open goomba-inside opened 1 year ago

goomba-inside commented 1 year ago

jpype.startJVM() crashes with A fatal error has been detected by the Java Runtime Environment

I also tried to build and test jpype but the first test seemed to abort without printing error message (The second code block contains the output).

I would appreciate any tips for debugging!

startJVM() crash:

% python3 -m venv venv
% cd venv
% source bin/activate
(venv) % export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home
(venv) % PATH=${PATH}:$JAVA_HOME/bin
(venv) % pip install JPype1
Collecting JPype1
  Using cached JPype1-1.4.1-cp39-cp39-macosx_10_9_universal2.whl
Collecting packaging
  Using cached packaging-23.1-py3-none-any.whl (48 kB)
Installing collected packages: packaging, JPype1
Successfully installed JPype1-1.4.1 packaging-23.1
(venv) % python3
Python 3.9.6 (default, May  7 2023, 23:32:44) 
[Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import jpype
>>> print(jpype.getDefaultJVMPath())
/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/lib/libjli.dylib
>>> jpype.startJVM()
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGBUS (0xa) at pc=0x0000000101ff8918, pid=18600, tid=259
#
# JRE version:  (17.0.8+9) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0.8+9-LTS-211, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# Problematic frame:
# V  [libjvm.dylib+0x414918]  CodeHeap::allocate(unsigned long)+0x1c8
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/user/venv/hs_err_pid18600.log
#
#
zsh: abort      python3

JPype build log and test failure:

(venv) % git clone https://github.com/jpype-project/jpype.git
Cloning into 'jpype'...
remote: Enumerating objects: 17772, done.
remote: Counting objects: 100% (2179/2179), done.
remote: Compressing objects: 100% (721/721), done.
remote: Total 17772 (delta 1563), reused 1953 (delta 1405), pack-reused 15593
Receiving objects: 100% (17772/17772), 4.78 MiB | 21.57 MiB/s, done.
Resolving deltas: 100% (13108/13108), done.

(venv)  % python3 setup.py test
/Users/user/venv/lib/python3.9/site-packages/setuptools/dist.py:487: UserWarning: Normalizing '1.5.0_dev0' to '1.5.0.dev0'
  warnings.warn(tmpl.format(**locals()))
running test
WARNING: Testing v
[hs_err_pid18600.log](https://github.com/jpype-project/jpype/files/12318912/hs_err_pid18600.log)
ia this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
WARNING: The wheel package is not available.
WARNING: The wheel package is not available.
WARNING: The wheel package is not available.
WARNING: The wheel package is not available.
WARNING: The wheel package is not available.
running egg_info
creating JPype1.egg-info
writing JPype1.egg-info/PKG-INFO
writing dependency_links to JPype1.egg-info/dependency_links.txt
writing entry points to JPype1.egg-info/entry_points.txt
writing requirements to JPype1.egg-info/requires.txt
writing top-level names to JPype1.egg-info/top_level.txt
writing manifest file 'JPype1.egg-info/SOURCES.txt'
package init file 'jpype/_pyinstaller/__init__.py' not found (or not a regular file)
reading manifest file 'JPype1.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.jar' under directory 'native'
warning: no files found matching '*.class' under directory 'native'
no previously-included directories found matching 'test/classes/*'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
adding license file 'LICENSE'
adding license file 'NOTICE'
adding license file 'AUTHORS.rst'
writing manifest file 'JPype1.egg-info/SOURCES.txt'
running build_ext
Call build extensions
Jar cache is missing, using --enable-build-jar to recreate it.
  javac -cp lib/asm-8.0.1.jar -d build/temp.macosx-10.9-universal2-3.9/org.jpype/classes -g:none -source 1.8 -target 1.8 -encoding UTF-8 native/java/org/jpype/JPypeContext.java native/java/org/jpype/JPypeKeywords.java native/java/org/jpype/JPypeSignal.java native/java/org/jpype/JPypeUtilities.java native/java/org/jpype/PyExceptionProxy.java native/java/org/jpype/classloader/DynamicClassLoader.java native/java/org/jpype/classloader/JPypeClassLoader.java native/java/org/jpype/html/AttrGrammar.java native/java/org/jpype/html/AttrParser.java native/java/org/jpype/html/Html.java native/java/org/jpype/html/HtmlGrammar.java native/java/org/jpype/html/HtmlHandler.java native/java/org/jpype/html/HtmlParser.java native/java/org/jpype/html/HtmlTreeHandler.java native/java/org/jpype/html/HtmlWriter.java native/java/org/jpype/html/Parser.java native/java/org/jpype/javadoc/DomUtilities.java native/java/org/jpype/javadoc/Javadoc.java native/java/org/jpype/javadoc/JavadocException.java native/java/org/jpype/javadoc/JavadocExtractor.java native/java/org/jpype/javadoc/JavadocRenderer.java native/java/org/jpype/javadoc/JavadocTransformer.java native/java/org/jpype/manager/ClassDescriptor.java native/java/org/jpype/manager/MethodResolution.java native/java/org/jpype/manager/ModifierCode.java native/java/org/jpype/manager/TypeAudit.java native/java/org/jpype/manager/TypeFactory.java native/java/org/jpype/manager/TypeFactoryNative.java native/java/org/jpype/manager/TypeManager.java native/java/org/jpype/pickle/ByteBufferInputStream.java native/java/org/jpype/pickle/Decoder.java native/java/org/jpype/pickle/Encoder.java native/java/org/jpype/pkg/JPypePackage.java native/java/org/jpype/pkg/JPypePackageManager.java native/java/org/jpype/proxy/JPypeProxy.java native/java/org/jpype/ref/JPypeReference.java native/java/org/jpype/ref/JPypeReferenceNative.java native/java/org/jpype/ref/JPypeReferenceQueue.java native/java/org/jpype/ref/JPypeReferenceSet.java
warning: [options] bootstrap class path not set in conjunction with -source 8
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
Note: native/java/org/jpype/classloader/DynamicClassLoader.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 warnings
Copy file native/java/org/jpype/html/entities.txt build/temp.macosx-10.9-universal2-3.9/org.jpype/classes/org/jpype/html/entities.txt
  jar cvf build/lib.macosx-10.9-universal2-3.9/org.jpype.jar -C build/temp.macosx-10.9-universal2-3.9/org.jpype/classes .
added manifest
adding: org/(in = 0) (out= 0)(stored 0%)
adding: org/jpype/(in = 0) (out= 0)(stored 0%)
adding: org/jpype/JPypeContext$1.class(in = 480) (out= 312)(deflated 35%)
adding: org/jpype/JPypeContext.class(in = 9126) (out= 4498)(deflated 50%)
adding: org/jpype/JPypeKeywords.class(in = 1445) (out= 784)(deflated 45%)
adding: org/jpype/JPypeSignal$1.class(in = 576) (out= 360)(deflated 37%)
adding: org/jpype/JPypeSignal.class(in = 1711) (out= 827)(deflated 51%)
adding: org/jpype/JPypeUtilities.class(in = 4013) (out= 1898)(deflated 52%)
adding: org/jpype/PyExceptionProxy.class(in = 223) (out= 188)(deflated 15%)
adding: org/jpype/classloader/(in = 0) (out= 0)(stored 0%)
adding: org/jpype/classloader/DynamicClassLoader$1.class(in = 1876) (out= 798)(deflated 57%)
adding: org/jpype/classloader/DynamicClassLoader.class(in = 5956) (out= 2953)(deflated 50%)
adding: org/jpype/classloader/JPypeClassLoader.class(in = 2511) (out= 1333)(deflated 46%)
adding: org/jpype/html/(in = 0) (out= 0)(stored 0%)
adding: org/jpype/h
[hs_err_pid18600.log](https://github.com/jpype-project/jpype/files/12318920/hs_err_pid18600.log)
[hs_err_pid18600.log](https://github.com/jpype-project/jpype/files/12318926/hs_err_pid18600.log)
tml/AttrGrammar$AttrRule.class(in = 1223) (out= 647)(deflated 47%)
adding: org/jpype/html/AttrGrammar$BooleanRule.class(in = 1209) (out= 639)(deflated 47%)
adding: org/jpype/html/AttrGrammar$EndQuoteRule.class(in = 1130) (out= 566)(deflated 49%)
adding: org/jpype/html/AttrGrammar$IgnoreWSRule.class(in = 819) (out= 459)(deflated 43%)
adding: org/jpype/html/AttrGrammar$QuoteRule.class(in = 1087) (out= 548)(deflated 49%)
adding: org/jpype/html/AttrGrammar$State.class(in = 1877) (out= 810)(deflated 56%)
adding: org/jpype/html/AttrGrammar$Token.class(in = 1832) (out= 964)(deflated 47%)
adding: org/jpype/html/AttrGrammar.class(in = 2221) (out= 995)(deflated 55%)
adding: org/jpype/html/AttrParser.class(in = 649) (out= 361)(deflated 44%)
adding: org/jpype/html/Html.class(in = 5534) (out= 3067)(deflated 44%)
adding: org/jpype/html/HtmlGrammar$1.class(in = 171) (out= 136)(deflated 20%)
adding: org/jpype/html/HtmlGrammar$BeginElement.class(in = 2130) (out= 965)(deflated 54%)
adding: org/jpype/html/HtmlGrammar$CData.class(in = 1700) (out= 780)(deflated 54%)
adding: org/jpype/html/HtmlGrammar$Cleanup.class(in = 2479) (out= 1183)(deflated 52%)
adding: org/jpype/html/HtmlGrammar$Comment.class(in = 1744) (out= 809)(deflated 53%)
adding: org/jpype/html/HtmlGrammar$CompleteElement.class(in = 1694) (out= 844)(deflated 50%)
adding: org/jpype/html/HtmlGrammar$Directive.class(in = 910) (out= 481)(deflated 47%)
adding: org/jpype/html/HtmlGrammar$EndCData.class(in = 1630) (out= 823)(deflated 49%)
adding: org/jpype/html/HtmlGrammar$EndComment.class(in = 1658) (out= 848)(deflated 48%)
adding: org/jpype/html/HtmlGrammar$EndDirective.class(in = 1404) (out= 684)(deflated 51%)
adding: org/jpype/html/HtmlGrammar$EndElement.class(in = 1392) (out= 672)(deflated 51%)
adding: org/jpype/html/HtmlGrammar$Escaped.class(in = 1048) (out= 561)(deflated 46%)
adding: org/jpype/html/HtmlGrammar$MergeText.class(in = 996) (out= 528)(deflated 46%)
adding: org/jpype/html/HtmlGrammar$Quoted.class(in = 1638) (out= 759)(deflated 53%)
adding: org/jpype/html/HtmlGrammar$StartComment.class(in = 1554) (out= 728)(deflated 53%)
adding: org/jpype/html/HtmlGrammar$StartElement.class(in = 1609) (out= 782)(deflated 51%)
adding: org/jpype/html/HtmlGrammar$StartQuote.class(in = 1259) (out= 614)(deflated 51%)
adding: org/jpype/html/HtmlGrammar$State.class(in = 2127) (out= 938)(deflated 55%)
adding: org/jpype/html/HtmlGrammar$Token.class(in = 2284) (out= 1209)(deflated 47%)
adding: org/jpype/html/HtmlGrammar.class(in = 5242) (out= 2302)(deflated 56%)
adding: org/jpype/html/HtmlHandler.class(in = 352) (out= 218)(deflated 38%)
adding: org/jpype/html/HtmlParser.class(in = 531) (out= 306)(deflated 42%)
adding: org/jpype/html/HtmlTreeHandler.class(in = 5198) (out= 2609)(deflated 49%)
adding: org/jpype/html/HtmlWriter.class(in = 3309) (out= 1721)(deflated 47%)
adding: org/jpype/html/Parser$1.class(in = 161) (out= 133)(deflated 17%)
adding: org/jpype/html/Parser$Entity.class(in = 781) (out= 406)(deflated 48%)
adding: org/jpype/html/Parser$Grammar.class(in = 254) (out= 165)(deflated 35%)
adding: org/jpype/html/Parser$MatchRule.class(in = 1067) (out= 607)(deflated 43%)
adding: org/jpype/html/Parser$Rule.class(in = 351) (out= 194)(deflated 44%)
adding: org/jpype/html/Parser$State.class(in = 349) (out= 204)(deflated 41%)
adding: org/jpype/html/Parser$Token.class(in = 215) (out= 169)(deflated 21%)
adding: org/jpype/html/Parser.class(in = 3944) (out= 1903)(deflated 51%)
adding: org/jpype/html/entities.txt(in = 3616) (out= 1559)(deflated 56%)
adding: org/jpype/javadoc/(in = 0) (out= 0)(stored 0%)
adding: org/jpype/javadoc/DomUtilities.class(in = 3159) (out= 1467)(deflated 53%)
adding: org/jpype/javadoc/Javadoc.class(in = 626) (out= 349)(deflated 44%)
adding: org/jpype/javadoc/JavadocException.class(in = 277) (out= 196)(deflated 29%)
adding: org/jpype/javadoc/JavadocExtractor.class(in = 6265) (out= 2995)(deflated 52%)
adding: org/jpype/javadoc/JavadocRenderer.class(in = 7249) (out= 3622)(deflated 50%)
adding: org/jpype/javadoc/JavadocTransformer$Workspace.class(in = 916) (out= 439)(deflated 52%)
adding: org/jpype/javadoc/JavadocTransformer.class(in = 9783) (out= 4552)(deflated 53%)
adding: org/jpype/manager/(in = 0) (out= 0)(stored 0%)
adding: org/jpype/manager/ClassDescriptor.class(in = 1303) (out= 764)(deflated 41%)
adding: org/jpype/manager/MethodResolution.class(in = 4484) (out= 2195)(deflated 51%)
adding: org/jpype/manager/ModifierCode.class(in = 2673) (out= 1454)(deflated 45%)
adding: org/jpype/manager/TypeAudit.class(in = 251) (out= 175)(deflated 30%)
adding: org/jpype/manager/TypeFactory.class(in = 644) (out= 334)(deflated 48%)
adding: org/jpype/manager/TypeFactoryNative.class(in = 772) (out= 415)(deflated 46%)
adding: org/jpype/manager/TypeManager$1.class(in = 177) (out= 135)(deflated 23%)
adding: org/jpype/manager/TypeManager$Destroyer.class(in = 1116) (out= 630)(deflated 43%)
adding: org/jpype/manager/TypeManager.class(in = 14911) (out= 7196)(deflated 51%)
adding: org/jpype/pickle/(in = 0) (out= 0)(stored 0%)
adding: org/jpype/pickle/ByteBufferInputStream.class(in = 1153) (out= 651)(deflated 43%)
adding: org/jpype/pickle/Decoder.class(in = 683) (out= 411)(deflated 39%)
adding: org/jpype/pickle/Encoder.class(in = 707) (out= 432)(deflated 38%)
adding: org/jpype/pkg/(in = 0) (out= 0)(stored 0%)
adding: org/jpype/pkg/JPypePackage.class(in = 3774) (out= 1987)(deflated 47%)
adding: org/jpype/pkg/JPypePackageManager$ModuleDirectory.class(in = 1746) (out= 878)(deflated 49%)
adding: org/jpype/pkg/JPypePackageManager.class(in = 7792) (out= 3637)(deflated 53%)
adding: org/jpype/proxy/(in = 0) (out= 0)(stored 0%)
adding: org/jpype/proxy/JPypeProxy.class(in = 2517) (out= 1259)(deflated 49%)
adding: org/jpype/ref/(in = 0) (out= 0)(stored 0%)
adding: org/jpype/ref/JPypeReference.class(in = 541) (out= 355)(deflated 34%)
adding: org/jpype/ref/JPypeReferenceNative.class(in = 267) (out= 207)(deflated 22%)
adding: org/jpype/ref/JPypeReferenceQueue$1.class(in = 185) (out= 143)(deflated 22%)
adding: org/jpype/ref/JPypeReferenceQueue$Worker.class(in = 1548) (out= 750)(deflated 51%)
adding: org/jpype/ref/JPypeReferenceQueue.class(in = 3049) (out= 1454)(deflated 52%)
adding: org/jpype/ref/JPypeReferenceSet$Pool.class(in = 690) (out= 409)(deflated 40%)
adding: org/jpype/ref/JPypeReferenceSet.class(in = 1619) (out= 924)(deflated 42%)
Call build ext
building '_jpype' extension
creating build/temp.macosx-10.9-universal2-3.9/native
creating build/temp.macosx-10.9-universal2-3.9/native/common
creating build/temp.macosx-10.9-universal2-3.9/native/python
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_array.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_array.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_arrayclass.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_arrayclass.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_booleantype.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_booleantype.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_boxedtype.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_boxedtype.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_buffer.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_buffer.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_buffertype.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_buffertype.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_bytetype.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_bytetype.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_chartype.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_chartype.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_class.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_class.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_classhints.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_classhints.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_classloader.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_classloader.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_classtype.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_classtype.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_context.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_context.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_convert.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_convert.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_doubletype.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_doubletype.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_encoding.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_encoding.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_exception.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_exception.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_field.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_field.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_floattype.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_floattype.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_functional.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_functional.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_gc.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_gc.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_inttype.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_inttype.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_javaframe.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_javaframe.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_longtype.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_longtype.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_method.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_method.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_methoddispatch.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_methoddispatch.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_monitor.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_monitor.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_numbertype.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_numbertype.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_objecttype.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_objecttype.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_platform.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_platform.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_primitivetype.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_primitivetype.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_proxy.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_proxy.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_reference_queue.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_reference_queue.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_shorttype.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_shorttype.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_stringtype.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_stringtype.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_tracer.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_tracer.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_typefactory.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_typefactory.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_typemanager.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_typemanager.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_value.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_value.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/common/jp_voidtype.cpp -o build/temp.macosx-10.9-universal2-3.9/native/common/jp_voidtype.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/python/jp_pythontypes.cpp -o build/temp.macosx-10.9-universal2-3.9/native/python/jp_pythontypes.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/python/pyjp_array.cpp -o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_array.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/python/pyjp_buffer.cpp -o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_buffer.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/python/pyjp_char.cpp -o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_char.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/python/pyjp_class.cpp -o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_class.o -g0 -std=c++11 -O2
native/python/pyjp_class.cpp:70:21: warning: code will never be executed [-Wunreachable-code]
                PyObject *bases = PyTuple_GetItem(args, 1);
                                  ^~~~~~~~~~~~~~~
1 warning generated.
native/python/pyjp_class.cpp:70:21: warning: code will never be executed [-Wunreachable-code]
                PyObject *bases = PyTuple_GetItem(args, 1);
                                  ^~~~~~~~~~~~~~~
1 warning generated.
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/python/pyjp_classhints.cpp -o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_classhints.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/python/pyjp_field.cpp -o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_field.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/python/pyjp_method.cpp -o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_method.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/python/pyjp_module.cpp -o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_module.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/python/pyjp_monitor.cpp -o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_monitor.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/python/pyjp_number.cpp -o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_number.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/python/pyjp_object.cpp -o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_object.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/python/pyjp_package.cpp -o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_package.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/python/pyjp_proxy.cpp -o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_proxy.o -g0 -std=c++11 -O2
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DMACOSX=1 -Inative/common/include -Inative/python/include -Inative/embedded/include -Inative/jni_include -I/Users/user/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c native/python/pyjp_value.cpp -o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_value.o -g0 -std=c++11 -O2
clang++ -bundle -undefined dynamic_lookup -arch arm64 -arch x86_64 -Wl,-headerpad,0x1000 build/temp.macosx-10.9-universal2-3.9/native/common/jp_array.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_arrayclass.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_booleantype.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_boxedtype.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_buffer.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_buffertype.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_bytetype.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_chartype.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_class.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_classhints.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_classloader.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_classtype.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_context.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_convert.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_doubletype.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_encoding.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_exception.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_field.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_floattype.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_functional.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_gc.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_inttype.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_javaframe.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_longtype.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_method.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_methoddispatch.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_monitor.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_numbertype.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_objecttype.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_platform.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_primitivetype.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_proxy.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_reference_queue.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_shorttype.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_stringtype.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_tracer.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_typefactory.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_typemanager.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_value.o build/temp.macosx-10.9-universal2-3.9/native/common/jp_voidtype.o build/temp.macosx-10.9-universal2-3.9/native/python/jp_pythontypes.o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_array.o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_buffer.o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_char.o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_class.o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_classhints.o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_field.o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_method.o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_module.o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_monitor.o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_number.o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_object.o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_package.o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_proxy.o build/temp.macosx-10.9-universal2-3.9/native/python/pyjp_value.o -ldl -o build/lib.macosx-10.9-universal2-3.9/_jpype.cpython-39-darwin.so
copying build/lib.macosx-10.9-universal2-3.9/org.jpype.jar -> 
copying build/lib.macosx-10.9-universal2-3.9/_jpype.cpython-39-darwin.so -> 
running test_java
No JAVA_HOME set
JAVAC = javac
  javac -d test/classes --add-exports java.base/jdk.internal.reflect=ALL-UNNAMED -g:lines,vars,source test/harness/jpype/collection/TestEnum.java test/harness/jpype/collection/CollectionTest.java test/harness/jpype/types/VirtualTest.java test/harness/jpype/types/InnerTest.java test/harness/jpype/types/Outer.java test/harness/jpype/overloads/Test2.java test/harness/jpype/overloads/DerivedTest.java test/harness/jpype/overloads/Test1.java test/harness/jpype/proxy/TestInterface1.java test/harness/jpype/proxy/ProxyExecutor.java test/harness/jpype/proxy/ProxyTriggers.java test/harness/jpype/proxy/TestThreadCallback.java test/harness/jpype/proxy/ReturnObject.java test/harness/jpype/proxy/TestInterface5.java test/harness/jpype/proxy/TestInterface4.java test/harness/jpype/proxy/TestInterface3.java test/harness/jpype/proxy/TestInterface2.java test/harness/jpype/override/B.java test/harness/jpype/override/A.java test/harness/jpype/utf8/Utf8Test.java test/harness/jpype/array/Test2.java test/harness/jpype/array/TestArray.java test/harness/jpype/reflect/ReflectionTest.java test/harness/jpype/reflect/Annotation.java test/harness/jpype/objectwrapper/Static.java test/harness/jpype/objectwrapper/Test1.java test/harness/jpype/boxed/Boxed.java test/harness/jpype/classhints/Custom.java test/harness/jpype/classhints/ClassHintsTest.java test/harness/jpype/common/OnShutdown.java test/harness/jpype/common/Fixture.java test/harness/jpype/numeric/NumericTest.java test/harness/jpype/attr/Holder.java test/harness/jpype/attr/Test2.java test/harness/jpype/attr/TestOverloadA.java test/harness/jpype/attr/SyntheticMethods.java test/harness/jpype/attr/TestOverloadC.java test/harness/jpype/attr/ClassWithBuffer.java test/harness/jpype/attr/SubHolder.java test/harness/jpype/attr/TestOverloadB.java test/harness/jpype/attr/Test1.java test/harness/jpype/properties/TestBean.java test/harness/jpype/closeable/CloseableTest.java test/harness/jpype/doc/Test.java test/harness/jpype/exc/ExceptionThrower.java test/harness/jpype/exc/ChildTestException.java test/harness/jpype/exc/ExceptionTest.java test/harness/jpype/exc/ParentTestException.java test/harness/jpype/exc/WierdException.java test/harness/jpype/mro/B.java test/harness/jpype/mro/C.java test/harness/jpype/mro/D.java test/harness/jpype/mro/E.java test/harness/jpype/mro/F.java test/harness/jpype/mro/MultipleInterfaces.java test/harness/jpype/mro/A.java test/harness/jpype/varargs/VarArgs.java test/harness/jpype/functional/ExtendsFunctional.java test/harness/jpype/functional/RedeclaresAnnotated.java test/harness/jpype/functional/Annotated.java test/harness/jpype/functional/AnnotatedWithObjectMethods.java test/harness/jpype/functional/NonAnnotatedWithObjectMethods.java test/harness/jpype/functional/RedeclaresNonAnnotated.java test/harness/jpype/functional/NonAnnotated.java test/harness/jpype/functional/ExtendsNonFunctional.java test/harness/jpype/str/StringFunction.java test/harness/jpype/str/Test.java test/harness/jpype/serial/SerializationTest.java test/harness/org/jpype/fail/BadInitializer.java test/harness/org/jpype/fail/BadInitializer2.java test/harness/java9/jpype/method/Caller.java
Loading source file test/harness/jpype/doc/Test.java...
Constructing Javadoc information...
Building index for all the packages and classes...
Standard Doclet version 20.0.2+9-78
Building tree for all the packages and classes...
Generating test/classes/jpype/doc/Test.html...
Generating test/classes/jpype/doc/package-summary.html...
Generating test/classes/jpype/doc/package-tree.html...
Generating test/classes/constant-values.html...
Generating test/classes/overview-tree.html...
Building index for all classes...
Generating test/classes/allclasses-index.html...
Generating test/classes/allpackages-index.html...
Generating test/classes/index-all.html...
Generating test/classes/search.html...
Generating test/classes/index.html...
Generating test/classes/help-doc.html...
=============================================== test session starts ================================================
platform darwin -- Python 3.9.6, pytest-7.4.0, pluggy-1.2.0 -- /Users/user/venv/bin/python3
cachedir: .pytest_cache
rootdir: /Users/user/venv/jpype
configfile: setup.cfg
testpaths: test, jpype/_pyinstaller
collected 1732 items                                                                                               

test/jpypetest/test_array.py::ArrayTestCase::testArrayCtor1 zsh: abort      python3 setup.py test
DigYang commented 1 year ago

I had the same problem

BossensM commented 11 months ago

Anyone found a solution? Experiencing same issues

Thrameos commented 11 months ago

Unfortunately I have no insight into this problem. I would search the archives. It must be some mismatch between the assumptions of the JVM and Python.

NothanUmber commented 9 months ago

It seems that on Apple Silicon Macs any exception on the Java side leads to a SIGBUS crash.

Here a short example:


import jpype
import jpype.imports

jpype.startJVM()

from java.lang.System import out
out.println("Huhu!")
out.println(1) # This line is deliberately passing an unexpected parameter in order to provoke an exception.

Output (with openjdk@8 - the same happens with e.g. openjdk@21, the only difference is that the VM warning isn't shown in that case):


OpenJDK 64-Bit Server VM warning: Attempt to protect stack guard pages failed.
OpenJDK 64-Bit Server VM warning: Attempt to deallocate stack guard pages failed.
Huhu!
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGBUS (0xa) at pc=0x000000019065aa58, pid=18998, tid=0x0000000000000103
#
# JRE version: OpenJDK Runtime Environment (Zulu 8.68.0.21-CA-macos-aarch64) (8.0_362-b09) (build 1.8.0_362-b09)
# Java VM: OpenJDK 64-Bit Server VM (25.362-b09 mixed mode bsd-aarch64 compressed oops)
# Problematic frame:
# C  [libunwind.dylib+0xaa58]  _Unwind_GetIP+0xe0
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# [some path]/hs_err_pid18998.log
#
# If you would like to submit a bug report, please visit:
#   http://www.azul.com/support/
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
zsh: abort

This makes debugging a chore. One workaround is to create Java-side wrapper code for everything. E.g.:

public class MyClassPyWrapper {
   private MyClass myClass;
   private MyClassPyWrapper() {}
   public static MyClassPyWrapper create(string aPar) {
      try {
         myClass = new MyClass(aPar);
         return this;
      } catch(Exception e) {
         e.printStackTrace(); // if an exception is thrown during construction of MyClass it is now printed to stdout. Similar wrapper methods can be created for the other methods of MyClass
         return null;
      }
   }
  ...
}

This is of course tedious, optimally one could write Python code without having to create wrappers.

Thrameos commented 9 months ago

Unfortunately I do not have access to that machine. There is no reason for a sigbus to be happening unless the code was not compiled with exception support. We take Java exceptions and make them C++ exceptions. There is a master try block on every piece of code to ensure it can’t segfault when it gets to Python C layer.

NothanUmber commented 9 months ago

Github seems to offer Apple Silicon macos runners to open source projects for free now: https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/

ryanmkurtz commented 8 months ago

I had this same issue with the Python 3.9 that was bundled with Xcode. I installed the official Python 3.12 release and the issue went away.

NothanUmber commented 6 months ago

Can still reproduce the issue with Python 3.12.2 and the current jpype build from main. The problem still occurs highly sporadic, the probability seems to go up with system load (so could be some kind of race condition). The error message is slightly different this time:

An irrecoverable stack overflow has occurred. #

A fatal error has been detected by the Java Runtime Environment:

#

SIGSEGV (0xb) at pc=0x000000019607b1e8, pid=52964, tid=0x0000000000000103

#

JRE version: (8.0_362-b09) (build )

Java VM: OpenJDK 64-Bit Server VM (25.362-b09 mixed mode bsd-aarch64 compressed oops)

Problematic frame:

C [dyld+0x471e8] dyld4::Atlas::ProcessSnapshot::Serializer::deserialize(std::__1::span<std::byte, 18446744073709551615ul>)+0x40

#

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

#

An error report file with more information is saved as:

<path/to/error.log>

#

If you would like to submit a bug report, please visit:

http://www.azul.com/support/

#