Menu

GnuCobol Debian Packages both Clang-LLVM , gcc

Anonymous
2021-05-20
2023-02-19
  • Anonymous

    Anonymous - 2021-05-20

    Install GnuCobol 3.1.2 build with gcc 9.3.0

    Download the attached files
    a) gcc_gnucobol.sh (script for installation)
    b) gnucobol_3.1.2-1_amd64.deb

    sudo chmod 755  gcc_gnucobol.sh
    sudo .clang_gnucobol.sh /deb_file_folder/
    

    Example:

    mint@mint:~/Downloads$ sudo chmod 755 gcc_gnucobol.sh
    mint@mint:~/Downloads$ sudo ./gcc_gnucobol.sh /home/mint/Downloads/
    

    Install GnuCobol 3.1.2 build with Clang LlVM 10.0.0

    Download the attached files
    a) clang_gnucobol.sh
    b) gnucobol_3.1.2-1_amd64_clang_10.deb

    sudo chmod 755 clang_gnucobol.sh
    sudo .clang_gnucobol.sh /deb_file_folder/

    Example:
    ~~~
    mint@mint:~/Downloads$ sudo chmod 755 clang_gnucobol.sh
    mint@mint:~/Downloads$ sudo ./clang_gnucobol.sh /home/mint/Downloads/

     
    • Simon Sobisch

      Simon Sobisch - 2021-05-20

      That's an interesting approach.

      I'm quite sure that the following works:

      -echo "Install GnuCobol Depedencies"
      +echo "Install GnuCOBOL runtime depedencies for the .deb package"
      
      -sudo apt install -y libgmp-dev libncurses-dev libdb-dev libxml2-dev libjson-c-dev
      +sudo apt install -y libgmp-dev libncurses libdb libxml2 libjson-c
      
      -echo "Install GnuCobol 3.1.2 Clang 10.0.0"
      +echo "Install GnuCOBOL 3.1.2 Clang 10.0.0 deb package"
      

      I guess that for clang many packages depend on another and therefore may be removed, but I don't know.

       
  • Nikos

    Nikos - 2021-05-20

    I've tested both with a live mint 20.04 cinnamon before submitting and worked very well.

     
    • Simon Sobisch

      Simon Sobisch - 2021-05-20

      I assumed so, the point was only that you likely don't need all those packages at run-time, either because they are not used when GnuCOBOL is build (like the -dev I've mentioned) or because you don't need them at all for GnuCOBOL (like clang-format) or because they are included in one of the other packages and will be auto-added by apt.

       
      • Nikos

        Nikos - 2021-05-20

        I follow the instructions on the LLVM site and I don't know the packages needed for a successful build.
        Maybe you can update the apt-get for the Clang-LLVM and remove those not needed.

         
  • Nikos

    Nikos - 2021-05-20

    This is an updated version off the gcc_gnucobol.sh
    I have corrected the "essentials" to "essential" at line 47.

     
  • Nikos

    Nikos - 2021-05-20

    Benchmarks .

     

    Last edit: Nikos 2021-05-20
    • Simon Sobisch

      Simon Sobisch - 2023-02-19

      For real benchmarking on a recent machine you likely want to either extend the data file to contain 200 million records or execute the code 20 times. I'd suggest:

              Procedure Division.
      +        MorePerf.
      +           Perform Mainline 20 TIMES. GoBack.
               Mainline.
      

      and

      -           STOP RUN
      

      Otherwise it is just too fast to be good for comparison.
      When running on GNU/Linux it is commonly better to neither use bash builtin time, nor the time binary, but perf stat -e instructions instead.

      @ikonomn: Would you mind creating newer Mint packages? We currently are on 3.2-rc2 and should get the final release next week.

       

Anonymous
Anonymous

Add attachments
Cancel