Detecting C compiler ABI info – failed – while running dockerfile based on alpine image

  c#, cmake, docker

I’m a junior developer and a beginner in Linux. I was trying to dockerize a c++ application that uses gRPC and while I was building the dockerfile it’s failing showing the following errors –

-- The C compiler identification is GNU 10.3.1
-- The CXX compiler identification is GNU 10.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:66 (message):
  The C compiler

    "/usr/bin/cc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /vprrpc/grpc/cmake/build/CMakeFiles/CMakeTmp

    Run Build Command(s):/usr/bin/make -f Makefile cmTC_d1808/fast && /usr/bin/make  -f CMakeFiles/cmTC_d1808.dir/build.make CMakeFiles/cmTC_d1808.dir/build
    make: /usr/bin/make: Operation not permitted
    make: *** [Makefile:127: cmTC_d1808/fast] Error 127





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:38 (project)


-- Configuring incomplete, errors occurred!

The base image of my dockerfile is alpine. And I followed the instructions given here https://chromium.googlesource.com/external/github.com/grpc/grpc/+/HEAD/BUILDING.md to install gRPC in the container. ‘vprrpc’ is the WORKDIR in my dockerfile. Could someone help me figure out what I’m missing? Thanks in advance 🙂

Source: Docker Questions

LEAVE A COMMENT