ARM-software / gator

Sources for Arm Streamline's gator daemon, part of Arm Mobile Studio suite of performance analysis tools
https://www.arm.com/products/development-tools/graphics/arm-mobile-studio
133 stars 67 forks source link

add -latomic to library list for gcc7 and above #17

Closed jasonrandrews closed 4 years ago

jasonrandrews commented 4 years ago

When building gatord on the latest Raspbian Buster the gcc version is 8.3.0 and it requires -latomic to link.

Without it link errors occur such as:

/usr/bin/ld: PerfBuffer.cpp:(.text+0xa08): undefined reference to `__atomic_load_8'

I think gcc version 7 also requires this but I'm not 100% sure

jasonrandrews commented 4 years ago

Hi Ben,

Raspbian does have AArch32 user space.

I have a Pinebook Pro laptop with gccc 9.2.0 with AArch64 user space and it doesn't need the atomic library.

Thanks, Jason