Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation on Windows 10 64 bit #2

Closed
maurosgroi opened this issue Dec 19, 2020 · 1 comment
Closed

Compilation on Windows 10 64 bit #2

maurosgroi opened this issue Dec 19, 2020 · 1 comment
Labels
invalid This doesn't seem right

Comments

@maurosgroi
Copy link

maurosgroi commented Dec 19, 2020

Dear Developers,
I'm trying to compile the library with fortran bindings using the cygwin64 toolchain.
Making make install, I got the following error:

(cd fortran && make) || exit 1
make[1]: Entering directory '/home/sgroi/apps/source/libint-v2.6.0-cp2k-lmax-4/fortran'
g++ -E -DHAVE_CONFIG_H -D__COMPILING_LIBINT2=1 -D__COMPILING_LIBINT2=1 -I../include -I..//include -I/usr/include -O3 ../include/libint2.h > ../include/libint2.h.i
python c_to_f.py ../include/libint2.h.i libint2_types_f.h Libint_t
grep '^#' ../include/libint2_types.h | grep -v '#include' > fortran_incldefs.h
FC libint_f.o
../include/libint2/util/generated/libint2_params.h:29:0:

29 | # if __has_include(<libint2_params.h>)
|
Error: missing '(' before "__has_include" operand
../include/libint2/util/generated/libint2_params.h:29:0: Error: operator "__has_include" requires a header-name
make[1]: *** [../MakeSuffixRules:12: libint_f.o] Error 1
make[1]: Leaving directory '/home/sgroi/apps/source/libint-v2.6.0-cp2k-lmax-4/fortran'
make: *** [Makefile:38: fortran] Error 1

I configured with: ./configure --with-gnu-ld --with-cxx-optflags=-O3 --with-cxx=g++ --enable-fortran=yes --with-fc=gfortran

Thanks a lot for the help.
Best regards,
Mauro Sgroi.

@dev-zero
Copy link
Contributor

sorry for the late reply, this is actually not an issue with Windows or libint, but rather a regression in gcc-10, see also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95889
Duplicate of #3

@dev-zero dev-zero added the invalid This doesn't seem right label Jan 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants