Jump to content

Navistar

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Navistar

  1. 10 hours ago, guidol said:

    I did also a compile on my RPI Zero.

    While getting first the -m32 bit error (which you deleted the lines for) I did a look at the error-message
    which suggested "-mbe32"

    But "-mbe32" is for older than ARMv6, but https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html 
    told me to use "-mbe8" for ARMv6 and later.

     

    So I ended up with this Makefile-Part:
     

    ifeq ($(COMP),gcc)
            comp=gcc
            CXX=g++
            CXXFLAGS += -pedantic -Wextra -Wshadow
    
            ifeq ($(arch),$(filter $(arch),armv7 armv8))
                    ifeq ($(OS),Android)
                            CXXFLAGS += -m$(bits)
                            LDFLAGS += -m$(bits)
                    endif
            else
                    CXXFLAGS += -mbe8
                    LDFLAGS += -mbe8 -latomic
            endif
    
            ifeq ($(arch),$(filter $(arch),armv7))
                    LDFLAGS += -latomic
            endif
    
            ifneq ($(KERNEL),Darwin)
               LDFLAGS += -Wl,--no-as-needed
            endif
    endif
    

     

    and then it compiled with not much compile-output:

      Hide contents

    make build ARCH=general-32 optimize=yes
    Default net: nn-3475407dc199.nnue
    Already available.

    Config:
    debug: 'no'
    sanitize: 'none'
    optimize: 'yes'
    arch: 'any'
    bits: '32'
    kernel: 'Linux'
    os: 'GNU/Linux'
    prefetch: 'no'
    popcnt: 'no'
    pext: 'no'
    sse: 'no'
    mmx: 'no'
    sse2: 'no'
    ssse3: 'no'
    sse41: 'no'
    avx2: 'no'
    avx512: 'no'
    vnni256: 'no'
    vnni512: 'no'
    neon: 'no'

    Flags:
    CXX: g++
    CXXFLAGS: -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -mbe8 -DUSE_PTHREADS -DNDEBUG -O3 -DNO_PREFETCH -flto
    LDFLAGS:  -mbe8 -latomic -Wl,--no-as-needed -lpthread -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -mbe8 -DUSE_PTHREADS -DNDEBUG -O3 -DNO_PREFETCH -flto -flto=jobserver

    Testing config sanity. If this fails, try 'make help' ...

    make ARCH=general-32 COMP=gcc all
    make[1]: Verzeichnis „/home/guido/Stockfish-sf_14/src“ wird betreten
    g++ -o stockfish benchmark.o bitbase.o bitboard.o endgame.o evaluate.o main.o material.o misc.o movegen.o movepick.o pawns.o position.o psqt.o search.o thread.o timeman.o tt.o uci.o ucioption.o tune.o tbprobe.o evaluate_nnue.o half_ka_v2.o  -mbe8 -latomic -Wl,--no-as-needed -lpthread -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -mbe8 -DUSE_PTHREADS -DNDEBUG -O3 -DNO_PREFETCH -flto -flto=jobserver
    make[1]: Verzeichnis „/home/guido/Stockfish-sf_14/src“ wird verlassen

     

     

    -rwxr-xr-x 1 root root 48113920 Jul  8 19:18 stockfish

     

    But how do you get the results for the Speed/Nodes? Is there a test-option or do you use a UCI-capable Chess-Game? ;)

     

    built-in option, just using `./stockfish bench`
    the results for v10 looked here: https://github.com/slashbyte/ChessComputer/wiki/Software-Overview#stockfish-benchmark

     

    builded v14 with `mbe8` did not become faster =)

  2. 4 hours ago, Navistar said:

     

    managed to compile with LDFLAGS="- latomic" flag, but all versions: armv7, armv7+optimize=yes, general-32, general-32+optimize=yes
    have approximately the same performance Nodes / second: 15447, but in another article projects, I saw that on Raspberry Pi Z you can pull out such performance: Nodes / second: 40348
    do not tell me what needs to be done for this?

     

    I tried to build Stockfish 10 version and get Nodes/second: 36216 on Raspberry Pi OS Lite 2021, and Nodes/second: 39308 on Raspberry Pi OS Lite 2018..

    why 13 and 14 versions give such slow performance? this is normal?

  3. On 7/6/2021 at 10:06 AM, Navistar said:

    Good day!
    I'm trying to compile stockfish 14 for RaspberryPi Zero, I managed to create an artifact using ARCH=armv7 and the binary file works, but for ARCH=general-32 I can't build with compilation error:
    - I created a 4GB swap file
    - I removed lines in Makefile with '--m $ (bits)'

     

    In one of the projects I read that the general-32 stockfish binary works faster on RPiZ. Can you please tell me where to dig next?

     

    Compilation error:

      Reveal hidden contents

    $ make clean && make build ARCH=general-32 optimize=yes
    Default net: nn-3475407dc199.nnue
    Already available.
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_TIME = "ru_RU.UTF-8",
        LC_MONETARY = "ru_RU.UTF-8",
        LC_ADDRESS = "ru_RU.UTF-8",
        LC_TELEPHONE = "ru_RU.UTF-8",
        LC_NAME = "ru_RU.UTF-8",
        LC_MEASUREMENT = "ru_RU.UTF-8",
        LC_IDENTIFICATION = "ru_RU.UTF-8",
        LC_NUMERIC = "ru_RU.UTF-8",
        LC_PAPER = "ru_RU.UTF-8",
        LANG = "en_GB.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").

    Config:
    debug: 'no'
    sanitize: 'none'
    optimize: 'yes'
    arch: 'any'
    bits: '32'
    kernel: 'Linux'
    os: 'GNU/Linux'
    prefetch: 'yes'
    popcnt: 'no'
    pext: 'no'
    sse: 'no'
    mmx: 'no'
    sse2: 'no'
    ssse3: 'no'
    sse41: 'no'
    avx2: 'no'
    avx512: 'no'
    vnni256: 'no'
    vnni512: 'no'
    neon: 'no'

    Flags:
    CXX: g++
    CXXFLAGS: -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto
    LDFLAGS:  -Wl,--no-as-needed -lpthread -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto -flto=jobserver

    Testing config sanity. If this fails, try 'make help' ...

    make ARCH=general-32 COMP=gcc all
    make[1]: Entering directory '/home/pi/Stockfish-sf_14/src'
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o benchmark.o benchmark.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o bitbase.o bitbase.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o bitboard.o bitboard.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o endgame.o endgame.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o evaluate.o evaluate.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o main.o main.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o material.o material.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o misc.o misc.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o movegen.o movegen.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o movepick.o movepick.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o pawns.o pawns.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o position.o position.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o psqt.o psqt.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o search.o search.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o thread.o thread.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o timeman.o timeman.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o tt.o tt.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o uci.o uci.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o ucioption.o ucioption.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o tune.o tune.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o tbprobe.o syzygy/tbprobe.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o evaluate_nnue.o nnue/evaluate_nnue.cpp
    nnue/evaluate_nnue.cpp: In function ‘Stockfish::Value Stockfish::Eval::NNUE::evaluate(const Stockfish::Position&, bool)’:
    nnue/evaluate_nnue.cpp:156:80: warning: requested alignment 64 is larger than 8 [-Wattributes]
           TransformedFeatureType transformedFeatures[FeatureTransformer::BufferSize];
                                                                                    ^
    nnue/evaluate_nnue.cpp:157:55: warning: requested alignment 64 is larger than 8 [-Wattributes]
         alignas(alignment) char buffer[Network::BufferSize];
                                                           ^
    nnue/evaluate_nnue.cpp: In function ‘Stockfish::Eval::NNUE::NnueEvalTrace Stockfish::Eval::NNUE::trace_evaluate(const Stockfish::Position&)’:
    nnue/evaluate_nnue.cpp:205:80: warning: requested alignment 64 is larger than 8 [-Wattributes]
           TransformedFeatureType transformedFeatures[FeatureTransformer::BufferSize];
                                                                                    ^
    nnue/evaluate_nnue.cpp:206:55: warning: requested alignment 64 is larger than 8 [-Wattributes]
         alignas(alignment) char buffer[Network::BufferSize];
                                                           ^
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o half_ka_v2.o nnue/features/half_ka_v2.cpp
    g++ -o stockfish benchmark.o bitbase.o bitboard.o endgame.o evaluate.o main.o material.o misc.o movegen.o movepick.o pawns.o position.o psqt.o search.o thread.o timeman.o tt.o uci.o ucioption.o tune.o tbprobe.o evaluate_nnue.o half_ka_v2.o  -Wl,--no-as-needed -lpthread -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto -flto=jobserver
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans0.ltrans.o: in function `Stockfish::Value Stockfish::(anonymous namespace)::search<(Stockfish::(anonymous namespace)::NodeType)1>(Stockfish::Position&, Stockfish::Search::Stack*, Stockfish::Value, Stockfish::Value, int, bool) [clone .constprop.36]':
    <artificial>:(.text+0x868c): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x8ee8): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x99a8): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x9b2c): undefined reference to `__atomic_fetch_add_8'
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans0.ltrans.o: in function `Stockfish::ThreadPool::start_thinking(Stockfish::Position&, std::unique_ptr<std::deque<Stockfish::StateInfo, std::allocator<Stockfish::StateInfo> >, std::default_delete<std::deque<Stockfish::StateInfo, std::allocator<Stockfish::StateInfo> > > >&, Stockfish::Search::LimitsType const&, bool) [clone .constprop.51]':
    <artificial>:(.text+0xa1ec): undefined reference to `__atomic_store_8'
    /usr/bin/ld: <artificial>:(.text+0xa204): undefined reference to `__atomic_store_8'
    /usr/bin/ld: <artificial>:(.text+0xa218): undefined reference to `__atomic_store_8'
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans4.ltrans.o: in function `Stockfish::dbg_print()':
    <artificial>:(.text+0x4014): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x4028): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x405c): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x4094): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x40cc): undefined reference to `__atomic_load_8'
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans4.ltrans.o:<artificial>:(.text+0x40e0): more undefined references to `__atomic_load_8' follow
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans1.ltrans.o: in function `Stockfish::Value Stockfish::(anonymous namespace)::search<(Stockfish::(anonymous namespace)::NodeType)2>(Stockfish::Position&, Stockfish::Search::Stack*, Stockfish::Value, Stockfish::Value, int, bool) [clone .constprop.33]':
    <artificial>:(.text+0x10afc): undefined reference to `__atomic_fetch_add_8'
    /usr/bin/ld: <artificial>:(.text+0x10ba4): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x111f8): undefined reference to `__atomic_load_8'
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans2.ltrans.o: in function `Stockfish::UCI::loop(int, char**)':
    <artificial>:(.text+0x4a28): undefined reference to `__atomic_load_8'
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans2.ltrans.o: in function `Stockfish::MainThread::check_time() [clone .part.82]':
    <artificial>:(.text+0x61e8): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x62f4): undefined reference to `__atomic_load_8'
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans2.ltrans.o:<artificial>:(.text+0x6f98): more undefined references to `__atomic_load_8' follow
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans2.ltrans.o: in function `Stockfish::Value Stockfish::(anonymous namespace)::search<(Stockfish::(anonymous namespace)::NodeType)0>(Stockfish::Position&, Stockfish::Search::Stack*, Stockfish::Value, Stockfish::Value, int, bool) [clone .lto_priv.273]':
    <artificial>:(.text+0x8c78): undefined reference to `__atomic_fetch_add_8'
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans3.ltrans.o: in function `Stockfish::UCI::pv[abi:cxx11](Stockfish::Position const&, int, Stockfish::Value, Stockfish::Value)':
    <artificial>:(.text+0x434): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x4e0): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x52c): undefined reference to `__atomic_load_8'
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans3.ltrans.o: in function `Stockfish::Position::do_move(Stockfish::Move, Stockfish::StateInfo&, bool)':
    <artificial>:(.text+0x3ce0): undefined reference to `__atomic_fetch_add_8'
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans3.ltrans.o: in function `Stockfish::Thread::search()':
    <artificial>:(.text+0xd1e4): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0xd444): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0xe61c): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0xe640): undefined reference to `__atomic_store_8'
    /usr/bin/ld: <artificial>:(.text+0xe724): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0xe8ec): undefined reference to `__atomic_load_8'
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans3.ltrans.o: in function `Stockfish::MainThread::search()':
    <artificial>:(.text+0xef90): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0xf35c): undefined reference to `__atomic_store_8'
    /usr/bin/ld: <artificial>:(.text+0xf398): undefined reference to `__atomic_load_8'
    collect2: error: ld returned 1 exit status
    make[1]: *** [Makefile:871: stockfish] Error 1
    make[1]: Leaving directory '/home/pi/Stockfish-sf_14/src'
    make: *** [Makefile:741: build] Error 2

     

     

    managed to compile with LDFLAGS="- latomic" flag, but all versions: armv7, armv7+optimize=yes, general-32, general-32+optimize=yes
    have approximately the same performance Nodes / second: 15447, but in another article projects, I saw that on Raspberry Pi Z you can pull out such performance: Nodes / second: 40348
    do not tell me what needs to be done for this?

  4. Good day!
    I'm trying to compile stockfish 14 for RaspberryPi Zero, I managed to create an artifact using ARCH=armv7 and the binary file works, but for ARCH=general-32 I can't build with compilation error:
    - I created a 4GB swap file
    - I removed lines in Makefile with '--m $ (bits)'

     

    In one of the projects I read that the general-32 stockfish binary works faster on RPiZ. Can you please tell me where to dig next?

     

    Compilation error:

    Spoiler

    $ make clean && make build ARCH=general-32 optimize=yes
    Default net: nn-3475407dc199.nnue
    Already available.
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_TIME = "ru_RU.UTF-8",
        LC_MONETARY = "ru_RU.UTF-8",
        LC_ADDRESS = "ru_RU.UTF-8",
        LC_TELEPHONE = "ru_RU.UTF-8",
        LC_NAME = "ru_RU.UTF-8",
        LC_MEASUREMENT = "ru_RU.UTF-8",
        LC_IDENTIFICATION = "ru_RU.UTF-8",
        LC_NUMERIC = "ru_RU.UTF-8",
        LC_PAPER = "ru_RU.UTF-8",
        LANG = "en_GB.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").

    Config:
    debug: 'no'
    sanitize: 'none'
    optimize: 'yes'
    arch: 'any'
    bits: '32'
    kernel: 'Linux'
    os: 'GNU/Linux'
    prefetch: 'yes'
    popcnt: 'no'
    pext: 'no'
    sse: 'no'
    mmx: 'no'
    sse2: 'no'
    ssse3: 'no'
    sse41: 'no'
    avx2: 'no'
    avx512: 'no'
    vnni256: 'no'
    vnni512: 'no'
    neon: 'no'

    Flags:
    CXX: g++
    CXXFLAGS: -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto
    LDFLAGS:  -Wl,--no-as-needed -lpthread -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto -flto=jobserver

    Testing config sanity. If this fails, try 'make help' ...

    make ARCH=general-32 COMP=gcc all
    make[1]: Entering directory '/home/pi/Stockfish-sf_14/src'
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o benchmark.o benchmark.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o bitbase.o bitbase.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o bitboard.o bitboard.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o endgame.o endgame.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o evaluate.o evaluate.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o main.o main.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o material.o material.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o misc.o misc.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o movegen.o movegen.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o movepick.o movepick.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o pawns.o pawns.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o position.o position.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o psqt.o psqt.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o search.o search.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o thread.o thread.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o timeman.o timeman.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o tt.o tt.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o uci.o uci.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o ucioption.o ucioption.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o tune.o tune.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o tbprobe.o syzygy/tbprobe.cpp
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o evaluate_nnue.o nnue/evaluate_nnue.cpp
    nnue/evaluate_nnue.cpp: In function ‘Stockfish::Value Stockfish::Eval::NNUE::evaluate(const Stockfish::Position&, bool)’:
    nnue/evaluate_nnue.cpp:156:80: warning: requested alignment 64 is larger than 8 [-Wattributes]
           TransformedFeatureType transformedFeatures[FeatureTransformer::BufferSize];
                                                                                    ^
    nnue/evaluate_nnue.cpp:157:55: warning: requested alignment 64 is larger than 8 [-Wattributes]
         alignas(alignment) char buffer[Network::BufferSize];
                                                           ^
    nnue/evaluate_nnue.cpp: In function ‘Stockfish::Eval::NNUE::NnueEvalTrace Stockfish::Eval::NNUE::trace_evaluate(const Stockfish::Position&)’:
    nnue/evaluate_nnue.cpp:205:80: warning: requested alignment 64 is larger than 8 [-Wattributes]
           TransformedFeatureType transformedFeatures[FeatureTransformer::BufferSize];
                                                                                    ^
    nnue/evaluate_nnue.cpp:206:55: warning: requested alignment 64 is larger than 8 [-Wattributes]
         alignas(alignment) char buffer[Network::BufferSize];
                                                           ^
    g++ -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto   -c -o half_ka_v2.o nnue/features/half_ka_v2.cpp
    g++ -o stockfish benchmark.o bitbase.o bitboard.o endgame.o evaluate.o main.o material.o misc.o movegen.o movepick.o pawns.o position.o psqt.o search.o thread.o timeman.o tt.o uci.o ucioption.o tune.o tbprobe.o evaluate_nnue.o half_ka_v2.o  -Wl,--no-as-needed -lpthread -Wall -Wcast-qual -fno-exceptions -std=c++17  -pedantic -Wextra -Wshadow -DUSE_PTHREADS -DNDEBUG -O3 -flto -flto=jobserver
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans0.ltrans.o: in function `Stockfish::Value Stockfish::(anonymous namespace)::search<(Stockfish::(anonymous namespace)::NodeType)1>(Stockfish::Position&, Stockfish::Search::Stack*, Stockfish::Value, Stockfish::Value, int, bool) [clone .constprop.36]':
    <artificial>:(.text+0x868c): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x8ee8): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x99a8): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x9b2c): undefined reference to `__atomic_fetch_add_8'
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans0.ltrans.o: in function `Stockfish::ThreadPool::start_thinking(Stockfish::Position&, std::unique_ptr<std::deque<Stockfish::StateInfo, std::allocator<Stockfish::StateInfo> >, std::default_delete<std::deque<Stockfish::StateInfo, std::allocator<Stockfish::StateInfo> > > >&, Stockfish::Search::LimitsType const&, bool) [clone .constprop.51]':
    <artificial>:(.text+0xa1ec): undefined reference to `__atomic_store_8'
    /usr/bin/ld: <artificial>:(.text+0xa204): undefined reference to `__atomic_store_8'
    /usr/bin/ld: <artificial>:(.text+0xa218): undefined reference to `__atomic_store_8'
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans4.ltrans.o: in function `Stockfish::dbg_print()':
    <artificial>:(.text+0x4014): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x4028): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x405c): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x4094): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x40cc): undefined reference to `__atomic_load_8'
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans4.ltrans.o:<artificial>:(.text+0x40e0): more undefined references to `__atomic_load_8' follow
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans1.ltrans.o: in function `Stockfish::Value Stockfish::(anonymous namespace)::search<(Stockfish::(anonymous namespace)::NodeType)2>(Stockfish::Position&, Stockfish::Search::Stack*, Stockfish::Value, Stockfish::Value, int, bool) [clone .constprop.33]':
    <artificial>:(.text+0x10afc): undefined reference to `__atomic_fetch_add_8'
    /usr/bin/ld: <artificial>:(.text+0x10ba4): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x111f8): undefined reference to `__atomic_load_8'
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans2.ltrans.o: in function `Stockfish::UCI::loop(int, char**)':
    <artificial>:(.text+0x4a28): undefined reference to `__atomic_load_8'
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans2.ltrans.o: in function `Stockfish::MainThread::check_time() [clone .part.82]':
    <artificial>:(.text+0x61e8): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x62f4): undefined reference to `__atomic_load_8'
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans2.ltrans.o:<artificial>:(.text+0x6f98): more undefined references to `__atomic_load_8' follow
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans2.ltrans.o: in function `Stockfish::Value Stockfish::(anonymous namespace)::search<(Stockfish::(anonymous namespace)::NodeType)0>(Stockfish::Position&, Stockfish::Search::Stack*, Stockfish::Value, Stockfish::Value, int, bool) [clone .lto_priv.273]':
    <artificial>:(.text+0x8c78): undefined reference to `__atomic_fetch_add_8'
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans3.ltrans.o: in function `Stockfish::UCI::pv[abi:cxx11](Stockfish::Position const&, int, Stockfish::Value, Stockfish::Value)':
    <artificial>:(.text+0x434): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x4e0): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0x52c): undefined reference to `__atomic_load_8'
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans3.ltrans.o: in function `Stockfish::Position::do_move(Stockfish::Move, Stockfish::StateInfo&, bool)':
    <artificial>:(.text+0x3ce0): undefined reference to `__atomic_fetch_add_8'
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans3.ltrans.o: in function `Stockfish::Thread::search()':
    <artificial>:(.text+0xd1e4): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0xd444): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0xe61c): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0xe640): undefined reference to `__atomic_store_8'
    /usr/bin/ld: <artificial>:(.text+0xe724): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0xe8ec): undefined reference to `__atomic_load_8'
    /usr/bin/ld: /tmp/ccJrt67Q.ltrans3.ltrans.o: in function `Stockfish::MainThread::search()':
    <artificial>:(.text+0xef90): undefined reference to `__atomic_load_8'
    /usr/bin/ld: <artificial>:(.text+0xf35c): undefined reference to `__atomic_store_8'
    /usr/bin/ld: <artificial>:(.text+0xf398): undefined reference to `__atomic_load_8'
    collect2: error: ld returned 1 exit status
    make[1]: *** [Makefile:871: stockfish] Error 1
    make[1]: Leaving directory '/home/pi/Stockfish-sf_14/src'
    make: *** [Makefile:741: build] Error 2

     

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines