Opened 7 years ago

Closed 7 years ago

#56350 closed defect (fixed)

esmf: This file requires compiler and library support for the ISO C++ 2011 standard

Reported by: salomoneliasson Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.4.3
Keywords: Cc:
Port: esmf

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

Hi,

port rev-upgrade reports broken port, and then tries and fails to fix it automatically. I repeat the process but the port remains broken. My mac version is 10.13.4, Xcode is 9.1

--->  Found 1 broken file, matching files to ports       
--->  Found 1 broken port, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt: ncarg @6.3.0+gcc5.

Ultimately it concludes with this message:

Error: Failed to build esmf: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/main.log for details.
Error: Problem while installing esmf
Error: rev-upgrade failed: Error rebuilding ncarg
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

I have checked the attached the log file to the ticket

Attachments (1)

main.log (4.5 MB) - added by salomoneliasson 7 years ago.

Change History (4)

Changed 7 years ago by salomoneliasson

Attachment: main.log added

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

Description: modified (diff)
Keywords: rev-upgrade removed
Owner: set to tenomoto
Port: esmf added; ncarg @6.3.0+gcc5 removed
Status: newassigned
Summary: Broken port wont fixesmf: This file requires compiler and library support for the ISO C++ 2011 standard

Hmm, well the log shows:

/opt/local/include/gcc5/c++/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

I guess esmf needs to add that flag, at least when using gcc5 and probably later; not sure if needed for earlier gcc.

comment:2 Changed 7 years ago by salomoneliasson

Thanks for looking into this. What do you suggest I do at this stage, do I add these compiler flags? and actually, where to? /Salomon

comment:3 Changed 7 years ago by Takeshi Enomoto <takeshi@…>

Resolution: fixed
Status: assignedclosed

In 218d3fd276c65f9e22e19f7ec3ef686322e6a156/macports-ports (master):

esmf: fix build with gcc5 or earlier

Closes: #56350

Note: See TracTickets for help on using tickets.