Jump to content

SystemC-2.3.3 compile warning on VS2017 "Unknown compiler version - please run the configure tests and report the results"


Gene
 Share

Recommended Posts

When I using "SystemC-2.3.3" for hardware cycle level modeling, all things works well on vs2012. but when I update to vs2017, the vs2017 reports warning:

1>sc_simcontext.cpp
1>Unknown compiler version - please run the configure tests and report the results

and some other files reports these warn too(all my design file which includes "systemc.h" report this error), and I have been searched from google for several days, and this problem seems resolved, on boost building, but I still can't understand the measure from following resolved question:

Visual Studio - "Unknown Compiler version" after upgrading

I'm still stucking here now, and I don't want to roll back to vs2012. any suggestion? thanks

 

Link to comment
Share on other sites

The SystemC PoC implementation includes a subset of the Boost libraries. The stackoverflow question, you found, points clearly out the source of the error (`visualc.hpp`). In the SystemC PoC implementation, this header is located in `src/sysc/packages/boost/config/compiler/`. At the end of that file, it is stated that the "last known and checked version is 19.16.27032.1 (VC++ 2017, Update 9)". Your version of Visual Studio is probably newer and therefore, you receive this warning. Until the Boost version packaged with SystemC is updated, you can either live with it or patch the responsible header to not print the message. In fact, Boost has itself commented out the warning in the header since March 2018, as they were not anymore able to keep up with the pace of Visual Studio releases.

I will report the issue to the Language Working Group so that this can be addressed in the next release.

Link to comment
Share on other sites

On 11/24/2021 at 5:10 PM, maehne said:

The SystemC PoC implementation includes a subset of the Boost libraries. The stackoverflow question, you found, points clearly out the source of the error (`visualc.hpp`). In the SystemC PoC implementation, this header is located in `src/sysc/packages/boost/config/compiler/`. At the end of that file, it is stated that the "last known and checked version is 19.16.27032.1 (VC++ 2017, Update 9)". Your version of Visual Studio is probably newer and therefore, you receive this warning. Until the Boost version packaged with SystemC is updated, you can either live with it or patch the responsible header to not print the message. In fact, Boost has itself commented out the warning in the header since March 2018, as they were not anymore able to keep up with the pace of Visual Studio releases.

I will report the issue to the Language Working Group so that this can be addressed in the next release.

Hi maehne,

RESOLVED!

thanks for typing the answer, I have used "find -name visualc.hpp" in my project directory, but no response, there must be some error typing in my search, which makes me confused about the file file location mentioned in the "stackoverflow" link. 

seems this is a naive question, New Knowledge Get (SystemC uses subset of boost libraries) anyway thanks again for making it clear.  🙂

Link to comment
Share on other sites

Hi maehne @maehne 

One more question wanna to ask:

when I just hack the header file to not print the warning, but I found my systemC design compiles much slower in VS2017 than I compile it in VS2012. seems each systemC design file takes longer than before (the pure c++ file seems normal). have you ever been through these? 

Thanks!

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...