Skip to content

Commit dec825a

Browse files
committed
Update target in sandbox for s390x to specify glibc version (2.34).
1 parent 21fc66d commit dec825a

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

scripts/sandbox.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ def main() -> int:
4747

4848
with tempfile.TemporaryDirectory(delete=True) as tmpdir:
4949
setup_sandbox(prereqs, pathlib.Path(tmpdir))
50-
target = "s390x-linux-gnu"
50+
# target glibc 2.28 or newer (supports FORTIFY_SOURCE)
51+
target = "s390x-linux-gnu.2.34"
5152
additional_arguments = [
5253
f"--volume={os.getcwd()}/bin/zig-0.15.1:/mnt",
5354
f"--env=CC=/mnt/zig cc -target {target}",
@@ -70,6 +71,24 @@ def main() -> int:
7071
return err.returncode
7172
return 0
7273

74+
"""
75+
Downloading jedi
76+
× Failed to build `pyzmq==27.1.0`
77+
├─▶ The build backend returned an error
78+
╰─▶ Call to `scikit_build_core.build.build_wheel` failed (exit status: 1)
79+
[stdout]
80+
*** scikit-build-core 0.11.6 using CMake 3.26.5 (wheel)
81+
*** Configuring CMake...
82+
loading initial cache file /tmp/tmpf9bnfh5o/build/CMakeInit.txt
83+
-- Configuring incomplete, errors occurred!
84+
[stderr]
85+
CMake Error at /usr/share/cmake/Modules/CMakeDetermineCCompiler.cmake:49
86+
(message):
87+
Could not find compiler set in environment variable CC:
88+
/mnt/zig-0.15.1/zig cc -target s390x-linux-gnu.
89+
Call Stack (most recent call first):
90+
CMakeLists.txt:2 (project)
91+
"""
7392

7493
def buildinputs(
7594
dockerfile: pathlib.Path | str,

0 commit comments

Comments
 (0)