Bug 2046716 - llvm12: FTBFS in Fedora rawhide/f36
Summary: llvm12: FTBFS in Fedora rawhide/f36
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: llvm12
Version: 37
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom Stellard
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: F38FTBFS F36FTBFS F37FTBFS
TreeView+ depends on / blocked
 
Reported: 2022-01-27 09:21 UTC by Fedora Release Engineering
Modified: 2023-02-10 00:37 UTC (History)
3 users (show)

Fixed In Version: llvm12-12.0.1-8.fc38 llvm12-12.0.1-8.fc37
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-02-10 00:37:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
build.log (32.00 KB, text/plain)
2022-01-27 09:21 UTC, Fedora Release Engineering
no flags Details
root.log (32.00 KB, text/plain)
2022-01-27 09:21 UTC, Fedora Release Engineering
no flags Details
state.log (966 bytes, text/plain)
2022-01-27 09:21 UTC, Fedora Release Engineering
no flags Details

Description Fedora Release Engineering 2022-01-27 09:21:07 UTC
llvm12 failed to build from source in Fedora rawhide/f36

https://koji.fedoraproject.org/koji/taskinfo?taskID=81983808


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Please fix llvm12 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,
llvm12 will be orphaned. Before branching of Fedora 37,
llvm12 will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2022-01-27 09:21:10 UTC
Created attachment 1855777 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Fedora Release Engineering 2022-01-27 09:21:11 UTC
Created attachment 1855778 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2022-01-27 09:21:12 UTC
Created attachment 1855779 [details]
state.log

Comment 4 Jens Petersen 2022-02-06 07:03:25 UTC
Any idea what is happening here?
The testsuite seems to fail on i686 (11 failures) and s390x (2 failures) for llvm11, llvm12, and llvm13 afaict.
(On the other hand llvm-13.0.1 seemed to build.)

This also stops me building llvm11 for epel9.

Comment 5 Ben Cotton 2022-02-08 20:13:49 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 6 Jens Petersen 2023-02-01 04:10:59 UTC
I fixed the newer gcc12 issue, but the testsuite issue remains

Comment 7 Jens Petersen 2023-02-01 14:11:59 UTC
Nvm Jerry already fixed up my patch with fixes for llvm::Function

Comment 8 Fedora Update System 2023-02-01 14:12:30 UTC
FEDORA-2023-4d91859b57 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-4d91859b57

Comment 9 Jens Petersen 2023-02-02 01:26:05 UTC
Noting that F36 testsuite still fails, at least for s390x:

FAIL: LLVM :: tools/llvm-objcopy/ELF/compress-debug-sections-zlib-gnu.test (40921 of 42153)
******************** TEST 'LLVM :: tools/llvm-objcopy/ELF/compress-debug-sections-zlib-gnu.test' FAILED ********************
Script:
--
: 'RUN: at line 3';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/yaml2obj /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/Inputs/compress-debug-sections.yaml -o /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib-gnu.test.tmp.o
: 'RUN: at line 4';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-objcopy --compress-debug-sections=zlib-gnu /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib-gnu.test.tmp.o /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib-gnu.test.tmp-compressed.o
: 'RUN: at line 5';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-objcopy --decompress-debug-sections /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib-gnu.test.tmp-compressed.o /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib-gnu.test.tmp-decompressed.o
: 'RUN: at line 7';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-objdump -s /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib-gnu.test.tmp.o --section=.debug_foo | /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/FileCheck --allow-unused-prefixes=false /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib-gnu.test
: 'RUN: at line 8';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-objdump -s /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib-gnu.test.tmp-compressed.o | /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/FileCheck --allow-unused-prefixes=false /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib-gnu.test --check-prefix=CHECK-COMPRESSED
: 'RUN: at line 9';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-readobj --relocations -S /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib-gnu.test.tmp-compressed.o | /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/FileCheck --allow-unused-prefixes=false /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib-gnu.test --check-prefix=CHECK-FLAGS
: 'RUN: at line 10';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-readobj --relocations -S /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib-gnu.test.tmp-decompressed.o | /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/FileCheck --allow-unused-prefixes=false /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib-gnu.test --check-prefix=CHECK-HEADER
: 'RUN: at line 11';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-readobj --relocations -S /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib-gnu.test.tmp.o | /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/FileCheck --allow-unused-prefixes=false /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib-gnu.test --check-prefix=CHECK-HEADER
: 'RUN: at line 12';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-objdump -s /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib-gnu.test.tmp-decompressed.o --section=.debug_foo | /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/FileCheck --allow-unused-prefixes=false /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib-gnu.test
--
Exit Code: 1
Command Output (stderr):
--
/builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib-gnu.test:36:21: error: CHECK-FLAGS-NEXT: expected string not found in input
# CHECK-FLAGS-NEXT: Size: 23
                    ^
<stdin>:43:10: note: scanning from here
 Offset: 0x50
         ^
<stdin>:44:2: note: possible intended match here
 Size: 22
 ^
Input file: <stdin>
Check file: /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib-gnu.test
-dump-input=help explains the following input dump.
Input was:
<<<<<<
           .
           .
           .
          38:  Name: .zdebug_foo (45)
          39:  Type: SHT_PROGBITS (0x1)
          40:  Flags [ (0x0)
          41:  ]
          42:  Address: 0x0
          43:  Offset: 0x50
next:36'0              X~~~ error: no match found
          44:  Size: 22
next:36'0     ~~~~~~~~~
next:36'1      ?        possible intended match
          45:  Link: 0
next:36'0     ~~~~~~~~
          46:  Info: 0
next:36'0     ~~~~~~~~
          47:  AddressAlignment: 8
next:36'0     ~~~~~~~~~~~~~~~~~~~~
          48:  EntrySize: 0
next:36'0     ~~~~~~~~~~~~~
          49:  }
next:36'0     ~~
           .
           .
           .
>>>>>>
--
********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.
FAIL: LLVM :: tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test (40924 of 42153)
******************** TEST 'LLVM :: tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test' FAILED ********************
Script:
--
: 'RUN: at line 3';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/yaml2obj /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/Inputs/compress-debug-sections.yaml -o /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp.o
: 'RUN: at line 4';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-objcopy --compress-debug-sections=zlib /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp.o /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp-compressed.o
: 'RUN: at line 5';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-objcopy --decompress-debug-sections /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp-compressed.o /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp-decompressed.o
: 'RUN: at line 7';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-objdump -s /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp.o --section=.debug_foo | /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/FileCheck --allow-unused-prefixes=false /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test
: 'RUN: at line 8';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-objdump -s /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp-compressed.o | /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/FileCheck --allow-unused-prefixes=false /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test --check-prefix=CHECK-COMPRESSED
: 'RUN: at line 9';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-readobj --relocations -S /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp-compressed.o | /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/FileCheck --allow-unused-prefixes=false /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test --check-prefix=CHECK-FLAGS
: 'RUN: at line 10';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-readobj --relocations -S /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp-decompressed.o | /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/FileCheck --allow-unused-prefixes=false /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test --check-prefix=CHECK-HEADER
: 'RUN: at line 11';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-readobj --relocations -S /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp.o | /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/FileCheck --allow-unused-prefixes=false /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test --check-prefix=CHECK-HEADER
: 'RUN: at line 12';   /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/llvm-objdump -s /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test/tools/llvm-objcopy/ELF/Output/compress-debug-sections-zlib.test.tmp-decompressed.o --section=.debug_foo | /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/bin/FileCheck --allow-unused-prefixes=false /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test
--
Exit Code: 1
Command Output (stderr):
--
/builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test:35:21: error: CHECK-FLAGS-NEXT: expected string not found in input
# CHECK-FLAGS-NEXT: Size: 35
                    ^
<stdin>:44:10: note: scanning from here
 Offset: 0x50
         ^
<stdin>:45:2: note: possible intended match here
 Size: 34
 ^
Input file: <stdin>
Check file: /builddir/build/BUILD/llvm-12.0.1.src/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test
-dump-input=help explains the following input dump.
Input was:
<<<<<<
           .
           .
           .
          39:  Type: SHT_PROGBITS (0x1)
          40:  Flags [ (0x800)
          41:  SHF_COMPRESSED (0x800)
          42:  ]
          43:  Address: 0x0
          44:  Offset: 0x50
next:35'0              X~~~ error: no match found
          45:  Size: 34
next:35'0     ~~~~~~~~~
next:35'1      ?        possible intended match
          46:  Link: 0
next:35'0     ~~~~~~~~
          47:  Info: 0
next:35'0     ~~~~~~~~
          48:  AddressAlignment: 8
next:35'0     ~~~~~~~~~~~~~~~~~~~~
          49:  EntrySize: 0
next:35'0     ~~~~~~~~~~~~~
          50:  }
next:35'0     ~~
           .
           .
           .
>>>>>>
--
********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (2):
  LLVM :: tools/llvm-objcopy/ELF/compress-debug-sections-zlib-gnu.test
  LLVM :: tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test
Testing Time: 987.26s
  Unsupported      :  1465
  Passed           : 40542
  Expectedly Failed:   144
  Failed           :     2
FAILED: CMakeFiles/check-all /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/CMakeFiles/check-all 
cd /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build && /usr/bin/python3.10 /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/./bin/llvm-lit -v -sv /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/utils/lit /builddir/build/BUILD/llvm-12.0.1.src/redhat-linux-build/test
ninja: build stopped: subcommand failed.
error: Bad exit status from /var/tmp/rpm-tmp.7GdQO5 (%check)

Comment 10 Fedora Update System 2023-02-02 02:16:06 UTC
FEDORA-2023-4d91859b57 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-4d91859b57`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-4d91859b57

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2023-02-10 00:37:42 UTC
FEDORA-2023-4d91859b57 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.


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