herumi / bls-go-binary

22 stars 22 forks source link

link error #13

Closed herumi closed 2 years ago

herumi commented 2 years ago

https://github.com/herumi/bls-go-binary/runs/8104958735?check_suite_focus=true#step:3:20

FAIL    github.com/herumi/bls-go-binary/bls [build failed]
fp.cpp:(.text+0x1e5b): undefined reference to `std::__throw_bad_array_new_length()'

This error does not happen on my local environment (Ubuntu 22.04.1 LTS).

herumi commented 2 years ago

https://bugs.launchpad.net/votca/+bug/1956898

herumi commented 2 years ago

strings bls/lib/linux/amd64/libbls384_256.a | grep __throw_bad_array_new_length _ZSt28__throw_bad_array_new_lengthv

herumi commented 2 years ago

I tried

env CGO_CPPFLAGS="-D_GLIBCXX_USECXX11_ABI=0" go test -v ./bls

on GitHub Action, but it was not effected.

herumi commented 2 years ago

I build a static library on an old Ubuntu, then it does not contain _ZSt28__throw_bad_array_new_lengthv and the test runs. https://github.com/herumi/bls-go-binary/actions/runs/2961050306

herumi commented 2 years ago

https://github.com/gcc-mirror/gcc/commit/f92a504fdd943527687faf9557e0b39ff7fe6125