Hello,
I am trying to build papi library, but I want to build it for Haswell architecture, which is not the one I will be building on.
Ive seen that you can specify it with: ./configure --with-CPU=haswell
but it causes the following error:
cpu_utils.c:(.text+0x1): undefined reference to `x86_cpu_get_vendor'
/usr/bin/ld: ../libpapi.a(cpu_utils.o): in function `cpu_get_name':
cpu_utils.c:(.text+0x11): undefined reference to `x86_cpu_get_name'
/usr/bin/ld: ../libpapi.a(cpu_utils.o): in function `cpu_get_attribute':
cpu_utils.c:(.text+0x21): undefined reference to `x86_cpu_get_attribute'
/usr/bin/ld: ../libpapi.a(cpu_utils.o): in function `cpu_get_attribute_at':
cpu_utils.c:(.text+0x31): undefined reference to `x86_cpu_get_attribute_at'
/usr/bin/ld: ../libpapi.a(linux-common.o): in function `_linux_get_system_info':
linux-common.c:(.text+0xe60): undefined reference to `_x86_detect_hypervisor'
/usr/bin/ld: ../libpapi.a(linux-common.o): in function `_linux_detect_hypervisor':
linux-common.c:(.text+0x2e1): undefined reference to `_x86_detect_hypervisor'
/usr/bin/ld: ../libpapi.a(linux-memory.o): in function `_linux_get_memory_info':
linux-memory.c:(.text+0xaa7): undefined reference to `_x86_cache_info'
How can I fix that?
Thank you in advance.
Kind regards,
Alex