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: python312Packages.webrtc-noise-gain during cross-compilation #375092

Closed
3 tasks done
Tol0kk opened this issue Jan 19, 2025 · 0 comments · Fixed by #375107
Closed
3 tasks done

Build failure: python312Packages.webrtc-noise-gain during cross-compilation #375092

Tol0kk opened this issue Jan 19, 2025 · 0 comments · Fixed by #375107
Labels
0.kind: build failure A package fails to build

Comments

@Tol0kk
Copy link

Tol0kk commented Jan 19, 2025

Nixpkgs version

  • Unstable (25.05)

Steps to reproduce

$ nix build github:NixOS/nixpkgs/041c867bad68dfe34b78b2813028a2e2ea70a23c#pkgsCross.aarch64-multiplatform.python312Packages.webrtc-noise-gain
error: builder for '/nix/store/3v3z5b24bvi9b2knvc85vzfppah0pl3k-python3.12-webrtc-noise-gain-1.2.5-aarch64-unknown-linux-gnu.drv' failed with exit code 1;
       last 25 log lines:
       >     cmd_obj.run()
       >   File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/command/build_ext.py", line 98, in run
       >     _build_ext.run(self)
       >   File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
       >     self.build_extensions()
       >   File "<string>", line 513, in build_extensions
       >   File "/nix/store/clrlqkcvr4h67fbnv00pf29v02k4lhyr-python3.12-pybind11-2.13.6/lib/python3.12/site-packages/pybind11/setup_helpers.py", line 287, in build_extensions
       >     super().build_extensions()
       >   File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 476, in build_extensions
       >     self._build_extensions_serial()
       >   File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 502, in _build_extensions_serial
       >     self.build_extension(ext)
       >   File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/command/build_ext.py", line 263, in build_extension
       >     _build_ext.build_extension(self, ext)
       >   File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 557, in build_extension
       >     objects = self.compiler.compile(
       >               ^^^^^^^^^^^^^^^^^^^^^^
       >   File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/ccompiler.py", line 606, in compile
       >     self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
       >   File "<string>", line 500, in _compile
       >   File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/unixccompiler.py", line 202, in _compile
       >     raise CompileError(msg)
       > setuptools._distutils.errors.CompileError: command '/nix/store/97hiadr3dgv6kj4w9mfx20ax09s8cyn3-aarch64-unknown-linux-gnu-gcc-wrapper-14-20241116/bin/aarch64-unknown-linux-gnu-g++' failed with exit code 1
       >
       > ERROR Backend subprocess exited when trying to invoke build_wheel
       For full logs, run 'nix log /nix/store/3v3z5b24bvi9b2knvc85vzfppah0pl3k-python3.12-webrtc-noise-gain-1.2.5-aarch64-unknown-linux-gnu.drv'

Can Hydra reproduce this build failure?

No, Hydra cannot reproduce this build failure.

Link to Hydra build job

No response

Relevant log output

Sourcing python-remove-tests-dir-hook
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing python-runtime-deps-check-hook
Using pythonRuntimeDepsCheckHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/ssxvgd9fdrvf0i7zihjnsj1lvllsiadb-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/webrtc_noise_gain/__main__.py
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Executing pypaBuildPhase
Creating a wheel...
pypa build flags: --no-isolation --outdir dist/ --wheel
* Getting build dependencies for wheel...
running egg_info
creating webrtc_noise_gain.egg-info
writing webrtc_noise_gain.egg-info/PKG-INFO
writing dependency_links to webrtc_noise_gain.egg-info/dependency_links.txt
writing top-level names to webrtc_noise_gain.egg-info/top_level.txt
writing manifest file 'webrtc_noise_gain.egg-info/SOURCES.txt'
reading manifest file 'webrtc_noise_gain.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.md'
writing manifest file 'webrtc_noise_gain.egg-info/SOURCES.txt'
* Building wheel...
running bdist_wheel
running build
running build_py
creating build/lib.linux-aarch64-cpython-312/webrtc_noise_gain
copying webrtc_noise_gain/__main__.py -> build/lib.linux-aarch64-cpython-312/webrtc_noise_gain
copying webrtc_noise_gain/__init__.py -> build/lib.linux-aarch64-cpython-312/webrtc_noise_gain
running build_ext
aarch64-unknown-linux-gnu-g++ -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -I/nix/store/791sbgv2r6mhqfpqa8rbm0fn50qbkg44-libxcrypt-aarch64-unknown-linux-gnu-4.4.36/include -fPIC -I/nix/store/sv1zkz9xrnzdm866qync4glny45vsqfb-python3-aarch64-unknown-linux-gnu-3.12.8/include/python3.12 -c -std=c++17 flagcheck.cpp -o flagcheck.o -std=c++17
building 'webrtc_noise_gain_cpp' extension
creating build/temp.linux-aarch64-cpython-312/build/source
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/api/audio
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/api/audio_codecs
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/api/task_queue
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/api/units
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/api/video
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/common_audio
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/common_audio/resampler
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/common_audio/signal_processing
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/common_audio/third_party/ooura/fft_size_128
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/common_audio/third_party/ooura/fft_size_256
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/common_audio/third_party/spl_sqrt_floor
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/common_audio/vad
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/modules/audio_coding/codecs/isac/main/source
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/modules/audio_processing/aec3
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/modules/audio_processing/aec_dump
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/modules/audio_processing/aecm
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/modules/audio_processing/agc
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/modules/audio_processing/agc/legacy
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/modules/audio_processing/agc2
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/modules/audio_processing/agc2/rnn_vad
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/modules/audio_processing/echo_detector
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/modules/audio_processing/include
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/modules/audio_processing/logging
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/modules/audio_processing/ns
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/modules/audio_processing/transient
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/modules/audio_processing/utility
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/modules/audio_processing/vad
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/modules/third_party/fft
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/rtc_base
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/rtc_base/experiments
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/rtc_base/memory
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/rtc_base/strings
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/rtc_base/synchronization
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/rtc_base/system
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/system_wrappers/source
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/third_party/pffft/src
creating build/temp.linux-aarch64-cpython-312/build/source/webrtc-audio-processing/webrtc-audio-processing-1/third_party/rnnoise/src
aarch64-unknown-linux-gnu-g++ -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -I/nix/store/791sbgv2r6mhqfpqa8rbm0fn50qbkg44-libxcrypt-aarch64-unknown-linux-gnu-4.4.36/include -fPIC -DVERSION_INFO=1.2.5 -I/build/source/webrtc-audio-processing -I/build/source/webrtc-audio-processing/webrtc-audio-processing-1 -I/build/source/webrtc-audio-processing/subprojects/abseil-cpp-20230125.1 -I/nix/store/clrlqkcvr4h67fbnv00pf29v02k4lhyr-python3.12-pybind11-2.13.6/lib/python3.12/site-packages/pybind11/include -I/nix/store/sv1zkz9xrnzdm866qync4glny45vsqfb-python3-aarch64-unknown-linux-gnu-3.12.8/include/python3.12 -c -std=c++17 /build/source/python.cpp -o build/temp.linux-aarch64-cpython-312/build/source/python.o -fvisibility=hidden -g0 -DWEBRTC_LIBRARY_IMPL -DWEBRTC_ENABLE_SYMBOL_EXPORT -DNDEBUG -DWEBRTC_APM_DEBUG_DUMP=0 -D_GNU_SOURCE -DWEBRTC_LINUX -DWEBRTC_THREAD_RR -DWEBRTC_POSIX -DWEBRTC_ARCH_LITTLE_ENDIAN -DWEBRTC_ARCH_X86_FAMILY -msse2 -DWEBRTC_ARCH_X86_64 -DWEBRTC_ARCH_64_BITS
aarch64-unknown-linux-gnu-g++: error: unrecognized command-line option ‘-msse2’
Traceback (most recent call last):
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/spawn.py", line 70, in spawn
    subprocess.check_call(cmd, env=_inject_macos_ver(env))
  File "/nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8/lib/python3.12/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/nix/store/97hiadr3dgv6kj4w9mfx20ax09s8cyn3-aarch64-unknown-linux-gnu-gcc-wrapper-14-20241116/bin/aarch64-unknown-linux-gnu-g++', '-fno-strict-overflow', '-Wsign-compare', '-DNDEBUG', '-g', '-O3', '-Wall', '-I/nix/store/791sbgv2r6mhqfpqa8rbm0fn50qbkg44-libxcrypt-aarch64-unknown-linux-gnu-4.4.36/include', '-fPIC', '-DVERSION_INFO=1.2.5', '-I/build/source/webrtc-audio-processing', '-I/build/source/webrtc-audio-processing/webrtc-audio-processing-1', '-I/build/source/webrtc-audio-processing/subprojects/abseil-cpp-20230125.1', '-I/nix/store/clrlqkcvr4h67fbnv00pf29v02k4lhyr-python3.12-pybind11-2.13.6/lib/python3.12/site-packages/pybind11/include', '-I/nix/store/sv1zkz9xrnzdm866qync4glny45vsqfb-python3-aarch64-unknown-linux-gnu-3.12.8/include/python3.12', '-c', '-std=c++17', '/build/source/python.cpp', '-o', 'build/temp.linux-aarch64-cpython-312/build/source/python.o', '-fvisibility=hidden', '-g0', '-DWEBRTC_LIBRARY_IMPL', '-DWEBRTC_ENABLE_SYMBOL_EXPORT', '-DNDEBUG', '-DWEBRTC_APM_DEBUG_DUMP=0', '-D_GNU_SOURCE', '-DWEBRTC_LINUX', '-DWEBRTC_THREAD_RR', '-DWEBRTC_POSIX', '-DWEBRTC_ARCH_LITTLE_ENDIAN', '-DWEBRTC_ARCH_X86_FAMILY', '-msse2', '-DWEBRTC_ARCH_X86_64', '-DWEBRTC_ARCH_64_BITS']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/unixccompiler.py", line 196, in _compile
    self.spawn(
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/ccompiler.py", line 1045, in spawn
    spawn(cmd, dry_run=self.dry_run, **kwargs)
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/spawn.py", line 76, in spawn
    raise DistutilsExecError(
setuptools._distutils.errors.DistutilsExecError: command '/nix/store/97hiadr3dgv6kj4w9mfx20ax09s8cyn3-aarch64-unknown-linux-gnu-gcc-wrapper-14-20241116/bin/aarch64-unknown-linux-gnu-g++' failed with exit code 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/nix/store/a1p5xi82210z0i5avgk8z5caaik78l96-python3.12-pyproject-hooks-1.2.0/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
    main()
  File "/nix/store/a1p5xi82210z0i5avgk8z5caaik78l96-python3.12-pyproject-hooks-1.2.0/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/a1p5xi82210z0i5avgk8z5caaik78l96-python3.12-pyproject-hooks-1.2.0/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 280, in build_wheel
    return _build_backend().build_wheel(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/build_meta.py", line 434, in build_wheel
    return _build(['bdist_wheel'])
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/build_meta.py", line 425, in _build
    return self._build_with_temp_dir(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/build_meta.py", line 406, in _build_with_temp_dir
    self.run_setup()
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/build_meta.py", line 521, in run_setup
    super().run_setup(setup_script=setup_script)
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/build_meta.py", line 319, in run_setup
    exec(code, locals())
  File "<string>", line 565, in <module>
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/__init__.py", line 117, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 183, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 199, in run_commands
    dist.run_commands()
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
    self.run_command(cmd)
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/dist.py", line 999, in run_command
    super().run_command(command)
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
    cmd_obj.run()
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/command/bdist_wheel.py", line 410, in run
    self.run_command("build")
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
    self.distribution.run_command(command)
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/dist.py", line 999, in run_command
    super().run_command(command)
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
    cmd_obj.run()
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
    self.distribution.run_command(command)
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/dist.py", line 999, in run_command
    super().run_command(command)
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
    cmd_obj.run()
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/command/build_ext.py", line 98, in run
    _build_ext.run(self)
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
    self.build_extensions()
  File "<string>", line 513, in build_extensions
  File "/nix/store/clrlqkcvr4h67fbnv00pf29v02k4lhyr-python3.12-pybind11-2.13.6/lib/python3.12/site-packages/pybind11/setup_helpers.py", line 287, in build_extensions
    super().build_extensions()
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 476, in build_extensions
    self._build_extensions_serial()
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 502, in _build_extensions_serial
    self.build_extension(ext)
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/command/build_ext.py", line 263, in build_extension
    _build_ext.build_extension(self, ext)
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 557, in build_extension
    objects = self.compiler.compile(
              ^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/ccompiler.py", line 606, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "<string>", line 500, in _compile
  File "/nix/store/sfifx7g499n2xfvs5hzvw3mxinn0i17x-python3.12-setuptools-75.3.0/lib/python3.12/site-packages/setuptools/_distutils/unixccompiler.py", line 202, in _compile
    raise CompileError(msg)
setuptools._distutils.errors.CompileError: command '/nix/store/97hiadr3dgv6kj4w9mfx20ax09s8cyn3-aarch64-unknown-linux-gnu-gcc-wrapper-14-20241116/bin/aarch64-unknown-linux-gnu-g++' failed with exit code 1

ERROR Backend subprocess exited when trying to invoke build_wheel

Additional context

The issue comes from the setup.py in the upstream package repository.
It uses platform.machine() to determine what flags to use for compilation. However, platform.machine() gives the host system arch. It should use the target system arch for the compiler flag.

I don't know if it should be fixed on the upstream package or on the Nixpkgs side with a patch or something like that. I don't know if we can enforce the output of platform.machine() on the Nix side.

System metadata

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.63, NixOS, 25.05 (Warbler), 25.05pre-git`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.11`
 - nixpkgs: `/nix/store/l9nb64iii15y0nr37qrs1cfm6rlpg6gh-source`

Notify maintainers

@mweinelt

Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@Tol0kk Tol0kk added the 0.kind: build failure A package fails to build label Jan 19, 2025
nixpkgs-ci bot pushed a commit that referenced this issue Jan 19, 2025
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant