Opened 7 years ago

Last modified 7 years ago

#52947 assigned defect

grib_api @1.18.0_1 +gcc6: build using Xcode Clang instead of gcc6

Reported by: pgf Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.3.5
Keywords: Cc:
Port: grib_api

Description

The Xcode Clang compiler is used to build even if the +gcc6 (default) variant is set. See the attached log (just a portion of the whole log).

Attachments (1)

main.log (23.2 KB) - added by pgf 7 years ago.
configure part of the log

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by pgf

Attachment: main.log added

configure part of the log

comment:1 Changed 7 years ago by ken-cunningham-webuse

I noticed

Preferred compilers: clang macports-clang-3.8 macports-clang-3.7

by any chance do you have default compilers set in your macports.conf?

default_compilers       macports-clang-3.8 macports-clang-3.7

if so, on my testing this will override portfile settings (which has turned out to be extremely useful at times).

If you do, you can comment that out to build this port - or reassess whether you still need them.

--hope this helps - K

comment:2 Changed 7 years ago by mf2k (Frank Schima)

Keywords: grib_api removed
Owner: changed from macports-tickets@… to tenomoto
Status: newassigned

comment:3 Changed 7 years ago by mf2k (Frank Schima)

Cc: tenomoto removed

comment:4 in reply to:  1 Changed 7 years ago by pgf

Replying to ken-cunningham-webuse:

by any chance do you have default compilers set in your macports.conf?

default_compilers       macports-clang-3.8 macports-clang-3.7

No:

[foo@bar: ~]$ grep -i default_compilers /opt/local/etc/macports/macports.conf

comment:5 Changed 7 years ago by pgf

Going deeper on this issue... The +gcc6 variant sets the fortran compiler to gfortran-mp-6 while keeping Clang for c/c++ . Indeed Clang doesn't provide a fortran front end. So this might be a deliberate choice and not a defect, isn't it?

Note: See TracTickets for help on using tickets.