confugure fails with Intel ifort 19 compiler
Posted: Mon Jan 07, 2019 7:08 pm
Dear Developer,
we got this error when trying to compile abilit 8.10.1 using Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.0.1.144 Build 20181018:
> checking whether the Fortran compiler provides the iso_c_binding module... configure: error: Fortran compiler does not provide iso_c_binding module. Use a more recent version or a different compiler
Looking into configure.log we see the below text: conftest.F90 failed to be compiled.
The root of the issue is also here:
> ifort: command line error: option '-openmp' is not supported. Please use the replacement option '-qopenmp'
Note that Intel changed their command line syntax for OpenMP support quite a while ago from '-openmp' to '-qopenmp'. In version 19, the use of the old command line parameter became an error instead of warning.
Obviouly, the solution would be to use '-qopenmp' flag in the configuire step for Intel [19 an later] compilers; at this point I would give the control to the ABINIT developers.
Have a nice day,
Paul Kapinos
configure:21189: checking whether the Fortran compiler provides the iso_c_binding module
configure:21211: mpiifort -o conftest -g -extend-source -vec-report0 -noaltparam -nofpscomp -openmp conftest.F90 >&5
ifort: command line remark #10148: option '-vec-report0' not supported
ifort: command line error: option '-openmp' is not supported. Please use the replacement option '-qopenmp'
configure:21211: $? = 1
configure: failed program was:
| program main
|
| use iso_c_binding
| implicit none
| integer(c_int) :: ii
| logical :: lbool
| type(c_ptr) :: ptr
| ptr = c_null_ptr
| lbool = c_associated(ptr)
|
|
| end
configure:21228: error: Fortran compiler does not provide iso_c_binding module. Use a more recent version or a different compiler
$ mpiifort -o conftest -g -extend-source -vec-report0 -noaltparam -nofpscomp -openmp conftest.F90
ifort: command line remark #10148: option '-vec-report0' not supported
ifort: command line error: option '-openmp' is not supported. Please use the replacement option '-qopenmp'
$ echo $?
1
$ mpiifort -o conftest -g -extend-source -vec-report0 -noaltparam -nofpscomp -qopenmp conftest.F90
ifort: command line remark #10148: option '-vec-report0' not supported
pk224850@login18-1:/w0/tmp/pk224850[508]$ echo $?
0
we got this error when trying to compile abilit 8.10.1 using Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.0.1.144 Build 20181018:
> checking whether the Fortran compiler provides the iso_c_binding module... configure: error: Fortran compiler does not provide iso_c_binding module. Use a more recent version or a different compiler
Looking into configure.log we see the below text: conftest.F90 failed to be compiled.
The root of the issue is also here:
> ifort: command line error: option '-openmp' is not supported. Please use the replacement option '-qopenmp'
Note that Intel changed their command line syntax for OpenMP support quite a while ago from '-openmp' to '-qopenmp'. In version 19, the use of the old command line parameter became an error instead of warning.
Obviouly, the solution would be to use '-qopenmp' flag in the configuire step for Intel [19 an later] compilers; at this point I would give the control to the ABINIT developers.
Have a nice day,
Paul Kapinos
configure:21189: checking whether the Fortran compiler provides the iso_c_binding module
configure:21211: mpiifort -o conftest -g -extend-source -vec-report0 -noaltparam -nofpscomp -openmp conftest.F90 >&5
ifort: command line remark #10148: option '-vec-report0' not supported
ifort: command line error: option '-openmp' is not supported. Please use the replacement option '-qopenmp'
configure:21211: $? = 1
configure: failed program was:
| program main
|
| use iso_c_binding
| implicit none
| integer(c_int) :: ii
| logical :: lbool
| type(c_ptr) :: ptr
| ptr = c_null_ptr
| lbool = c_associated(ptr)
|
|
| end
configure:21228: error: Fortran compiler does not provide iso_c_binding module. Use a more recent version or a different compiler
$ mpiifort -o conftest -g -extend-source -vec-report0 -noaltparam -nofpscomp -openmp conftest.F90
ifort: command line remark #10148: option '-vec-report0' not supported
ifort: command line error: option '-openmp' is not supported. Please use the replacement option '-qopenmp'
$ echo $?
1
$ mpiifort -o conftest -g -extend-source -vec-report0 -noaltparam -nofpscomp -qopenmp conftest.F90
ifort: command line remark #10148: option '-vec-report0' not supported
pk224850@login18-1:/w0/tmp/pk224850[508]$ echo $?
0