-
-
Notifications
You must be signed in to change notification settings - Fork 665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
blst error - question about development build #882
Comments
Hi, sorry, we do not have this build problem, neither in the manual build nor in the docker build. What version of go are you using? As it seems related to Avalanche dependencies, maybe @kaladinlight will have an idea. |
Hi @martinboehm , thanks for coming back to me. |
i got same issue on several diffrent configurations ... what i noticed ... i dont have that problem when CPU is AMD...
|
Interesting, I have not had any issues with the manual build or docker build either. Did you update your version of rocksdb to v7.7.2 as well? Also to clarify, you are seeing this error when running blockbook correct? I would think the blst flags would be for running blockbook, not rocksdb build. The only other thing I saw when googling was a secondary flag: |
I have an i7 and not seeing any issues. I am using |
hi @kaladinlight, thanks for the hints.
@XK4MiLX's finding is interesting. There are some comments about architecture at the bottom of the page I haven't tried yet. |
I would be curious about building and testing the blst go binding directly to reduce the scope of the problem a bit. https://github.com/supranational/blst/tree/master/bindings/go. According to https://github.com/supranational/blst#platform-and-language-compatibility it appears to have extensive os/platform support... [~/github/blst] (master) $ ./build.sh
+ cc -O2 -fno-builtin -fPIC -Wall -Wextra -Werror -D__ADX__ -mno-avx -c ./src/server.c
+ cc -O2 -fno-builtin -fPIC -Wall -Wextra -Werror -D__ADX__ -mno-avx -c ./build/assembly.S
+ ar rc libblst.a assembly.o server.o
[~/github/blst] (master) $ cd bindings/go/
[~/github/blst/bindings/go] (master) $ go build
[~/github/blst/bindings/go] (master) $ go test
PASS
ok github.com/supranational/blst/bindings/go 2.037s worst case scenario if we are unable to resolve this issue and it appears common enough, I can rip out the |
i found something ;) |
Nice find! Confirmation on my side that my cpu does have ADX support. |
Wouldn't it be beneficial in any case? I would like to get rid of unnecessary dependencies. While I can build Blockbook on my Mac, I get these warnings, which also come from Avalanche dependencies
|
Yeah that would be the idea @martinboehm. I will go ahead and get a PR up to resolve this and reduce the dependency tree. |
@GBBx @XK4MiLX Hi, can you try to build and run a new version from master? Thanks to a quick change by @kaladinlight, we were able to remove the blst dependecies from Blockbook. |
i tested that fix on my fork working fine :) but yes i can test master ;) on sec
|
Hi,
I've been using Blockbook for a long time.
I used to be able to follow the manual build steps but I run into an issue since I updated to 0.4.0.
When I start blockbook I get this error message:
I found this discussion. They suggest to add
CGO_CFLAGS=-O -D__BLST_PORTABLE__
, so I tried this:when building rocksdb but it did not solve the issue.
I also tried to set
CGO_CFLAGS="-O -D__BLST_PORTABLE__" make release
globally but that failed, too.I undertand
blst
is a dependency of a dependency of Blockbook but are you maybe familiar with this problem?The text was updated successfully, but these errors were encountered: