<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Clang 10 fails compiling Swift on Fedora Linux on s390x architecture"
href="https://bugs.llvm.org/show_bug.cgi?id=45807">45807</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang 10 fails compiling Swift on Fedora Linux on s390x architecture
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>10.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tachoknight@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=23444" name="attach_23444" title="Clang-generated shell script and affected cpp file">attachment 23444</a> <a href="attachment.cgi?id=23444&action=edit" title="Clang-generated shell script and affected cpp file">[details]</a></span>
Clang-generated shell script and affected cpp file
Hi-
I am trying to build Swift 5.3 on Fedora Linux 32 using Clang 10 in a s390x
environment. It crashes with the following message:
FAILED:
stdlib/public/stubs/CMakeFiles/swiftStdlibStubs-linux-s390x.dir/Stubs.cpp.o
/builddir/build/BUILD/swift-source/build/buildbot_linux/llvm-linux-s390x/./bin/clang++
-DCMARK_STATIC_DEFINE -DGTEST_HAS_RTTI=0
-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1 -D_DEBUG
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Istdlib/public/stubs
-I/builddir/build/BUILD/swift-source/swift/stdlib/public/stubs -Iinclude
-I/builddir/build/BUILD/swift-source/swift/include
-I/builddir/build/BUILD/swift-source/llvm-project/llvm/include
-I/builddir/build/BUILD/swift-source/build/buildbot_linux/llvm-linux-s390x/include
-I/builddir/build/BUILD/swift-source/llvm-project/clang/include
-I/builddir/build/BUILD/swift-source/build/buildbot_linux/llvm-linux-s390x/tools/clang/include
-I/builddir/build/BUILD/swift-source/cmark/src
-I/builddir/build/BUILD/swift-source/build/buildbot_linux/cmark-linux-s390x/src
-I/builddir/build/BUILD/swift-source/swift-corelibs-libdispatch/src/BlocksRuntime
-I/builddir/build/BUILD/swift-source/swift-corelibs-libdispatch
-Wno-unknown-warning-option -Werror=unguarded-availability-new
-fno-stack-protector -fPIC -fvisibility-inlines-hidden -Werror=date-time
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter
-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough
-Wcovered-switch-default -Wno-class-memaccess -Wno-noexcept-type
-Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion
-fdiagnostics-color -ffunction-sections -fdata-sections -Werror=switch
-Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual
-DOBJC_OLD_DISPATCH_PROTOTYPES=0 -O2 -UNDEBUG -fno-exceptions -fno-rtti
-Werror=gnu -fno-sanitize=all -Wall -Wg
lobal-constructors -Wexit-time-destructors -fvisibility=hidden
-DswiftCore_EXPORTS -I/builddir/build/BUILD/swift-source/swift/include
-DSWIFT_TARGET_LIBRARY_NAME=swiftStdlibStubs -target s390x-unknown-linux-gnu
-O2 -g0 -DNDEBUG -std=c++14 -MD -MT
stdlib/public/stubs/CMakeFiles/swiftStdlibStubs-linux-s390x.dir/Stubs.cpp.o -MF
stdlib/public/stubs/CMakeFiles/swiftStdlibStubs-linux-s390x.dir/Stubs.cpp.o.d
-o stdlib/public/stubs/CMakeFiles/swiftStdlibStubs-linux-s390x.dir/Stubs.cpp.o
-c /builddir/build/BUILD/swift-source/swift/stdlib/public/stubs/Stubs.cpp
fatal error: error in backend: Cannot select: t37: ch = store<(store 2 into
%ir.v, !tbaa !6), trunc to f16> t11, t6, FrameIndex:i64<0>, undef:i64
t6: f32,ch = CopyFromReg t0, Register:f32 %2
t5: f32 = Register %2
t9: i64 = FrameIndex<0>
t16: i64 = undef
In function: swift_float16ToString
clang-10: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 10.0.0
Target: s390x-unknown-linux-gnu
Thread model: posix
InstalledDir:
/builddir/build/BUILD/swift-source/build/buildbot_linux/llvm-linux-s390x/./bin
clang-10: note: diagnostic msg: PLEASE submit a bug report to
<a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash backtrace, preprocessed source,
and associated run script.
clang-10: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-10: note: diagnostic msg: /tmp/Stubs-e5538b.cpp
clang-10: note: diagnostic msg: /tmp/Stubs-e5538b.sh
clang-10: note: diagnostic msg:
********************</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>