ladybird icon indicating copy to clipboard operation
ladybird copied to clipboard

[MacOS Sequioa 15.0.1 M1 Pro] Build fails when building fontconfig

Open nikolalukovic opened this issue 4 months ago • 3 comments

Both

CC=$(brew --prefix llvm)/bin/clang CXX=$(brew --prefix llvm)/bin/clang++ ./Meta/ladybird.sh run ladybird

and

./Meta/ladybird.sh run ladybird

fail with the same error:

CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: /opt/homebrew/bin/ninja install -v
    Working Directory: /Users/nikola/src/ladybird/Toolchain/Tarballs/vcpkg/buildtrees/fontconfig/arm64-osx-rel
    Error code: 1
    See logs for more information:
      /Users/nikola/src/ladybird/Toolchain/Tarballs/vcpkg/buildtrees/fontconfig/package-arm64-osx-rel-out.log

Call Stack (most recent call first):
  /Users/nikola/src/ladybird/Build/ladybird/vcpkg_installed/arm64-osx/share/vcpkg-tool-meson/vcpkg_install_meson.cmake:33 (vcpkg_execute_required_process)
  buildtrees/versioning_/versions/fontconfig/de73339d579963e68fed652ed2e206b307a0c03f/portfile.cmake:40 (vcpkg_install_meson)
  scripts/ports.cmake:192 (include)


error: building fontconfig:arm64-osx failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle fontconfig:arm64-osx: 7 s
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+fontconfig
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[fontconfig]+Build+error+on+arm64-osx&body=Copy+issue+body+from+%2FUsers%2Fnikola%2Fsrc%2Fladybird%2FBuild%2Fladybird%2Fvcpkg_installed%2Fvcpkg%2Fissue_body.md

-- Running vcpkg install - failed
CMake Error at Toolchain/Tarballs/vcpkg/scripts/buildsystems/vcpkg.cmake:904 (message):
  vcpkg install failed.  See logs for more information:
  /Users/nikola/src/ladybird/Build/ladybird/vcpkg-manifest-install.log
Call Stack (most recent call first):
  /opt/homebrew/Cellar/cmake/3.30.5/share/cmake/Modules/CMakeDetermineSystem.cmake:146 (include)
  CMakeLists.txt:15 (project)


CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
-- Configuring incomplete, errors occurred!

The log from: /Users/nikola/src/ladybird/Toolchain/Tarballs/vcpkg/buildtrees/fontconfig/package-arm64-osx-rel-out.log is attached as log.txt. It complains about Undefined symbols for architecture arm64 for:

  • fc-list/fc-list
  • fc-cache/fc-cache
  • fc-cat/fc-cat
  • fc-pattern/fc-pattern
  • fc-scan/fc-scan
  • fc-validate/fc-validate
  • fc-query/fc-query
  • fc-match/fc-match
  • fc-conflist/fc-conflist

I'm not sure if I should create an issue in vcpkg repo instead?

log.txt

nikolalukovic avatar Oct 10 '24 10:10 nikolalukovic