Description of problem: Package stockfish fails to build from source in Fedora rawhide. Version-Release number of selected component (if applicable): 9-3.fc29 Steps to Reproduce: koji build --scratch f29 stockfish-9-3.fc29.src.rpm Additional info: This package is tracked by Koschei. See: http://apps.fedoraproject.org/koschei/package/stockfish
From build.log: `_GLOBAL__sub_I_Threads' referenced in section `.init_array' of CMakeFiles/stockfish.dir/thread.cpp.o: defined in discarded section `.text.startup[_ZNK10ThreadPool4mainEv]' of CMakeFiles/stockfish.dir/thread.cpp.o `_GLOBAL__sub_I__ZN3UCI4loopEiPPc' referenced in section `.init_array' of CMakeFiles/stockfish.dir/uci.cpp.o: defined in discarded section `.text.startup[_ZNK10ThreadPool4mainEv]' of CMakeFiles/stockfish.dir/uci.cpp.o collect2: error: ld returned 1 exit status This seems to be an issue [1] with linkage of boost. Please try to rebuild boost because of the bump to gcc [2]. [1] https://stackoverflow.com/questions/9811503/unusual-c-linker-error-defined-in-discarded-section [2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49665
Why do you think this is related to Boost? The symbols given in the errors are nothing to do with Boost, and the GCC bug you reference was fixed seven years ago.
Stockfish doesn't even depend on boost! This has nothing to do with Boost at all.
Okay and thanks for looking into this issue. Sorry for any useless confusion. Taking this bug back.
Magically fixed in rawhide. I would really like to know what happened.