[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#904139: stockfish FTBFS on armel, mips, mipsel, m68k, powerpc, powerpcspe, sh4: undefined reference to `__atomic_store_8'



Source: stockfish
Version: 9-1
Severity: serious
Tags: ftbfs
User: helmutg@debian.org
Usertags: rebootstrap

stockfish fails to build from source on armel, mips, mipsel, m68k,
powerpc, powerpcspe and sh4. A build log from mips ends with:

| 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 uc
| ioption.o syzygy/tbprobe.o -Wl,-z,relro  -Wl,--no-as-needed -lpthread -g -O2 -fdebug-prefix-map=/home/helmutg/stockfish-9=. -fstack-protector-strong -Wformat -Werror=format-security -W
| all -Wcast-qual -fno-exceptions -std=c++11  -pedantic -Wextra -Wshadow -DNDEBUG -O3 -DNO_PREFETCH -flto  -Wl,--no-as-needed -lpthread -g -O2 -fdebug-prefix-map=/home/helmutg/stockfish-
| 9=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wcast-qual -fno-exceptions -std=c++11  -pedantic -Wextra -Wshadow -DNDEBUG -O3 -DNO_PREFETCH -flto -Wall -Wcast-qua
| l -fno-exceptions -std=c++11  -pedantic -Wextra -Wshadow -DNDEBUG -O3 -DNO_PREFETCH -flto -lgcov -Wl,--no-as-needed -lpthread -g -O2 -fdebug-prefix-map=/home/helmutg/stockfish-9=. -fst
| ack-protector-strong -Wformat -Werror=format-security -Wall -Wcast-qual -fno-exceptions -std=c++11  -pedantic -Wextra -Wshadow -DNDEBUG -O3 -DNO_PREFETCH -flto -Wall -Wcast-qual -fno-e
| xceptions -std=c++11  -pedantic -Wextra -Wshadow -DNDEBUG -O3 -DNO_PREFETCH -flto -Wall -Wcast-qual -fno-exceptions -std=c++11 -fprofile-generate -pedantic -Wextra -Wshadow -DNDEBUG -O
| 3 -DNO_PREFETCH -flto
| /usr/bin/ld: /usr/bin/ld: DWARF error: could not find abbrev number 127
| /tmp/ccNba2xu.ltrans0.ltrans.o: in function `TimeManagement::elapsed() const [clone .isra.66] [clone .constprop.25]':
| /usr/include/c++/8/bits/basic_string.tcc:(.text+0xcd0c): undefined reference to `__atomic_load_8'
| /usr/bin/ld: /usr/include/c++/8/bits/basic_string.tcc:(.text+0xcd20): undefined reference to `__atomic_load_8'
| /usr/bin/ld: /tmp/ccNba2xu.ltrans0.ltrans.o: in function `Value (anonymous namespace)::search<((anonymous namespace)::NodeType)1>(Position&, Search::Stack*, Value, Value, Depth, bool, bool) [clone .constprop.7]':
| /usr/include/c++/8/bits/basic_string.tcc:(.text+0x13ad0): undefined reference to `__atomic_fetch_add_8'
| /usr/bin/ld: /usr/include/c++/8/bits/basic_string.tcc:(.text+0x13ae4): undefined reference to `__atomic_fetch_add_8'
| /usr/bin/ld: /usr/bin/ld: DWARF error: offset (262144) greater than or equal to .debug_str size (29238)
| /usr/bin/ld: DWARF error: mangled line number section (bad file number)
| /usr/bin/ld: DWARF error: could not find abbrev number 8986
| /tmp/ccNba2xu.ltrans3.ltrans.o: in function `ThreadPool::start_thinking(Position&, std::unique_ptr<std::deque<StateInfo, std::allocator<StateInfo> >, std::default_delete<std::deque<StateInfo, std::allocator<StateInfo> > > >&, Search::LimitsType const&, bool)':
| tt.cpp:(.text+0xb500): undefined reference to `__atomic_store_8'
| /usr/bin/ld: tt.cpp:(.text+0xb51c): undefined reference to `__atomic_store_8'
| /usr/bin/ld: tt.cpp:(.text+0xb4dc): undefined reference to `__atomic_store_8'
| /usr/bin/ld: tt.cpp:(.text+0xb518): undefined reference to `__atomic_store_8'
| /usr/bin/ld: /tmp/ccNba2xu.ltrans3.ltrans.o: in function `UCI::loop(int, char**)':
| tt.cpp:(.text+0xff1c): undefined reference to `__atomic_load_8'
| /usr/bin/ld: tt.cpp:(.text+0xff30): undefined reference to `__atomic_load_8'
| /usr/bin/ld: /usr/bin/ld: DWARF error: invalid abstract instance DIE ref
| /tmp/ccNba2xu.ltrans4.ltrans.o: in function `Value (anonymous namespace)::search<((anonymous namespace)::NodeType)0>(Position&, Search::Stack*, Value, Value, Depth, bool, bool) [clone .lto_priv.214]':
| search.cpp:(.text+0xf2b4): undefined reference to `__atomic_fetch_add_8'
| /usr/bin/ld: search.cpp:(.text+0xf2c8): undefined reference to `__atomic_fetch_add_8'
| /usr/bin/ld: /usr/bin/ld: DWARF error: invalid abstract instance DIE ref
| /tmp/ccNba2xu.ltrans5.ltrans.o: in function `UCI::pv[abi:cxx11](Position const&, Depth, Value, Value)':
| position.cpp:(.text+0x4b00): undefined reference to `__atomic_load_8'
| /usr/bin/ld: position.cpp:(.text+0x4b14): undefined reference to `__atomic_load_8'
| /usr/bin/ld: position.cpp:(.text+0x4b70): undefined reference to `__atomic_load_8'
| /usr/bin/ld: position.cpp:(.text+0x4b84): undefined reference to `__atomic_load_8'
| /usr/bin/ld: /tmp/ccNba2xu.ltrans5.ltrans.o: in function `MainThread::check_time()':
| position.cpp:(.text+0x63d8): undefined reference to `__atomic_load_8'
| /usr/bin/ld: /tmp/ccNba2xu.ltrans5.ltrans.o:position.cpp:(.text+0x63ec): more undefined references to `__atomic_load_8' follow
| /usr/bin/ld: /tmp/ccNba2xu.ltrans5.ltrans.o: in function `Position::do_move(Move, StateInfo&, bool)':
| position.cpp:(.text+0x7c2c): undefined reference to `__atomic_fetch_add_8'
| /usr/bin/ld: position.cpp:(.text+0x7c3c): undefined reference to `__atomic_fetch_add_8'
| /usr/bin/ld: /tmp/ccNba2xu.ltrans5.ltrans.o: in function `MainThread::search()':
| position.cpp:(.text+0xcd40): undefined reference to `__atomic_load_8'
| /usr/bin/ld: position.cpp:(.text+0xcd54): undefined reference to `__atomic_load_8'
| /usr/bin/ld: position.cpp:(.text+0xd7c0): undefined reference to `__atomic_store_8'
| /usr/bin/ld: position.cpp:(.text+0xd83c): undefined reference to `__atomic_load_8'
| /usr/bin/ld: position.cpp:(.text+0xd7b8): undefined reference to `__atomic_store_8'
| /usr/bin/ld: position.cpp:(.text+0xd830): undefined reference to `__atomic_load_8'
| collect2: error: ld returned 1 exit status
| make[4]: *** [Makefile:515: stockfish] Error 1
| make[4]: Leaving directory '/home/helmutg/stockfish-9/src'
| make[3]: *** [Makefile:531: gcc-profile-make] Error 2
| make[3]: Leaving directory '/home/helmutg/stockfish-9/src'
| make[2]: *** [Makefile:437: profile-build] Error 2
| make[2]: Leaving directory '/home/helmutg/stockfish-9/src'
| dh_auto_build: cd src && make -j2 profile-build ARCH=general-32 returned exit code 2
| make[1]: *** [debian/rules:93: override_dh_auto_build] Error 2
| make[1]: Leaving directory '/home/helmutg/stockfish-9'
| make: *** [debian/rules:87: build-arch] Error 2
| dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2

Given that this might be a toolchain problem, I've added
debian-gcc@l.d.o to X-Debbugs-Cc.

Helmut


Reply to: