# Lapack flags missing in sample/tutorial makefiles?

0 votes
asked

I have cloned the git repository just yesterday, followed the instructions (adapting options.mk to linux) and could, without trouble, compile all files involved in the makefile within the home folder itensor.

Yet, the sample and tutorial makefiles throw errors. Although options.mk is loaded, there seems to be no mentioning of $(BLAS_ LAPACK_ LIBFLASG). Adding this to the corresponding line, i.e.$(APP): $(OBJECTS)$(ITENSOR_LIBS)
$(CCCOM)$(CCFLAGS) $(OBJECTS) -o$(APP) $(LIBFLAGS)$(BLAS_ LAPACK_ LIBFLASG)

did the job for me. I did not want to post this as a bug report, since I am still unsure whether I did something wrong.

(Please note that I added spaces after _ to avoid syntax interpretation)

commented by (6.7k points)
Hello,

That is a bit strange that you need to add that, since in the options.mk.sample I see:

ITENSOR_LIBFLAGS+= $(BLAS_LAPACK_LIBFLAGS) and later: LIBFLAGS=-L$(ITENSOR_LIBDIR) \$(ITENSOR_LIBFLAGS)

so LIBFLAGS should include BLAS_LAPACK_LIBFLAGS. What are the errors you are getting?

-Matt
commented by (6.7k points)
I see that you are calling it BLAS_ LAPACK_ LIBFLASG, is it possible you accidentally renamed it in your options.mk? It should be BLAS_ LAPACK_ LIBFLAGS.

## 1 Answer

0 votes
answered by (210 points)

Best answer

Haha, god damn it. This took me one hour. You are correct, somehow FLAGS became FLASG, but I have do idea how this happened. I fixed it and now your original makefiles work. Thanks!