-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Closed
Labels
0.kind: build failureA package fails to buildA package fails to build6.topic: darwinRunning or building packages on DarwinRunning or building packages on Darwin
Description
Steps To Reproduce
Steps to reproduce the behavior:
- build libiconv-darwin using pkgsStatic
Build log
structuredAttrs is enabled
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/3p05yxp4ad18j42azj16fqz56cbn9g1f-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
applying patch /nix/store/ga5bpmxb255s9vv86jbxx9ysj6qja9av-0001-Support-static-module-loading.patch
patching file citrus/citrus_module.c
applying patch /nix/store/sw2bfbv9jfz2b99c8qk178xx06qf1x5i-0002-Fix-ISO-2022-out-of-bounds-write-with-encoded-charac.patch
patching file libiconv_modules/ISO2022/citrus_iso2022.c
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
mesonConfigurePhase flags: --prefix=/nix/store/hjxqkapx23av9f09hyayjybs0j6fx1iw-libiconv-static-aarch64-apple-darwin-99 --libdir=/nix/store/hjxqkapx23av9f09hyayjybs0j6fx1iw-libiconv-static-aarch64-apple-darwin-99/lib --libexecdir=/nix/store/hjxqkapx23av9f09hyayjybs0j6fx1iw-libiconv-static-aarch64-apple-darwin-99/libexec --bindir=/nix/store/hjxqkapx23av9f09hyayjybs0j6fx1iw-libiconv-static-aarch64-apple-darwin-99/bin --sbindir=/nix/store/hjxqkapx23av9f09hyayjybs0j6fx1iw-libiconv-static-aarch64-apple-darwin-99/sbin --includedir=/nix/store/i2rd50kax5h5nzqks03djszvnyd8ad7g-libiconv-static-aarch64-apple-darwin-99-dev/include --mandir=/nix/store/hjxqkapx23av9f09hyayjybs0j6fx1iw-libiconv-static-aarch64-apple-darwin-99/share/man --infodir=/nix/store/hjxqkapx23av9f09hyayjybs0j6fx1iw-libiconv-static-aarch64-apple-darwin-99/share/info --localedir=/nix/store/hjxqkapx23av9f09hyayjybs0j6fx1iw-libiconv-static-aarch64-apple-darwin-99/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --buildtype=release --cross-file=/nix/store/x0qfrc04lqvk97b9zd2hf38mzypyw37c-cross-file.conf
The Meson build system
Version: 1.4.0
Source dir: /private/tmp/nix-build-libiconv-static-aarch64-apple-darwin-99.drv-0/source
Build dir: /private/tmp/nix-build-libiconv-static-aarch64-apple-darwin-99.drv-0/source/build
Build type: cross build
Project name: libiconv
Project version: 99
C compiler for the host machine: aarch64-apple-darwin-clang (clang 16.0.6 "clang version 16.0.6")
C linker for the host machine: aarch64-apple-darwin-clang ld64 609
Compiler for language c for the build machine not found.
Build machine cpu family: aarch64
Build machine cpu: aarch64
Host machine cpu family: aarch64
Host machine cpu: aarch64
Target machine cpu family: aarch64
Target machine cpu: aarch64
Found pkg-config: YES (/nix/store/m7rpqv2vrx7d42bqj285vns9pv697jyq-aarch64-apple-darwin-pkg-config-wrapper-0.29.2/bin/aarch64-apple-darwin-pkg-config) 0.29.2
Traceback (most recent call last):
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/mesonmain.py", line 186, in run
return options.run_func(options)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/msetup.py", line 363, in run
app.generate()
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/msetup.py", line 187, in generate
return self._generate(env, capture, vslite_ctx)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/msetup.py", line 226, in _generate
intr.run()
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreter/interpreter.py", line 3007, in run
super().run()
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 162, in run
self.evaluate_codeblock(self.ast, start=1)
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 188, in evaluate_codeblock
raise e
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 180, in evaluate_codeblock
self.evaluate_statement(cur)
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 211, in evaluate_statement
return self.evaluate_if(cur)
^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 301, in evaluate_if
self.evaluate_codeblock(i.block)
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 188, in evaluate_codeblock
raise e
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 180, in evaluate_codeblock
self.evaluate_statement(cur)
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 198, in evaluate_statement
self.assignment(cur)
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 634, in assignment
value = self.evaluate_statement(node.value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 194, in evaluate_statement
return self.function_call(cur)
^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 520, in function_call
res = func(node, func_args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreterbase/decorators.py", line 799, in wrapped
return f(*wrapped_args, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreterbase/decorators.py", line 799, in wrapped
return f(*wrapped_args, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreterbase/decorators.py", line 799, in wrapped
return f(*wrapped_args, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Previous line repeated 4 more times]
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreterbase/decorators.py", line 98, in wrapped
ret = f(*wrapped_args, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreterbase/decorators.py", line 116, in wrapped
return f(*wrapped_args, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreterbase/decorators.py", line 250, in wrapper
return f(*nargs, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreterbase/decorators.py", line 569, in wrapper
return f(*wrapped_args, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreter/interpreter.py", line 1787, in func_dependency
d = df.lookup(kwargs)
^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreter/dependencyfallbacks.py", line 355, in lookup
dep = func(kwargs, func_args, func_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/interpreter/dependencyfallbacks.py", line 87, in _do_dependency
dep = dependencies.find_external_dependency(name, self.environment, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/dependencies/detect.py", line 114, in find_external_dependency
d = c()
^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/dependencies/pkgconfig.py", line 300, in __init__
self._set_libs()
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/dependencies/pkgconfig.py", line 516, in _set_libs
self.link_args, self.raw_link_args = self._search_libs(libs, raw_libs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/dependencies/pkgconfig.py", line 455, in _search_libs
args = self.clib_compiler.find_library(lib[2:], self.env,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/compilers/mixins/clike.py", line 1194, in find_library
return self._find_library_impl(libname, env, extra_dirs, code, libtype, lib_prefix_warning)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/compilers/mixins/clike.py", line 1183, in _find_library_impl
value = self._find_library_real(libname, env, extra_dirs, code, libtype, lib_prefix_warning)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/compilers/mixins/clike.py", line 1166, in _find_library_real
trial = self._get_file_from_list(env, trials)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/compilers/mixins/clike.py", line 1114, in _get_file_from_list
archs = mesonlib.darwin_get_object_archs(str(p))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/utils/universal.py", line 697, in darwin_get_object_archs
_, stdo, stderr = Popen_safe(['lipo', '-info', objpath])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/8sp5ijam2lc1sj4y9djghg2rh06qizfx-meson-1.4.0/lib/python3.11/site-packages/mesonbuild/utils/universal.py", line 1518, in Popen_safe
p = subprocess.Popen(args, universal_newlines=True, encoding=encoding, close_fds=False,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/327bf08j5b7l9cnzink3g4vp32y5352j-python3-3.11.9/lib/python3.11/subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/nix/store/327bf08j5b7l9cnzink3g4vp32y5352j-python3-3.11.9/lib/python3.11/subprocess.py", line 1955, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'lipo'
ERROR: Unhandled python OSError. This is probably not a Meson bug, but an issue with your build environment.
Additional context
From what I can tell, #315180 is supposed to fix this issue but it doesn't seem to have changed anything (I have ensured my flake is using the latest version of nixpkgs-unstable, which has this PR merged).
Notify maintainers
@NixOS/darwin-maintainers
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
- system:
"aarch64-darwin" - host os:
Darwin 24.0.0, macOS 15.0 - multi-user?:
yes - sandbox:
no - version:
nix-env (Nix) 2.18.2 - nixpkgs:
/Users/marshall/.nix-defexpr/channels/nixpkgs
Add a 👍 reaction to issues you find important.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
0.kind: build failureA package fails to buildA package fails to build6.topic: darwinRunning or building packages on DarwinRunning or building packages on Darwin