Closed zhchgbj closed 3 months ago
HAVE_OPENAT
should not defined on my old suse 9, so
Paste my code diff:
# diff hwloc/topology-linux.c.orig hwloc/topology-linux.c
--- hwloc/topology-linux.c.orig 2024-07-18 04:01:23.966193672 -0400
+++ hwloc/topology-linux.c 2024-07-18 04:02:20.630314763 -0400
@@ -2288,15 +2288,15 @@
/* try standard mount points */
- if (!hwloc_accessat("/sys/fs/cgroup/cpuset.cpus.effective", R_OK, fsroot_fd)) {
+ if (!hwloc_access("/sys/fs/cgroup/cpuset.cpus.effective", R_OK, fsroot_fd)) {
hwloc_debug("Found standard cgroup2/cpuset mount point at /sys/fs/cgroup/\n");
*cgtype = HWLOC_LINUX_CGROUP2;
*mntpnt = strdup("/sys/fs/cgroup");
return;
- } else if (!hwloc_accessat("/sys/fs/cgroup/cpuset/cpuset.cpus", R_OK, fsroot_fd)) {
+ } else if (!hwloc_access("/sys/fs/cgroup/cpuset/cpuset.cpus", R_OK, fsroot_fd)) {
hwloc_debug("Found standard cgroup1/cpuset mount point at /sys/fs/cgroup/cpuset/\n");
*cgtype = HWLOC_LINUX_CGROUP1;
*mntpnt = strdup("/sys/fs/cgroup/cpuset");
return;
- } else if (!hwloc_accessat("/dev/cpuset/cpus", R_OK, fsroot_fd)) {
+ } else if (!hwloc_access("/dev/cpuset/cpus", R_OK, fsroot_fd)) {
hwloc_debug("Found standard cpuset mount point at /dev/cpuset/\n");
*cgtype = HWLOC_LINUX_CPUSET;
What version of hwloc are you using?
2.11.1
Which operating system and hardware are you running on?
I'm using my old box of suse 9 to build hwloc 2.11.1.
Details of the problem
When run
make
, it reporthwloc_accessat
not defined.Additional information