Thanks to visit codestin.com
Credit goes to github.com

Skip to content

7.1.0: no longer LTO ready #1955

@kloczek

Description

@kloczek

7.0.3 was OK. After disable LTO 7.1.0 builds correctly.

[tkloczko@barrel x86_64-redhat-linux-gnu]$ make
/usr/bin/cmake -S/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0 -B/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu/CMakeFiles /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
make  -f CMakeFiles/fmt.dir/build.make CMakeFiles/fmt.dir/depend
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
cd /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0 /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0 /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu/CMakeFiles/fmt.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
make  -f CMakeFiles/fmt.dir/build.make CMakeFiles/fmt.dir/build
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
make[2]: Nothing to be done for 'CMakeFiles/fmt.dir/build'.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
[  6%] Built target fmt
make  -f test/CMakeFiles/gmock.dir/build.make test/CMakeFiles/gmock.dir/depend
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
cd /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0 /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/test /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu/test /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu/test/CMakeFiles/gmock.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
make  -f test/CMakeFiles/gmock.dir/build.make test/CMakeFiles/gmock.dir/build
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
make[2]: Nothing to be done for 'test/CMakeFiles/gmock.dir/build'.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
[ 10%] Built target gmock
make  -f test/CMakeFiles/test-main.dir/build.make test/CMakeFiles/test-main.dir/depend
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
cd /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0 /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/test /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu/test /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu/test/CMakeFiles/test-main.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
make  -f test/CMakeFiles/test-main.dir/build.make test/CMakeFiles/test-main.dir/build
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
make[2]: Nothing to be done for 'test/CMakeFiles/test-main.dir/build'.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
[ 19%] Built target test-main
make  -f test/CMakeFiles/os-test.dir/build.make test/CMakeFiles/os-test.dir/depend
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
cd /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0 /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/test /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu/test /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu/test/CMakeFiles/os-test.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
make  -f test/CMakeFiles/os-test.dir/build.make test/CMakeFiles/os-test.dir/build
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
make[2]: Nothing to be done for 'test/CMakeFiles/os-test.dir/build'.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
[ 23%] Built target os-test
make  -f test/CMakeFiles/assert-test.dir/build.make test/CMakeFiles/assert-test.dir/depend
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
cd /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0 /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/test /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu/test /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu/test/CMakeFiles/assert-test.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
make  -f test/CMakeFiles/assert-test.dir/build.make test/CMakeFiles/assert-test.dir/build
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
make[2]: Nothing to be done for 'test/CMakeFiles/assert-test.dir/build'.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
[ 27%] Built target assert-test
make  -f test/CMakeFiles/ranges-test.dir/build.make test/CMakeFiles/ranges-test.dir/depend
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
cd /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0 /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/test /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu/test /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu/test/CMakeFiles/ranges-test.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
make  -f test/CMakeFiles/ranges-test.dir/build.make test/CMakeFiles/ranges-test.dir/build
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
make[2]: Nothing to be done for 'test/CMakeFiles/ranges-test.dir/build'.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
[ 31%] Built target ranges-test
make  -f test/CMakeFiles/chrono-test.dir/build.make test/CMakeFiles/chrono-test.dir/depend
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
cd /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0 /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/test /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu/test /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu/test/CMakeFiles/chrono-test.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
make  -f test/CMakeFiles/chrono-test.dir/build.make test/CMakeFiles/chrono-test.dir/build
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
[ 34%] Linking CXX executable ../bin/chrono-test
cd /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu/test && /usr/bin/cmake -E cmake_link_script CMakeFiles/chrono-test.dir/link.txt --verbose=1
/usr/bin/g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -O2 -g -DNDEBUG -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin CMakeFiles/chrono-test.dir/chrono-test.cc.o -o ../bin/chrono-test  -Wl,-rpath,/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu libtest-main.a libgmock.a -lpthread ../libfmt.so.7.1.0 -Wl,--as-needed
In function ‘memcpy’,
    inlined from ‘copy2’ at /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/format.h:1034:0,
    inlined from ‘format_decimal’ at /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/format.h:1063:0,
    inlined from ‘format_decimal’ at /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/format.h:1073:0,
    inlined from ‘write.constprop’ at /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/chrono.h:880:36:
/usr/include/bits/string_fortified.h:34: warning: writing 2 bytes into a region of size 0 [-Wstringop-overflow=]
   34 |   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
      |
/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/chrono.h: In member function ‘write.constprop’:
/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/format.h:1072: note: at offset -2 to object ‘buffer’ with size 10 declared here
 1072 |   Char buffer[digits10<UInt>() + 1];
      |
In function ‘format_decimal’,
    inlined from ‘format_decimal’ at /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/format.h:1073:0,
    inlined from ‘write.constprop’ at /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/chrono.h:880:36:
/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/format.h:1059: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 1059 |     *--out = static_cast<Char>('0' + value);
      |
/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/chrono.h: In member function ‘write.constprop’:
/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/format.h:1072: note: at offset -1 to object ‘buffer’ with size 10 declared here
 1072 |   Char buffer[digits10<UInt>() + 1];
      |
In function ‘memcpy’,
    inlined from ‘copy2’ at /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/format.h:1034:0,
    inlined from ‘format_decimal’ at /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/format.h:1063:0,
    inlined from ‘format_decimal’ at /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/format.h:1073:0,
    inlined from ‘write.constprop’ at /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/chrono.h:880:36:
/usr/include/bits/string_fortified.h:34: warning: writing 2 bytes into a region of size 0 [-Wstringop-overflow=]
   34 |   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
      |
/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/chrono.h: In member function ‘write.constprop’:
/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/format.h:1072: note: at offset -2 to object ‘buffer’ with size 10 declared here
 1072 |   Char buffer[digits10<UInt>() + 1];
      |
In function ‘format_decimal’,
    inlined from ‘format_decimal’ at /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/format.h:1073:0,
    inlined from ‘write.constprop’ at /home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/chrono.h:880:36:
/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/format.h:1059: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 1059 |     *--out = static_cast<Char>('0' + value);
      |
/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/chrono.h: In member function ‘write.constprop’:
/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/format.h:1072: note: at offset -1 to object ‘buffer’ with size 10 declared here
 1072 |   Char buffer[digits10<UInt>() + 1];
      |
/usr/bin/ld: chrono-test.lto.o: in function `fmt::v7::detail::buffer_appender<wchar_t> fmt::v7::detail::write<wchar_t, fmt::v7::detail::buffer_appender<wchar_t>, double, 0>(fmt::v7::detail::buffer_appender<wchar_t>, double)':
/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/format.h:1969: undefined reference to `fmt::v7::detail::dragonbox::decimal_fp<double> fmt::v7::detail::dragonbox::to_decimal<double>(double)'
/usr/bin/ld: chrono-test.lto.o: in function `fmt::v7::detail::buffer_appender<wchar_t> fmt::v7::detail::write<wchar_t, fmt::v7::detail::buffer_appender<wchar_t>, float, 0>(fmt::v7::detail::buffer_appender<wchar_t>, float)':
/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/include/fmt/format.h:1969: undefined reference to `fmt::v7::detail::dragonbox::decimal_fp<float> fmt::v7::detail::dragonbox::to_decimal<float>(float)'
collect2: error: ld returned 1 exit status
make[2]: *** [test/CMakeFiles/chrono-test.dir/build.make:109: bin/chrono-test] Error 1
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
make[1]: *** [CMakeFiles/Makefile2:316: test/CMakeFiles/chrono-test.dir/all] Error 2
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu'
make: *** [Makefile:185: all] Error 2
[tkloczko@barrel x86_64-redhat-linux-gnu]$ cmake -L
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.


CMake Error: The source directory "/home/tkloczko/rpmbuild/BUILD/fmt-7.1.0/x86_64-redhat-linux-gnu" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
-- Cache values
CMAKE_BUILD_TYPE:STRING=RelWithDebInfo
CMAKE_INSTALL_PREFIX:PATH=/usr
DOXYGEN:FILEPATH=/usr/bin/doxygen
FMT_CMAKE_DIR:STRING=lib64/cmake/fmt
FMT_CUDA_TEST:BOOL=OFF
FMT_DEBUG_POSTFIX:STRING=d
FMT_DOC:BOOL=ON
FMT_FUZZ:BOOL=OFF
FMT_INC_DIR:STRING=include
FMT_INSTALL:BOOL=ON
FMT_LIB_DIR:STRING=/usr/lib64
FMT_OS:BOOL=ON
FMT_PEDANTIC:BOOL=OFF
FMT_PKGCONFIG_DIR:PATH=lib64/pkgconfig
FMT_TEST:BOOL=ON
FMT_WERROR:BOOL=OFF

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions