-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Description
Apply patch:
diff --git a/mx.graalpython/suite.py b/mx.graalpython/suite.py
index 8a5ced3797..c76b62dee1 100644
--- a/mx.graalpython/suite.py
+++ b/mx.graalpython/suite.py
@@ -674,7 +674,7 @@ suite = {
# "Release": highest opt level, no debugging symbols, no assertions, -DNDEBUG, etc.
# "RelWithDebInfo": medium opt level, with debugging symbols, no assertions, -DNDEBUG
# "Debug": no opt level, debugging symbols, assertions, ...
- "CMAKE_BUILD_TYPE": "Release",
+ "CMAKE_BUILD_TYPE": "Debug",
"CAPI_INC_DIR": "<output_root:com.oracle.graal.python>/jni_gen",
"PYCONFIG_INCLUDE_DIR": "<output_root:graalpy-pyconfig>/<os>-<arch>/<multitarget_libc_selection>",
"TRUFFLE_NFI_H_INC": "<path:com.oracle.truffle.nfi.native>/include",
@@ -710,7 +710,7 @@ suite = {
# "Release": highest opt level (e.g. -O3, -lto), no debugging symbols, no assertions, -DNDEBUG, etc.
# "RelWithDebInfo": medium opt level (e.g. -O2, -lto), with debugging symbols, no assertions, -DNDEBUG
# "Debug": no opt level, debugging symbols, assertions, ...
- "CMAKE_BUILD_TYPE": "Release",
+ "CMAKE_BUILD_TYPE": "Debug",
"CAPI_INC_DIR": "<output_root:com.oracle.graal.python>/jni_gen",
"PYCONFIG_INCLUDE_DIR": "<output_root:graalpy-pyconfig>/<os>-<arch>/<multitarget_libc_selection>/",
"TRUFFLE_NFI_H_INC": "<path:com.oracle.truffle.nfi.native>/include",
@@ -879,6 +879,7 @@ suite = {
],
"build_args": [
# From mx.graalpython/native-image.properties
+ "-g",
"--add-exports", "org.graalvm.nativeimage/org.graalvm.nativeimage.impl=ALL-UNNAMED",
"-R:StackSize=16777216",
"-H:+AddAllCharsets",
then:
> mx python-jvm
> ./mxbuild/linux-amd64/GRAALPY_JVM_STANDALONE/bin/graalpy -m ensurepip
raalpy: ./graalpython/graalpython/com.oracle.graal.python.cext/src/getargs.c:2006: _parser_init: Assertion `parser->pos == 0 && (parser->format == NULL || parser->fname == NULL) && parser->custom_msg == NULL && parser->min == 0 && parser->max == 0' failed.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/path/to/graalpy/graalpython/mxbuild/linux-amd64/GRAALPY_JVM_STANDALONE/lib/python3.12/runpy.py", line 198, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/path/to/graalpy/graalpython/mxbuild/linux-amd64/GRAALPY_JVM_STANDALONE/lib/python3.12/runpy.py", line 88, in _run_code
exec(code, run_globals)
File "/path/to/graalpy/graalpython/mxbuild/linux-amd64/GRAALPY_JVM_STANDALONE/lib/python3.12/ensurepip/__main__.py", line 5, in <module>
sys.exit(ensurepip._main())
File "/path/to/graalpy/graalpython/mxbuild/linux-amd64/GRAALPY_JVM_STANDALONE/lib/python3.12/ensurepip/__init__.py", line 286, in _main
return _bootstrap(
File "/path/to/graalpy/graalpython/mxbuild/linux-amd64/GRAALPY_JVM_STANDALONE/lib/python3.12/ensurepip/__init__.py", line 202, in _bootstrap
return _run_pip([*args, *_PACKAGE_NAMES], additional_paths)
File "/path/to/graalpy/graalpython/mxbuild/linux-amd64/GRAALPY_JVM_STANDALONE/lib/python3.12/ensurepip/__init__.py", line 101, in _run_pip
return subprocess.run(cmd, check=True).returncode
File "/path/to/graalpy/graalpython/mxbuild/linux-amd64/GRAALPY_JVM_STANDALONE/lib/python3.12/subprocess.py", line 572, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/path/to/graalpy/graalpython/mxbuild/linux-amd64/GRAALPY_JVM_STANDALONE/bin/graalpy', '-W', 'ignore::DeprecationWarning', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/tmp/tmp37ynetoa/pip-24.3.1-py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/tmp/tmp37ynetoa\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n']' died with <Signals.SIGABRT: 6>.
Slack conversation: https://graalvm.slack.com/archives/CNA7PDH2N/p1766989267813379
Metadata
Metadata
Assignees
Labels
No labels