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

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

Open
nikolalukovic opened this issue Oct 10, 2024 · 3 comments
Open

Comments

@nikolalukovic
Copy link

nikolalukovic commented Oct 10, 2024

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

@ADKaster
Copy link
Member

The build log you posted is about libpng. There was some issue with libpng a while ago. What ladybird commit and vcpkg commit are you pulling from? We clone vcpkg into Toolchain/Tarballs/vcpkg from Toolchain/BuildVcpkg.sh

@nikolalukovic
Copy link
Author

Ladybird commit: d6a8fc00c3435bd9b4e61edeb364dec5c1bf65ea
vcpkg commit: 2960d7d80e8d09c84ae8abf15c12196c2ca7d39a

@ChaseKnowlden
Copy link
Contributor

Doesn't fail for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants