On Tue, Dec 2, 2014 at 7:57 AM, Wade Hampton <wadehamptoniv at gmail.com> wrote: > I am building QT 4.8.6 on CentOS 5 and it is failing on building > the webkit module with __sync_add_and_fetch_4 not being defined. > My build is for Embedded Linux, which allows me to use the framebuffer. > > Posts report this error when trying to cross-compile for ARM, > but I am building for X86. Several posts also indicate that this > is due to the old GCC used by CentOS 5. > > Does anyone have any suggestions? > I believe that gcc on CentOS 5 builds against i386 by default. i386 doesn't have those instructions, so if you built against i686 (or a newer CPU like that), then it should fix the problem. This stackoverflow has more info: http://stackoverflow.com/questions/130740/link-error-when-compiling-gcc-atomic-operation-in-32-bit-mode