takemaru / graphillion

Fast, lightweight graphset operation library
Other
462 stars 40 forks source link

Cannot build o OSX 10.9.5 #14

Open arthurnn opened 10 years ago

arthurnn commented 10 years ago

this is the log:

[arthurnn@ralph graphillion]$ sudo python setup.py build
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-2.7
creating build/lib.macosx-10.9-x86_64-2.7/graphillion
copying graphillion/__init__.py -> build/lib.macosx-10.9-x86_64-2.7/graphillion
copying graphillion/graphset.py -> build/lib.macosx-10.9-x86_64-2.7/graphillion
copying graphillion/release.py -> build/lib.macosx-10.9-x86_64-2.7/graphillion
copying graphillion/setset.py -> build/lib.macosx-10.9-x86_64-2.7/graphillion
copying graphillion/tutorial.py -> build/lib.macosx-10.9-x86_64-2.7/graphillion
running build_ext
building '_graphillion' extension
creating build/temp.macosx-10.9-x86_64-2.7
creating build/temp.macosx-10.9-x86_64-2.7/src
creating build/temp.macosx-10.9-x86_64-2.7/src/graphillion
creating build/temp.macosx-10.9-x86_64-2.7/src/SAPPOROBDD
clang -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DB_64 -Isrc -I/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/pygraphillion.cc -o build/temp.macosx-10.9-x86_64-2.7/src/pygraphillion.o
clang -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DB_64 -Isrc -I/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/graphillion/graphset.cc -o build/temp.macosx-10.9-x86_64-2.7/src/graphillion/graphset.o
In file included from src/graphillion/graphset.cc:32:
In file included from src/subsetting/dd/ZddStructure.hpp:14:
In file included from src/subsetting/dd/DdBuilder.hpp:20:
In file included from src/subsetting/dd/DdNodeTable.hpp:16:
src/subsetting/dd/DataTable.hpp:161:20: error: array 'new' cannot have initialization arguments
        rowSize_ = new size_t[n]();
                   ^
src/subsetting/dd/DdNodeTable.hpp:42:15: note: in instantiation of member function 'DataTable<DdNode>::init' requested here
        base::init(n);
              ^
In file included from src/graphillion/graphset.cc:32:
In file included from src/subsetting/dd/ZddStructure.hpp:14:
In file included from src/subsetting/dd/DdBuilder.hpp:20:
In file included from src/subsetting/dd/DdNodeTable.hpp:16:
src/subsetting/dd/DataTable.hpp:161:20: error: array 'new' cannot have initialization arguments
        rowSize_ = new size_t[n]();
                   ^
src/subsetting/dd/DataTable.hpp:76:9: note: in instantiation of member function 'DataTable<DdNodeId>::init' requested here
        init(n);
        ^
src/subsetting/dd/DdNodeTable.hpp:218:37: note: in instantiation of member function 'DataTable<DdNodeId>::DataTable' requested here
            : nodeTable(nodeTable), dataTable(nodeTable.numRows()) {
                                    ^
src/subsetting/dd/ZddStructure.hpp:193:34: note: in instantiation of member function 'DdNodeProperty<DdNodeId>::DdNodeProperty' requested here
        DdNodeProperty<DdNodeId> newIdTable(table);
                                 ^
In file included from src/graphillion/graphset.cc:32:
In file included from src/subsetting/dd/ZddStructure.hpp:14:
In file included from src/subsetting/dd/DdBuilder.hpp:20:
In file included from src/subsetting/dd/DdNodeTable.hpp:16:
src/subsetting/dd/DataTable.hpp:161:20: error: array 'new' cannot have initialization arguments
        rowSize_ = new size_t[n]();
                   ^
src/subsetting/dd/DataTable.hpp:76:9: note: in instantiation of member function 'DataTable<unsigned long>::init' requested here
        init(n);
        ^
src/subsetting/dd/DdNodeTable.hpp:218:37: note: in instantiation of member function 'DataTable<unsigned long>::DataTable' requested here
            : nodeTable(nodeTable), dataTable(nodeTable.numRows()) {
                                    ^
src/subsetting/dd/ZddStructure.hpp:709:32: note: in instantiation of member function 'DdNodeProperty<unsigned long>::DdNodeProperty' requested here
        DdNodeProperty<size_t> nodeId(*nodeTable);
                               ^
In file included from src/graphillion/graphset.cc:32:
In file included from src/subsetting/dd/ZddStructure.hpp:14:
In file included from src/subsetting/dd/DdBuilder.hpp:20:
In file included from src/subsetting/dd/DdNodeTable.hpp:18:
src/subsetting/dd/../util/MyVector.hpp:177:21: warning: destination for this 'memcpy' call is a pointer to dynamic class 'MyList<DdBuilderBase::SpecNode, 1000>'; vtable
      pointer will be overwritten [-Wnon-pod-memaccess]
        std::memcpy(tmp, array_, size_ * sizeof(T));
        ~~~~~~~~~~~ ^
src/subsetting/dd/../util/MyVector.hpp:188:9: note: in instantiation of member function 'MyVector<MyList<DdBuilderBase::SpecNode, 1000> >::shrink' requested here
        shrink(0);
        ^
src/subsetting/dd/../util/MyVector.hpp:87:9: note: in instantiation of member function 'MyVector<MyList<DdBuilderBase::SpecNode, 1000> >::clear' requested here
        clear();
        ^
src/subsetting/dd/DdBuilder.hpp:79:7: note: in instantiation of member function 'MyVector<MyList<DdBuilderBase::SpecNode, 1000> >::~MyVector' requested here
class DdBuilder: DdBuilderBase {
      ^
src/subsetting/dd/ZddStructure.hpp:68:9: note: in instantiation of function template specialization 'ZddStructure::construct_<SapporoZdd>' requested here
        construct_(spec.entity());
        ^
src/graphillion/graphset.cc:90:14: note: in instantiation of function template specialization 'ZddStructure::ZddStructure<SapporoZdd>' requested here
    dd = new ZddStructure(f);
             ^
src/subsetting/dd/../util/MyVector.hpp:177:21: note: explicitly cast the pointer to silence this warning
        std::memcpy(tmp, array_, size_ * sizeof(T));
                    ^
                    (void*)
In file included from src/graphillion/graphset.cc:32:
In file included from src/subsetting/dd/ZddStructure.hpp:14:
In file included from src/subsetting/dd/DdBuilder.hpp:20:
In file included from src/subsetting/dd/DdNodeTable.hpp:16:
src/subsetting/dd/DataTable.hpp:161:20: error: array 'new' cannot have initialization arguments
        rowSize_ = new size_t[n]();
                   ^
src/subsetting/dd/DataTable.hpp:76:9: note: in instantiation of member function 'DataTable<MyListOnPool<DdBuilderBase::SpecNode> >::init' requested here
        init(n);
        ^
src/subsetting/dd/DdNodeTable.hpp:218:37: note: in instantiation of member function 'DataTable<MyListOnPool<DdBuilderBase::SpecNode> >::DataTable' requested here
            : nodeTable(nodeTable), dataTable(nodeTable.numRows()) {
                                    ^
src/subsetting/dd/DdBuilder.hpp:388:63: note: in instantiation of member function 'DdNodeProperty<MyListOnPool<DdBuilderBase::SpecNode> >::DdNodeProperty' requested here
              specNodeSize(getSpecNodeSize(spec.datasize())), work(input) {
                                                              ^
src/subsetting/dd/ZddStructure.hpp:133:28: note: in instantiation of member function 'ZddSubsetter<DegreeConstraint>::ZddSubsetter' requested here
        ZddSubsetter<SPEC> zs(*nodeTable, spec, tmpTable.privateEntity());
                           ^
src/subsetting/dd/ZddStructure.hpp:89:9: note: in instantiation of function template specialization 'ZddStructure::subset_<DegreeConstraint>' requested here
        subset_(spec.entity());
        ^
src/graphillion/graphset.cc:109:9: note: in instantiation of function template specialization 'ZddStructure::subset<DegreeConstraint>' requested here
    dd->subset(dc);
        ^
In file included from src/graphillion/graphset.cc:32:
In file included from src/subsetting/dd/ZddStructure.hpp:14:
In file included from src/subsetting/dd/DdBuilder.hpp:20:
In file included from src/subsetting/dd/DdNodeTable.hpp:16:
src/subsetting/dd/DataTable.hpp:161:20: error: array 'new' cannot have initialization arguments
        rowSize_ = new size_t[n]();
                   ^
src/subsetting/dd/DataTable.hpp:76:9: note: in instantiation of member function 'DataTable<ZBDD>::init' requested here
        init(n);
        ^
src/subsetting/dd/DdNodeTable.hpp:218:37: note: in instantiation of member function 'DataTable<ZBDD>::DataTable' requested here
            : nodeTable(nodeTable), dataTable(nodeTable.numRows()) {
                                    ^
src/subsetting/dd/ZddStructure.hpp:569:29: note: in instantiation of member function 'DdNodeProperty<ZBDD>::DdNodeProperty' requested here
        DdNodeProperty<Val> work(*nodeTable);
                            ^
src/graphillion/graphset.cc:120:17: note: in instantiation of function template specialization 'ZddStructure::evaluate<ToZBDD>' requested here
  zdd_t f = dd->evaluate(ToZBDD(setset::max_elem() - setset::num_elems()));
                ^
1 warning and 5 errors generated.
error: command 'clang' failed with exit status 1
takemaru commented 10 years ago

This error cannot be reproduced with /usr/bin/clang of XCode 6.0.1 on MacOSX 10.9.5. I'm wondering if you didn't use XCode clang. If so, could you please try it with XCode clang?