Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix compilation error on LoongArch. #5957

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

liuxiang88
Copy link

@liuxiang88 liuxiang88 commented Jan 5, 2024

The compiler error on LoongArch machine is as follows:

../../src/../src/libpmem2/loongarch64/init.c: In function ‘pmem2_arch_init’: ../../src/../src/libpmem2/loongarch64/init.c:39:23: error: ‘loongarch_fence’ undeclared (first use in this function); did you mean ‘loongarch_flush’? 39 | info->fence = loongarch_fence; | ^~~~~~~~~~~~~~~ | loongarch_flush ../../src/../src/libpmem2/loongarch64/init.c:39:23: note: each undeclared identifier is reported only once for each function it appears in

This commit fixes the problem.


This change is Reviewable

Signed-off-by: liuxiang <liuxiang@loongson.cn>
@Dandan336
Copy link

Hi maintainer,
Compiling the pmdk failed for loong64 in the Debian Package Auto-Building environment.
Build failed 6 times.
The full build log can be found at https://buildd.debian.org/status/logs.php?pkg=pmdk&ver=1.13.1-1.1&arch=loong64.

Please review this patch.

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

Successfully merging this pull request may close these issues.

2 participants