/usr/bin/ld: ../build-x86/third_party/libpfm4//libpfm.a(pfmlib_common.c.o):(.data.rel.ro+0x38): undefined reference to `amd64_k8_revb_support
- Dominant language
- C++
- Stars
- 197
- Forks
- 32
- PR merge metrics
- No merged PRs in 30d
Description
g++ main.cpp -o test --std=c++11 -I ../include/ -I ../build-x86 -L ../build-x86/eca/xpmu/ -L ../build-x86/eca/tma/ -L ../build-x86/third_party/libpfm4/ -lmperf_xpmu -lpfm_x86 -lpfm
/usr/bin/ld: /tmp/ccRZS8u0.o: in function `main':
main.cpp:(.text+0x280): undefined reference to `set_cpu_thread_affinity_spec_core(unsigned long)'
/usr/bin/ld: main.cpp:(.text+0x2b5): undefined reference to `mperf::WallTimer::WallTimer()'
/usr/bin/ld: main.cpp:(.text+0x2ef): undefined reference to `mperf::WallTimer::get_msecs() const'
/usr/bin/ld: ../build-x86/third_party/libpfm4//libpfm.a(pfmlib_common.c.o):(.data.rel.ro+0x20): undefined reference to `netburst_support'
/usr/bin/ld: ../build-x86/third_party/libpfm4//libpfm.a(pfmlib_common.c.o):(.data.rel.ro+0x28): undefined reference to `netburst_p_support'
/usr/bin/ld: ../build-x86/third_party/libpfm4//libpfm.a(pfmlib_common.c.o):(.data.rel.ro+0x30): undefined reference to `amd64_k7_support'
/usr/bin/ld: ../build-x86/third_party/libpfm4//libpfm.a(pfmlib_common.c.o):(.data.rel.ro+0x38): undefined reference to `amd64_k8_revb_support
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the g++ command from the issue with main.cpp and the build-x86 include and library paths. Inspect the linked mperf_xpmu, libpfm_x86, and libpfm archives to trace the unresolved symbols, including the mperf::WallTimer and CPU-affinity functions. Done means the sample links without undefined-reference errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system, performance, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100