Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Clang 10 fails compiling Swift on Fedora Linux on s390x architecture #44777

Open Quuxplusone opened 4 years ago

Quuxplusone commented 4 years ago
Bugzilla Link PR45807
Status NEW
Importance P normal
Reported by Ron Olson (tachoknight@gmail.com)
Reported on 2020-05-05 12:47:56 -0700
Last modified on 2020-05-05 12:47:56 -0700
Version 10.0
Hardware Other Linux
CC llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
Fixed by commit(s)
Attachments crashreport.tgz (716960 bytes, application/x-gzip)
Blocks
Blocked by
See also
Created attachment 23444
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
https://bugs.llvm.org/ 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:

********************
Quuxplusone commented 4 years ago

Attached crashreport.tgz (716960 bytes, application/x-gzip): Clang-generated shell script and affected cpp file