Opened 6 years ago

Closed 6 years ago

#52427 closed defect (fixed)

esmf @6_3_0rp1+gcc6: error: no match for 'operator!='

Reported by: William.Capehart@… Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: esmf

Description

I am getting Errors with macOS Sierra (10.12) with gcc6 that is also impacting the install of NCL-NCARG

Log Attached

work/esmf/src/Infrastructure/Mesh/src/Moab/io/../parallel -DESMF_NO_INTEGER_1_BYTE -DESMF_NO_INTEGER_2_BYTE -DESMF_LAPACK=1 -DESMF_MOAB=1 -DESMF_NETCDF=1 -DESMF_XERCES=1 -DESMF_NO_PTHREADS -DESMF_NO_OPENACC -DSx86_64_small=1 -DESMF_OS_Darwin=1 -D__SDIR__='"src/Infrastructure/Mesh/src/Moab/io"' -DESMF_MPIUNI /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/WriteGmsh.cpp -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/obj/objO/Darwin.gfortran.64.mpiuni.default/WriteGmsh.o
:info:build make[10]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/obj/objO/Darwin.gfortran.64.mpiuni.default/ReadABAQUS.o] Error 1
:info:build make[10]: *** Waiting for unfinished jobs....
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/../AffineXform.hpp:22:0,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/SMF_State.hpp:4,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/SMF_State.cpp:3:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/../moab/Matrix3.hpp: In member function 'bool moab::Matrix3::invert()':
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/../moab/Matrix3.hpp:272:10: warning: 'int finite(double)' is deprecated [-Wdeprecated-declarations]
:info:build      if (!finite(i) || fabs(i) < std::numeric_limits<double>::epsilon())
:info:build           ^~~~~~
:info:build In file included from /opt/local/include/gcc6/c++/cmath:45:0,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/../moab/CartVect.hpp:19,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/../AffineXform.hpp:21,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/SMF_State.hpp:4,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/SMF_State.cpp:3:
:info:build /opt/local/lib/gcc6/gcc/x86_64-apple-darwin16/6.1.0/include-fixed/math.h:772:12: note: declared here
:info:build  extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
:info:build             ^~~~~~
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/../AffineXform.hpp:22:0,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/SMF_State.hpp:4,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/SMF_State.cpp:3:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/../moab/Matrix3.hpp:272:18: warning: 'int finite(double)' is deprecated [-Wdeprecated-declarations]
:info:build      if (!finite(i) || fabs(i) < std::numeric_limits<double>::epsilon())
:info:build                   ^
:info:build In file included from /opt/local/include/gcc6/c++/cmath:45:0,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/../moab/CartVect.hpp:19,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/../AffineXform.hpp:21,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/SMF_State.hpp:4,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/SMF_State.cpp:3:
:info:build /opt/local/lib/gcc6/gcc/x86_64-apple-darwin16/6.1.0/include-fixed/math.h:772:12: note: declared here
:info:build  extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
:info:build             ^~~~~~
:info:build make[10]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/mod/modO/Darwin.gfortran.64.mpiuni.default'
:info:build make[9]: *** [esmflib] Error 2
:info:build make[9]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/mod/modO/Darwin.gfortran.64.mpiuni.default'
:info:build make[8]: *** [tree_lib] Error 2
:info:build make[8]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io'
:info:build make[7]: *** [tree] Error 1
:info:build make[7]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab'
:info:build make[6]: *** [tree] Error 1
:info:build make[6]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src'
:info:build make[5]: *** [tree] Error 1
:info:build make[5]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh'
:info:build make[4]: *** [tree] Error 1
:info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure'
:info:build make[3]: *** [tree] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src'
:info:build make[2]: *** [tree] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf'
:info:build make[1]: *** [build_libs] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf'
:info:build make: *** [lib] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf" && /usr/bin/make -j8 -w lib ESMF_LIBDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/lib 
:info:build Exit code: 2
:error:build org.macports.build for port esmf returned: command execution failed
:debug:build Error code: CHILDSTATUS 46219 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"portbuild::build_main org.macports.build"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for esmf: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port esmf for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/main.log

Attachments (1)

esmf_crash.log (420.3 KB) - added by William.Capehart@… 6 years ago.

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by William.Capehart@…

Attachment: esmf_crash.log added

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

Cc: takeshi@… removed
Owner: changed from macports-tickets@… to takeshi@…
Port: ncarg removed
Summary: esmf @6_3_0rp1+gcc6 error: Compile Erroresmf @6_3_0rp1+gcc6: error: no match for 'operator!='

The first error in the log is:

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/ReadABAQUS.cpp: In destructor 'virtual moab::ReadABAQUS::~ReadABAQUS()':
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/ReadABAQUS.cpp:108:12: error: no match for 'operator!=' (operand types are 'long int' and 'std::ifstream {aka std::basic_ifstream<char>}')
:info:build    if (NULL != abFile)
:info:build             ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/ReadABAQUS.cpp:108:12: note: candidate: operator!=(long int, int) <built-in>
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_esmf/esmf/work/esmf/src/Infrastructure/Mesh/src/Moab/io/ReadABAQUS.cpp:108:12: note:   no known conversion for argument 2 from 'std::ifstream {aka std::basic_ifstream<char>}' to 'int'

comment:2 Changed 6 years ago by gnw3

GCC 6 doesn't accept the if (NULL != abFile) construct (see: Porting to GCC 6), but ESMF 6.3.0r should build with GCC 5 (and link to netcdf +gcc6) Meanwhile, ESMF 7 has been released. One can hope ESMF 7 has been brought up to GCC 6 standards.

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

Resolution: fixed
Status: newclosed

Done in r154281.

Note: See TracTickets for help on using tickets.