You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xrepo install protoc
note: install or modify (m) these packages (pass -y to skip confirm)?in xmake-repo:
-> protoc 3.8.0
please input: y (y/n/m)
y
=> download https://github.com/protocolbuffers/protobuf/releases/download/v3.8.0/protoc-3.8.0-osx-x86_32.zip .. ok
=> install protoc 3.8.0 .. failed
cannot runv(protoc test.proto --cpp_out=.), Bad CPU typein executable
if you want to get more verbose errors, please see:
-> /Users/gzcao/.xmake/cache/packages/2411/p/protoc/3.8.0/installdir.failed/logs/install.txt
error: install failed!
error: execv(/Users/user/.local/bin/xmake require -j 10 --extra={system=false} protoc) failed(255)
Arguably because back when protoc is added to xmake-repo, arm chip for macos is not yet out.
Also protoc is, while compatible, too old compared to newest protobuf-c++ version.
I can start a pull request if is as simple as updating packages/p/protoc/xmake.lua. But i noticed there was a pull request aiming to update the file but finally was closed: #2549. Wonder what happened.
Expected Behavior
xrepo install protoc should successfully install
Project Configuration
i have this in my root xmake.lua
-- for protobufadd_requires("protobuf-cpp")
add_packages("protobuf-cpp")
-- for protocadd_requires("protoc")
add_packages("protoc")
Additional Information and Error Logs
it is include above.
The text was updated successfully, but these errors were encountered:
i tried with xmake b -v my_proto, and it looks like protobuf-cpp ships with an internal protoc that matches the proto lib version. The error I had compling it before was likely because i did not do a full xmake clean.
Now that i dont have problem, feel free close this issue. Or i can proceed with updating protoc if this is needed somehow?
Xmake Version
v2.9.6
Operating System Version and Architecture
Apple M2 macos 14.5 (23F79)
Describe Bug
Arguably because back when protoc is added to xmake-repo, arm chip for macos is not yet out.
Also protoc is, while compatible, too old compared to newest protobuf-c++ version.
I can start a pull request if is as simple as updating
packages/p/protoc/xmake.lua
. But i noticed there was a pull request aiming to update the file but finally was closed: #2549. Wonder what happened.Expected Behavior
xrepo install protoc should successfully install
Project Configuration
i have this in my root xmake.lua
Additional Information and Error Logs
it is include above.
The text was updated successfully, but these errors were encountered: