sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Build failure on Raspberry Pi 4 without including libatomic

Open thurask opened this issue 4 years ago • 1 comments

Since https://github.com/meganz/MEGAcmd/issues/451 also applies to MEGA SDK, rebroadcasting the issue for visibility. To summarize, building MEGAcmd git master on Raspberry Pi 4 running Raspbian 10 fails (undefined reference to `__atomic_load_8') without including libatomic in both MEGAcmd and MEGA SDK, which can be accomplished by adding an autoconf step to both projects to check if libatomic is needed.

thurask avatar Jan 11 '21 16:01 thurask

I set the environment variable LDFLAGS when running ./configure. That solved the problem in my Raspberry Pi 3, using Raspbian Buster:

LDFLAGS="-latomic" ./configure

developerbedoya avatar May 22 '21 21:05 developerbedoya