supranational / blst

Multilingual BLS12-381 signature library
Apache License 2.0
467 stars 177 forks source link

SIGILL Debugging Tips #130

Closed patrick-ogrady closed 2 years ago

patrick-ogrady commented 2 years ago

Even when running with CGO_CFLAGS="-O -D__BLST_PORTABLE__" and CGO_CFLAGS_ALLOW="-O -D__BLST_PORTABLE__", a repo using blst exits with the following on the macos-11 and macos-12 github actions:

ld: warning: could not create compact unwind for _blst_sha256_block_data_order: does not use RBP or RSP based frame
Caught SIGILL in blst_cgo_init, consult <blst>/bindinds/go/README.md.

Do you have any tips to help debug what may be going wrong? I already tried running https://github.com/supranational/blst/commit/3900e30a092a4a9432fc37909ab37633e5e81fec just in case that was related but no dice.

patrick-ogrady commented 2 years ago

This was user error on my part. I didn't properly set those ENVs during the run.