Skip to content

Failed to compile the latest wannier90 github version with intel oneapi. #541

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

Closed
hongyi-zhao opened this issue Jan 24, 2025 · 4 comments
Closed
Assignees

Comments

@hongyi-zhao
Copy link

hongyi-zhao commented Jan 24, 2025

Hi there,

See below:

werner@x13dai-t:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.4 LTS
Release:	22.04
Codename:	jammy

werner@x13dai-t:~/Public/repo/github.com/wannier-developers/wannier90.git$ module load oneapi/2024.2.0
Notice: Generated new FI_PSM3_UUID: 62d165a9-866b-4995-b922-0c3ddfe4033b

werner@x13dai-t:~/Public/repo/github.com/wannier-developers/wannier90.git$ git log -1
commit 1f2cb3e954cc7ccc6def02922ee47c1df4433c66 (HEAD -> develop, origin/develop, origin/HEAD)
Author: Jerome Jackson <[email protected]>
Date:   Thu Jan 23 14:56:39 2025 +0000

    remove old library binary data from repo (#540)
    
    Co-authored-by: Jerome Jackson <[email protected]>

werner@x13dai-t:~/Public/repo/github.com/wannier-developers/wannier90.git$ CC=icx CXX=icpx FC=ifx MPICC=mpiicx MPICXX=mpiicpx MPIFC=mpiifx
werner@x13dai-t:~/Public/repo/github.com/wannier-developers/wannier90.git$ export CC CXX FC MPICC MPICXX MPIFC
werner@x13dai-t:~/Public/repo/github.com/wannier-developers/wannier90.git$ ln -s config/make.inc.ifort make.inc
werner@x13dai-t:~/Public/repo/github.com/wannier-developers/wannier90.git$ make F90=$FC MPIF90=$MPIFC LIBDIR=$MKLROOT/lib/intel64 all -j 
(cd ./src/obj && make -f ../Makefile.2 wannier)
make[1]: Entering directory '/home/werner/Public/repo/github.com/wannier-developers/wannier90.git/src/obj'
mpiifx -DMPI -DMPI90 -O2 -c ../constants.F90
mpiifx -DMPI -DMPI90 -O2 -c ../error_base.F90
mpiifx -DMPI -DMPI90 -O2 -c ../library_extra.F90
../library_extra.F90(55): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [W90_LIBRARY]
  use w90_library
------^
../library_extra.F90(54): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [W90_IO]
  use w90_io, only: prterr
------^
../library_extra.F90(73): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [W90_ERROR]
    use w90_error, only: set_error_input, set_error_fatal, set_error_alloc
--------^
../library_extra.F90(74): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [W90_READWRITE]
    use w90_readwrite, only: w90_readwrite_in_file, w90_readwrite_clean_infile
--------^
../library_extra.F90(75): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [W90_WANNIER90_READWRITE]
    use w90_wannier90_readwrite, only: w90_wannier90_readwrite_read_special
--------^
../library_extra.F90(83): error #6457: This derived type name has not been declared.   [LIB_COMMON_TYPE]
    type(lib_common_type), intent(inout) :: common_data
---------^
../library_extra.F90(171): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [W90_COMMS]
    use w90_comms, only: mpirank, comms_sync_error
--------^
../library_extra.F90(173): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [W90_KMESH]
    use w90_kmesh, only: kmesh_get, kmesh_write
--------^
../library_extra.F90(180): error #6457: This derived type name has not been declared.   [LIB_COMMON_TYPE]
    type(lib_common_type), intent(inout) :: common_data
---------^
../library_extra.F90(207): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [W90_ERROR]
    use w90_error, only: set_error_fatal
--------^
../library_extra.F90(208): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [W90_OVERLAP]
    use w90_overlap, only: overlap_read
--------^
../library_extra.F90(215): error #6457: This derived type name has not been declared.   [LIB_COMMON_TYPE]
    type(lib_common_type), intent(inout) :: common_data
---------^
../library_extra.F90(243): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [W90_ERROR]
    use w90_error, only: w90_error_type, set_error_fatal
--------^
../library_extra.F90(244): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [W90_READWRITE]
    use w90_readwrite, only: w90_readwrite_read_eigvals
--------^
../library_extra.F90(251): error #6457: This derived type name has not been declared.   [LIB_COMMON_TYPE]
    type(lib_common_type), intent(inout) :: common_data
---------^
../library_extra.F90(255): error #6457: This derived type name has not been declared.   [W90_ERROR_TYPE]
    type(w90_error_type), allocatable :: error
---------^
../library_extra.F90(286): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [W90_COMMS]
    use w90_comms, only: comms_reduce, mpirank
--------^
../library_extra.F90(288): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [W90_ERROR]
    use w90_error, only: set_error_alloc, set_error_dealloc, set_error_fatal
--------^
../library_extra.F90(289): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [W90_WANNIER90_READWRITE]
    use w90_wannier90_readwrite, only: w90_wannier90_readwrite_write_chkpt
--------^
../library_extra.F90(297): error #6457: This derived type name has not been declared.   [LIB_COMMON_TYPE]
    type(lib_common_type), target, intent(in) :: common_data
---------^
../library_extra.F90(391): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [W90_COMMS]
    use w90_comms, only: mpirank
--------^
../library_extra.F90(393): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [W90_ERROR]
    use w90_error, only: set_error_alloc, set_error_dealloc
--------^
../library_extra.F90(394): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [W90_READWRITE]
    use w90_readwrite, only: w90_readwrite_read_chkpt, w90_readwrite_chkpt_dist
--------^
../library_extra.F90(402): error #6457: This derived type name has not been declared.   [LIB_COMMON_TYPE]
    type(lib_common_type), target, intent(inout) :: common_data
---------^
../library_extra.F90(467): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [W90_IO]
    use w90_io, only: io_print_timings
--------^
../library_extra.F90(470): error #6457: This derived type name has not been declared.   [LIB_COMMON_TYPE]
    type(lib_common_type), intent(in) :: common_data
---------^
../library_extra.F90(478): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [W90_ERROR]
    use w90_error, only: set_error_fatal
--------^
../library_extra.F90(485): error #6457: This derived type name has not been declared.   [LIB_COMMON_TYPE]
    type(lib_common_type), intent(inout) :: common_data
---------^
../library_extra.F90(54): error #6580: Name in only-list does not exist or is not accessible.   [PRTERR]
  use w90_io, only: prterr
--------------------^
../library_extra.F90(91): error #6404: This name does not have a type, and must have an explicit type.   [COMMON_DATA]
    call w90_readwrite_in_file(common_data%settings, seedname, error, common_data%comm)
-------------------------------^
/tmp/ifx0715246046OX0XMq/ifxCC5rv0.i90(501): catastrophic error: Too many errors, exiting
compilation aborted for ../library_extra.F90 (code 1)
make[1]: *** [../Makefile.2:110: library_extra.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/werner/Public/repo/github.com/wannier-developers/wannier90.git/src/obj'
make: *** [Makefile:46: wannier] Error 2

Regards,
Zhao

@hongyi-zhao hongyi-zhao changed the title Failed to compile wannier90 github version. Failed to compile the latest wannier90 github version. Jan 24, 2025
@hongyi-zhao hongyi-zhao changed the title Failed to compile the latest wannier90 github version. Failed to compile the latest wannier90 github version with intel oneapi. Jan 24, 2025
@JeromeCCP9
Copy link
Collaborator

Dear Zhao,

this is a problem with the gnumake setup. Currently -j is broken. I am working on another PR which simplifies the (gnu)make configuration and solves this problem.

In the meantime, please compile without -j .

Please can you confirm that compilation proceeds correctly without the "-j" option?

I'll leave the issue open until we fix the (gnu)make configuration to allow -j. (I expect this to happen in 1-2 weeks.)

Yours, Jerome

@JeromeCCP9 JeromeCCP9 self-assigned this Jan 24, 2025
@hongyi-zhao
Copy link
Author

Please can you confirm that compilation proceeds correctly without the "-j" option?

Yes. This works. However, the v3.1.0 version doesn't have this issue.

Regards,
Zhao

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Apr 7, 2025

It seems that this issue has been fixed in the currently develop branch. Am I right?

@JeromeCCP9
Copy link
Collaborator

Yes, this issue is fixed by pr #545 .
J.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants