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

openeuler build xpmem error #60

Open
swx966130 opened this issue Dec 1, 2022 · 0 comments
Open

openeuler build xpmem error #60

swx966130 opened this issue Dec 1, 2022 · 0 comments

Comments

@swx966130
Copy link

I had a problem compiling and installing xpmem on the arm machine.
My system is OpenEuler 20.03 SP3 and the kernel version is 4.19.90-2112.8.0.0131.oe1.aarch64.
I have two versions of xpmem. One version is unknown. However, the xpmem can be successfully installed on CentOS 7.6 (kernel version 4.14.0-115.el7a.0.1.aarch64). I compile this version on my euler system and configure it successfully. However, the following error occurs during compilation:
/home/host64/mpi/xpmem-master/kernel/xpmem_attach.c: In function ‘xpmem_clear_PTEs_of_att’:
/home/host64/mpi/xpmem-master/kernel/xpmem_attach.c:809:7: error: void value not ignored as it ought to be
809 | ret = zap_vma_ptes (vma, unpin_at, invalidate_len);
| ^
make[4]: *** [scripts/Makefile.build:304: /home/host64/mpi/xpmem-master/kernel/xpmem_attach.o] Error 1
make[3]: *** [Makefile:1524: module/home/host64/mpi/xpmem-master/kernel] Error 2
make[3]: Leaving directory '/usr/src/kernels/4.19.90-2112.8.0.0131.oe1.aarch64'
make[2]: *** [Makefile:557: xpmem.ko] Error 2
make[2]: Leaving directory '/home/host64/mpi/xpmem-master/kernel'
make[1]: *** [Makefile:490: all-recursive] Error 1
make[1]: Leaving directory '/home/host64/mpi/xpmem-master'
make: *** [Makefile:376: all] Error 2
###################################
I thought the kernel version was too high. Therefore, I downloaded xpmem-2.6.2 and xpmem-2.6.3 for installation. However, an error message was displayed during the configuration.
configure: error: Default library path or default prefix must be specified
The contents of the config.log file are as follows:
configure:9545: checking for memset
configure:9545: gcc -o conftest -g -O2 conftest.c >&5
conftest.c:56:6: warning: conflicting types for built-in function 'memset'; expected 'void *(void *, int, long unsigned int)' [-Wbuiltin-declaration-mismatch]
56 | char memset ();
| ^~~~~~
conftest.c:44:1: note: 'memset' is declared in header '<string.h>'
43 | # include <limits.h>
44 | #else
configure:9545: $? = 0
configure:9545: result: yes
configure:9581: error: Default library path or default prefix must be specified
################
I don't know if anyone has encountered it and knows how to solve it.
Thank you.

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

1 participant