scipr-lab / libsnark

C++ library for zkSNARKs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

''Floating point overflow (core dumped)'' due to the recent update of xbyak

LBruyne opened this issue · comments

commented

Recently, downloading and running this repository has resulted in a 'Floating point overflow (core dumped)' error due to an update in the dependency 'xbyak'.

commented

My solution:
First, run git submodule update --init --recursive to fetch and update the dependencies.
Next, proceed with the following modification:

  • Find xbyak_util.h in the submodule xbyak,
  • Do the following 3 modification:
    • In line 99,
      image
    • In line 107,
      image
    • In line 128,
      image
      The code here is:
        unsigned int nb_logical_cores = extractBit(data[0], 14, 25) + 1;
        if (n_cores != 0) // true only if leaf 0xB is supported and valid
            nb_logical_cores = (std::min)(nb_logical_cores, n_cores);
        assert(nb_logical_cores != 0);