[Flang-dev] flang __GNUC__

blubee blubeeme gurenchan at gmail.com
Mon Sep 17 08:43:12 EDT 2018

Does flang conform to GNUC?

Trying to use flang to build mpich: https://github.com/pmodels/mpich

Their configure script says that flang doesn't conform to the __GNUC__
standard, is this expected behavior?

F90-W-0915-Illegal macro name (conftest.F: -1)
F90-W-0915-Illegal macro name (conftest.F: -1)
F90-F-0952-Unexpected EOF following # directive (conftest.F: -1)
F90/amd64-FreeBSD FreeBSD Flang - 1.5 2017-05-01: compilation aborted
configure:19360: $? = 1
configure: failed program was:
|       program main
| #ifndef __GNUC__
|        choke me
| #endif
|       end
configure:19369: result: no
configure:19375: checking whether flang accepts -g
configure:19386: flang -c -g  conftest.f >&5
clang-6.0: warning: -rpath /usr/local/lib,: 'linker' input unused

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.flang-compiler.org/pipermail/flang-dev_lists.flang-compiler.org/attachments/20180917/92ca5284/attachment.html>

More information about the flang-dev mailing list