kocha Posted April 25, 2013 Report Share Posted April 25, 2013 How to do install SystemC in clang? I tried to configure error... > $ ./configure CC=clang CXX=clang++> :> :> > configure: error: "sorry...compiler not supported" configure check c++ compiler "c++" or "g++" only. Why? I modified configure file. (example: Linux OS) > L 5082 case "$CXX_COMP" in c++ | g++ | clang++ ) Could you please check whether no problem in this fix? Best Regards, kocha Quote Link to comment Share on other sites More sharing options...
Philipp A Hartmann Posted April 25, 2013 Report Share Posted April 25, 2013 Kocha, Basically, your edit should work as expected. SystemC 2.3 is in fact tested with Clang >= 2.9. You should not edit the configure file, though. If you want to add clang++ to the detection script, add the case to configure.in and run autoreconf instead. Another option is to have symlinks for cc and c++ in your path, pointing to the Clang compilers. On my Debian workstation, I use the alternatives mechanism (see man update-alternatives) for cc/c++ to point to Clang: [philipph@tethys:~]$ update-alternatives --display cc | head -2 cc - manual mode link currently points to /usr/bin/clang [philipph@tethys:~]$ update-alternatives --display c++ | head -2 c++ - manual mode link currently points to /usr/bin/clang++ and then use../configure CC=cc CXX=c++ to configure SystemC for Clang.Greetings from Oldenburg, Philipp Quote Link to comment Share on other sites More sharing options...
kocha Posted April 25, 2013 Author Report Share Posted April 25, 2013 Hi,Thank you for giving a reply. I modify configure.in and execute autoreconf. It has checked operating normally. Is there any schedule by which configure is released officially? Best Regards, kocha Quote Link to comment Share on other sites More sharing options...
Philipp A Hartmann Posted April 25, 2013 Report Share Posted April 25, 2013 Is there any schedule by which configure is released officially?No. Some future version of the ASI SystemC proof-of-concept implementation may add support for Clang, but there is no release schedule for this at the moment. Upcoming releases and their call for public review will be announced via these forums, though. /Philipp Quote Link to comment Share on other sites More sharing options...
kocha Posted April 27, 2013 Author Report Share Posted April 27, 2013 Philipp, Thank you! kocha Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.