Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup.py errors on OS X Catalina #24

Open
cosmikwolf opened this issue Nov 7, 2019 · 1 comment
Open

Setup.py errors on OS X Catalina #24

cosmikwolf opened this issue Nov 7, 2019 · 1 comment

Comments

@cosmikwolf
Copy link

I get the following errors when trying to run python setup.py build_ext -i
python 3.7.4

In file included from src/GaussianPyramid.cpp:4:
In file included from src/GaussianPyramid.h:7:
In file included from src/Image.h:9:
src/ImageProcessing.h:154:20: warning: unused variable 'l' [-Wunused-variable]
        int xx,yy,m,n,u,v,l,offset;
                          ^
src/ImageProcessing.h:344:14: warning: unused variable 'offset' [-Wunused-variable]
        int i,j,l,k,offset,ii;
                    ^
src/ImageProcessing.h:415:2: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'?
      [-Wmismatched-new-delete]
        delete pBuffer;
        ^
              []
src/ImageProcessing.h:395:18: note: allocated with 'new[]' here
        double* pBuffer=new double[nChannels];
                        ^
src/ImageProcessing.h:425:28: warning: unused variable 'offset' [-Wunused-variable]
        int i,j,u,v,k,ii,jj,wsize,offset;
                                  ^
In file included from src/GaussianPyramid.cpp:4:
In file included from src/GaussianPyramid.h:7:
In file included from src/Image.h:14:
src/Stochastic.h:157:10: error: reference to '__max' is ambiguous
                result=__max(result,pData[i]);
                       ^
src/project.h:47:4: note: candidate found by name lookup is '__max'
T1 __max(T1 a, T2 b)
   ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/new:158:32: note: candidate found by name lookup is 'std::__max'
enum align_val_t { __zero = 0, __max = (size_t)-1 };
                               ^
In file included from src/GaussianPyramid.cpp:4:
In file included from src/GaussianPyramid.h:7:
In file included from src/Image.h:14:
src/Stochastic.h:405:7: error: reference to '__max' is ambiguous
                                u=__max(__min(u,NumPoints-1),0);
                                  ^
src/project.h:47:4: note: candidate found by name lookup is '__max'
T1 __max(T1 a, T2 b)
   ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/new:158:32: note: candidate found by name lookup is 'std::__max'
enum align_val_t { __zero = 0, __max = (size_t)-1 };
                               ^
In file included from src/GaussianPyramid.cpp:4:
In file included from src/GaussianPyramid.h:7:
src/Image.h:62:8: error: reference to '__max' is ambiguous
                        Max=__max(Max,pData[i]);
                            ^
src/project.h:47:4: note: candidate found by name lookup is '__max'
T1 __max(T1 a, T2 b)
   ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/new:158:32: note: candidate found by name lookup is 'std::__max'
enum align_val_t { __zero = 0, __max = (size_t)-1 };
                               ^
In file included from src/GaussianPyramid.cpp:4:
In file included from src/GaussianPyramid.h:7:
src/Image.h:1339:16: error: reference to '__max' is ambiguous
        int hfsize = (__max(hfilter.width(),hfilter.height())-1)/2;
                      ^
src/project.h:47:4: note: candidate found by name lookup is '__max'
T1 __max(T1 a, T2 b)
   ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/new:158:32: note: candidate found by name lookup is 'std::__max'
enum align_val_t { __zero = 0, __max = (size_t)-1 };
                               ^
In file included from src/GaussianPyramid.cpp:4:
In file included from src/GaussianPyramid.h:7:
src/Image.h:1339:16: error: type name requires a specifier or qualifier
        int hfsize = (__max(hfilter.width(),hfilter.height())-1)/2;
                      ^
src/Image.h:1339:16: error: expected ')'
src/Image.h:1339:15: note: to match this '('
        int hfsize = (__max(hfilter.width(),hfilter.height())-1)/2;
                     ^
src/Image.h:1340:16: error: reference to '__max' is ambiguous
        int vfsize = (__max(vfilter.width(),vfilter.height())-1)/2;
                      ^
src/project.h:47:4: note: candidate found by name lookup is '__max'
T1 __max(T1 a, T2 b)
   ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/new:158:32: note: candidate found by name lookup is 'std::__max'
enum align_val_t { __zero = 0, __max = (size_t)-1 };
                               ^
In file included from src/GaussianPyramid.cpp:4:
In file included from src/GaussianPyramid.h:7:
src/Image.h:1340:16: error: type name requires a specifier or qualifier
        int vfsize = (__max(vfilter.width(),vfilter.height())-1)/2;
                      ^
src/Image.h:1340:16: error: expected ')'
src/Image.h:1340:15: note: to match this '('
        int vfsize = (__max(vfilter.width(),vfilter.height())-1)/2;
                     ^
src/Image.h:1351:6: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign]
                        i = i;
                        ~ ^ ~
src/Image.h:1428:16: error: reference to '__max' is ambiguous
        int hfsize = (__max(hfilter.width(),hfilter.height())-1)/2;
                      ^
src/project.h:47:4: note: candidate found by name lookup is '__max'
T1 __max(T1 a, T2 b)
   ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/new:158:32: note: candidate found by name lookup is 'std::__max'
enum align_val_t { __zero = 0, __max = (size_t)-1 };
                               ^
In file included from src/GaussianPyramid.cpp:4:
In file included from src/GaussianPyramid.h:7:
src/Image.h:1428:16: error: type name requires a specifier or qualifier
        int hfsize = (__max(hfilter.width(),hfilter.height())-1)/2;
                      ^
src/Image.h:1428:16: error: expected ')'
src/Image.h:1428:15: note: to match this '('
        int hfsize = (__max(hfilter.width(),hfilter.height())-1)/2;
                     ^
src/Image.h:1429:16: error: reference to '__max' is ambiguous
        int vfsize = (__max(vfilter.width(),vfilter.height())-1)/2;
                      ^
src/project.h:47:4: note: candidate found by name lookup is '__max'
T1 __max(T1 a, T2 b)
   ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/new:158:32: note: candidate found by name lookup is 'std::__max'
enum align_val_t { __zero = 0, __max = (size_t)-1 };
                               ^
In file included from src/GaussianPyramid.cpp:4:
In file included from src/GaussianPyramid.h:7:
src/Image.h:1429:16: error: type name requires a specifier or qualifier
        int vfsize = (__max(vfilter.width(),vfilter.height())-1)/2;
                      ^
src/Image.h:1429:16: error: expected ')'
src/Image.h:1429:15: note: to match this '('
        int vfsize = (__max(vfilter.width(),vfilter.height())-1)/2;
                     ^
src/Image.h:1495:16: error: reference to '__max' is ambiguous
                                        data[i] = __max(data[i],pData[offset+j]);
                                                  ^
src/project.h:47:4: note: candidate found by name lookup is '__max'
T1 __max(T1 a, T2 b)
   ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/new:158:32: note: candidate found by name lookup is 'std::__max'
enum align_val_t { __zero = 0, __max = (size_t)-1 };
                               ^
In file included from src/GaussianPyramid.cpp:4:
In file included from src/GaussianPyramid.h:7:
src/Image.h:1613:17: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
                        for(int k=0;k<firstNChannels;k++)
                                    ~^~~~~~~~~~~~~~~
src/Image.h:1933:20: error: reference to '__max' is ambiguous
                pData[i] = __min(__max(pData[i],0),ImgMax);
                                 ^
src/project.h:47:4: note: candidate found by name lookup is '__max'
T1 __max(T1 a, T2 b)
   ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/new:158:32: note: candidate found by name lookup is 'std::__max'
enum align_val_t { __zero = 0, __max = (size_t)-1 };
                               ^
In file included from src/GaussianPyramid.cpp:4:
In file included from src/GaussianPyramid.h:7:
src/Image.h:2288:15: error: reference to '__max' is ambiguous
                        x0 = __min(__max(x0,0),imWidth-1);
                                   ^
src/project.h:47:4: note: candidate found by name lookup is '__max'
T1 __max(T1 a, T2 b)
   ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/new:158:32: note: candidate found by name lookup is 'std::__max'
enum align_val_t { __zero = 0, __max = (size_t)-1 };
                               ^
In file included from src/GaussianPyramid.cpp:4:
In file included from src/GaussianPyramid.h:7:
src/Image.h:2289:15: error: reference to '__max' is ambiguous
                        x1 = __min(__max(x1,0),imWidth-1);
                                   ^
src/project.h:47:4: note: candidate found by name lookup is '__max'
T1 __max(T1 a, T2 b)
   ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/new:158:32: note: candidate found by name lookup is 'std::__max'
enum align_val_t { __zero = 0, __max = (size_t)-1 };
                               ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
6 warnings and 20 errors generated.
error: command 'clang' failed with exit status 1
@l-oneil
Copy link

l-oneil commented Dec 10, 2020

Likely related to: #28 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants