Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    create_rts fails with error message "ld: cannot find -lgcc"

     

    • Product: Aleph
    • Product Version: 20, 21, 22, 23
    • Relevant for Installation Type: Dedicated-Direct, Direct, Local, Total Care

     

    Problem Symptoms:
    (1)
    When one enters the command "create_rts" as the UNIX user who owns the Ex Libris software (aleph or dtl or metalib) the following error message appears:
    -------------------------------------------------------
    $ create_rts
    create rts
    ld: cannot find -lgcc
    mv: cannot stat `/exlibris/metalib/m4_1/aleph/exe/rts32x': No such file or directory

    -------------------------------------------------------

    (2)
    The error messages above can also appear when one executes the compilation test script $alephm_scratch/test_compile (Aleph, MetaLib) respectively $dtlm_scratch/test_compile (DigiTool) because that script includes the command "create_rts".

    Cause:
    The file /exlibris/product/cobol5/etc/cobopt which belongs to the COBOL environment Micro Focus Server Express specifies an incorrect path to the libraries of the compiler gcc, e.g.:
    set GCC_LIB=/usr/lib/gcc/x86_64-redhat-linux/4.1.1/32

    The correct path is the following:
    set GCC_LIB=/usr/lib/gcc/x86_64-redhat-linux/4.4.4/32

    Resolution:
    (1)
    Edit the file /exlibris/product/cobol5/etc/cobopt and specify the correct path to the libraries of the compiler gcc:
    set GCC_LIB=/usr/lib/gcc/x86_64-redhat-linux/4.4.4/32

    (2)
    Enter the command "create_rts" and verify that it creates the run-time system of the COBOL environment correctly:
    $ create_rts
    create rts
    $ echo $?
    0
    $ ls -l $aleph_exe/rts32
    -rwxrwxr-x 1 metalib exlibris 2301400 Jul 4 02:26 /exlibris/metalib/m4_1/aleph/exe/rts32

     

     


    • Article last edited: 02-Mar-2016
    • Was this article helpful?