← Back to team overview

dolfin team mailing list archive

intel compilers + os x

 

Has anyone played with the intel compilers and dolfin on an os x machine? I've been getting some errors when I try to compile with them as a serial (no mpi) package:

dolfin_wrap.cpp(625): error #810: conversion from "int" to "unsigned char" may lose significant bits
        uu = ((d - '0') << 4);
           ^

dolfin_wrap.cpp(627): error #810: conversion from "int" to "unsigned char" may lose significant bits
        uu = ((d - ('a'-10)) << 4);
           ^

dolfin_wrap.cpp(632): error #810: conversion from "int" to "unsigned char" may lose significant bits
        uu |= (d - '0');
           ^

dolfin_wrap.cpp(634): error #810: conversion from "int" to "unsigned char" may lose significant bits
        uu |= (d - ('a'-10));
           ^

dolfin_wrap.cpp(1693): error #981: operands are evaluated in unspecified order PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
                         ^

dolfin_wrap.cpp(1693): error #981: operands are evaluated in unspecified order PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
                         ^

dolfin_wrap.cpp(1856): error #981: operands are evaluated in unspecified order PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
                         ^

dolfin_wrap.cpp(1856): error #981: operands are evaluated in unspecified order PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
                         ^

dolfin_wrap.cpp(2301): error #981: operands are evaluated in unspecified order
    Py_DECREF(SWIG_This());
    ^

dolfin_wrap.cpp(2618): error #304: access control not specified ("public" by default)
    struct GCItem_Object : GCItem
                           ^

dolfin_wrap.cpp(2638): error #304: access control not specified ("public" by default)
    struct GCItem_T : GCItem
                      ^

dolfin_wrap.cpp(2654): error #304: access control not specified ("public" by default)
    struct GCArray_T : GCItem
                       ^

dolfin_wrap.cpp(2715): error #981: operands are evaluated in unspecified order
                    << e.getMessage() << std::endl;
                    ^

dolfin_wrap.cpp(2717): error #981: operands are evaluated in unspecified order std::cerr << "std::exception caught: "<< e.what() << std::endl;
                                                ^

dolfin_wrap.cpp(2934): error #981: operands are evaluated in unspecified order
          owner[vptr] = new GCItem_Object(own);
                      ^

dolfin_wrap.cpp(3257): error #304: access control not specified ("public" by default)
    struct PyObject_var : PyObject_ptr {
                          ^

dolfin_wrap.cpp(3324): error #869: parameter "n" was never referenced
      virtual PySwigIterator *decr(size_t n = 1)
                                          ^

dolfin_wrap.cpp(3332): error #383: value copied to temporary, reference to temporary used
        throw std::invalid_argument("operation not supported");
                                    ^

dolfin_wrap.cpp(3330): error #869: parameter "x" was never referenced
      virtual ptrdiff_t distance(const PySwigIterator &x) const
                                                       ^

dolfin_wrap.cpp(3337): error #383: value copied to temporary, reference to temporary used
        throw std::invalid_argument("operation not supported");
                                    ^

dolfin_wrap.cpp(3335): error #869: parameter "x" was never referenced
      virtual bool equal (const PySwigIterator &x) const
                                                ^

dolfin_wrap.cpp(3743): error #810: conversion from "long" to "char" may lose significant bits
  	if (val) *val = static_cast< char >(v);
  	                ^

dolfin_wrap.cpp(4100): error #981: operands are evaluated in unspecified order
      return SWIG_FromCharPtrAndSize(s.data(), s.size());
                                               ^

dolfin_wrap.cpp(4100): error #981: operands are evaluated in unspecified order
      return SWIG_FromCharPtrAndSize(s.data(), s.size());
             ^

dolfin_wrap.cpp(4127): error #981: operands are evaluated in unspecified order
        return std::less<PyObject *>()(v, w);
                                      ^

dolfin_wrap.cpp(4137): error #981: operands are evaluated in unspecified order
        return std::less<PyObject *>()(v, w);
                                      ^

dolfin_wrap.cpp(4186): error #383: value copied to temporary, reference to temporary used
      throw std::out_of_range("index out of range");
                              ^

dolfin_wrap.cpp(4195): error #383: value copied to temporary, reference to temporary used
  	throw std::out_of_range("index out of range");
  	                        ^

dolfin_wrap.cpp(4722): error #981: operands are evaluated in unspecified order return swig::make_output_iterator(self->begin(), self- >begin(), self->end(), *PYTHON_SELF);
                                                         ^

dolfin_wrap.cpp(4722): error #981: operands are evaluated in unspecified order return swig::make_output_iterator(self->begin(), self- >begin(), self->end(), *PYTHON_SELF);
               ^

dolfin_wrap.cpp(4851): error #810: conversion from "long" to "short" may lose significant bits
        if (val) *val = static_cast< short >(v);
                        ^

dolfin_wrap.cpp(4867): error #810: conversion from "unsigned long" to "unsigned short" may lose significant bits
        if (val) *val = static_cast< unsigned short >(v);
                        ^

dolfin_wrap.cpp(4972): error #810: conversion from "double" to "float" may lose significant bits
        if (val) *val = static_cast< float >(v);
                        ^

dolfin_wrap.cpp(5335): error #981: operands are evaluated in unspecified order return swig::make_output_iterator(self->begin(), self- >begin(), self->end(), *PYTHON_SELF);
                                                         ^

dolfin_wrap.cpp(5335): error #981: operands are evaluated in unspecified order return swig::make_output_iterator(self->begin(), self- >begin(), self->end(), *PYTHON_SELF);
               ^

dolfin_wrap.cpp(5345): error #383: value copied to temporary, reference to temporary used
  	throw std::out_of_range("pop from empty container");
  	                        ^

dolfin_wrap.cpp(5402): error #981: operands are evaluated in unspecified order return swig::make_output_iterator(self->begin(), self- >begin(), self->end(), *PYTHON_SELF);
                                                         ^

dolfin_wrap.cpp(5402): error #981: operands are evaluated in unspecified order return swig::make_output_iterator(self->begin(), self- >begin(), self->end(), *PYTHON_SELF);
               ^

dolfin_wrap.cpp(5412): error #383: value copied to temporary, reference to temporary used
  	throw std::out_of_range("pop from empty container");
  	                        ^

dolfin_wrap.h(40): error #383: value copied to temporary, reference to temporary used std::map<std::string, bool>::const_iterator iv = inner.find(name);
                                                                    ^

dolfin_wrap.h(41): error #383: value copied to temporary, reference to temporary used
        return (iv != inner.end() ? iv->second : false);
                      ^

dolfin_wrap.h(45): error #383: value copied to temporary, reference to temporary used
      { inner[name] = val;}
              ^

dolfin_wrap.h(88): error #383: value copied to temporary, reference to temporary used std::map<std::string, bool>::const_iterator iv = inner.find(name);
                                                                    ^

dolfin_wrap.h(89): error #383: value copied to temporary, reference to temporary used
        return (iv != inner.end() ? iv->second : false);
                      ^

dolfin_wrap.h(93): error #383: value copied to temporary, reference to temporary used
      { inner[name] = val;}
              ^

dolfin_wrap.cpp(5547): error #981: operands are evaluated in unspecified order swig::PyObject_var result = PyObject_CallMethod(swig_get_self(), (char *)"dim", (char *)"(O)" ,(PyObject *)obj0);
                                                                                                   ^

dolfin_wrap.cpp(5547): error #981: operands are evaluated in unspecified order swig::PyObject_var result = PyObject_CallMethod(swig_get_self(), (char *)"dim", (char *)"(O)" ,(PyObject *)obj0);
                                ^

dolfin_wrap.cpp(5593): error #981: operands are evaluated in unspecified order swig::PyObject_var result = PyObject_CallMethod(swig_get_self(), (char *)"eval", (char *)"(OO)" ,(PyObject *)obj0,(PyObject *)obj1);
                                                                                                     ^

dolfin_wrap.cpp(5593): error #981: operands are evaluated in unspecified order swig::PyObject_var result = PyObject_CallMethod(swig_get_self(), (char *)"eval", (char *)"(OO)" ,(PyObject *)obj0,(PyObject *)obj1);
                                ^

dolfin_wrap.cpp(5618): error #981: operands are evaluated in unspecified order swig::PyObject_var result = PyObject_CallMethod(swig_get_self(), (char *)"eval", (char *)"(OO)" ,(PyObject *)obj0,(PyObject *)obj1);
                                                                                                     ^

dolfin_wrap.cpp(5618): error #981: operands are evaluated in unspecified order swig::PyObject_var result = PyObject_CallMethod(swig_get_self(), (char *)"eval", (char *)"(OO)" ,(PyObject *)obj0,(PyObject *)obj1);
                                ^

dolfin_wrap.cpp(5642): error #981: operands are evaluated in unspecified order swig::PyObject_var result = PyObject_CallMethod(swig_get_self(), (char *)"eval", (char *)"(O)" ,(PyObject *)obj0);
                                                                                                    ^

dolfin_wrap.cpp(5642): error #981: operands are evaluated in unspecified order swig::PyObject_var result = PyObject_CallMethod(swig_get_self(), (char *)"eval", (char *)"(O)" ,(PyObject *)obj0);
                                ^

dolfin_wrap.cpp(5692): error #981: operands are evaluated in unspecified order swig::PyObject_var result = PyObject_CallMethod(swig_get_self(), (char *)"inside", (char *)"(OO)" ,(PyObject *)obj0,(PyObject *)obj1);
                                                                                                       ^

dolfin_wrap.cpp(5692): error #981: operands are evaluated in unspecified order swig::PyObject_var result = PyObject_CallMethod(swig_get_self(), (char *)"inside", (char *)"(OO)" ,(PyObject *)obj0,(PyObject *)obj1);
                                ^

dolfin_wrap.cpp(5725): error #981: operands are evaluated in unspecified order swig::PyObject_var result = PyObject_CallMethod(swig_get_self(), (char *)"inside", (char *)"(OO)" ,(PyObject *)obj0,(PyObject *)obj1);
                                                                                                       ^

dolfin_wrap.cpp(5725): error #981: operands are evaluated in unspecified order swig::PyObject_var result = PyObject_CallMethod(swig_get_self(), (char *)"inside", (char *)"(OO)" ,(PyObject *)obj0,(PyObject *)obj1);
                                ^

dolfin_wrap.cpp(5771): error #981: operands are evaluated in unspecified order swig::PyObject_var result = PyObject_CallMethod(swig_get_self(), (char *)"map", (char *)"(OO)" ,(PyObject *)obj0,(PyObject *)obj1);
                                                                                                    ^

dolfin_wrap.cpp(5771): error #981: operands are evaluated in unspecified order swig::PyObject_var result = PyObject_CallMethod(swig_get_self(), (char *)"map", (char *)"(OO)" ,(PyObject *)obj0,(PyObject *)obj1);
                                ^

dolfin_wrap.cpp(5796): error #981: operands are evaluated in unspecified order swig::PyObject_var result = PyObject_CallMethod(swig_get_self(), (char *)"map", (char *)"(OO)" ,(PyObject *)obj0,(PyObject *)obj1);
                                                                                                    ^

dolfin_wrap.cpp(5796): error #981: operands are evaluated in unspecified order swig::PyObject_var result = PyObject_CallMethod(swig_get_self(), (char *)"map", (char *)"(OO)" ,(PyObject *)obj0,(PyObject *)obj1);
                                ^

dolfin_wrap.cpp(6039): error #1599: declaration hides variable "res" (declared at line 6035)
          int res = SWIG_AsVal_size_t(argv[1], NULL);
              ^

dolfin_wrap.cpp(6191): error #1599: declaration hides variable "res" (declared at line 6187)
          int res = SWIG_AsVal_size_t(argv[1], NULL);
              ^

dolfin_wrap.cpp(6238): error #981: operands are evaluated in unspecified order SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument); SWIG_fail;
          ^

dolfin_wrap.cpp(6238): error #981: operands are evaluated in unspecified order SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument); SWIG_fail;
          ^

dolfin_wrap.cpp(6297): error #981: operands are evaluated in unspecified order SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument); SWIG_fail;
          ^

dolfin_wrap.cpp(6297): error #981: operands are evaluated in unspecified order SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument); SWIG_fail;
          ^

dolfin_wrap.cpp(6948): error #1599: declaration hides variable "res" (declared at line 6945) int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__PySwigIterator, 0);
            ^

dolfin_wrap.cpp(6962): error #1599: declaration hides variable "res" (declared at line 6958)
          int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
              ^

dolfin_wrap.cpp(7287): error #1599: declaration hides variable "res" (declared at line 7283)
          int res = SWIG_AsVal_size_t(argv[1], NULL);
              ^

dolfin_wrap.cpp(8450): error #1599: declaration hides variable "res" (declared at line 8447)
        int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
            ^

dolfin_wrap.cpp(8454): error #1599: declaration hides variable "res" (declared at line 8450)
            int res = SWIG_AsVal_size_t(argv[2], NULL);
                ^

dolfin_wrap.cpp(8468): error #1599: declaration hides variable "res" (declared at line 8465)
        int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
            ^

dolfin_wrap.cpp(8472): error #1599: declaration hides variable "res" (declared at line 8468)
            int res = SWIG_AsVal_size_t(argv[2], NULL);
                ^

dolfin_wrap.cpp(8477): error #1599: declaration hides variable "res" (declared at line 8468)
              int res = SWIG_AsVal_size_t(argv[3], NULL);
                  ^

dolfin_wrap.cpp(8854): error #1599: declaration hides variable "res" (declared at line 8850)
          int res = SWIG_AsVal_char(argv[1], NULL);
              ^

dolfin_wrap.cpp(8867): error #1599: declaration hides variable "res" (declared at line 8864) int res = SWIG_AsPtr_std_basic_string_Sl_char_Sg_(argv[1], (std::basic_string<char>**)(0));
            ^

dolfin_wrap.cpp(8880): error #1599: declaration hides variable "res" (declared at line 8876)
          int res = SWIG_AsVal_char(argv[1], NULL);
              ^

dolfin_wrap.cpp(8885): error #1599: declaration hides variable "res" (declared at line 8876)
            int res = SWIG_AsVal_size_t(argv[2], NULL);
                ^

dolfin_wrap.cpp(8899): error #1599: declaration hides variable "res" (declared at line 8896) int res = SWIG_AsPtr_std_basic_string_Sl_char_Sg_(argv[1], (std::basic_string<char>**)(0));
            ^

dolfin_wrap.cpp(8903): error #1599: declaration hides variable "res" (declared at line 8899)
            int res = SWIG_AsVal_size_t(argv[2], NULL);
                ^

dolfin_wrap.cpp(8917): error #1599: declaration hides variable "res" (declared at line 8914)
        int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
            ^

dolfin_wrap.cpp(8921): error #1599: declaration hides variable "res" (declared at line 8917)
            int res = SWIG_AsVal_size_t(argv[2], NULL);
                ^

dolfin_wrap.cpp(8926): error #1599: declaration hides variable "res" (declared at line 8917)
              int res = SWIG_AsVal_size_t(argv[3], NULL);
                  ^

dolfin_wrap.cpp(9262): error #1599: declaration hides variable "res" (declared at line 9258)
          int res = SWIG_AsVal_char(argv[1], NULL);
              ^

dolfin_wrap.cpp(9275): error #1599: declaration hides variable "res" (declared at line 9272) int res = SWIG_AsPtr_std_basic_string_Sl_char_Sg_(argv[1], (std::basic_string<char>**)(0));
            ^

dolfin_wrap.cpp(9288): error #1599: declaration hides variable "res" (declared at line 9284)
          int res = SWIG_AsVal_char(argv[1], NULL);
              ^

dolfin_wrap.cpp(9293): error #1599: declaration hides variable "res" (declared at line 9284)
            int res = SWIG_AsVal_size_t(argv[2], NULL);
                ^

dolfin_wrap.cpp(9307): error #1599: declaration hides variable "res" (declared at line 9304) int res = SWIG_AsPtr_std_basic_string_Sl_char_Sg_(argv[1], (std::basic_string<char>**)(0));
            ^

dolfin_wrap.cpp(9311): error #1599: declaration hides variable "res" (declared at line 9307)
            int res = SWIG_AsVal_size_t(argv[2], NULL);
                ^

dolfin_wrap.cpp(9325): error #1599: declaration hides variable "res" (declared at line 9322)
        int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
            ^

dolfin_wrap.cpp(9329): error #1599: declaration hides variable "res" (declared at line 9325)
            int res = SWIG_AsVal_size_t(argv[2], NULL);
                ^

dolfin_wrap.cpp(9334): error #1599: declaration hides variable "res" (declared at line 9325)
              int res = SWIG_AsVal_size_t(argv[3], NULL);
                  ^

dolfin_wrap.cpp(9670): error #1599: declaration hides variable "res" (declared at line 9666)
          int res = SWIG_AsVal_char(argv[1], NULL);
              ^

dolfin_wrap.cpp(9683): error #1599: declaration hides variable "res" (declared at line 9680) int res = SWIG_AsPtr_std_basic_string_Sl_char_Sg_(argv[1], (std::basic_string<char>**)(0));
            ^

dolfin_wrap.cpp(9696): error #1599: declaration hides variable "res" (declared at line 9692)
          int res = SWIG_AsVal_char(argv[1], NULL);
              ^

dolfin_wrap.cpp(9701): error #1599: declaration hides variable "res" (declared at line 9692)
            int res = SWIG_AsVal_size_t(argv[2], NULL);
                ^

dolfin_wrap.cpp(9715): error #1599: declaration hides variable "res" (declared at line 9712) int res = SWIG_AsPtr_std_basic_string_Sl_char_Sg_(argv[1], (std::basic_string<char>**)(0));
            ^

dolfin_wrap.cpp(9719): error #1599: declaration hides variable "res" (declared at line 9715)
            int res = SWIG_AsVal_size_t(argv[2], NULL);
                ^

dolfin_wrap.cpp(9733): error #1599: declaration hides variable "res" (declared at line 9730)
        int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
            ^

compilation aborted for dolfin_wrap.cpp (code 4)
make[3]: *** [_dolfin_la-dolfin_wrap.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1