After installing necessary external dependencies from
packages.irods.org(and install with rpm -ivh *.rpm), I clone the irods4.2.11 source base from github and try to configure it with cmake. it reports error as following :
'''
-- Setting CLANG_STATIC_ANALYZER to 'OFF'.
-- The C compiler identification is Clang 6.0.1
-- The CXX compiler identification is Clang 6.0.1
-- Check for working C compiler: /opt/irods-externals/clang6.0-0/bin/clang
-- Check for working C compiler: /opt/irods-externals/clang6.0-0/bin/clang -- broken
CMake Error at /usr/local/share/cmake-3.12/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"/opt/irods-externals/clang6.0-0/bin/clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /root/docker-irods-master/irods_external/irods-4.2.11/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/gmake" "cmTC_0ceaf/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_0ceaf.dir/build.make CMakeFiles/cmTC_0ceaf.dir/build
gmake[1]: Entering directory `/root/docker-irods-master/irods_external/irods-4.2.11/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_0ceaf.dir/testCCompiler.c.o
/opt/irods-externals/clang6.0-0/bin/clang -o CMakeFiles/cmTC_0ceaf.dir/testCCompiler.c.o -c /root/docker-irods-master/irods_external/irods-4.2.11/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_0ceaf
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0ceaf.dir/link.txt --verbose=1
/opt/irods-externals/clang6.0-0/bin/clang -Wl,--export-dynamic -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z,defs CMakeFiles/cmTC_0ceaf.dir/testCCompiler.c.o -o cmTC_0ceaf
/usr/lib/gcc/x86_64-linux-gnu/4.8.5/../../../../x86_64-linux-gnu/bin/ld: cannot find -lgcc_s
clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [cmTC_0ceaf] Error 1
gmake[1]: Leaving directory `/root/docker-irods-master/irods_external/irods-4.2.11/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_0ceaf/fast] Error 2
'''
it seems like misconfiguration of clang but I cannot solve it and seek for help.
Any advice?
Thanks a lot