simde failed to build from source in Fedora rawhide/f33 https://koji.fedoraproject.org/koji/taskinfo?taskID=48359674 For details on the mass rebuild see: https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Please fix simde at your earliest convenience and set the bug's status to ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks, simde will be orphaned. Before branching of Fedora 34, simde will be retired, if it still fails to build. For more details on the FTBFS policy, please visit: https://fedoraproject.org/wiki/Fails_to_build_from_source
Created attachment 1709624 [details] build.log file build.log too big, will only attach last 32768 bytes
Created attachment 1709625 [details] root.log file root.log too big, will only attach last 32768 bytes
Created attachment 1709626 [details] state.log
The error "clang-10: error: unsupported argument 'auto' to option 'flto='" happened on the following cmake command with modified %optflags. ``` # with flags echo "=== 2.2. tests on clang with flags ===" # Some flags and specs are not available with clang. # https://lists.fedoraproject.org/archives/list/packaging@lists.fedoraproject.org/message/W5UFLUADNB4VF3OBUBSNAPOQL6XBCP74/ optflags_clang=$(echo "%{optflags}" | \ sed -e 's| -fstack-clash-protection||' -e 's| -specs=[^ ]*||g') mkdir test/build-clang-with-flags pushd test/build-clang-with-flags CC=clang CXX=clang++ cmake \ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ -DCMAKE_C_FLAGS="${optflags_clang}" \ -DCMAKE_CXX_FLAGS="${optflags_clang}" \ .. ``` `` + CC=clang + CXX=clang++ + cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON '-DCMAKE_C_FLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fcf-protection' '-DCMAKE_CXX_FLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fcf-protection' .. ... clang-10: error: unsupported argument 'auto' to option 'flto=' ``` The following commit triggered the error. https://src.fedoraproject.org/rpms/redhat-rpm-config/c/4637e1bd5512b869bd07c58b7545d2528a9bc4c8 Solution: use `%global toolchain clang` in the part using clang. https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/master/f/macros#_44
FEDORA-2020-65cbd94222 has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report.