Opened 10 years ago

Closed 10 years ago

#42763 closed defect (duplicate)

Coin 3d fix patch for clang

Reported by: l1q1d@… Owned by: cssdev
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: haspatch Cc:
Port: Coin

Description

To fix this issue:

In file included from base/SbTime.cpp:42:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:676:86: error: use of undeclared identifier 'NO_SINGLEPREC'
inline _LIBCPP_INLINE_VISIBILITY float       acos(float __x) _NOEXCEPT       {return acosf(__x);}
                                                                                     ^
../include/Inventor/C/base/math-undefs.h:54:18: note: expanded from macro 'acosf'
#define acosf(x) NO_SINGLEPREC
                 ^
In file included from base/all-base-cpp.cpp:57:
In file included from base/SbTime.cpp:42:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:691:86: error: use of undeclared identifier 'NO_SINGLEPREC'
inline _LIBCPP_INLINE_VISIBILITY float       asin(float __x) _NOEXCEPT       {return asinf(__x);}
                                                                                     ^
../include/Inventor/C/base/math-undefs.h:56:18: note: expanded from macro 'asinf'
#define asinf(x) NO_SINGLEPREC
                 ^
In file included from base/all-base-cpp.cpp:57:
In file included from base/SbTime.cpp:42:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:706:86: error: use of undeclared identifier 'NO_SINGLEPREC'
inline _LIBCPP_INLINE_VISIBILITY float       atan(float __x) _NOEXCEPT       {return atanf(__x);}
                                                                                     ^
../include/Inventor/C/base/math-undefs.h:58:18: note: expanded from macro 'atanf'
#define atanf(x) NO_SINGLEPREC
                 ^
In file included from base/all-base-cpp.cpp:57:
In file included from base/SbTime.cpp:42:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:721:116: error: too many arguments provided to function-like macro invocation
inline _LIBCPP_INLINE_VISIBILITY float       atan2(float __y, float __x) _NOEXCEPT             {return atan2f(__y, __x);}
                                                                                                                   ^
../include/Inventor/C/base/math-undefs.h:60:9: note: macro 'atan2f' defined here
#define atan2f(x) NO_SINGLEPREC
        ^
In file included from base/all-base-cpp.cpp:57:
In file included from base/SbTime.cpp:42:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:721:104: error: cannot initialize return object of type 'float' with an lvalue of type 'float (float, float)'
inline _LIBCPP_INLINE_VISIBILITY float       atan2(float __y, float __x) _NOEXCEPT             {return atan2f(__y, __x);}
                                                                                                       ^~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:762:85: error: use of undeclared identifier 'NO_SINGLEPREC'
inline _LIBCPP_INLINE_VISIBILITY float       cos(float __x) _NOEXCEPT       {return cosf(__x);}
                                                                                    ^
../include/Inventor/C/base/math-undefs.h:44:17: note: expanded from macro 'cosf'
#define cosf(x) NO_SINGLEPREC /* whatever that'll give us a compile error... */
                ^
In file included from base/all-base-cpp.cpp:57:
In file included from base/SbTime.cpp:42:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:946:112: error: too many arguments provided to function-like macro invocation
inline _LIBCPP_INLINE_VISIBILITY float       pow(float __x, float __y) _NOEXCEPT             {return powf(__x, __y);}
                                                                                                               ^
../include/Inventor/C/base/math-undefs.h:50:9: note: macro 'powf' defined here
#define powf(x) NO_SINGLEPREC
        ^
In file included from base/all-base-cpp.cpp:57:
In file included from base/SbTime.cpp:42:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:946:102: error: cannot initialize return object of type 'float' with an lvalue of type 'float (float, float)'
inline _LIBCPP_INLINE_VISIBILITY float       pow(float __x, float __y) _NOEXCEPT             {return powf(__x, __y);}
                                                                                                     ^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:973:85: error: use of undeclared identifier 'NO_SINGLEPREC'
inline _LIBCPP_INLINE_VISIBILITY float       sin(float __x) _NOEXCEPT       {return sinf(__x);}
                                                                                    ^
../include/Inventor/C/base/math-undefs.h:46:17: note: expanded from macro 'sinf'
#define sinf(x) NO_SINGLEPREC
                ^
In file included from base/all-base-cpp.cpp:57:
In file included from base/SbTime.cpp:42:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1005:86: error: use of undeclared identifier 'NO_SINGLEPREC'
inline _LIBCPP_INLINE_VISIBILITY float       sqrt(float __x) _NOEXCEPT       {return sqrtf(__x);}
                                                                                     ^
../include/Inventor/C/base/math-undefs.h:52:18: note: expanded from macro 'sqrtf'
#define sqrtf(x) NO_SINGLEPREC
                 ^
In file included from base/all-base-cpp.cpp:57:
In file included from base/SbTime.cpp:42:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cmath:1021:85: error: use of undeclared identifier 'NO_SINGLEPREC'
inline _LIBCPP_INLINE_VISIBILITY float       tan(float __x) _NOEXCEPT       {return tanf(__x);}
                                                                                    ^
../include/Inventor/C/base/math-undefs.h:48:17: note: expanded from macro 'tanf'
#define tanf(x) NO_SINGLEPREC
                ^
In file included from engines/all-engines-cpp.cpp:34:
In file included from engines/SoConvertAll.cpp:48:
../src/misc/SbHash.h:370:39: warning: unused parameter 'obj' [-Wunused-parameter]
    void operator()(Key & key, Type & obj, SbList<Key> * list) {
                                      ^
In file included from base/all-base-cpp.cpp:96:
base/string.cpp:108:12: warning: format specifies type 'unsigned int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
           me->bufsize, me->pointer, me->buffer, newsize);
           ^~~~~~~~~~~
base/string.cpp:108:50: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
           me->bufsize, me->pointer, me->buffer, newsize);
                                                 ^~~~~~~
2 warnings and 11 errors generated.
make[4]: *** [all-base-cpp.lo] Error 1
make[4]: *** Waiting for unfinished jobs....

I created the submitted patch

Attachments (2)

math.patch (635 bytes) - added by l1q1d@… 10 years ago.
Portfile (2.2 KB) - added by l1q1d@… 10 years ago.

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by l1q1d@…

Attachment: math.patch added

Changed 10 years ago by l1q1d@…

Attachment: Portfile added

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

Keywords: haspatch added; Coin clang removed
Milestone: MacPorts 2.3.0
Owner: changed from macports-tickets@… to css@…
Port: Coin added
Priority: HighNormal
Type: submissiondefect

See also #41786.

comment:2 Changed 10 years ago by l1q1d@…

Please close it, its a duplicate, i had not seen the other report when I reported this one. Sorry.

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

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.