GithubHelp home page GithubHelp logo

can not compile on Linux about orca HOT 4 OPEN

tissatussa avatar tissatussa commented on August 15, 2024
can not compile on Linux

from orca.

Comments (4)

BlueCannonBall avatar BlueCannonBall commented on August 15, 2024

Can I see the Boost version and the error messages? It compiles fine on Ubuntu 20.04. The latest version also depends on the Rust compiler for NNUE. You can install that with sudo apt install rust-all

Also if you have not already pull the submodules with: git submodule update --init --recursive

from orca.

tissatussa avatar tissatussa commented on August 15, 2024

Can I see the Boost version

$ cat /usr/include/boost/version.hpp | grep "BOOST_LIB_VERSION"
//  BOOST_LIB_VERSION must be defined to be the same as BOOST_VERSION
#define BOOST_LIB_VERSION "1_82"

..and the error messages?

well, then i should do it again .. OK

..The latest version also depends on the Rust compiler for NNUE. You can install that with sudo apt install rust-all

lately i'm learning more about Rust, to compile different sources .. it seems i can set which version i want to use (=default) .. some sources are only for Nightly .. what do you mean by 'the Rust compiler for NNUE' ? Can i provide all my installed Rust modules (rustc and more) by a list command ?

Also if you have not already pull the submodules with: git submodule update --init --recursive

almost always i use git clone [....git] --recursive , i guess it's the same ?

from orca.

BlueCannonBall avatar BlueCannonBall commented on August 15, 2024

By "Rust for NNUE" I meant that the engine requires Rust to compile because my NNUE evaluation system uses Rust. I use Rust version 1.67.

from orca.

tissatussa avatar tissatussa commented on August 15, 2024

hi again, i stumbled upon this conversation from 2023 .. i'm on Xubuntu 22.04 now .. i think i have Boost and a Rust version for NNUE but i get an error at the end ..

can you help ?
should i provide more info ?

~/Compiled/Orca$ cat /usr/include/boost/version.hpp | grep "BOOST_LIB_VERSION"
//  BOOST_LIB_VERSION must be defined to be the same as BOOST_VERSION
#define BOOST_LIB_VERSION "1_82"
(base) roelof@roelof-HP-Elite-x2-1012-G2:~/Compiled/Orca$ make
mkdir -p obj
g++ -c main.cpp -Wall -std=c++17 -Iprophet-nnue/nnue/include -Ofast -march=native -mtune=native -pthread "-DORCA_TIMESTAMP=\"wo 12 jun 2024 15:11:50 UTC\"" "-DORCA_COMPILER=\"g++ 11\"" -o obj/main.o
mkdir -p obj
g++ -c util.cpp -Wall -std=c++17 -Iprophet-nnue/nnue/include -Ofast -march=native -mtune=native -pthread -o obj/util.o
mkdir -p obj
g++ -c evaluation.cpp -Wall -std=c++17 -Iprophet-nnue/nnue/include -Ofast -march=native -mtune=native -pthread -o obj/evaluation.o
mkdir -p obj
g++ -c search.cpp -Wall -std=c++17 -Iprophet-nnue/nnue/include -Ofast -march=native -mtune=native -pthread -o obj/search.o
mkdir -p obj
g++ -c nnue.cpp -Wall -std=c++17 -Iprophet-nnue/nnue/include -Ofast -march=native -mtune=native -pthread -o obj/nnue.o
g++ obj/main.o obj/util.o obj/evaluation.o obj/search.o obj/nnue.o prophet-nnue/target/release/libprophet.a -Wall -std=c++17 -Iprophet-nnue/nnue/include -Ofast -march=native -mtune=native -pthread -lboost_thread -lboost_fiber -ldl -lbz2 -o orca
/usr/bin/ld: obj/main.o: in function `boost::fibers::unbuffered_channel<SearchRequest>::push(SearchRequest&&) [clone .isra.0]':
main.cpp:(.text+0x26c5): undefined reference to `boost::fibers::wait_queue::notify_one()'
/usr/bin/ld: main.cpp:(.text+0x275c): undefined reference to `boost::fibers::wait_queue::suspend_and_wait(std::unique_lock<boost::fibers::detail::spinlock_ttas>&, boost::fibers::context*)'
/usr/bin/ld: obj/main.o: in function `worker(boost::fibers::unbuffered_channel<SearchRequest>&, boost::atomics::atomic<bool>&)':
main.cpp:(.text+0x406f): undefined reference to `boost::fibers::wait_queue::suspend_and_wait(std::unique_lock<boost::fibers::detail::spinlock_ttas>&, boost::fibers::context*)'
/usr/bin/ld: main.cpp:(.text+0x4258): undefined reference to `boost::fibers::wait_queue::notify_one()'
/usr/bin/ld: main.cpp:(.text+0x44bd): undefined reference to `boost::fibers::waker::wake() const'
/usr/bin/ld: obj/main.o: in function `boost::fibers::unbuffered_channel<SearchRequest>::~unbuffered_channel()':
main.cpp:(.text._ZN5boost6fibers18unbuffered_channelI13SearchRequestED2Ev[_ZN5boost6fibers18unbuffered_channelI13SearchRequestED5Ev]+0x85): undefined reference to `boost::fibers::wait_queue::notify_all()'
/usr/bin/ld: main.cpp:(.text._ZN5boost6fibers18unbuffered_channelI13SearchRequestED2Ev[_ZN5boost6fibers18unbuffered_channelI13SearchRequestED5Ev]+0x96): undefined reference to `boost::fibers::wait_queue::notify_all()'
/usr/bin/ld: main.cpp:(.text._ZN5boost6fibers18unbuffered_channelI13SearchRequestED2Ev[_ZN5boost6fibers18unbuffered_channelI13SearchRequestED5Ev]+0xb8): undefined reference to `boost::fibers::waker::wake() const'
collect2: error: ld returned 1 exit status
make: *** [Makefile:12: orca] Error 1

from orca.

Related Issues (1)

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.