[MacPorts] #41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02
#41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02 -----------------------------+-------------------------------- Reporter: thomas.gimpel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: -----------------------------+-------------------------------- Coin fails to build on Mavericks with Xcode 5.0.2. It seems that the math- undefs mechanism does not work, because Xcode uses the math functions to be avoided be Coin within some inline functions in ''/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath'' like this: {{{ inline _LIBCPP_INLINE_VISIBILITY float acos(float __x) _NOEXCEPT {return acosf(__x);} }}} Since ''math-undefs.h'' contains: {{{ #define acosf(x) NO_SINGLEPREC }}} the compilation fails as soon ''cmath'' is included. -- Ticket URL: <https://trac.macports.org/ticket/41786> MacPorts <http://www.macports.org/> Ports system for OS X
#41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02 ------------------------------+----------------------- Reporter: thomas.gimpel@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: Coin | ------------------------------+----------------------- Changes (by ryandesign@…): * keywords: => mavericks * owner: macports-tickets@… => css@… * port: => Coin -- Ticket URL: <https://trac.macports.org/ticket/41786#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02 ------------------------------+----------------------- Reporter: thomas.gimpel@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: Coin | ------------------------------+----------------------- Comment (by css@…): I'm unable to tackle this without access to Mavericks. I need a new Mac. :( -- Ticket URL: <https://trac.macports.org/ticket/41786#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02 ------------------------------+----------------------- Reporter: thomas.gimpel@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: Coin | ------------------------------+----------------------- Comment (by andre.holzner@…): homebrew seems to have the same problem: https://github.com/Homebrew/homebrew/issues/23782 Looking at the pull request changes: https://github.com/Homebrew/homebrew/pull/25809/files it looks like they fixed it essentially by replacing the include guard of include/Inventor/C/base/math-undefs.h by an #ifdef false (effectively commenting out everything in this file) -- Ticket URL: <https://trac.macports.org/ticket/41786#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02 ------------------------------+----------------------- Reporter: thomas.gimpel@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks Port: Coin | ------------------------------+----------------------- Comment (by andre.holzner@…): I created a simple patch (math-undefs.patch) and this makes Coin build for me on OSX 10.9 -- Ticket URL: <https://trac.macports.org/ticket/41786#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02 ------------------------------+-------------------------------- Reporter: thomas.gimpel@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks haspatch Port: Coin | ------------------------------+-------------------------------- Changes (by ryandesign@…): * keywords: mavericks => mavericks haspatch -- Ticket URL: <https://trac.macports.org/ticket/41786#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02 ------------------------------+-------------------------------- Reporter: thomas.gimpel@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks haspatch Port: Coin | ------------------------------+-------------------------------- Comment (by ryandesign@…): See also (duplicate?) #42763. -- Ticket URL: <https://trac.macports.org/ticket/41786#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02 ------------------------------+-------------------------------- Reporter: thomas.gimpel@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks haspatch Port: Coin | ------------------------------+-------------------------------- Comment (by andre.holzner@…): interesting that #42763 was submitted at more or less the same time as activity on this ticket. I tried the patch there and it also builds for me on OSX 10.9. The patch there deactivates a bit less of the file include/Inventor/C/base/math-undefs.h than what I attached here (it leaves the compile time error intact when this file is included from code outside Coin), so maybe the patch in #42763 is preferable. -- Ticket URL: <https://trac.macports.org/ticket/41786#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02 ------------------------------+-------------------------------- Reporter: thomas.gimpel@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks haspatch Port: Coin | ------------------------------+-------------------------------- Comment (by andre.holzner@…): There is actually also a patch proposed at the Bitbucket Coin3D repository: https://bitbucket.org/Coin3D/coin/issue/45/coin-fails-to- build-on-os-x-108-mavericks#comment-7695457 . The problem we are discussing here is the second patch of the post dated 2014-01-12, the first patch there is already present in macport's configure.patch and the third one in clang-name-lookup.diff. -- Ticket URL: <https://trac.macports.org/ticket/41786#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02 ------------------------------+-------------------------------- Reporter: thomas.gimpel@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks haspatch Port: Coin | ------------------------------+-------------------------------- Comment (by macsforever2000@…): @andre.holzner: [https://guide.macports.org/#development.patches Per the guidelines], please instead attach a unified diff of the Portfile so we can easily see what changes you are proposing. -- Ticket URL: <https://trac.macports.org/ticket/41786#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02 ------------------------------+-------------------------------- Reporter: thomas.gimpel@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks haspatch Port: Coin | ------------------------------+-------------------------------- Comment (by andre.holzner@…): Replying to [comment:10 macsforever2000@…]:
@andre.holzner: [https://guide.macports.org/#development.patches Per the guidelines], please instead attach a unified diff of the Portfile so we can easily see what changes you are proposing.
ok, I just did that (Portfile.patch) -- Ticket URL: <https://trac.macports.org/ticket/41786#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02 ------------------------------+-------------------------------- Reporter: thomas.gimpel@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks haspatch Port: Coin | ------------------------------+-------------------------------- Comment (by mojca@…): The link above shows that upstream included this patch: * https://bitbucket.org/Coin3D/coin/commits/9099b117765e03f96bd38ffd9cf58d055b... -- Ticket URL: <https://trac.macports.org/ticket/41786#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02 ------------------------------+-------------------------------- Reporter: thomas.gimpel@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks haspatch Port: Coin | ------------------------------+-------------------------------- Comment (by ryandesign@…): Replying to [comment:11 andre.holzner@…]:
Replying to [comment:10 macsforever2000@…]:
@andre.holzner: [https://guide.macports.org/#development.patches Per the guidelines], please instead attach a unified diff of the Portfile so we can easily see what changes you are proposing.
ok, I just did that (Portfile.patch)
The patch is reversed... -- Ticket URL: <https://trac.macports.org/ticket/41786#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02 ------------------------------+-------------------------------- Reporter: thomas.gimpel@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks haspatch Port: Coin | ------------------------------+-------------------------------- Comment (by mark.brethen@…): I uploaded a unified patch and will try it on my Mavericks setup. -- Ticket URL: <https://trac.macports.org/ticket/41786#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
#41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02 ------------------------------+-------------------------------- Reporter: thomas.gimpel@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks haspatch Port: Coin | ------------------------------+-------------------------------- Comment (by mark.brethen@…): I was able to build Coin on Mac OS X 10.9.3 using the patch. -- Ticket URL: <https://trac.macports.org/ticket/41786#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
#41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02 ------------------------------+-------------------------------- Reporter: thomas.gimpel@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks haspatch Port: Coin | ------------------------------+-------------------------------- Comment (by mojca@…): Unrelated, the configure says: {{{ checking for OpenGL library dev-kit... -I/usr/X11R6/include -L/usr/X11R6/lib -lGL }}} That should probably be fixed. -- Ticket URL: <https://trac.macports.org/ticket/41786#comment:16> MacPorts <http://www.macports.org/> Ports system for OS X
#41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02 ------------------------------+-------------------------------- Reporter: thomas.gimpel@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks haspatch Port: Coin | ------------------------------+-------------------------------- Comment (by mojca@…): r121247 -- Ticket URL: <https://trac.macports.org/ticket/41786#comment:17> MacPorts <http://www.macports.org/> Ports system for OS X
#41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02 ------------------------------+-------------------------------- Reporter: thomas.gimpel@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mavericks haspatch Port: Coin | ------------------------------+-------------------------------- Comment (by mojca@…): There are other things that need an update in the Coin port, among others a missing livecheck, as well as: {{{ #!diff --- Portfile +++ Portfile @@ -6,7 +6,7 @@ name Coin version 3.1.3 revision 2 -license GPL-2 +license BSD description cross platform C++ OpenGL scene graph library long_description Coin is a high-level 3D graphics library with a \ C++ Application Programming Interface. Coin uses scene-graph data \ @@ -14,10 +14,10 @@ kinds of scientific and engineering visualization applications. categories graphics devel -homepage http://www.coin3d.org/lib/coin/ +homepage https://bitbucket.org/Coin3D/coin/wiki/Home platforms darwin maintainers css -master_sites http://ftp.coin3d.org/coin/src/all/ +master_sites https://bitbucket.org/Coin3D/coin/downloads/ checksums rmd160 e57fd6a4876a06874429f9ad6b96f166f5609362 \ sha256 583478c581317862aa03a19f14c527c3888478a06284b9a46a0155fa5886d417 }}} -- Ticket URL: <https://trac.macports.org/ticket/41786#comment:18> MacPorts <http://www.macports.org/> Ports system for OS X
#41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02 ------------------------------+-------------------------------- Reporter: thomas.gimpel@… | Owner: css@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: mavericks haspatch Port: Coin | ------------------------------+-------------------------------- Changes (by mojca@…): * status: new => closed * version: 2.2.1 => * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/41786#comment:19> MacPorts <http://www.macports.org/> Ports system for OS X
#41786: Coin @3.1.3 build failure on OS X 10.9 / Xcode 5.02 ------------------------------+-------------------------------- Reporter: thomas.gimpel@… | Owner: css@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: mavericks haspatch Port: Coin | ------------------------------+-------------------------------- Comment (by ryandesign@…): If this project is now hosted at bitbucket, consider using the bitbucket portgroup. -- Ticket URL: <https://trac.macports.org/ticket/41786#comment:20> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts