[MacPorts] #50032: libsdl @1.2.15_3 Make failure
#50032: libsdl @1.2.15_3 Make failure ----------------------------+-------------------------------- Reporter: 4625khz.mail@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: tiger libsdl | Port: libsdl ----------------------------+-------------------------------- Hello! Building libsdl on Mac OS X Tiger 10.4.11 using apple-gcc42 (from macports too) fails with error: {{{ /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:115: error: expected specifier-qualifier-list before 'vector' }}} Full log of the debug output (compilation and make) attached. -- Ticket URL: <https://trac.macports.org/ticket/50032> MacPorts <https://www.macports.org/> Ports system for OS X
#50032: libsdl @1.2.15_3 Make failure -----------------------------+-------------------------------- Reporter: 4625khz.mail@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: tiger libsdl Port: libsdl | -----------------------------+-------------------------------- Comment (by 4625khz.mail@…): Forgot to mention (although you'll see that in the log) that a PowerPC machine is being used, with Xcode 2.5 installed. -- Ticket URL: <https://trac.macports.org/ticket/50032#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#50032: libsdl @1.2.15_3: error: expected specifier-qualifier-list before 'vector' -----------------------------+------------------- Reporter: 4625khz.mail@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: tiger Port: libsdl | -----------------------------+------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * owner: macports-tickets@… => jmr@… * keywords: tiger libsdl => tiger Comment: This is a bug in a header file on Tiger. It is worked around by adding `-faltivec` to configure.cflags. See #34213. Assuming this works (I haven't tried it yet), the port should do this in a `platform darwin 8` block—or possibly a `platform darwin 8 powerpc` block; I'm not sure. -- Ticket URL: <https://trac.macports.org/ticket/50032#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#50032: libsdl @1.2.15_3: error: expected specifier-qualifier-list before 'vector' -----------------------------+------------------- Reporter: 4625khz.mail@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: tiger Port: libsdl | -----------------------------+------------------- Comment (by 4625khz.mail@…): Thank you very much, adding ''configure.cflags-append -faltivec'' into ''platform darwin'' block helped. -- Ticket URL: <https://trac.macports.org/ticket/50032#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#50032: libsdl @1.2.15_3: error: expected specifier-qualifier-list before 'vector' -----------------------------+------------------- Reporter: 4625khz.mail@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: tiger Port: libsdl | -----------------------------+------------------- Comment (by zhangchaowang@…): In fact, I use gcc from Apple Xcode, instead gcc from macport sudo port install libsdl configure.compiler=gcc It compile without issues. -- Ticket URL: <https://trac.macports.org/ticket/50032#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#50032: libsdl @1.2.15_3: error: expected specifier-qualifier-list before 'vector' -----------------------------+------------------- Reporter: 4625khz.mail@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: tiger Port: libsdl | -----------------------------+------------------- Comment (by kenneth.f.cunningham@…): I bumped into this one on of my Tiger PPC machines just recently as well, and the error led me here. The block Ryan suggested worked as described. I also built libsdl on Tiger Intel, and no surprise, it doesn't need that block (no altivec). Don't know if you want this in the Portfile, or just here to remain as a workaround, but here's a diff file to consider. -- Ticket URL: <https://trac.macports.org/ticket/50032#comment:5> MacPorts <https://www.macports.org/> Ports system for macOS
#50032: libsdl @1.2.15_3: error: expected specifier-qualifier-list before 'vector' -----------------------------+------------------------------------ Reporter: 4625khz.mail@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: tiger powerpc haspatch Port: libsdl | -----------------------------+------------------------------------ Changes (by ryandesign@…): * cc: kenneth.f.cunningham@… (added) * keywords: tiger => tiger powerpc haspatch Comment: Thanks. Yes, I think we should commit that to the Portfile. -- Ticket URL: <https://trac.macports.org/ticket/50032#comment:6> MacPorts <https://www.macports.org/> Ports system for macOS
#50032: libsdl @1.2.15_3: error: expected specifier-qualifier-list before 'vector' -----------------------------+------------------------------------ Reporter: 4625khz.mail@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: tiger powerpc haspatch Port: libsdl | -----------------------------+------------------------------------ Comment (by jmr@…): Bear in mind that not all PPC machines have Altivec. -- Ticket URL: <https://trac.macports.org/ticket/50032#comment:7> MacPorts <https://www.macports.org/> Ports system for macOS
#50032: libsdl @1.2.15_3: error: expected specifier-qualifier-list before 'vector' -----------------------------+------------------------------------ Reporter: 4625khz.mail@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: tiger powerpc haspatch Port: libsdl | -----------------------------+------------------------------------ Comment (by ryandesign@…): You mean G3s. I don't have Tiger set up on such a machine but we could assume that we should only add `-faltivec` on altivec-capable machines. We could use `sysctl` to determine whether that's the case. -- Ticket URL: <https://trac.macports.org/ticket/50032#comment:8> MacPorts <https://www.macports.org/> Ports system for macOS
#50032: libsdl @1.2.15_3: error: expected specifier-qualifier-list before 'vector' -----------------------------+------------------------------------ Reporter: 4625khz.mail@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: tiger powerpc haspatch Port: libsdl | -----------------------------+------------------------------------ Comment (by kenneth.f.cunningham@…): You guys have a lot of experience -- might be a rare person with a G3 running Tiger who wants libsdl, but who knows? I like to be inclusive! On my G5 Powermac running Tiger, I get {{{ $ sysctl hw.optional.altivec hw.optional.altivec: 1 }}} so a TCL block testing that with exec (haven't done that before, so have to look into how to do it). That test has to be locked inside the powerpc block of course, because on an intel processor, I get this, rather than "0": {{{ $ sysctl hw.optional.altivec second level name optional in hw.optional.altivec is invalid }}} -- Ticket URL: <https://trac.macports.org/ticket/50032#comment:9> MacPorts <https://www.macports.org/> Ports system for macOS
#50032: libsdl @1.2.15_3: error: expected specifier-qualifier-list before 'vector' -----------------------------+------------------------------------ Reporter: 4625khz.mail@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: tiger powerpc haspatch Port: libsdl | -----------------------------+------------------------------------ Comment (by jmr@…): No need to exec, we have a sysctl command. See ffmpeg for the way to do it. -- Ticket URL: <https://trac.macports.org/ticket/50032#comment:10> MacPorts <https://www.macports.org/> Ports system for macOS
#50032: libsdl @1.2.15_3: error: expected specifier-qualifier-list before 'vector' -----------------------------+------------------------------------ Reporter: 4625khz.mail@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: tiger powerpc haspatch Port: libsdl | -----------------------------+------------------------------------ Comment (by kenneth.f.cunningham@…): The new fix adds in the sysctl check for a powerpc vector unit (altivec). Confirmed to build through on Darwin 8 PowerPC G5 with altivec -- none of my G3s are presently set up with Tiger to confirm it works gracefully there, although it should. -- Ticket URL: <https://trac.macports.org/ticket/50032#comment:11> MacPorts <https://www.macports.org/> Ports system for macOS
#50032: libsdl @1.2.15_3: error: expected specifier-qualifier-list before 'vector' -----------------------------+------------------------------------ Reporter: 4625khz.mail@… | Owner: jmr@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: fixed | Keywords: tiger powerpc haspatch Port: libsdl | -----------------------------+------------------------------------ Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: r152391 -- Ticket URL: <https://trac.macports.org/ticket/50032#comment:12> MacPorts <https://www.macports.org/> Ports system for macOS
participants (1)
-
MacPorts