google / atheris

Apache License 2.0
1.38k stars 111 forks source link

Issue in installing package atheris-libprotobuf-mutator on python base image #75

Open pret-nitish opened 10 months ago

pret-nitish commented 10 months ago

Hi Team ,

We are trying to install atheris-libprotobuf-mutator package on python base image. but we are getting issue's while installing the same. we have already installed atheris and bazel packages.

Command :- pip3 install atheris-libprotobuf-mutator

Below is the error:- [184 / 197] Compiling src/google/protobuf/descriptor.cc; 10s processwrapper-sandbox ... (12 actions running)

0 38.09 [190 / 197] Compiling src/google/protobuf/descriptor.cc; 11s processwrapper-sandbox ... (6 actions running)

0 38.49 ERROR: /root/.cache/bazel/_bazel_root/6bd533e1255e6b9a4a9b8d4c9dccd8c0/external/com_google_pybind11_protobuf/pybind11_protobuf/BUILD:45:15: Compiling pybind11_protobuf/native_proto_caster.cc failed: (Exit 1): gcc failed: error executing command (from target @com_google_pybind11_protobuf//pybind11_protobuf:native_proto_caster) /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 60 arguments skipped)

subprocess.CalledProcessError: Command '['/usr/bin/bazel', 'build', '--define', "PYTHON_BIN_PATH='/usr/local/bin/python'", '-c', 'opt', '--cxxopt=-std=c++17', '//:_mutator.so']' returned non-zero exit status 1.

0 38.70 error: subprocess-exited-with-error

0 38.70

0 38.70 × Building wheel for atheris-libprotobuf-mutator (pyproject.toml) did not run successfully.

0 38.70 │ exit code: 1

0 38.70 ╰─> See above for output.

0 38.71 ERROR: Could not build wheels for atheris-libprotobuf-mutator, which is required to install pyproject.toml-based projects