Code Monkey home page Code Monkey logo

Comments (4)

keyan3 avatar keyan3 commented on July 30, 2024

Here is the full output of ./autobuild --install-python for reference:

(gosdt) keyan@MacBook-Pro-2 gosdt % ./autobuild --install-python
 /bin/sh ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
test -z "gosdt " || rm -f gosdt 
rm -f *.o
rm -f src/*.o
rm -f test/*.o
running clean
running build
running build_ext
building 'gosdt' extension
creating build/temp.macosx-11-x86_64-3.9
creating build/temp.macosx-11-x86_64-3.9/src
g++ -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -I/usr/local/include -I/usr/local/opt/[email protected]/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/bitmask.cpp -o build/temp.macosx-11-x86_64-3.9/src/bitmask.o -O3 -std=c++11 -I include -stdlib=libc++
src/bitmask.cpp:317:15: warning: comparison of integers of different signs: 'int' and 'const unsigned int' [-Wsign-compare]
    if (begin >= this -> _size) { return false; }
        ~~~~~ ^  ~~~~~~~~~~~~~
src/bitmask.cpp:319:15: warning: comparison of integers of different signs: 'int' and 'const unsigned int' [-Wsign-compare]
    if (begin >= this -> _size) { return false; }
        ~~~~~ ^  ~~~~~~~~~~~~~
src/bitmask.cpp:630:15: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
    if (start >= size()) { return size(); }
        ~~~~~ ^  ~~~~~~
3 warnings generated.
g++ -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -I/usr/local/include -I/usr/local/opt/[email protected]/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/configuration.cpp -o build/temp.macosx-11-x86_64-3.9/src/configuration.o -O3 -std=c++11 -I include -stdlib=libc++
g++ -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -I/usr/local/include -I/usr/local/opt/[email protected]/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/dataset.cpp -o build/temp.macosx-11-x86_64-3.9/src/dataset.o -O3 -std=c++11 -I include -stdlib=libc++
In file included from src/dataset.cpp:1:
In file included from src/dataset.hpp:16:
In file included from /usr/local/include/tbb/concurrent_hash_map.h:17:
/usr/local/include/tbb/../oneapi/tbb/concurrent_hash_map.h:625:5: error: static_assert failed due to requirement 'std::is_same<std::__1::pair<Message *const, bool>, std::__1::pair<Message *, bool>>::value' "value_type of the container must be the same as its allocator's"
    static_assert(std::is_same<value_type, typename Allocator::value_type>::value,
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/queue.hpp:76:27: note: in instantiation of template class 'tbb::detail::d2::concurrent_hash_map<Message *, bool, MembershipKeyHashCompare, tbb::detail::d1::scalable_allocator<std::__1::pair<Message *, bool>>>' requested here
    membership_table_type membership;
                          ^
src/dataset.cpp:52:18: warning: unused variable 'number_of_rows' [-Wunused-variable]
    unsigned int number_of_rows = 0; // Number of samples after compressions
                 ^
1 warning and 1 error generated.
error: command '/usr/bin/g++' failed with exit code 1

from generalizedoptimalsparsedecisiontrees.

margoseltzer avatar margoseltzer commented on July 30, 2024

I think we have a tbb version problem. Might you be able to try to do this using tbb/2020_U3_1 ?

from generalizedoptimalsparsedecisiontrees.

keyan3 avatar keyan3 commented on July 30, 2024

Thanks for the response @margoseltzer! I just tried using tbb@2020 and it does work. In addition, with the one-line change to src/queue.hpp in my pull request (#10), I am able to install GOSDT with newer versions of tbb as well.

from generalizedoptimalsparsedecisiontrees.

yli110-stat697 avatar yli110-stat697 commented on July 30, 2024

Hey @keyan3 Thank you so much for the fix in src/queue.hpp I was able to ./autobuild --install-python with tbb.

Just FYI I tried tbb@2020 but it was deprecated and not working for me. Thanks for your magic solution 👍

from generalizedoptimalsparsedecisiontrees.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.