Bug 2042690 - folly: FTBFS with gcc 12 on ppc64le
Summary: folly: FTBFS with gcc 12 on ppc64le
Keywords:
Status: CLOSED DUPLICATE of bug 2045117
Alias: None
Product: Fedora
Classification: Fedora
Component: folly
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michel Lind
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-19 22:47 UTC by Michel Lind
Modified: 2022-01-28 19:53 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-28 19:53:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
root.log from rebuilding folly-2021.12.20.00-3 (124.14 KB, text/plain)
2022-01-19 22:49 UTC, Michel Lind
no flags Details
build.log from rebuilding folly-2021.12.20.00-3 (1.23 MB, text/plain)
2022-01-19 22:50 UTC, Michel Lind
no flags Details
root.log from building folly-2022.01.17.00-1 (124.24 KB, text/plain)
2022-01-19 22:50 UTC, Michel Lind
no flags Details
build.log from building folly-2022.01.17.00-1 (1.23 MB, text/plain)
2022-01-19 22:50 UTC, Michel Lind
no flags Details

Description Michel Lind 2022-01-19 22:47:58 UTC
Description of problem:
folly does not build against gcc 12; tried rebuilding both the previous build and the latest 2022.01.17.00

Version-Release number of selected component (if applicable):
folly-2021.12.20.00-3.fc36
folly-2022.01.17.00-1.fc36
gcc-c++-12.0.1-0.1.1.fc36.ppc64le
fmt-devel-8.1.1-1.fc36.ppc64le

How reproducible:
Always


Steps to Reproduce:
1. fedpkg clone folly && cd folly
2. fedpkg srpm && koji build --scratch rawhide ./*.src.rpm
3. rm *.src.rpm && fedpkg switch-branch f35
4. repeat step 3

Actual results:
Builds fail on ppc64le
2022.01.17.00-1: https://koji.fedoraproject.org/koji/taskinfo?taskID=81460916
2021.12.20.00-3 (this succeded in December): https://koji.fedoraproject.org/koji/taskinfo?taskID=81464381

Expected results:
Builds succeed on all architectures


Additional info:
Will attach logs before the scratch builds get GC-ed.

Comment 1 Michel Lind 2022-01-19 22:49:24 UTC
Created attachment 1851967 [details]
root.log from rebuilding folly-2021.12.20.00-3

Comment 2 Michel Lind 2022-01-19 22:50:01 UTC
Created attachment 1851968 [details]
build.log from rebuilding folly-2021.12.20.00-3

Comment 3 Michel Lind 2022-01-19 22:50:25 UTC
Created attachment 1851969 [details]
root.log from building folly-2022.01.17.00-1

Comment 4 Michel Lind 2022-01-19 22:50:45 UTC
Created attachment 1851970 [details]
build.log from building folly-2022.01.17.00-1

Comment 5 Michel Lind 2022-01-19 22:53:24 UTC
Last successful build was with:
DEBUG util.py:446:   fmt-devel                   ppc64le   8.0.1-2.fc35               build   110 k
DEBUG util.py:446:   gcc-c++                     ppc64le   11.2.1-7.fc36              build    11 M

https://koji.fedoraproject.org/koji/buildinfo?buildID=1870005

Error:

[ 97%] Linking CXX executable logging_example
cd /builddir/build/BUILD/folly-2021.12.20.00/redhat-linux-build/folly/logging/example && /usr/bin/cmake -E cmake_link_script CMakeFiles/logging_example.dir/link.txt --verbose=1
/usr/bin/g++ -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 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/.package_note-folly-2021.12.20.00-3.fc36.ppc64le.ld -rdynamic CMakeFiles/logging_example.dir/main.cpp.o -o logging_example  -Wl,-rpath,/builddir/build/BUILD/folly-2021.12.20.00/redhat-linux-build/folly/logging/example:/builddir/build/BUILD/folly-2021.12.20.00/redhat-linux-build liblogging_example_lib.so ../../../libfolly.so.2021.12.20.00 /usr/lib64/libfmt.so.8.1.1 -Wl,--as-needed -lboost_context -lboost_filesystem -lboost_program_options -lboost_regex -lboost_system -lboost_thread -lboost_chrono -lboost_date_time -lboost_atomic -ldouble-conversion /usr/lib64/libgflags.so.2.2.2 -lglog -levent -lz -lssl -lcrypto -lbz2 -llzma -llz4 -lzstd -lsnappy -ldwarf -Wl,-Bstatic -liberty -Wl,-Bdynamic -laio -luring -lsodium -ldl -lunwind 
[ 98%] Linking CXX shared library libfolly_test_util.so
/usr/bin/cmake -E cmake_link_script CMakeFiles/folly_test_util.dir/link.txt --verbose=1
/usr/bin/g++ -fPIC -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 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/.package_note-folly-2021.12.20.00-3.fc36.ppc64le.ld -shared -Wl,-soname,libfolly_test_util.so.2021.12.20.00 -o libfolly_test_util.so.2021.12.20.00 CMakeFiles/folly_test_util.dir/folly/test/DeterministicSchedule.cpp.o CMakeFiles/folly_test_util.dir/folly/test/JsonTestUtil.cpp.o  -Wl,-rpath,/builddir/build/BUILD/folly-2021.12.20.00/redhat-linux-build: libfolly.so.2021.12.20.00 /usr/lib64/libfmt.so.8.1.1 -Wl,--as-needed -lboost_context -lboost_filesystem -lboost_program_options -lboost_regex -lboost_system -lboost_thread -lboost_chrono -lboost_date_time -lboost_atomic -ldouble-conversion /usr/lib64/libgflags.so.2.2.2 -lglog -levent -lz -lssl -lcrypto -lbz2 -llzma -llz4 -lzstd -lsnappy -ldwarf -Wl,-Bstatic -liberty -Wl,-Bdynamic -laio -luring -lsodium -ldl -lunwind 
/usr/bin/ld: ../../../libfolly.so.2021.12.20.00: undefined reference to `int fmt::v8::detail::format_float<__ieee128>(__ieee128, int, fmt::v8::detail::float_specs, fmt::v8::detail::buffer<char>&)'
/usr/bin/ld: ../../../libfolly.so.2021.12.20.00: undefined reference to `int fmt::v8::detail::snprintf_float<__ieee128>(__ieee128, int, fmt::v8::detail::float_specs, fmt::v8::detail::buffer<char>&)'
collect2: error: ld returned 1 exit status
gmake[2]: *** [folly/logging/example/CMakeFiles/logging_example.dir/build.make:130: folly/logging/example/logging_example] Error 1
gmake[2]: Leaving directory '/builddir/build/BUILD/folly-2021.12.20.00/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:391: folly/logging/example/CMakeFiles/logging_example.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....

Comment 6 Michel Lind 2022-01-19 23:12:42 UTC
Aleksei pointed out that this is likely due to the ppc64le ABI change announced in Jakub's initial post, so fmt needs to be rebuilt.

Comment 7 Michel Lind 2022-01-19 23:39:39 UTC
confirmed that doing a scratch build of Rawhide's fmt in a F35 side tag, and then tagging it for the side tag, and doing a scratch build of Folly against that succeeds. Though now nirik has questions about why the tagging even worked.

fmt on  rawhide [?] took 20s
❯ fedpkg scratch-build --target $(cat f35-sidetag.txt) --srpm ./fmt-8.1.1-1.fc35.src.rpm                            [57/8945]
[====================================] 100% 00:00:00 816.56 KiB   1.18 MiB/sec
Building fmt-8.1.1-1.fc35.src.rpm for f35-build-side-49703
Created task: 81475859
Task info: https://koji.fedoraproject.org/koji/taskinfo?taskID=81475859
Watching tasks (this may be safely interrupted)...
81475859 build (f35-build-side-49703, fmt-8.1.1-1.fc35.src.rpm): free
81475859 build (f35-build-side-49703, fmt-8.1.1-1.fc35.src.rpm): free -> open (buildvm-ppc64le-37.iad2.fedoraproject.org)
  81475875 rebuildSRPM (noarch): open (buildvm-ppc64le-15.iad2.fedoraproject.org)
  81475875 rebuildSRPM (noarch): open (buildvm-ppc64le-15.iad2.fedoraproject.org) -> closed
  0 free  1 open  1 done  0 failed
  81475990 buildArch (fmt-8.1.1-1.fc35.src.rpm, aarch64): open (buildvm-a64-19.iad2.fedoraproject.org)
  81475987 buildArch (fmt-8.1.1-1.fc35.src.rpm, armv7hl): open (buildvm-a32-07.iad2.fedoraproject.org)
  81475988 buildArch (fmt-8.1.1-1.fc35.src.rpm, i686): open (buildvm-x86-32.iad2.fedoraproject.org)
  81475993 buildArch (fmt-8.1.1-1.fc35.src.rpm, s390x): open (buildvm-s390x-06.s390.fedoraproject.org)
  81475992 buildArch (fmt-8.1.1-1.fc35.src.rpm, ppc64le): open (buildvm-ppc64le-39.iad2.fedoraproject.org)
  81475989 buildArch (fmt-8.1.1-1.fc35.src.rpm, x86_64): open (buildvm-x86-27.iad2.fedoraproject.org)
  81475992 buildArch (fmt-8.1.1-1.fc35.src.rpm, ppc64le): open (buildvm-ppc64le-39.iad2.fedoraproject.org) -> closed
  0 free  6 open  2 done  0 failed
  81475989 buildArch (fmt-8.1.1-1.fc35.src.rpm, x86_64): open (buildvm-x86-27.iad2.fedoraproject.org) -> closed
  0 free  5 open  3 done  0 failed
  81475988 buildArch (fmt-8.1.1-1.fc35.src.rpm, i686): open (buildvm-x86-32.iad2.fedoraproject.org) -> closed
  0 free  4 open  4 done  0 failed
  81475993 buildArch (fmt-8.1.1-1.fc35.src.rpm, s390x): open (buildvm-s390x-06.s390.fedoraproject.org) -> closed
  0 free  3 open  5 done  0 failed
  81475990 buildArch (fmt-8.1.1-1.fc35.src.rpm, aarch64): open (buildvm-a64-19.iad2.fedoraproject.org) -> closed
  0 free  2 open  6 done  0 failed
  81475987 buildArch (fmt-8.1.1-1.fc35.src.rpm, armv7hl): open (buildvm-a32-07.iad2.fedoraproject.org) -> closed
  0 free  1 open  7 done  0 failed
81475859 build (f35-build-side-49703, fmt-8.1.1-1.fc35.src.rpm): open (buildvm-ppc64le-37.iad2.fedoraproject.org) -> closed
  0 free  0 open  8 done  0 failed

81475859 build (f35-build-side-49703, fmt-8.1.1-1.fc35.src.rpm) completed successfully

fmt on  rawhide [?] took 14m38s
❯ koji tag $(cat f35-sidetag.txt) fmt-8.1.1-1.fc35
Created task 81476651
Watching tasks (this may be safely interrupted)...
81476651 tagBuild (noarch): free
81476651 tagBuild (noarch): free -> closed
  0 free  0 open  1 done  0 failed

81476651 tagBuild (noarch) completed successfully

fmt on  rawhide [?] took 7s
❯ koji wait-repo $(cat f35-sidetag.txt) --build=fmt-8.1.1-1.fc35
Successfully waited 0:01 for fmt-8.1.1-1.fc35 to appear in the f35-build-side-49703 repo


folly on  f35 [?]
❯ koji build --scratch $(cat ~/src/fedora/pkgs/other/fmt/f35-sidetag.txt) --arch-override=ppc64le ./folly-2021.12.20.00-3.fc35.src.rpm
Uploading srpm: ./folly-2021.12.20.00-3.fc35.src.rpm
[====================================] 100% 00:00:01   3.40 MiB   2.68 MiB/sec
Created task: 81476779
Task info: https://koji.fedoraproject.org/koji/taskinfo?taskID=81476779
Watching tasks (this may be safely interrupted)...
81476779 build (f35-build-side-49703, folly-2021.12.20.00-3.fc35.src.rpm): free
81476779 build (f35-build-side-49703, folly-2021.12.20.00-3.fc35.src.rpm): free -> open (buildvm-ppc64le-39.iad2.fedoraproject.org)
  81476781 rebuildSRPM (noarch): open (buildvm-ppc64le-39.iad2.fedoraproject.org)
  81476781 rebuildSRPM (noarch): open (buildvm-ppc64le-39.iad2.fedoraproject.org) -> closed
  0 free  1 open  1 done  0 failed
  81476870 buildArch (folly-2021.12.20.00-3.fc35.src.rpm, ppc64le): free
  81476870 buildArch (folly-2021.12.20.00-3.fc35.src.rpm, ppc64le): free -> open (buildvm-ppc64le-27.iad2.fedoraproject.org)
  81476870 buildArch (folly-2021.12.20.00-3.fc35.src.rpm, ppc64le): open (buildvm-ppc64le-27.iad2.fedoraproject.org) -> closed
  0 free  1 open  2 done  0 failed
81476779 build (f35-build-side-49703, folly-2021.12.20.00-3.fc35.src.rpm): open (buildvm-ppc64le-39.iad2.fedoraproject.org) -> closed
  0 free  0 open  3 done  0 failed

81476779 build (f35-build-side-49703, folly-2021.12.20.00-3.fc35.src.rpm) completed successfully

Comment 8 Michel Lind 2022-01-28 19:53:35 UTC

*** This bug has been marked as a duplicate of bug 2045117 ***


Note You need to log in before you can comment on or make changes to this bug.