[Met_help] [rt.rap.ucar.edu #68481] History for Trying to build MET 4.1 on OSX 1.9

John Halley Gotway via RT met_help at ucar.edu
Fri Oct 3 12:28:07 MDT 2014


----------------------------------------------------------------
  Initial Request
----------------------------------------------------------------

Hi.
I'm making some progress but have run into this error. Am I missing some 
external libs?  Any help would be welcome.

....
1 warning generated.
/usr/bin/icc num_array.cc -Wshadow -static  -DBLOCK4 -c 
-I/Users/hellyj/src/METv4.1/include
num_array.cc:14:17: warning: using directive refers to 
implicitly-defined namespace 'std'
using namespace std;
                 ^
num_array.cc:535:8: error: reference to 'rank' is ambiguous
ties = rank(data, data_rank, n);
        ^
/Users/hellyj/src/METv4.1/include/ptile.h:40:12: note: candidate found 
by name lookup is 'rank'
extern int rank(const double *array, double *rank, int n);
            ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/type_traits:676:51: 
note: candidate found by name lookup is 'std::__1::rank'
template <class _Tp> struct _LIBCPP_TYPE_VIS_ONLY rank
                                                   ^
1 warning and 1 error generated.
make[3]: *** [num_array.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

-- 
John Helly, University of California, San Diego / San Diego Supercomputer Center / Scripps Institution of Oceanography / 760 840 8660 mobile / stonesteps (Skype) / stonesteps7 (iChat) / http://www.sdsc.edu/~hellyj



----------------------------------------------------------------
  Complete Ticket History
----------------------------------------------------------------

Subject: Trying to build MET 4.1 on OSX 1.9
From: John Halley Gotway
Time: Fri Aug 01 09:28:14 2014

John,

I apologize for the delay in getting back to you on this.  Are you
still
stuck on this compilation problem?

I haven't seen this error message in the past, but it appears the
compiler
is complaining of a naming conflict between  the function named "rank"
in
METv4.1/src/basic/vx_math/ptile.h and ptile.cc and "rank" from the
Standard
Template Library.  I haven't seen this conflict in the past.

We could try renaming the function in MET to see if that resolves the
issue.  Please let me know if you'd like to try that, and if so, I'll
send
you a set of patches to try that out.  Are you using METv4.1?

Thanks,
John Halley Gotway
met_help at ucar.edu


On Wed, Jul 30, 2014 at 8:15 PM, John Helly via RT <met_help at ucar.edu>
wrote:

>
> Wed Jul 30 20:14:59 2014: Request 68481 was acted upon.
> Transaction: Ticket created by hellyj at ucsd.edu
>        Queue: met_help
>      Subject: Trying to build MET 4.1 on OSX 1.9
>        Owner: Nobody
>   Requestors: hellyj at ucsd.edu
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=68481 >
>
>
> Hi.
> I'm making some progress but have run into this error. Am I missing
some
> external libs?  Any help would be welcome.
>
> ....
> 1 warning generated.
> /usr/bin/icc num_array.cc -Wshadow -static  -DBLOCK4 -c
> -I/Users/hellyj/src/METv4.1/include
> num_array.cc:14:17: warning: using directive refers to
> implicitly-defined namespace 'std'
> using namespace std;
>                  ^
> num_array.cc:535:8: error: reference to 'rank' is ambiguous
> ties = rank(data, data_rank, n);
>         ^
> /Users/hellyj/src/METv4.1/include/ptile.h:40:12: note: candidate
found
> by name lookup is 'rank'
> extern int rank(const double *array, double *rank, int n);
>             ^
>
>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/type_traits:676:51:
> note: candidate found by name lookup is 'std::__1::rank'
> template <class _Tp> struct _LIBCPP_TYPE_VIS_ONLY rank
>                                                    ^
> 1 warning and 1 error generated.
> make[3]: *** [num_array.o] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all] Error 2
> make: *** [all] Error 2
>
> --
> John Helly, University of California, San Diego / San Diego
Supercomputer
> Center / Scripps Institution of Oceanography / 760 840 8660 mobile /
> stonesteps (Skype) / stonesteps7 (iChat) /
http://www.sdsc.edu/~hellyj
>
>
>

------------------------------------------------


More information about the Met_help mailing list