Announcement

Collapse
No announcement yet.

SystemC Libraries Issue

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    SystemC Libraries Issue

    Folks Im having issues using SystemC libaries in Kubuntu. I tried both last versions 2.2 and 2.1 with both gcc 3.4 and 4.1 with no luck. Last GCC and SystemC lib guve the following error:
    Code:
    make[5]: Nothing to be done for `install-exec-am'.                    
    /bin/bash ../../../../config/mkinstalldirs .                       
    for file in in_imag in_imag.1 in_imag.2 in_imag.3 in_imag.4 in_real in_real.1 in_real.2 in_real.3 in_real.4 out_imag.1.golden out_imag.2.golden out_imag.3.golden out_imag.4.golden out_real.1.golden out_real.2.golden out_real.3.golden out_real.4.golden fft.cpp main.cpp sink.cpp source.cpp fft.h sink.h source.h; do \                    
            /usr/bin/install -c -m 644 ./$file ./$file; \              
        done                                       
    /usr/bin/install: cannot stat `./in_imag': No such file or directory           
    /usr/bin/install: cannot stat `./in_imag.1': No such file or directory          
    /usr/bin/install: cannot stat `./in_imag.2': No such file or directory          
    /usr/bin/install: cannot stat `./in_imag.3': No such file or directory          
    /usr/bin/install: cannot stat `./in_imag.4': No such file or directory          
    /usr/bin/install: cannot stat `./in_real': No such file or directory           
    /usr/bin/install: cannot stat `./in_real.1': No such file or directory          
    /usr/bin/install: cannot stat `./in_real.2': No such file or directory          
    /usr/bin/install: cannot stat `./in_real.3': No such file or directory          
    /usr/bin/install: cannot stat `./in_real.4': No such file or directory
    /usr/bin/install: cannot stat `./out_imag.1.golden': No such file or directory
    /usr/bin/install: cannot stat `./out_imag.2.golden': No such file or directory
    /usr/bin/install: cannot stat `./out_imag.3.golden': No such file or directory
    /usr/bin/install: cannot stat `./out_imag.4.golden': No such file or directory
    /usr/bin/install: cannot stat `./out_real.1.golden': No such file or directory
    /usr/bin/install: cannot stat `./out_real.2.golden': No such file or directory
    /usr/bin/install: cannot stat `./out_real.3.golden': No such file or directory
    /usr/bin/install: cannot stat `./out_real.4.golden': No such file or directory
    /usr/bin/install: cannot stat `./fft.cpp': No such file or directory
    /usr/bin/install: cannot stat `./main.cpp': No such file or directory
    /usr/bin/install: cannot stat `./sink.cpp': No such file or directory
    /usr/bin/install: cannot stat `./source.cpp': No such file or directory
    /usr/bin/install: cannot stat `./fft.h': No such file or directory
    /usr/bin/install: cannot stat `./sink.h': No such file or directory
    /usr/bin/install: cannot stat `./source.h': No such file or directory
    make[5]: *** [install-data-local] Error 1
    make[5]: Leaving directory `/home/vfbsilva/Desktop/systemc-2.2.0/examples/sysc/fft/fft_flpt'
    make[4]: *** [install-am] Error 2
    make[4]: Leaving directory `/home/vfbsilva/Desktop/systemc-2.2.0/examples/sysc/fft/fft_flpt'
    make[3]: *** [install-recursive] Error 1
    make[3]: Leaving directory `/home/vfbsilva/Desktop/systemc-2.2.0/examples/sysc/fft'
    make[2]: *** [install-recursive] Error 1
    make[2]: Leaving directory `/home/vfbsilva/Desktop/systemc-2.2.0/examples/sysc'
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/home/vfbsilva/Desktop/systemc-2.2.0/examples'
    make: *** [install-recursive] Error 1
    Downgrade gcc is listed as not supported:
    Code:
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    /home/vfbsilva/Desktop/systemc-2.2.0/config/missing: Unknown `--run' option
    Try `/home/vfbsilva/Desktop/systemc-2.2.0/config/missing --help' for more information
    configure: WARNING: `missing' script is too old or missing
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc-3.4
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc-3.4 accepts -g... yes
    checking for gcc-3.4 option to accept ANSI C... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc-3.4... gcc3
    checking whether we are using the GNU C++ compiler... no
    checking whether gcc-3.4 accepts -g... no
    checking dependency style of gcc-3.4... gcc3
    checking for ranlib... ranlib
    checking for a BSD-compatible install... /usr/bin/install -c
    configure: error: "sorry...compiler not supported"
    Any ideas about what can I do?



    #2
    Re: SystemC Libraries Issue

    At a guess I would say you need to install a c++ compiler.

    Comment


      #3
      Re: SystemC Libraries Issue

      Originally posted by mando_hacker
      At a guess I would say you need to install a c++ compiler.
      g++ is present on the system. I patched the files with
      Code:
      From 7f39d391e9d22d37e5bb3d1a4764565327c311bd Mon Sep 17 00:00:00 2001
      From: Philipp A. Hartmann <philipp.hartmann@xxxxxxxx>
      Date: Tue, 11 Nov 2008 12:32:01 +0100
      Subject: [PATCH] missing system headers, function qualification
      
      ---
       src/sysc/utils/sc_utils_ids.cpp |  10 +++++++++-
       1 files changed, 9 insertions(+), 1 deletions(-)
      
      diff --git a/src/sysc/utils/sc_utils_ids.cpp b/src/sysc/utils/sc_utils_ids.cpp
      index ec64b47..cb90c2b 100644
      --- a/src/sysc/utils/sc_utils_ids.cpp
      +++ b/src/sysc/utils/sc_utils_ids.cpp
      @@ -96,6 +96,14 @@ static sc_msg_def texts&#91;] = {
       
       #undef SC_DEFINE_MESSAGE
       };
      +
      +} // namespace sc_core
      +
      +#include <cstdlib> // std::gentenv()
      +#include <cstring> // std::strcmp()
      +
      +namespace sc_core {
      +
       static sc_report_handler::msg_def_items items = {
         texts, sizeof(texts)/sizeof(*texts), false, 0
       };
      @@ -108,7 +116,7 @@ int initialize()
         // PROCESS ANY ENVIRONMENTAL OVERRIDES:
       
         const char* deprecation_warn = std::getenv("SC_DEPRECATION_WARNINGS");
      -  if ( (deprecation_warn!=0) && !strcmp(deprecation_warn,"DISABLE") )
      +  if ( (deprecation_warn!=0) && !std::strcmp(deprecation_warn,"DISABLE") )
         {
           sc_report_handler::set_actions("/IEEE_Std_1666/deprecated", 
             SC_DO_NOTHING);
      -- 
      1.6.2.rc0
      But this has not solved the problem. Can someone maybe try to build it and see what happens?

      Comment

      Working...
      X