Skip to content

adding build for alma9

Matei Vasile requested to merge alma9 into master

libnuma 2.0.9 would also not compile on the alma9 development setup, producing the following error:

affinity.c:177:21: warning: implicit declaration of function ‘major’ [-Wimplicit-function-declaration]
  177 |                 if (major(d) != maj || minor(d) != min)
      |                     ^~~~~
affinity.c:177:40: warning: implicit declaration of function ‘minor’ [-Wimplicit-function-declaration]
  177 |                 if (major(d) != maj || minor(d) != min)
      |                                        ^~~~~
cc -g -Wall -O2 -I. -fPIC   -c -o sysfs.o sysfs.c
cc -g -Wall -O2 -I. -fPIC   -c -o rtnetlink.o rtnetlink.c
cc  -shared -Wl,-soname=libnuma.so.1 -Wl,--version-script,versions.ldscript -Wl,-init,numa_init -Wl,-fini,numa_fini -o libnuma.so.1 libnuma.o syscall.o distance.o affinity.o sysfs.o rtnetlink.o
ln -sf libnuma.so.1 libnuma.so
cc   numactl.o util.o shm.o bitops.o libnuma.so   -o numactl
/usr/bin/ld: libnuma.so: undefined reference to `minor'
/usr/bin/ld: libnuma.so: undefined reference to `major'
collect2: error: ld returned 1 exit status

make: *** [<builtin>: numactl] Error 1

I found on GitHub that his problem was solved in 2.0.12 (see https://github.com/numamma/numamma/issues/5 ), so I went with libnuma 2.0.12.

Edited by Mark Donszelmann

Merge request reports