[MacPorts] #38619: glib2 build failure on 10.5/ppc
#38619: glib2 build failure on 10.5/ppc ---------------------+-------------------------- Reporter: dluke@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: glib2 ---------------------+-------------------------- 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. -- Ticket URL: <https://trac.macports.org/ticket/38619> MacPorts <http://www.macports.org/> Ports system for OS X
#38619: glib2 build failure on 10.5/ppc ----------------------+-------------------------- Reporter: dluke@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: glib2 | ----------------------+-------------------------- Comment (by dluke@…): 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. -- Ticket URL: <https://trac.macports.org/ticket/38619#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#38619: glib2 build failure on 10.5/ppc ----------------------+-------------------------- Reporter: dluke@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: glib2 | ----------------------+-------------------------- Comment (by dluke@…): (I'm running a test build right now with gcc-4.2, having added gcc-4.0 to compiler.blacklist in the portfile). -- Ticket URL: <https://trac.macports.org/ticket/38619#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#38619: glib2 build failure on 10.5/ppc ----------------------+-------------------------- Reporter: dluke@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: glib2 | ----------------------+-------------------------- Comment (by dluke@…): Replying to [comment:3 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 :) -- Ticket URL: <https://trac.macports.org/ticket/38619#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#38619: glib2 build failure with gcc-4.0 --------------------------------+--------------------------- Reporter: dluke@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: tiger leopard Port: glib2 glib2-devel | --------------------------------+--------------------------- Changes (by ryandesign@…): * keywords: => tiger leopard * status: new => assigned * port: glib2 => glib2 glib2-devel Comment: https://bugzilla.gnome.org/show_bug.cgi?id=697017 -- Ticket URL: <https://trac.macports.org/ticket/38619#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#38619: glib2 build failure with gcc-4.0 --------------------------------+--------------------------- Reporter: dluke@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: tiger leopard Port: glib2 glib2-devel | --------------------------------+--------------------------- Comment (by ryandesign@…): Fixed on Leopard in r104757 by using gcc-4.2. For Tiger we still need to fall back to apple-gcc-4.2. -- Ticket URL: <https://trac.macports.org/ticket/38619#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#38619: glib2 build failure with gcc-4.0 --------------------------------+--------------------------- Reporter: dluke@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: tiger leopard Port: glib2 glib2-devel | --------------------------------+--------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed Comment: Replying to [comment:6 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. -- Ticket URL: <https://trac.macports.org/ticket/38619#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts