swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.54k stars 10.35k forks source link

[SR-6953] Test case IRGen/big_types_corner_cases.swift fails on ppc64le, #49501

Open swift-ci opened 6 years ago

swift-ci commented 6 years ago
Previous ID SR-6953
Radar None
Original Reporter asowani (JIRA User)
Type Bug

Attachment: Download

Environment OS: Ubuntu 16.04LTS root@pts00433-vm12:\~/test-results# uname -a Linux pts00433-vm12 4.4.0-47-generic \#68-Ubuntu SMP Wed Oct 26 19:38:24 UTC 2016 ppc64le ppc64le ppc64le GNU/Linux Swift code: top of the tree.
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 93a7089ef4f63fc83d2c9a4f4cca2011

Issue Description:

Test case IRGen/big_types_corner_cases.swift fails on ppc64le platform running Ubuntu 16.04 distribution with following log:

Testing:
FAIL: Swift(linux-powerpc64le) :: IRGen/big_types_corner_cases.swift (164 of 10449)

TEST 'Swift(linux-powerpc64le) :: IRGen/big_types_corner_cases.swift' FAILED ********************
Script:

/root/swift-source/build/Ninja-DebugAssert/swift-linux-powerpc64le/bin/swift -frontend -target powerpc64le-unknown-linux-gnu -module-cache-path '/tmp/swift-testsuite-clang-module-cacheIMfBd7' -swift-version 3 -assume-parsing-unqualified-ownership-sil -enable-large-loadable-types /root/swift-source/swift/test/IRGen/big_types_corner_cases.swift -emit-ir | /root/swift-source/swift/utils/PathSanitizingFileCheck --sanitize 'BUILD_DIR=/root/swift-source/build/Ninja-DebugAssert/swift-linux-powerpc64le' --sanitize 'SOURCE_DIR=/root/swift-source/swift' --use-filecheck '/root/swift-source/build/Ninja-DebugAssert/llvm-linux-powerpc64le/./bin/FileCheck' /root/swift-source/swift/test/IRGen/big_types_corner_cases.swift --check-prefix=CHECK --check-prefix=CHECK-64

Exit Code: 1

Command Output (stderr):

/root/swift-source/swift/test/IRGen/big_types_cornercases.swift:206:7: warning: immutable value 'testGetPtr' was never used; consider replacing with '_' or removing it
let testGetPtr: @convention(thin) () -> BigStruct = bigStructGet
^\~\~\~\~\~\~\~\~\~
\

/root/swift-source/swift/test/IRGen/big_types_corner_cases.swift:37:17: error: expected string not found in input
// CHECK-LABEL: define{{( protected)?}} i32 @main(i32, i8**) #0 {
^
\<stdin>:1:1: note: scanning from here
; ModuleID = '-'
^
\<stdin>:14:9: note: possible intended match here
%struct.InlineRefCounts = type { i32, i32 }
^

swift-ci commented 5 years ago

Comment by Sarvesh Tamba (JIRA)

Built and verified Swift 5.0 master on PowerPC(powerpc64le). I was able to run all the samples given in https://swift.org/getting-started/ which confirms that 'swiftc'(Swift compiler), REPL environment and LLDB debugger are working correctly. Also package manager seems to work fine. Built a sample package using the ported Swift 5.0 binaries.

I also invoked the build-toolchain to run the tests as well :-
utils/build-toolchain srtbundle --test

Following is the current status of the tests which are failing so far:-
4 warning(s) in tests.
Testing Time: 1774.53s
********************
Failing Tests (19):
Swift(linux-powerpc64le) :: ClangImporter/cfuncs_parse.swift
Swift(linux-powerpc64le) :: Driver/sanitizers.swift
Swift(linux-powerpc64le) :: Driver/fuzzer.swift
Swift(linux-powerpc64le) :: IRGen/class_resilience_objc.swift
Swift(linux-powerpc64le) :: IRGen/big_types_corner_cases.swift
Swift(linux-powerpc64le) :: IRGen/clang_inline_opt.swift
Swift(linux-powerpc64le) :: IRGen/errors.sil
Swift(linux-powerpc64le) :: IRGen/objc_simd.sil
Swift(linux-powerpc64le) :: IRGen/objc_properties_jit.swift
Swift(linux-powerpc64le) :: IRGen/pic.swift
Swift(linux-powerpc64le) :: Index/Store/output-failure.swift
Swift(linux-powerpc64le) :: Interpreter/generic_casts.swift
Swift(linux-powerpc64le) :: ParseableInterface/ModuleCache/force-module-loading-mode-archs.swift
Swift(linux-powerpc64le) :: ParseableInterface/ModuleCache/force-module-loading-mode-framework.swift
Swift(linux-powerpc64le) :: ParseableInterface/ModuleCache/force-module-loading-mode.swift
Swift(linux-powerpc64le) :: Runtime/linux-fatal-backtrace.swift
Swift(linux-powerpc64le) :: Sanitizers/tsan.swift
Swift(linux-powerpc64le) :: remote-run/upload-stderr.test-sh
Swift(linux-powerpc64le) :: Sanitizers/witness_table_lookup.swift

Expected Passes : 10116
Expected Failures : 50
Unsupported Tests : 1341
Unexpected Failures: 19

Attached are the failure details of each of the failing tests.swift-test-failures-ppc64le.txtswift-test-failures-ppc64le.txt

swift-ci commented 5 years ago

Comment by Sarvesh Tamba (JIRA)

Can anyone confirm if these test cases are supported for PowerPC64LE?

swift-ci commented 5 years ago

Comment by Sarvesh Tamba (JIRA)

Around 5 tests fail with "FileCheck error: '-' is empty."
Tried adding "-allow-empty" to the FileCheck command line: build/buildbot_linux/llvm-linux-powerpc64le/bin/FileCheck. Still the tests fails on subsequest steps.
The failing tests are:-
swift/test/Driver/fuzzer.swift
swift/test/IRGen/objc_properties_jit.swift
swift/test/Index/Store/output-failure.swift
swift/test/Interpreter/generic_casts.swift
swift/test/remote-run/upload-stderr.test-sh