Opened 11 years ago

Closed 11 years ago

#38619 closed defect (fixed)

glib2 build failure with gcc-4.0

Reported by: danielluke (Daniel J. Luke) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: tiger leopard Cc: nonstop.server@…, cooljeanius (Eric Gallager)
Port: glib2 glib2-devel

Description

FYI:

make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_so -O2 -fstrict-aliasing -arch ppc -bind_at_load -arch ppc -Wl,-framework -Wl,Carbon -Wl,-framework -Wl,Foundation -o .libs/1bit-emufutex 1bit_emufutex-1bit-mutex.o  -L/opt/local/lib ../../glib/.libs/libglib-2.0.dylib -lresolv -lm /opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib -lc
Undefined symbols:
  "___sync_fetch_and_or", referenced from:
      __emufutex_g_bit_lock in 1bit_emufutex-1bit-mutex.o
      __emufutex_g_bit_trylock in 1bit_emufutex-1bit-mutex.o
      __emufutex_g_pointer_bit_lock in 1bit_emufutex-1bit-mutex.o
      __emufutex_g_pointer_bit_trylock in 1bit_emufutex-1bit-mutex.o
  "___sync_fetch_and_add", referenced from:
      __emufutex_g_bit_lock in 1bit_emufutex-1bit-mutex.o
      __emufutex_g_bit_lock in 1bit_emufutex-1bit-mutex.o
      __emufutex_g_pointer_bit_lock in 1bit_emufutex-1bit-mutex.o
      __emufutex_g_pointer_bit_lock in 1bit_emufutex-1bit-mutex.o
  "___sync_fetch_and_and", referenced from:
      __emufutex_g_bit_unlock in 1bit_emufutex-1bit-mutex.o
      __emufutex_g_pointer_bit_unlock in 1bit_emufutex-1bit-mutex.o
  "___sync_synchronize", referenced from:
      _g_futex_wait in 1bit_emufutex-1bit-mutex.o
      __emufutex_g_bit_unlock in 1bit_emufutex-1bit-mutex.o
      __emufutex_g_pointer_bit_unlock in 1bit_emufutex-1bit-mutex.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

I haven't had a chance to investigate further yet, but I'll attach a patch if I come up with something.

Change History (8)

comment:1 Changed 11 years ago by nonstop.server@…

Cc: nonstop.server@… added

Cc Me!

comment:2 Changed 11 years ago by danielluke (Daniel J. Luke)

looks like these builtins appeared in gcc 4.1 and my 10.5/ppc system is set up with gcc-4.0 as the default compiler. Xcode shipped gcc-4.2 for this system as well, which would probably work here.

comment:3 Changed 11 years ago by danielluke (Daniel J. Luke)

(I'm running a test build right now with gcc-4.2, having added gcc-4.0 to compiler.blacklist in the portfile).

comment:4 in reply to:  3 Changed 11 years ago by danielluke (Daniel J. Luke)

Replying to dluke@…:

(I'm running a test build right now with gcc-4.2, having added gcc-4.0 to compiler.blacklist in the portfile).

This does fix the build. I can attach a patch, but it's probably easier to just add gcc-4.0 to compiler.blacklist than to download and apply a patch :)

comment:5 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: tiger leopard added
Port: glib2-devel added
Status: newassigned
Summary: glib2 build failure on 10.5/ppcglib2 build failure with gcc-4.0

comment:6 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Fixed on Leopard in r104757 by using gcc-4.2. For Tiger we still need to fall back to apple-gcc-4.2.

comment:7 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:8 in reply to:  6 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Replying to ryandesign@…:

For Tiger we still need to fall back to apple-gcc-4.2.

r104930. It still doesn't build for me, but that'll be a separate ticket.

Note: See TracTickets for help on using tickets.