Opened 12 years ago
Closed 12 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 12 years ago by nonstop.server@…
Cc: | nonstop.server@… added |
---|
comment:2 Changed 12 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 follow-up: 4 Changed 12 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 Changed 12 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 12 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | tiger leopard added |
---|---|
Port: | glib2-devel added |
Status: | new → assigned |
Summary: | glib2 build failure on 10.5/ppc → glib2 build failure with gcc-4.0 |
comment:6 follow-up: 8 Changed 12 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:8 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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.
Cc Me!