anytype-heart icon indicating copy to clipboard operation
anytype-heart copied to clipboard

Cannot build project on Void Linux

Open blacklightpy opened this issue 1 year ago • 5 comments

Have you read a contributing guide?

  • [X] I have read CONTRIBUTING.md
  • [X] I have searched the existing issues and didn't find any that were similar
  • [X] I have considered creating a pull request with fixes instead of a bug report and want to proceed

Current Behavior

Cannot install custom protoc to build anytype-heart.

Build error log

Part 1: https://pastebin.com/6rzdV3Sq Part 2: https://pastebin.com/JKaxEGp4 Part 3: https://pastebin.com/5RKESGAH

Expected Behavior

Custom protoc builds.

Steps To Reproduce

$ cd anytype-heart $ make setup-protoc

Environment

- System: Void Linux GNU/Linux (musl libc)
- System C Library: musl libc (same as the one used in Alpine Linux)
- CPU Architecture: x86_64
- Packages installed: `go`, `protobuf`, `protobuf-devel`, `libprotoc-devel`

Anything else?

I had opened a discussion here: https://github.com/orgs/anyproto/discussions/116

I am unable to run the AppImage on Void Linux as it still calls for some glibc shared libraries. Please consider making a static or fully bundled AppImage build (I think it is now possible) or just make a Flatpak release. The latter would be better for discoverability.

blacklightpy avatar Jan 02 '24 10:01 blacklightpy

Hello, there is an error in the log that says you need to update CPP compiler: "Protobuf only supports C++14 and newer.", so you can try this in the first place, and second option is to update anytype-heart with ./update.sh ubuntu-latest amd.

ra3orblade avatar Jan 02 '24 11:01 ra3orblade

git apply ./clientlibrary/jsaddon/grpcweb_mac.patch
make[1]: Entering directory '/home/jyothish/anytype-heart/deps/grpc-web'
cd "/home/jyothish/anytype-heart/deps/grpc-web"/javascript/net/grpc/web/generator && make
make[2]: Entering directory '/home/jyothish/anytype-heart/deps/grpc-web/javascript/net/grpc/web/generator'
g++ -std=c++11 -I/usr/local/include -I/opt/homebrew/include -pthread  -c -o grpc_generator.o grpc_generator.cc

I see make applying -std=c++11 here.. and this is apparently from the Makefile here

blacklightpy avatar Jan 02 '24 11:01 blacklightpy

I've transferred this issue to anytype-heart, collegues will check after holidays.

ra3orblade avatar Jan 02 '24 12:01 ra3orblade

Hello, any updates?

blacklightpy avatar Mar 21 '24 00:03 blacklightpy

I have the same issue with -std=c++11 in the script

Tumypmyp avatar Apr 05 '24 17:04 Tumypmyp