Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

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.

vt-alt pushed a commit to altlinux/specs that referenced this pull request Nov 6, 2025
- Fix compilation on loongarch64
  (see pmem/pmdk#5957).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants