anyproto / anytype-heart

Shared library for Anytype clients

Home Page:https://anytype.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot build project on Void Linux

blacklightpy opened this issue · comments

Have you read a contributing guide?

  • I have read CONTRIBUTING.md
  • I have searched the existing issues and didn't find any that were similar
  • 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.

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.

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

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

Hello, any updates?

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