0 votes
asked by (400 points)

I previously had no issue installing V2 on my device. However, now when I run 'make', I get the error: "g++: error: unrecognized command line option '-fconcepts' ".

No doubt this is an issue with the compiler flag in the line
" CCCOM=g++ -m64 -std=c++17 -fconcepts -fPIC "
of the options.mk file. As a test, I tried removing the flag, but the compile again failed.

My best guess is that this has to do with the compiler and c++17, but I've had little luck with Google.

Any help would be appreciated!

commented by (14.1k points)
What version of g++ are you using? You can get the version by typing `g++ --version` at the command line. It may just be an issue of having an older compiler.
commented by (400 points)
Thank you for responding Matt. You are correct. It seems as though, even though I had the most recent compiler installed, g++ was defaulting to an older version when called. I found that modifying the above line of code to:
"CCCOM=g++-7 -m64 -std=c++17 -fconcepts -fPIC"
resolved the issue. Now everything compiled.

1 Answer

0 votes
answered by (14.1k points)

(Answer is in the comments).

Welcome to ITensor Support Q&A, where you can ask questions and receive answers from other members of the community.

Formatting Tips:
  • To format code, indent by four spaces
  • To format inline LaTeX, surround it by @@ on both sides
  • To format LaTeX on its own line, surround it by $$ above and below
  • For LaTeX, it may be necessary to backslash-escape underscore characters to obtain proper formatting. So for example writing \sum\_i to represent a sum over i.
If you cannot register due to firewall issues (e.g. you cannot see the capcha box) please email Miles Stoudenmire to ask for an account.

To report ITensor bugs, please use the issue tracker.