On Tue, Aug 12, 2014 at 2:35 PM, Arvind S Raj <sraj.arvind@xxxxxxxxx> wrote: > I've added a generic_atomic.cpp in src/system/libroot/os/arch/generic/ > containing the function pdziepak wrote earlier. I removed the function > defined in libroot/os/arch/arm/atomic.S and added generic_atomic.cpp > in libroot/os/arch/arm/Jamfile[1] but somehow the file isn't being > compiled and I get undefined reference to atomic_get_and_set. Did I > miss adding something else to the Jamfile? I'm confused on how jam > finds generic_system_time_nsecs.cpp but not generic_atomic.cpp in the > same directory. Since you don't include the build output, it's difficult to tell for certain, but my first guess would be that the function in generic_atomic.cpp isn't correctly marked as extern "C", and thus will indeed not match that symbol name. Regards, Rene