You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I build atheris by pip install ., some errors occur:
Error Information
➜ atheris git:(master) pip install .
Looking in indexes: http://mirrors.aliyun.com/pypi/simple
Processing /root/autodl-tmp/atheris
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: atheris
Building wheel for atheris (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for atheris (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [88 lines of output]
......
src/native/counters.cc:26:41: error: unknown type name 'uint8_t'
26 | void __sanitizer_cov_8bit_counters_init(uint8_t* start, uint8_t* stop);
| ^
src/native/counters.cc:26:57: error: unknown type name 'uint8_t'
26 | void __sanitizer_cov_8bit_counters_init(uint8_t* start, uint8_t* stop);
| ^
src/native/counters.cc:27:31: error: unknown type name 'uint8_t'
27 | void __sanitizer_cov_pcs_init(uint8_t* pcs_beg, uint8_t* pcs_end);
| ^
src/native/counters.cc:27:49: error: unknown type name 'uint8_t'
27 | void __sanitizer_cov_pcs_init(uint8_t* pcs_beg, uint8_t* pcs_end);
| ^
src/native/counters.cc:134:30: error: unknown type name 'uint8_t'
134 | reinterpret_cast<uint8_t*>(pctable + counter_index_registered),
| ^
src/native/counters.cc:135:41: error: unknown type name 'uint8_t'
135 | .pctable_end = reinterpret_cast<uint8_t*>(pctable + next_index)};
| ^
src/native/counters.cc:134:40: error: cannot initialize a member subobject of type 'unsigned char *' with an rvalue of type 'PCTableEntry '
134 | reinterpret_cast<uint8_t>(pctable + counter_index_registered),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/native/counters.cc:135:51: error: cannot initialize a member subobject of type 'unsigned char *' with an rvalue of type 'PCTableEntry '
135 | .pctable_end = reinterpret_cast<uint8_t>(pctable + next_index)};
| ^~~~~~~~~~~~~~~~~~~~
8 errors generated.
error: command '/root/autodl-tmp/install/llvm/installed/llvm-git/bin/clang++' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for atheris
Failed to build atheris
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (atheris)
Adding #include <cstdint> in the src/native/counters.h can solve this problem.
Since I use a self-built llvm compiler and install it into a specified location under and the environment is a docker container, this might be a system question, not atheris itself. Feel free to close this issue if it's inappropriate for asking.
When I build atheris by
pip install .
, some errors occur:Error Information
Adding
#include <cstdint>
in thesrc/native/counters.h
can solve this problem.Since I use a self-built llvm compiler and install it into a specified location under and the environment is a docker container, this might be a system question, not atheris itself. Feel free to close this issue if it's inappropriate for asking.
The text was updated successfully, but these errors were encountered: