[MacPorts] #31664: g95 configure build failure with OSX Lion and Xcode 4.2
#31664: g95 configure build failure with OSX Lion and Xcode 4.2 -----------------------------------+---------------------------------------- Reporter: bv_sunshine@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: -----------------------------------+---------------------------------------- Building g95 on OSX Lion and Xcode 4.2 fails with the following error messages: ../../gcc/toplev.c:539:1: error: redefinition of a 'extern inline' function 'floor_log2' is not supported in C99 mode ../../gcc/toplev.c:574:1: error: redefinition of a 'extern inline' function 'exact_log2' is not supported in C99 mode main.log attached -- Ticket URL: <https://trac.macports.org/ticket/31664> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31664: g95 configure build failure with OSX Lion and Xcode 4.2 -----------------------------------+---------------------------------------- Reporter: bv_sunshine@… | Owner: takeshi@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: g95 -----------------------------------+---------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => takeshi@… * port: => g95 Old description:
Building g95 on OSX Lion and Xcode 4.2 fails with the following error messages:
../../gcc/toplev.c:539:1: error: redefinition of a 'extern inline' function 'floor_log2' is not supported in C99 mode ../../gcc/toplev.c:574:1: error: redefinition of a 'extern inline' function 'exact_log2' is not supported in C99 mode
main.log attached
New description: Building g95 on OSX Lion and Xcode 4.2 fails with the following error messages: {{{ ../../gcc/toplev.c:539:1: error: redefinition of a 'extern inline' function 'floor_log2' is not supported in C99 mode ../../gcc/toplev.c:574:1: error: redefinition of a 'extern inline' function 'exact_log2' is not supported in C99 mode }}} main.log attached -- Comment: You could try building g95 with llvm-gcc-4.2 instead of the default clang: {{{ sudo port clean g95 sudo port install g95 configure.compiler=llvm-gcc-4.2 }}} -- Ticket URL: <https://trac.macports.org/ticket/31664#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31664: g95 configure build failure with OSX Lion and Xcode 4.2 -----------------------------------+---------------------------------------- Reporter: bv_sunshine@… | Owner: takeshi@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: g95 -----------------------------------+---------------------------------------- Comment(by bv_sunshine@…): Replying to [comment:1 ryandesign@…]:
You could try building g95 with llvm-gcc-4.2 instead of the default clang:
{{{ sudo port clean g95 sudo port install g95 configure.compiler=llvm-gcc-4.2 }}}
I confirm that using the above workaround the build completes successfully. -- Ticket URL: <https://trac.macports.org/ticket/31664#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31664: g95 configure build failure with OSX Lion and Xcode 4.2 ------------------------------------+--------------------------------------- Reporter: bv_sunshine@… | Owner: takeshi@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: Port: g95 | ------------------------------------+--------------------------------------- Changes (by takeshi@…): * status: new => closed * resolution: => fixed Comment: fixed in r86208. Thanks. -- Ticket URL: <https://trac.macports.org/ticket/31664#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts