On Tue, Sep 24, 2013 at 8:58 PM, John Frankish <[email protected]> wrote: When trying to compile webkitgtk-2.0.4 with gtk+-3.8.4 and gcc-4.7.2, the compilation fails with:
CXXLD Programs/WebKit2APITests/TestBackForwardList ./.libs/libwebkit2gtk-3.0.so: undefined reference to `__sync_add_and_fetch_8' collect2: error: ld returned 1 exit status ./.libs/libwebkit2gtk-3.0.so: undefined reference to `__sync_add_and_fetch_8' collect2: error: ld returned 1 exit status make[1]: *** [Programs/WebKit2APITests/TestBackForwardList] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: *** [Programs/WebKit2APITests/TestContextMenu] Error 1 ./.libs/libwebkit2gtk-3.0.so: undefined reference to `__sync_add_and_fetch_8' Is this an illegal processor instruction? Webkitgtk and gtk+-3 are being compiled for i486. Regards John _______________________________________________ From: Žan Doberšek [mailto:[email protected]] Sent: Wednesday, 25 September, 2013 08:20 To: John Frankish Cc: [email protected] Subject: Re: [webkit-gtk] webkitgtk-2.0.4 compilation fails Are you specifying the architecture properly through the compiler flags, by setting CFLAGS/CXXFLAGS envs to appropriate values? http://stackoverflow.com/questions/2566167/where-to-find-sync-add-and-fetch-8 -------- Thanks for the reply - things were configured as follows: CFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti " CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe " ./configure --prefix=/usr/local --enable-shared --libexecdir=/usr/lib/webkitgtk3 --enable-introspection --disable-geolocation --disable-webkit1 --enable-web-audio _______________________________________________ webkit-gtk mailing list [email protected] https://lists.webkit.org/mailman/listinfo/webkit-gtk
