RSS/Atom feed Twitter
Site is read-only, email is disabled

Undefined reference to __sync_fetch_and_sub_4

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

4 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

Undefined reference to __sync_fetch_and_sub_4 Partha Bagchi 26 Nov 00:15
  Undefined reference to __sync_fetch_and_sub_4 Victor Oliveira 18 Dec 17:06
   Undefined reference to __sync_fetch_and_sub_4 Partha Bagchi 18 Dec 17:12
    Undefined reference to __sync_fetch_and_sub_4 Victor Oliveira 18 Dec 17:24
Partha Bagchi
2011-11-26 00:15:51 UTC (over 13 years ago)

Undefined reference to __sync_fetch_and_sub_4

Hi All,

Updated glib to 2.30.2 and gtk+-2.0 to 2.24.8. Using gcc 4.6.1.

The latest geg download from ftp://gimptest.flamingtext.com/pub/nightly-tarballs/ is giving me the following error when building for win32 on Windows 7:

Creating library file: .libs/libgegl-0.1.dll.a ../gegl/buffer/.libs/libbuffer.a(gegl-tile.o):gegl-tile.c:(.text+0x36): undefined reference to `__sync_fetch_and_sub_4' collect2: ld returned 1 exit status
make[3]: *** [libgegl-0.1.la] Error 1 make[3]: Leaving directory `/usr/src/gimp/gimp-2.7.4/gegl-0.1.7/gegl' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/gimp/gimp-2.7.4/gegl-0.1.7/gegl' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/gimp/gimp-2.7.4/gegl-0.1.7' make: *** [all] Error 2

Any suggestions welcome.

Thanks, Partha

Victor Oliveira
2011-12-18 17:06:37 UTC (over 13 years ago)

Undefined reference to __sync_fetch_and_sub_4

Hi, I'm running on the same problem today.

I think it's a problem with glib atomic operations and mingw, because __sync_fetch_and_sub_4 is used in g_atomic_int_dec_and_test I suppose. But I'm stuck on that.

I'm using the glib 2.30.2 build from OpenSUSE, so maybe the problem is there.

Victor Oliveira

On Fri, Nov 25, 2011 at 10:15 PM, Partha Bagchi wrote:

Hi All,

Updated glib to 2.30.2 and gtk+-2.0 to 2.24.8. Using gcc 4.6.1.

The latest geg download from ftp://gimptest.flamingtext.com/pub/nightly-tarballs/ is giving me the following error when building for win32 on Windows 7:

Creating library file: .libs/libgegl-0.1.dll.a ../gegl/buffer/.libs/libbuffer.a(gegl-tile.o):gegl-tile.c:(.text+0x36): undefined reference to `__sync_fetch_and_sub_4' collect2: ld returned 1 exit status
make[3]: *** [libgegl-0.1.la] Error 1 make[3]: Leaving directory `/usr/src/gimp/gimp-2.7.4/gegl-0.1.7/gegl' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/gimp/gimp-2.7.4/gegl-0.1.7/gegl' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/gimp/gimp-2.7.4/gegl-0.1.7' make: *** [all] Error 2

Any suggestions welcome.

Thanks, Partha
_______________________________________________ gimp-developer-list mailing list
gimp-developer-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gimp-developer-list

Partha Bagchi
2011-12-18 17:12:05 UTC (over 13 years ago)

Undefined reference to __sync_fetch_and_sub_4

On Sun, Dec 18, 2011 at 12:06 PM, Victor Oliveira wrote:

Hi, I'm running on the same problem today.

I think it's a problem with glib atomic operations and mingw, because __sync_fetch_and_sub_4

Victor Oliveira
2011-12-18 17:24:37 UTC (over 13 years ago)

Undefined reference to __sync_fetch_and_sub_4

Great! It worked.

Thanks a lot! Victor Oliveira

On Sun, Dec 18, 2011 at 3:12 PM, Partha Bagchi wrote:

On Sun, Dec 18, 2011 at 12:06 PM, Victor Oliveira wrote:

Hi, I'm running on the same problem today.

I think it's a problem with glib atomic operations and mingw, because __sync_fetch_and_sub_4 is used in g_atomic_int_dec_and_test I suppose.

But

I'm stuck on that.

I'm using the glib 2.30.2 build from OpenSUSE, so maybe the problem is there.

Victor Oliveira

On Fri, Nov 25, 2011 at 10:15 PM, Partha Bagchi

wrote:

Hi All,

Updated glib to 2.30.2 and gtk+-2.0 to 2.24.8. Using gcc 4.6.1.

The latest geg download from ftp://gimptest.flamingtext.com/pub/nightly-tarballs/ is giving me the following error when building for win32 on Windows 7:

Creating library file: .libs/libgegl-0.1.dll.a ../gegl/buffer/.libs/libbuffer.a(gegl-tile.o):gegl-tile.c:(.text+0x36): undefined reference to `__sync_fetch_and_sub_4' collect2: ld returned 1 exit status
make[3]: *** [libgegl-0.1.la] Error 1 make[3]: Leaving directory `/usr/src/gimp/gimp-2.7.4/gegl-0.1.7/gegl' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/gimp/gimp-2.7.4/gegl-0.1.7/gegl' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/gimp/gimp-2.7.4/gegl-0.1.7' make: *** [all] Error 2

Any suggestions welcome.

Thanks, Partha
_______________________________________________ gimp-developer-list mailing list
gimp-developer-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gimp-developer-list

I solved this by adding the gcc options -march=pentium -mtune=pentium. See if that works for you.