Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure: rocm #326244

Closed
JohnRTitor opened this issue Jul 11, 2024 · 1 comment
Closed

Build failure: rocm #326244

JohnRTitor opened this issue Jul 11, 2024 · 1 comment
Labels
0.kind: build failure A package fails to build 0.kind: regression Something that worked before working no longer 6.topic: rocm

Comments

@JohnRTitor
Copy link
Contributor

Steps To Reproduce

Steps to reproduce the behavior:

  1. build rocm-llvm-compiler-rt

Note that this happens when rebuilding my system. Only rocm related package I have there is rocmPackages.clr.icd in hardware.graphics.extraPackages.

Build log

From nix log /nix/store/x0cc4afsyk5m2ly5lhg2mycwqbg2zarb-rocm-llvm-compiler-rt-6.0.2.drv

[1908/1909] Linking CXX static library compiler-rt/lib/linux/libclang_rt.fuzzer-x86_64.a
[1909/1909] Linking CXX static library compiler-rt/lib/linux/libclang_rt.fuzzer_no_main-x86_64.a
buildPhase completed in 1 minutes 27 seconds
@nix { "action": "setPhase", "phase": "checkPhase" }
Running phase: checkPhase
check flags: -j12 check-runtimes
[0/1] Running runtimes regression tests
/build/source/compiler-rt/test/lit.common.cfg.py:639: SyntaxWarning: invalid escape sequence '\$'
  config.substitutions.append( ("%ld_flags_rpath_exe" + postfix, "-Wl,-z,origin -Wl,-rpath,\$ORIGIN -L%T -l%xdynamiclib_namespec">
/build/source/compiler-rt/test/lit.common.cfg.py:642: SyntaxWarning: invalid escape sequence '\$'
  config.substitutions.append( ("%ld_flags_rpath_exe" + postfix, "-Wl,-rpath,\$ORIGIN -L%T -l%xdynamiclib_namespec" + postfix) )
/build/source/compiler-rt/test/lit.common.cfg.py:645: SyntaxWarning: invalid escape sequence '\$'
  config.substitutions.append( ("%ld_flags_rpath_exe" + postfix, "-Wl,-R\$ORIGIN -L%T -l%xdynamiclib_namespec" + postfix) )
lit: /build/source/compiler-rt/test/lit.common.cfg.py:148: warning: Compiler lib dir != compiler-rt lib dir
Compiler libdir:     "/nix/store/kjav83vr3vhq96hj4wr95fbkxdgwcbqg-rocm-llvm-runtimes-6.0.2/lib/linux"
compiler-rt libdir:  "/build/source/runtimes/build/compiler-rt/lib/linux"
lit: /build/source/compiler-rt/test/lit.common.cfg.py:158: warning: COMPILER_RT_TEST_STANDALONE_BUILD_LIBS=ON, but this test suit>
lit: /build/source/compiler-rt/test/lit.common.cfg.py:169: note: Testing using libraries in "/build/source/runtimes/build/compile>
lit: /nix/store/yz7yczcfpipg2gdbs5xm9pxxl84h1pq7-python3.12-lit-18.1.7/lib/python3.12/site-packages/lit/TestingConfig.py:152: fat>
  File "/nix/store/yz7yczcfpipg2gdbs5xm9pxxl84h1pq7-python3.12-lit-18.1.7/lib/python3.12/site-packages/lit/TestingConfig.py", lin>
    exec(compile(data, path, "exec"), cfg_globals, None)
  File "/build/source/compiler-rt/test/lit.common.cfg.py", line 519, in <module>
    from distutils.version import LooseVersion
ModuleNotFoundError: No module named 'distutils'

FAILED: CMakeFiles/check-runtimes /build/source/runtimes/build/CMakeFiles/check-runtimes 
cd /build/source/runtimes/build && /nix/store/z7xxy35k7620hs6fn6la5fg2lgklv72l-python3-3.12.4/bin/python3.12 /nix/store/yz7yczcfp>
ninja: build stopped: subcommand failed.

Additional context

This is likely related to the recent nixpkgs move to switch to Python 3.12 which does not have distutils.

Notify maintainers

@NixOS/rocm-maintainers @Flakebi

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.10.0-rc6-cachyos, NixOS, 24.11 (Vicuna), 24.11.20240703.9f4128e`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Lix, like Nix) 2.90.0-rc1`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/store/dk2rpyb6ndvfbf19bkb2plcz5y3k8i5v-source`

Add a 👍 reaction to issues you find important.

@JohnRTitor JohnRTitor added 0.kind: regression Something that worked before working no longer 0.kind: build failure A package fails to build 6.topic: rocm labels Jul 11, 2024
@JohnRTitor JohnRTitor added this to the 24.11 milestone Jul 11, 2024
@eclairevoyant eclairevoyant removed this from the 24.11 milestone Jul 11, 2024
@eclairevoyant
Copy link
Contributor

duplicate of #325907
already fixed in #325909

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build 0.kind: regression Something that worked before working no longer 6.topic: rocm
Projects
None yet
Development

No branches or pull requests

2 participants