LadybirdBrowser / ladybird

Truly independent web browser
https://ladybird.org
BSD 2-Clause "Simplified" License
19.4k stars 785 forks source link

Build fails due to vcpkg #1162

Open ParthGuptaHL opened 3 weeks ago

ParthGuptaHL commented 3 weeks ago

I am trying to build the browser on Macbook Air M1 and during the build creation I'm facing this issue

error: building icu:arm64-osx failed with: BUILD_FAILED Elapsed time to handle icu:arm64-osx: 6.2 s Please ensure you're using the latest port files withgit pullandvcpkg update`. Then check for known issues at: https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+icu You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?title=[icu]+Build+error+on+arm64-osx&body=Copy+issue+body+from+%2FUsers%2Fklraex%2FDocuments%2Fladybird%2FBuild%2Fladybird%2Fvcpkg_installed%2Fvcpkg%2Fissue_body.md

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

I have tried everything that popped up on other issues as well as stack overflow etc. Nothing seems to work.

ParthGuptaHL commented 3 weeks ago

`CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message): Command failed: /bin/bash -c "V=1 ./../src/c-74_2-src-83138cd994.clean/source/configure \"--enable-tools\" \"--disable-samples\" \"--disable-tests\" \"--disable-layoutex\" \"--disable-silent-rules\" \"--verbose\" \"--disable-shared\" \"--enable-static\" \"--disable-debug\" \"--enable-release\" \"--prefix=/Users/klraex/Documents/ladybird/Build/ladybird/vcpkg_installed/arm64-osx\" \"--bindir=\${prefix}/tools/icu/bin\" \"--sbindir=\${prefix}/tools/icu/sbin\" \"--libdir=\${prefix}/lib\" \"--mandir=\${prefix}/share/icu\" \"--docdir=\${prefix}/share/icu\" \"--datarootdir=\${prefix}/share/icu\"" Working Directory: /Users/klraex/Documents/ladybird/Toolchain/Tarballs/vcpkg/buildtrees/icu/arm64-osx-rel Error code: 1 See logs for more information: /Users/klraex/Documents/ladybird/Toolchain/Tarballs/vcpkg/buildtrees/icu/config-arm64-osx-rel-config.log /Users/klraex/Documents/ladybird/Toolchain/Tarballs/vcpkg/buildtrees/icu/config-arm64-osx-rel-out.log /Users/klraex/Documents/ladybird/Toolchain/Tarballs/vcpkg/buildtrees/icu/config-arm64-osx-rel-err.log

Call Stack (most recent call first): scripts/cmake/vcpkg_configure_make.cmake:863 (vcpkg_execute_requiredprocess) buildtrees/versioning/versions/icu/a36199768fe1f9676b61d5d28ed9ac36c9f041c0/portfile.cmake:81 (vcpkg_configure_make) scripts/ports.cmake:191 (include)

`

additional log if it helps

circl-lastname commented 3 weeks ago

People may be able to help you faster on the Discord server, #build-problems channel

ADKaster commented 3 weeks ago

Make sure to look at these log files

/Users/klraex/Documents/ladybird/Toolchain/Tarballs/vcpkg/buildtrees/icu/config-arm64-osx-rel-config.log /Users/klraex/Documents/ladybird/Toolchain/Tarballs/vcpkg/buildtrees/icu/config-arm64-osx-rel-out.log /Users/klraex/Documents/ladybird/Toolchain/Tarballs/vcpkg/buildtrees/icu/config-arm64-osx-rel-err.log

Also make sure that all dependencies are installed. especially the autoconf-archive dependency.

And like circl mentioned, it's much easier to help on discord.

WesfunOfficial commented 2 weeks ago

Hi OP, I am running a device presumably similar to yours

I built ladybird on build ba36312 on my device using the following commands ' xcode-select --install brew install autoconf autoconf-archive automake ccache cmake ffmpeg nasm ninja pkg-config llvm qt '

Since all dependencies were installed (just to be sure and to have options) i ran these as normal

' git clone https://github.com/LadybirdBrowser/ladybird cd ladybird (since normally ladybird builds in your user directory, from my experience) ./Meta/ladybird.sh run ladybird '

Afterwards i was able to launch ladybird with no issue, did you use clang or the .sh script?