Top Page > Browsing
install problems
Date: 2023/12/29 17:08
Name: Ir   <1448204964@qq.com>

Hello,

when I downloaded openmx on my wsl2 as below:
$ tar zxvf openmx3.9.tar.gz
$ cp ./patch3.9.9.tar.gz openmx3.9/source
$ cd openmx3.9/source
$ tar zxvfmp patch3.9.9.tar.gz
$ mv kpoint.in ../work/

and deleted original content on the top in makefile , pasted this:

MKLROOT = /opt/intel/oneapi/mkl/2021.3.0/
CC = mpiicc -O3 -xHOST -ip -no-prec-div -qopenmp -I${MKLROOT}/include -I${MKLROOT}/include/fftw
FC = mpiifort -O3 -xHOST -ip -no-prec-div -qopenmp
LIB= -L${MKLROOT}/lib/intel64 -lmkl_scalapack_lp64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lifcore -lmkl_blacs_intelmpi_lp64
-liomp5 -lpthread -lm -ldl


And typed: make or make all, here are some problems:

mpiicc -O3 -xHOST -ip -no-prec-div -qopenmp -I/opt/intel/oneapi/mkl/2021.3.0//include -I/opt/intel/oneapi/mkl/2021.3.0//include/fftw -I./elpa-2018.05.001 -c openmx.c
In file included from openmx.c(57):
/usr/include/stdio.h(189): error: attribute "__malloc__" does not take arguments
    __attribute_malloc__ __attr_dealloc_fclose __wur;
                        ^

In file included from openmx.c(57):
/usr/include/stdio.h(223): error: attribute "__malloc__" does not take arguments
    __THROW __attribute_malloc__ __wur __attr_dealloc_free;
                                        ^

In file included from openmx.c(57):
/usr/include/stdio.h(260): error: attribute "__malloc__" does not take arguments
    __attribute_malloc__ __attr_dealloc_fclose __wur;
                        ^

In file included from openmx.c(57):
/usr/include/stdio.h(294): error: attribute "__malloc__" does not take arguments
    __attribute_malloc__ __attr_dealloc_fclose __wur;
                        ^

In file included from openmx.c(57):
/usr/include/stdio.h(309): error: attribute "__malloc__" does not take arguments
    __THROW __attribute_malloc__ __attr_dealloc_fclose __wur;
                                ^

In file included from openmx.c(57):
/usr/include/stdio.h(315): error: attribute "__malloc__" does not take arguments
    __attribute_malloc__ __attr_dealloc_fclose __wur;
                        ^

In file included from openmx.c(57):
/usr/include/stdio.h(830): error: attribute "__malloc__" does not take arguments
    __attribute_malloc__ __attr_dealloc (pclose, 1) __wur;
                        ^

In file included from openmx.c(58):
/usr/include/stdlib.h(566): error: attribute "__malloc__" does not take arguments
      __attr_dealloc_free;
      ^

In file included from openmx.c(58):
/usr/include/stdlib.h(570): error: attribute "__malloc__" does not take arguments
      __THROW __attr_dealloc (reallocarray, 1);
              ^

compilation aborted for openmx.c (code 2)
make: *** [makefile:221: openmx.o] Error 2

what wrong with this process?
Thank you very much!
メンテ
Page: [1]

Re: install problems ( No.1 )
Date: 2023/12/30 14:12
Name: Naoya Yamaguchi

Hi,

Your issue is the same as shown in https://community.intel.com/t5/Intel-oneAPI-Data-Parallel-C/Compilation-issues-with-ICPC-2021-4-and-C-14/m-p/1318571/highlight/true . How about using the latest oneAPI?

Regards,
Naoya Yamaguchi
メンテ
Re: install problems ( No.2 )
Date: 2024/01/04 00:24
Name: Ir  <1448204964@qq.com>

Hi
thank you very much!
I installed latest oneAPI,
and in /openmx3.9/source,
changed the makefile to:

MKLROOT = /opt/intel/oneapi/mkl/2024.0/
CC = mpiicc -O3 -xHOST -ip -no-prec-div -qopenmp -I${MKLROOT}/include -I${MKLROOT}/include/fftw
FC = mpiifort -O3 -xHOST -ip -no-prec-div -qopenmp
LIB= -L${MKLROOT}/lib/intel64 -lmkl_scalapack_lp64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lifcore -lmkl_blacs_intelmpi_lp64 -liomp5 -lpthread -lm -ldl

I typed : sudo make all, the error is:

mpiicc -O3 -xHOST -ip -no-prec-div -qopenmp -I/opt/intel/oneapi/mkl/2024.0//include -I/opt/intel/oneapi/mkl/2024.0//include/fftw -I./elpa-2018.05.001 -c NBO_Cluster.c
make: mpiicc: No such file or directory
make: *** [makefile:613: NBO_Cluster.o] Error 127

this time what is the problem? hope to hear from you!

Regards
メンテ
Re: install problems ( No.3 )
Date: 2024/01/04 01:56
Name: Naoya Yamaguchi

>I typed : sudo make all, the error is:

Please remove `sudo`.

Regards,
Naoya Yamaguchi
メンテ

Page: [1]

Thread Title (must) Move the thread to the top
Your Name (must)
E-Mail (must)
URL
Password (used in modification of the submitted text)
Comment (must)

   Save Cookie