[MacPorts] #31777: openjade @1.3.2 clang fails, use llvm-gcc-4.2 instead, and also support +universal
#31777: openjade @1.3.2 clang fails, use llvm-gcc-4.2 instead, and also support +universal -----------------------------+---------------------------------------------- Reporter: fgp@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang universal | Port: openjade -----------------------------+---------------------------------------------- XCode 4.2's clang fails to build openjade, but llvm-gcc-4.2 works. Also, universal builds don't work because libtool doesn't use the magic "-arch ..." incantations when invoking the compiler. (More generally, i386 builds fail on machines where x86_64 is the default. Thus, putting openjade into the muniversal portgroup doesn't fix the problems with +universal) I've fixed both problems by * Setting configure.compiler to llvm-gcc-4.2 if it's set to clang * Using reinplace to patch libtool's CC and CXX settings Patch for the Portfile is attached. -- Ticket URL: <https://trac.macports.org/ticket/31777> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31777: openjade @1.3.2 clang fails, use llvm-gcc-4.2 instead, and also support +universal --------------------------------------+------------------------------------- Reporter: fgp@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang universal haspatch | Port: openjade --------------------------------------+------------------------------------- Changes (by ryandesign@…): * keywords: clang universal => clang universal haspatch Old description:
XCode 4.2's clang fails to build openjade, but llvm-gcc-4.2 works. Also, universal builds don't work because libtool doesn't use the magic "-arch ..." incantations when invoking the compiler.
(More generally, i386 builds fail on machines where x86_64 is the default. Thus, putting openjade into the muniversal portgroup doesn't fix the problems with +universal)
I've fixed both problems by * Setting configure.compiler to llvm-gcc-4.2 if it's set to clang * Using reinplace to patch libtool's CC and CXX settings
Patch for the Portfile is attached.
New description: XCode 4.2's clang fails to build openjade, but llvm-gcc-4.2 works. Also, universal builds don't work because libtool doesn't use the magic "-arch ..." incantations when invoking the compiler. (More generally, i386 builds fail on machines where x86_64 is the default. Thus, putting openjade into the muniversal portgroup doesn't fix the problems with +universal) I've fixed both problems by * Setting configure.compiler to llvm-gcc-4.2 if it's set to clang * Using reinplace to patch libtool's CC and CXX settings Patch for the Portfile is attached. -- -- Ticket URL: <https://trac.macports.org/ticket/31777#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31777: openjade @1.3.2 clang fails, use llvm-gcc-4.2 instead, and also support +universal --------------------------------------+------------------------------------- Reporter: fgp@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang universal haspatch | Port: openjade --------------------------------------+------------------------------------- Comment(by ryandesign@…): Unconditionally using `${configure.universal_ldflags}` is probably wrong; it would make non-universal builds be universal. Instead you probably want `[get_canonical_archflags]`. -- Ticket URL: <https://trac.macports.org/ticket/31777#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31777: openjade @1.3.2 clang fails, use llvm-gcc-4.2 instead, and also support +universal --------------------------------------+------------------------------------- Reporter: fgp@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang universal haspatch | Port: openjade --------------------------------------+------------------------------------- Comment(by fgp@…): I've replaced ${configure.universal_ldflags} with [get_canonical_archflags] as suggested, and verified that both universal and non-universal builds work and produce the correct binary. I've only tested on Mac OS X 10.6 with XCode 4.2, though (i.e. universal means i386 and x86_64, non-universal means just x86_64), since that's the only machine available to me. Patch was updated. -- Ticket URL: <https://trac.macports.org/ticket/31777#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31777: openjade @1.3.2 clang fails, use llvm-gcc-4.2 instead, and also support +universal --------------------------------------+------------------------------------- Reporter: fgp@… | Owner: dports@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang universal haspatch | Port: openjade --------------------------------------+------------------------------------- Changes (by dports@…): * owner: macports-tickets@… => dports@… * status: new => assigned -- Ticket URL: <https://trac.macports.org/ticket/31777#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31777: openjade @1.3.2 clang fails, use llvm-gcc-4.2 instead, and also support +universal --------------------------------------+------------------------------------- Reporter: fgp@… | Owner: dports@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang universal haspatch | Port: openjade --------------------------------------+------------------------------------- Changes (by dports@…): * cc: mamiano@… (added) Comment: #32612 seems like a duplicate. -- Ticket URL: <https://trac.macports.org/ticket/31777#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31777: openjade @1.3.2 clang fails, use llvm-gcc-4.2 instead, and also support +universal --------------------------------------+------------------------------------- Reporter: fgp@… | Owner: dports@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang universal haspatch | Port: openjade --------------------------------------+------------------------------------- Comment(by dports@…): I forced llvm-gcc-4.2 instead of clang in r88163. I did the same for opensp in r88162 because openjade seemed to be failing to build when opensp was built with clang. Still looking at the universal part of the patch. Patching libtool seems like a bit of a hack; will see if I can come up with something else. -- Ticket URL: <https://trac.macports.org/ticket/31777#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31777: openjade @1.3.2 clang fails, use llvm-gcc-4.2 instead, and also support +universal --------------------------------------+------------------------------------- Reporter: fgp@… | Owner: dports@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang universal haspatch | Port: openjade --------------------------------------+------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: Patching libtool isn't so awful; we were already doing it in this port (and in others of this vintage); now we'd just be patching it even better to support `-arch` flags. -- Ticket URL: <https://trac.macports.org/ticket/31777#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31777: openjade @1.3.2 clang fails, use llvm-gcc-4.2 instead, and also support +universal ---------------------------+------------------------------------------------ Reporter: fgp@… | Owner: dports@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: clang universal haspatch Port: openjade | ---------------------------+------------------------------------------------ Changes (by dports@…): * status: assigned => closed * resolution: => fixed Comment: Replying to [comment:7 ryandesign@…]:
Patching libtool isn't so awful; we were already doing it in this port (and in others of this vintage); now we'd just be patching it even better to support `-arch` flags.
Yeah, I was hoping we could just replace it with a newer version of libtool, but that's not looking like an easy task given some of the other things that are going on with openjade's build system. Let's go with patching libtool. Applied in r88165. I was also thrown off by some linker errors that turned out to be caused by openjade trying to link against libraries from an already-installed version of itself. Fixed that in r88165 too. (It's possible that's the problem I was seeing earlier and r88162 was unnecessary; testing that now.) -- Ticket URL: <https://trac.macports.org/ticket/31777#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31777: openjade @1.3.2 clang fails, use llvm-gcc-4.2 instead, and also support +universal ---------------------------+------------------------------------------------ Reporter: fgp@… | Owner: dports@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: clang universal haspatch Port: openjade | ---------------------------+------------------------------------------------ Comment(by dports@…): Replying to [comment:8 dports@…]:
(It's possible that's the problem I was seeing earlier and r88162 was unnecessary; testing that now.)
No, apparently not. For the record, r88162 does seem to be necessary after all. -- Ticket URL: <https://trac.macports.org/ticket/31777#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31777: openjade fails to build with clang -----------------------+-------------------------------------- Reporter: fgp@… | Owner: dports@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: clang universal haspatch Port: openjade | -----------------------+-------------------------------------- Changes (by jeremyhu@…): * status: closed => reopened * resolution: fixed => Comment: We need to fix the issues building this with clang. Reopening -- Ticket URL: <https://trac.macports.org/ticket/31777#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#31777: openjade fails to build with clang -----------------------+-------------------------------------- Reporter: fgp@… | Owner: dports@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: clang universal haspatch Port: openjade | -----------------------+-------------------------------------- Changes (by ryandesign@…): * status: reopened => closed * resolution: => fixed Comment: Replying to [comment:10 jeremyhu@…]:
We need to fix the issues building this with clang.
r115260 -- Ticket URL: <https://trac.macports.org/ticket/31777#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#31777: openjade fails to build with clang -----------------------+-------------------------------------- Reporter: fgp@… | Owner: dports@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: clang universal haspatch Port: openjade | -----------------------+-------------------------------------- Comment (by m.rick@…): @ryandesign This bug doesn't seem to have been fixed at all… cannot build OpenJade 1.3.2 under Maverick … So I cannot build the folioing ports depending on it : Viking and Gnumeric and there are probably plenty of others … -- Ticket URL: <https://trac.macports.org/ticket/31777#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#31777: openjade fails to build with clang -----------------------+-------------------------------------- Reporter: fgp@… | Owner: dports@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: clang universal haspatch Port: openjade | -----------------------+-------------------------------------- Changes (by ryandesign@…): * cc: m.rick@… (added) Comment: @m.rick: Please file a new ticket. This one was fixed 7 months ago. -- Ticket URL: <https://trac.macports.org/ticket/31777#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts