#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