xmake-io / xmake-repo

📦 An official xmake package repository
https://xrepo.xmake.io
Apache License 2.0
690 stars 405 forks source link

build faild with xmake_protobuf_grpc_cpp_plugin exemple #5798

Open xBLACKICEx opened 18 hours ago

xBLACKICEx commented 18 hours ago

Xmake Version

2.9.6+20241105

Operating System Version and Architecture

windows, ubuntu

Describe Bug

I'm trying to taste the project to compile grpc but it fails to compile, the example is from is hrere : https://github.com/xmake-io/xmake/blob/dev/tests/projects/c++/protobuf_grpc_cpp_plugin

Expected Behavior

Dependencies need to be compiled successfully.

Project Configuration

add_rules("mode.debug", "mode.release")
add_requires("protobuf-cpp")
add_requires("grpc", {system = false})

target("test")
    set_kind("binary")
    set_languages("c++17")
    add_packages("protobuf-cpp")
    add_packages("grpc")
    add_rules("protobuf.cpp")
    add_files("src/*.cpp")
    add_files("src/test.proto", {proto_rootdir = "src", proto_grpc_cpp_plugin = true})
    add_files("src/subdir/test2.proto", {proto_rootdir = "src"})

Additional Information and Error Logs

for c-ares the link: https://c-ares.org/download/$(version).tar.gz The reason should be that c-real doesn't have a page like this anymore. img

But the xmake-repo source code to build c-ares still takes a care

for nasm is the mirror repo is not updates yet ? https://github.com/xmake-mirror/nasm/releases for v2.16.03 ?

https://github.com/xmake-io/xmake-repo/blob/dev/packages/n/nasm/xmake.lua#L11C23-L11C68

build log on ubuntu xmake - build log.txt

qudix commented 16 hours ago

In your screenshot it seems it used the fallback urls for c-ares and nasm just fine? It's ok if one of them fails as long as it tries a different one and builds and installs successfully (the broken urls can be fixed later). Of course I can't say for sure with the full logs cut off.

waruqi commented 13 hours ago

upb link is missing, please provide full logs with -vD.

or you can debug grpc package, https://github.com/xmake-io/xmake-repo/blob/fe18a6cedc7e530c290e8c31db68eddbc87c120e/packages/g/grpc/xmake.lua#L34

xBLACKICEx commented 2 hours ago

xmake -vD_ubuntu_log.txt xmake -vD_windows_log.txt

@waruqi here the log with -vD