Opened 13 years ago

Closed 13 years ago

#31664 closed defect (fixed)

g95 configure build failure with OSX Lion and Xcode 4.2

Reported by: bv_sunshine@… Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: g95

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Attachments (1)

main.log (3.1 MB) - added by bv_sunshine@… 13 years ago.

Change History (4)

Changed 13 years ago by bv_sunshine@…

Attachment: main.log added

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to takeshi@…
Port: g95 added

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

comment:2 in reply to:  1 Changed 13 years ago by bv_sunshine@…

Replying to 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.

comment:3 Changed 13 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: newclosed

fixed in r86208. Thanks.

Note: See TracTickets for help on using tickets.