Questions regarding the compilation of VASP on various platforms: hardware, compilers and libraries, etc.
Moderators: Global Moderator, Moderator
-
paulfons
- Jr. Member
![Jr. Member Jr. Member](./images/ranks/star.gif)
- Posts: 88
- Joined: Sun Nov 04, 2012 2:40 am
- License Nr.: 5-1405
- Location: Yokohama, Japan
-
Contact:
#1
Post
by paulfons » Wed Feb 05, 2025 5:46 am
I am trying to compile Vasp 6.5.0 and I have copied the file arch/makefile.include.oneapi into the vasp directory. The compilation fails due to what appears to be an intel oneapi problem, but I have no idea how to fix it. The version of the oneapi ifx compiler is --version ifx (IFX) 2025.0.4 20241205 so it is quite new and it sounds like a library issue. Any suggestions as to how to fix it?
Here is the error that is thrown after make runs for a while.
/data/Software/Vasp/vasp.6.5.0/build/std/parser>make
make libparser.a
make[1]: Entering directory '/data/Software/Vasp/vasp.6.5.0/build/std/parser'
icx -D YY_parse_DEBUG=1 -c lex.yy.c -o lex.yy.o
locproj.l:2:10: fatal error: 'iostream' file not found
2 | #include <iostream>
| ^~~~~~~~~~
1 error generated.
make[1]: *** [makefile:28: lex.yy.o] Error 1
make[1]: Leaving directory '/data/Software/Vasp/vasp.6.5.0/build/std/parser'
make: *** [makefile:12: all] Error 2
-
paulfons
- Jr. Member
![Jr. Member Jr. Member](./images/ranks/star.gif)
- Posts: 88
- Joined: Sun Nov 04, 2012 2:40 am
- License Nr.: 5-1405
- Location: Yokohama, Japan
-
Contact:
#2
Post
by paulfons » Wed Feb 05, 2025 5:53 am
I wanted to add some more information I came across to supplement the post. A quick search with Google gives the following link from Intel that gives a similar example "iostream file not found error. In short, the Intel explanation seems to indicate that there is a mismatch or partial installation of g++. A quick check of the versions installed is listed below for reference:
yum list installed | grep -i gcc-c++
gcc-c++.x86_64 11.5.0-2.el9 @appstream
gcc-toolset-12-gcc-c++.x86_64 12.2.1-7.7.el9_4 @appstream
gcc-toolset-13-gcc-c++.x86_64 13.3.1-2.1.el9_4 @appstream
yum list installed | grep -i gcc-c++
gcc-c++.x86_64 11.5.0-2.el9 @appstream
gcc-toolset-12-gcc-c++.x86_64 12.2.1-7.7.el9_4 @appstream
gcc-toolset-13-gcc-c++.x86_64 13.3.1-2.1.el9_4 @appstream
paulfons@neutrino:/data/Software/Vasp/vasp.6.5.0>yum list installed | grep -i gcc
gcc.x86_64 11.5.0-2.el9 @appstream
gcc-c++.x86_64 11.5.0-2.el9 @appstream
gcc-gfortran.x86_64 11.5.0-2.el9 @appstream
gcc-plugin-annobin.x86_64 11.5.0-2.el9 @appstream
gcc-toolset-12-binutils.x86_64 2.38-19.el9 @appstream
gcc-toolset-12-binutils-gold.x86_64 2.38-19.el9 @appstream
gcc-toolset-12-gcc.x86_64 12.2.1-7.7.el9_4 @appstream
gcc-toolset-12-gcc-c++.x86_64 12.2.1-7.7.el9_4 @appstream
gcc-toolset-12-libstdc++-devel.x86_64 12.2.1-7.7.el9_4 @appstream
gcc-toolset-12-runtime.x86_64 12.0-6.el9 @appstream
gcc-toolset-13-binutils.x86_64 2.40-21.el9 @appstream
gcc-toolset-13-binutils-gold.x86_64 2.40-21.el9 @appstream
gcc-toolset-13-gcc.x86_64 13.3.1-2.1.el9_4 @appstream
gcc-toolset-13-gcc-c++.x86_64 13.3.1-2.1.el9_4 @appstream
gcc-toolset-13-libstdc++-devel.x86_64 13.3.1-2.1.el9_4 @appstream
gcc-toolset-13-runtime.x86_64 13.0-2.el9 @appstream
libgcc.x86_64 11.5.0-2.el9 @baseos
https://www.intel.com/content/www/us/en ... piler.html
-
alexey.tal
- Global Moderator
![Global Moderator Global Moderator](./images/ranks/stargmod.gif)
- Posts: 372
- Joined: Mon Sep 13, 2021 12:45 pm
#3
Post
by alexey.tal » Wed Feb 05, 2025 7:52 am
Dear paulfons,
Thank you for your question.
It looks like the issue is in the C compiler (icx). If it cannot find iostream
which is a standard input/output library it is probably something to do with the way the Intel compiler was installed.
You should try to make sure that your Intel installation is complete or try to reinstall it. You could also try to build VASP with the GNU compilers.
Best wishes,
Alexey
-
paulfons
- Jr. Member
![Jr. Member Jr. Member](./images/ranks/star.gif)
- Posts: 88
- Joined: Sun Nov 04, 2012 2:40 am
- License Nr.: 5-1405
- Location: Yokohama, Japan
-
Contact:
#4
Post
by paulfons » Wed Feb 05, 2025 7:57 am
Thank you for your reply Alexey. I don't think the problem stems from the Intel oneapi compiler installation, but rather from something incorrect about the (yum installed) gcc compiler system. I was hoping someone might have experience something similar and knew what to do. I also wrote the same question on the Intel support forum so hopefully I will hear something there. I did find threads where a similar problem was caused by incomplete installation of the standard library for a given gcc system. I have no idea if that is the case here. It does sound like Intel is aware of the problem and is intending to improve the ipx compiler so it can use a different version of the gcc compiler libraries. It is all very non-transparent. I will wait for the reply on the Intel forum and if it is useful, I will update this thread so it may possibly help someone out experiencing the same issue.