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

staging-next 2025-01-06 #371501

Open
wants to merge 1,007 commits into
base: master
Choose a base branch
from
Open

staging-next 2025-01-06 #371501

wants to merge 1,007 commits into from

Conversation

vcunat
Copy link
Member

@vcunat vcunat commented Jan 6, 2025

github-actions bot and others added 30 commits January 4, 2025 00:14
This matches the default configuration of ICU upstream. Otherwise, some
packages (such as Boost) fail to build against darwin.ICU. This should
be safe ABI-wise because (according to the comments), char16_t and
uint16_t have the same memory representation. The reason why Apple did
not make the change is due to a build failure in one of their
proprietary frameworks when using char16_t.
The ICU C++ API is not ABI stable. Since ICU is normally shipped as a
system library, Apple has disabled it by default. This breaks using ICU
as the default implementation on Darwin in nixpkgs because packages
expect to use the C++ API without having to opt into it.

This change enables the C++ API by default based on the assumption that
the packages using it in nixpkgs are built from source, and any binaries
that would link against `libicucore.B.dylib` won’t be using the C++ API
and should not suffer from ABI problems, and if they did use the C++
API, they would have ABI problems regardless because the symbols are
still present in the ICU dylibs.
@ilyagr
Copy link
Contributor

ilyagr commented Jan 11, 2025

I've tried building my home-manager with commit e022056 config on darwin-aarch64 (not sure why, but hope this helps), and fb303-2025.01.06.00 is failing.

 - system: `"aarch64-darwin"`
 - host os: `Darwin 23.6.0, macOS 14.7.2`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.24.11`
 - nixpkgs: `/nix/store/wzhdvy8pvcrfc1flrnhrbrpyb0q38pp8-source`
nix log
$ nix log /nix/store/a0wcrl1lipq21b5gx4znywvs8x63cv6v-fb303-2025.01.06.00.drv
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/vmcwk5vdn8ndmw6pmfy8ji12qh4x6sks-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
applying patch /nix/store/zcm8s5n580ivrigljdak0d769lvniwv7-glog-0.7.patch
patching file CMakeLists.txt
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
fixing cmake files...
cmake flags: -GNinja -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/6259hdpc107l11brwmlpd0w9rmni2qn1-fb303-2025.01.06.00/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/6259hdpc107l11brwmlpd0w9rmni2qn1-fb303-2025.01.06.00/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/6259hdpc107l11brwmlpd0w9rmni2qn1-fb303-2025.01.06.00/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/6259hdpc107l11brwmlpd0w9rmni2qn1-fb303-2025.01.06.00/share/doc/fb303 -DCMAKE_INSTALL_INFODIR=/nix/store/6259hdpc107l11brwmlpd0w9rmni2qn1-fb303-2025.01.06.00/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/6259hdpc107l11brwmlpd0w9rmni2qn1-fb303-2025.01.06.00/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/q365b4qzms6m2i3mga6hbg9zhfq6fplj-fb303-2025.01.06.00-dev/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/q365b4qzms6m2i3mga6hbg9zhfq6fplj-fb303-2025.01.06.00-dev/include -DCMAKE_INSTALL_SBINDIR=/nix/store/6259hdpc107l11brwmlpd0w9rmni2qn1-fb303-2025.01.06.00/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/6259hdpc107l11brwmlpd0w9rmni2qn1-fb303-2025.01.06.00/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/6259hdpc107l11brwmlpd0w9rmni2qn1-fb303-2025.01.06.00/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/x25662zlrvzy1aavv8y5vrk40bj8c8hr-clang-wrapper-19.1.6/bin/strip -DCMAKE_RANLIB=/nix/store/x25662zlrvzy1aavv8y5vrk40bj8c8hr-clang-wrapper-19.1.6/bin/ranlib -DCMAKE_AR=/nix/store/x25662zlrvzy1aavv8y5vrk40bj8c8hr-clang-wrapper-19.1.6/bin/ar -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX=/nix/store/6259hdpc107l11brwmlpd0w9rmni2qn1-fb303-2025.01.06.00 -DBUILD_SHARED_LIBS:BOOL=TRUE -DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=TRUE -DPYTHON_EXTENSIONS:BOOL=FALSE -DINCLUDE_INSTALL_DIR:STRING=/nix/store/q365b4qzms6m2i3mga6hbg9zhfq6fplj-fb303-2025.01.06.00-dev/include -DLIB_INSTALL_DIR:STRING=/nix/store/6259hdpc107l11brwmlpd0w9rmni2qn1-fb303-2025.01.06.00/lib -DCMAKE_INSTALL_DIR:STRING=/nix/store/q365b4qzms6m2i3mga6hbg9zhfq6fplj-fb303-2025.01.06.00-dev/lib/cmake/fb303 -DCMAKE_INSTALL_PREFIX:STRING=/nix/store/q365b4qzms6m2i3mga6hbg9zhfq6fplj-fb303-2025.01.06.00-dev
�[0mCMake Deprecation Warning at CMakeLists.txt:15 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

�[0m
-- The CXX compiler identification is Clang 19.1.6
-- The C compiler identification is Clang 19.1.6
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/x25662zlrvzy1aavv8y5vrk40bj8c8hr-clang-wrapper-19.1.6/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/x25662zlrvzy1aavv8y5vrk40bj8c8hr-clang-wrapper-19.1.6/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- setting C++ standard to C++17
-- Found gflags from package config /nix/store/ak2wfq6d05jfw6vzppkv1dq7nzprydla-gflags-2.2.2/lib/cmake/gflags/gflags-config.cmake
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
�[33mCMake Warning (dev) at /nix/store/52baknjns6l6jfd4fj1imbq9n3qr79mf-cmake-3.31.3/share/cmake-3.31/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
  Policy CMP0167 is not set: The FindBoost module is removed.  Run "cmake
  --help-policy CMP0167" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

Call Stack (most recent call first):
  /nix/store/r6n6zq1fxqhx6inlw5ljyhn7dsjllb8z-folly-2025.01.06.00-dev/lib/cmake/folly/folly-config.cmake:59 (find_dependency)
  CMakeLists.txt:61 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.
�[0m
-- Found Boost: /nix/store/k9wrskx9n94fss5avld0inp21i6yhn8l-boost-1.87.0-dev/lib/cmake/Boost-1.87.0/BoostConfig.cmake (found suitable version "1.87.0", minimum required is "1.51.0") found components: context filesystem program_options regex system thread
-- Found folly: /nix/store/r6n6zq1fxqhx6inlw5ljyhn7dsjllb8z-folly-2025.01.06.00-dev
-- Found ZLIB: /nix/store/h6vk8rkl8yj17s8pw8d1yh7hg04d59s3-zlib-1.3.1/lib/libz.dylib (found version "1.3.1")
-- Found folly: /nix/store/r6n6zq1fxqhx6inlw5ljyhn7dsjllb8z-folly-2025.01.06.00-dev
-- Found Sodium: /nix/store/51hijr4di10lw7c39v6dra7pvhg0q5f1-libsodium-1.0.20/lib/libsodium.dylib
-- Found folly: /nix/store/r6n6zq1fxqhx6inlw5ljyhn7dsjllb8z-folly-2025.01.06.00-dev
-- Found fizz: /nix/store/1i9hllkp7ggd7g5j5bfsmbpdlhxx8pvl-fizz-2025.01.06.00-dev
�[33mCMake Warning (dev) at /nix/store/52baknjns6l6jfd4fj1imbq9n3qr79mf-cmake-3.31.3/share/cmake-3.31/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
  Policy CMP0167 is not set: The FindBoost module is removed.  Run "cmake
  --help-policy CMP0167" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

Call Stack (most recent call first):
  /nix/store/ybwgav0y1h3wr2wqicsrl41d9b0flrm9-mvfst-2025.01.06.00-dev/lib/cmake/mvfst/mvfst-config.cmake:47 (find_dependency)
  /nix/store/c4d1li6bh5bnjy4hy4rhi540790jrmvz-fbthrift-2025.01.06.00/lib/cmake/fbthrift/FBThriftConfig.cmake:57 (find_package)
  CMakeLists.txt:67 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.
�[0m
-- Found Boost: /nix/store/k9wrskx9n94fss5avld0inp21i6yhn8l-boost-1.87.0-dev/lib/cmake/Boost-1.87.0/BoostConfig.cmake (found version "1.87.0") found components: iostreams system thread filesystem regex context
-- Found mvfst: /nix/store/ybwgav0y1h3wr2wqicsrl41d9b0flrm9-mvfst-2025.01.06.00-dev
-- Found FBThrift: /nix/store/c4d1li6bh5bnjy4hy4rhi540790jrmvz-fbthrift-2025.01.06.00
-- Found fizz: /nix/store/1i9hllkp7ggd7g5j5bfsmbpdlhxx8pvl-fizz-2025.01.06.00-dev
-- Found wangle: /nix/store/4xkmh98qmnf2n813w7fwpwlvzdv6jh4c-wangle-2025.01.06.00
�[33mCMake Warning (dev) at build/fbcode_builder/CMake/FBPythonBinary.cmake:49 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  build/fbcode_builder/CMake/FBThriftPyLibrary.cmake:4 (include)
  build/fbcode_builder/CMake/FBThriftLibrary.cmake:4 (include)
  CMakeLists.txt:71 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.
�[0m
-- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) 
-- Configuring done (1.5s)
-- Generating done (0.0s)
�[33mCMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_TESTING
    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_INSTALL_BINDIR
    CMAKE_INSTALL_DOCDIR
    CMAKE_INSTALL_INCLUDEDIR
    CMAKE_INSTALL_INFODIR
    CMAKE_INSTALL_LIBDIR
    CMAKE_INSTALL_LIBEXECDIR
    CMAKE_INSTALL_LOCALEDIR
    CMAKE_INSTALL_MANDIR
    CMAKE_INSTALL_OLDINCLUDEDIR
    CMAKE_INSTALL_SBINDIR
    CMAKE_POLICY_DEFAULT_CMP0025

�[0m
-- Build files have been written to: /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build
cmake: enabled parallel building
cmake: enabled parallel installing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
build flags: -j10
[1/34] Generating gen-cpp2/fb303_core_constants.h, gen-cpp2/fb303_core_types.h, gen-cpp2/fb303_core_types.tcc, gen-cpp2/fb303_core_types_custom_protocol.h, gen-cpp2/fb303_core_metadata.h, gen-cpp2/BaseService.h, gen-cpp2/BaseService.tcc, gen-cpp2/BaseServiceAsyncClient.h, gen-cpp2/BaseService_custom_protocol.h, gen-cpp2/fb303_core_constants.cpp, gen-cpp2/fb303_core_data.h, gen-cpp2/fb303_core_data.cpp, gen-cpp2/fb303_core_types.cpp, gen-cpp2/fb303_core_metadata.cpp, gen-cpp2/BaseService.cpp, gen-cpp2/BaseServiceAsyncClient.cpp, gen-cpp2/BaseService_processmap_binary.cpp, gen-cpp2/BaseService_processmap_compact.cpp
FAILED: fb303/thrift/gen-cpp2/fb303_core_constants.h fb303/thrift/gen-cpp2/fb303_core_types.h fb303/thrift/gen-cpp2/fb303_core_types.tcc fb303/thrift/gen-cpp2/fb303_core_types_custom_protocol.h fb303/thrift/gen-cpp2/fb303_core_metadata.h fb303/thrift/gen-cpp2/BaseService.h fb303/thrift/gen-cpp2/BaseService.tcc fb303/thrift/gen-cpp2/BaseServiceAsyncClient.h fb303/thrift/gen-cpp2/BaseService_custom_protocol.h fb303/thrift/gen-cpp2/fb303_core_constants.cpp fb303/thrift/gen-cpp2/fb303_core_data.h fb303/thrift/gen-cpp2/fb303_core_data.cpp fb303/thrift/gen-cpp2/fb303_core_types.cpp fb303/thrift/gen-cpp2/fb303_core_metadata.cpp fb303/thrift/gen-cpp2/BaseService.cpp fb303/thrift/gen-cpp2/BaseServiceAsyncClient.cpp fb303/thrift/gen-cpp2/BaseService_processmap_binary.cpp fb303/thrift/gen-cpp2/BaseService_processmap_compact.cpp /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift/gen-cpp2/fb303_core_constants.h /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift/gen-cpp2/fb303_core_types.h /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift/gen-cpp2/fb303_core_types.tcc /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift/gen-cpp2/fb303_core_types_custom_protocol.h /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift/gen-cpp2/fb303_core_metadata.h /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift/gen-cpp2/BaseService.h /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift/gen-cpp2/BaseService.tcc /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift/gen-cpp2/BaseServiceAsyncClient.h /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift/gen-cpp2/BaseService_custom_protocol.h /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift/gen-cpp2/fb303_core_constants.cpp /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift/gen-cpp2/fb303_core_data.h /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift/gen-cpp2/fb303_core_data.cpp /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift/gen-cpp2/fb303_core_types.cpp /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift/gen-cpp2/fb303_core_metadata.cpp /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift/gen-cpp2/BaseService.cpp /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift/gen-cpp2/BaseServiceAsyncClient.cpp /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift/gen-cpp2/BaseService_processmap_binary.cpp /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift/gen-cpp2/BaseService_processmap_compact.cpp 
cd /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build && /nix/store/52baknjns6l6jfd4fj1imbq9n3qr79mf-cmake-3.31.3/bin/cmake -E make_directory /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift && /nix/store/c4d1li6bh5bnjy4hy4rhi540790jrmvz-fbthrift-2025.01.06.00/bin/thrift1 --legacy-strict --gen mstch_cpp2:include_prefix=fb303/thrift -I /tmp/nix-build-fb303-2025.01.06.00.drv-0/source -I /nix/store/c4d1li6bh5bnjy4hy4rhi540790jrmvz-fbthrift-2025.01.06.00/include -o /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/fb303/thrift/fb303_core.thrift
/bin/sh: line 1: 46315 Killed: 9               /nix/store/c4d1li6bh5bnjy4hy4rhi540790jrmvz-fbthrift-2025.01.06.00/bin/thrift1 --legacy-strict --gen mstch_cpp2:include_prefix=fb303/thrift -I /tmp/nix-build-fb303-2025.01.06.00.drv-0/source -I /nix/store/c4d1li6bh5bnjy4hy4rhi540790jrmvz-fbthrift-2025.01.06.00/include -o /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/build/fb303/thrift /tmp/nix-build-fb303-2025.01.06.00.drv-0/source/fb303/thrift/fb303_core.thrift
ninja: build stopped: subcommand failed.

@emilazy emilazy mentioned this pull request Jan 12, 2025
@mweinelt
Copy link
Member

mweinelt commented Jan 13, 2025

I've tried building my home-manager with commit e022056 config on darwin-aarch64

The build process received signal 9 (SIGKILL), so the machine probably ran out of memory.

Update: builds fine for me on aarch64-darwin.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/systemd-version-in-unstable-lower-than-stable/58739/6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.severity: security Issues which raise a security issue, or PRs that fix one 6.topic: dotnet Language: .NET 6.topic: emacs Text editor 6.topic: fetch 6.topic: golang 6.topic: haskell 6.topic: kernel The Linux kernel 6.topic: llvm/clang Issues related to llvmPackages, clangStdenv and related 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: nodejs 6.topic: nvidia 6.topic: python 6.topic: qt/kde 6.topic: rust 6.topic: stdenv Standard environment 6.topic: systemd 6.topic: TeX Issues regarding texlive and TeX in general 6.topic: vim 8.has: documentation This PR adds or changes documentation 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 5001+ 10.rebuild-linux: 5001+
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build failure: haskell.packages.ghc912.jailbreak-cabal