0 votes
asked by (120 points)
reshown by

I use the Xcode 10.1 on Mac OS 10.14.1 to compile itensor following exactly the procedure in the installation instruction [http://itensor.org/docs.cgi?page=install]. Since I use Mac OS, the procedure editing options.mk file should be simple enough to be right. The error has two kinds:
1. "The vecLib framework is deprecated. Please include <Accelerate/Accelerate.h> instead of <vecLib/vecLib.h> and link to the Accelerate framework instead of the vecLib framework."
2.In file included from tensor/lapackwrap.cc:1:/Users/apple/itensor/itensor/tensor/lapackwrap.h:75:24:
error: *unknown type name '__CLPK_integer'*
It follows almost 20 errors of the second kind. It looks to me the *lapack_wrap.cc* file must have some problems.
I am new to all this, so I think maybe this is actually easy to solve? But it took me a whole morning just searching around achieving nothing. Somebody help...

commented by (70.1k points)
Hi, so I haven't upgraded to 10.14 yet (it's prevented at our office) so I haven't been able to test this directly. But another user reported some issues overlapping with yours, which I think he solved by upgrading Xcode and Xcode command line tools. Did you check through the App Store that you have upgraded Xcode to the latest version? Also, within Xcode please also make sure the latest command line tools are installed.

But it may also be that we will need to update lapack_wrap.cc to be compatible with OSX 10.14. Thanks for reporting this either way.
commented by (120 points)
Yes...The Xcode command line tool is the corresponding 10.14 ones.. Thanks for replying.

1 Answer

0 votes
answered by (540 points)

In my practice, itensor (git version cloned today) works under macOS 10.14.1.
In options.mk, I just comment
CCCOM=g++ -m64 -std=c++11 -fPIC
and uncomment
#CCCOM=clang++ -std=c++11 -fPIC

The only problem is Accelerate are out of sync, the same problem here, anyway the program works.

commented by (70.1k points)
Very helpful, thanks! So it seems the main issue is with the g++ command, which at least in previous versions of MacOS was just an alias for clang. We will look into the Accelerate out of sync issue - thanks.
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.