irods version4.2.11 failed building from source

25 views
Skip to first unread message

yuren wang

unread,
May 16, 2022, 1:22:03 AM5/16/22
to iRODS-Chat
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

Terrell Russell

unread,
May 16, 2022, 8:25:34 AM5/16/22
to irod...@googlegroups.com
The clang toolchain still uses gcc for its test programs.

>     /usr/lib/gcc/x86_64-linux-gnu/4.8.5/../../../../x86_64-linux-gnu/bin/ld: cannot find -lgcc_s

You need to install it as well.

Terrell



--
--
The Integrated Rule-Oriented Data System (iRODS) - https://irods.org
 
iROD-Chat: http://groups.google.com/group/iROD-Chat
---
You received this message because you are subscribed to the Google Groups "iRODS-Chat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to irod-chat+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/irod-chat/49321d54-facc-475c-8805-3c759350ae28n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages