The problem of using PAPI
Hi, guys!
I have two doubts here.
The first, if I want to use PAPI on the beagleboard, what can I do? It seems that if I want the PAPI supports ARM, I need to configure PAPI with libpfm4. My OS is Angstrom and it pass the configure with the command './configure --with-libpfm4', but for the testing it doesn't work. The error like this:
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnu
eabi/bin/ld: ../libpapi.a(papi.o): Relocations in generic ELF (EM: 3)
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnu
eabi/bin/ld: ../libpapi.a(papi.o): Relocations in generic ELF (EM: 3)
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnu
eabi/bin/ld: ../libpapi.a(papi.o): Relocations in generic ELF (EM: 3)
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnu
eabi/bin/ld: ../libpapi.a(papi.o): Relocations in generic ELF (EM: 3)
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnu
eabi/bin/ld: ../libpapi.a(papi.o): Relocations in generic ELF (EM: 3)
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnu
eabi/bin/ld: ../libpapi.a(papi.o): Relocations in generic ELF (EM: 3)
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnu
eabi/bin/ld: ../libpapi.a(papi.o): Relocations in generic ELF (EM: 3)
../libpapi.a: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[1]: *** [api] Error 1
make[1]: Leaving directory `/papi-4.1.4/src/ctests'
make: *** [ctests] Error 2
root@beagleboard:/papi-4.1.4/src#
The second, I try to use PAPI on the virtual machine with the Ubuntu 11.04, I passed the configuration by using "./configure --with-perf-events", but when I do the test (make test), there is also an error said that "No rule to make target '../libpapi.a', needed by 'api'. Stop."
Anyone has the idea to solve these problems?
Thank you!
I have two doubts here.
The first, if I want to use PAPI on the beagleboard, what can I do? It seems that if I want the PAPI supports ARM, I need to configure PAPI with libpfm4. My OS is Angstrom and it pass the configure with the command './configure --with-libpfm4', but for the testing it doesn't work. The error like this:
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnu
eabi/bin/ld: ../libpapi.a(papi.o): Relocations in generic ELF (EM: 3)
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnu
eabi/bin/ld: ../libpapi.a(papi.o): Relocations in generic ELF (EM: 3)
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnu
eabi/bin/ld: ../libpapi.a(papi.o): Relocations in generic ELF (EM: 3)
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnu
eabi/bin/ld: ../libpapi.a(papi.o): Relocations in generic ELF (EM: 3)
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnu
eabi/bin/ld: ../libpapi.a(papi.o): Relocations in generic ELF (EM: 3)
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnu
eabi/bin/ld: ../libpapi.a(papi.o): Relocations in generic ELF (EM: 3)
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnu
eabi/bin/ld: ../libpapi.a(papi.o): Relocations in generic ELF (EM: 3)
../libpapi.a: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[1]: *** [api] Error 1
make[1]: Leaving directory `/papi-4.1.4/src/ctests'
make: *** [ctests] Error 2
root@beagleboard:/papi-4.1.4/src#
The second, I try to use PAPI on the virtual machine with the Ubuntu 11.04, I passed the configuration by using "./configure --with-perf-events", but when I do the test (make test), there is also an error said that "No rule to make target '../libpapi.a', needed by 'api'. Stop."
Anyone has the idea to solve these problems?
Thank you!