Jump to content

issue compiling SystemC version 2.3.3 with gcc version 6.2


Mark

Recommended Posts

I'm running into issues while installing SystemC using gcc version 6.2 gcc version 5.2.2 goes through fine.

Running this command:

Quote

xterm> ../configure

configure: error: in `/geo/projects/w6a0/users/mzamek/SystemC_experiments/systemc-2.3.3/objdir':
configure: error: C++ compiler cannot create executables

xterm> echo $CXX
g++

xterm> g++ -c

g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/tools/pub/RHEL7/opt/gcc-6.2/libexec/gcc/x86_64-pc-linux-gnu/6.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../configure --prefix=/tools/pub/RHEL7/opt/gcc-6.2 --enable-languages=c,c++ --disable-multilib
Thread model: posix
gcc version 6.2.0 (GCC)

I'm attaching config.log file.

Quote

Configured with: ../configure --prefix=/tools/pub/RHEL7/opt/gcc-6.2 --enable-languages=c,c++ --disable-multilib
Thread model: posix
gcc version 6.2.0 (GCC) 
configure:3318: $? = 0
configure:3307: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files

compilation terminated.
configure:3318: $? = 1
configure:3307: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'; did you mean '--version'?
g++: fatal error: no input files

 

config.log

Link to comment
Share on other sites

Have you tried to compile and run a simple hello-world-style C++ program in the same environment, from which you called configure? The config.log shows that your PATH contains the bin directories of many different EDA toolchains. Some of them come before the bin directories of your host OS. This may cause issues as these EDA toolchain installation tend to include a lot of basic libraries, which are normally provided by the host OS. This can cause interferences. You may try configure and build SystemC in an environment, where the PATH got pruned of all the EDA toolchain bin paths.

Link to comment
Share on other sites

  • 8 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...