/app/watchman-2.9.5/./watchman.h:104:undefined reference to ' __sync_add_and_fetch_4 '
/app/ watchman-2.9.5/./watchman.h:104:undefined reference to ' __sync_add_and_fetch_4 '
watchman-root.o:in function ' W_ Root_init ':
/app/watchman-2.9.5/root.c:191:undefined reference to ' __sync_fetch_and_add_4 '
WATCHMAN-ROOT.O: In function ' W_refcnt_del ':
/app/watchman-2.9.5/watchman.h:104:undefined reference to ' __sync_add_and_fetch_4 '
/app/watchman-2.9.5/watchman.h:104:undefined reference to ' __sync_add_and_fetch_4 '
Watchman-root.o:in function ' w_root_free_watched_roots ':
/app/watchman-2.9.5/root.c:3192:undefined reference to ' __sync_fetch_and_ Add_4 '
watchman-string.o:in function ' W_refcnt_del ':
/app/watchman-2.9.5/watchman.h:104:undefined Reference To ' __sync_add_and_fetch_4 '
Collect2:ld returned 1 exit status
Make[1]: * * * [Watchman] Error 1
make[1]: Leavi ng directory '/app/watchman-2.9.5 '
Make: * * * [all] Error 2
Causes:
Linux is 32-bit version
View: getconf long_bit
Workaround:
Add parameter when executing make command: Make cflags= "-march=i686″