Menu

#30 Re:compilation error

0.99
closed
None
2016-08-02
2016-07-31
Soonho Kwon
No

Hello, Shankar.

Thanks for your reply.

I downloadedd the files from the link you gave me, and placed them insidde the source directory. And I also update the gcc compiler to 4.8.0 which support C++11.
But the error occured. (I attached the printing for command "cmake ../jdftx" and "make -j4".)

What should I do now?

Thank you!

Sincerely,

Soonho Kwon

2 Attachments

Discussion

  • Ravishankar Sundararaman

    Hi Soonho,

    Look at the top of cmake.txt: CMake is still using the old compiler 4.4.7. Depending on how you installed the newer compiler, you will need to set environment variables to select the correct compiler.

    For example, if the new compiler has been installed as gcc-4.8 and g++-4.8 (you will have to figure out if it was named this way or another), then you can invoke

    CC=gcc-4.8 CXX=g++-4.8 cmake .... (options and path to JDFTx as usual)

    Also note that you MUST clean out the build directory completely before changing compiler versions, otherwise cmake will continue to use the original compiler. (By clean, I mean remove all files, rm -rf the build directory, not just "make clean".)

    Please let me know if that works.

    Best,
    Shankar

    PS: The warnings about lapack.so paths has not yet affected your build, but it may be th enext issue to worry about once you fix the above problem with compiler version.

     
  • Ravishankar Sundararaman

    • assigned_to: Ravishankar Sundararaman
     
  • Ravishankar Sundararaman

    • status: open --> closed
     
MongoDB Logo MongoDB