Open swift-ci opened 7 years ago
https://github.com/apple/swift/pull/5380 presumably fixes one of the failures.
Comment by Vladislav Dembskiy (JIRA)
Today I did clone new repository and repeated the build. Yes, one test failure gone. New results:
********************
Failing Tests (1):
Swift(linux-x86_64) :: Runtime/linux-fatal-backtrace.swift
Expected Passes : 7825
Expected Failures : 71
Unsupported Tests : 855
Unexpected Failures: 1
Comment by Leif Hedstrom (JIRA)
Still seeing this as well on current master (as of today).
Comment by Vladislav Dembskiy (JIRA)
Still the same errors:
********************
Failing Tests (2):
Swift(linux-x86_64) :: Python/swift_build_support.swift
Swift(linux-x86_64) :: Runtime/linux-fatal-backtrace.swift
Expected Passes : 8614
Expected Failures : 82
Unsupported Tests : 999
Unexpected Failures: 2
2 warning(s) in tests.
Gentoo is fresh.
Linux ved-hp-gentoo 4.9.16-gentoo #1 SMP Tue Apr 11 19:15:59 MSK 2017 x86_64 Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz GenuineIntel GNU/Linux
And swift checkout is fresh:
../build/buildbot_linux/swift-linux-x86_64/bin/swift --version
Swift version 3.1-dev (LLVM d32cda50a5, Clang 4f9c213aec, Swift 4338e525bf)
Target: x86_64-unknown-linux-gnu
Comment by Vladislav Dembskiy (JIRA)
There still the same failing test on LFS. I did fresh checkout of Swift etc. and LFS has been renewed since last report but result is the same:
Testing Time: 8391.86s
********************
Failing Tests (1):
Swift(linux-x86_64) :: Runtime/linux-fatal-backtrace.swiftExpected Passes : 8831
Expected Failures : 88
Unsupported Tests : 882
Unexpected Failures: 12 warning(s) in tests.
- Failed while running tests for swift (check-swift-all-linux-x86_64)
What is the reason?
Comment by Vladislav Dembskiy (JIRA)
Gentoo is updated and after fresh Swift checkout I have got 3 test errors:
Failing Tests (3):
Swift(linux-x86_64) :: Constraints/tuple_arguments.swift
Swift(linux-x86_64) :: Runtime/linux-fatal-backtrace.swift
Swift(linux-x86_64) :: Python/swift_build_support.swift
Expected Passes : 8835
Expected Failures : 88
Unsupported Tests : 889
Unexpected Failures: 3
2 warning(s) in tests.
Comment by Vladislav Dembskiy (JIRA)
Today I did update Gentoo and did fresh Swift checkout. During standard build command
utils/build-script --preset=buildbot_linux install_destdir=/mnt/swift/gentoo installable_package=/mnt/swift/gentoo/swift-gentoo.tar.gz
I have got two errors during test phase:
Failing Tests (2):
Swift(linux-x86_64) :: Constraints/tuple_arguments.swift
Swift(linux-x86_64) :: Python/swift_build_support.swift
Expected Passes : 8910
Expected Failures : 85
Unsupported Tests : 907
Unexpected Failures: 2
2 warning(s) in tests.
Failed while running tests for swift (check-swift-all-linux-x86_64)
So, the Runtime/linux-fatal-backtrace.swift error has gone. It is good.
Comment by Vladislav Dembskiy (JIRA)
Today I updated Gentoo and did fresh checkout Swift.
During test phase I have got only one error:
Failing Tests (1):
Swift(linux-x86_64) :: Python/swift_build_support.swift
Expected Passes : 8979
Expected Failures : 86
Unsupported Tests : 926
Unexpected Failures: 1
2 warning(s) in tests.
Comment by Vladislav Dembskiy (JIRA)
After fresh checkout today I have got the same test error:
Failing Tests (1):
Swift(linux-x86_64) :: Python/swift_build_support.swift
Expected Passes : 9116
Expected Failures : 95
Unsupported Tests : 949
Unexpected Failures: 1
2 warning(s) in tests.
Comment by Vladislav Dembskiy (JIRA)
Today I did fresh checkout and tried to rebuild Swift. Unfortunately. I have got 4 test errors:
Failing Tests (4):
Swift(linux-x86_64) :: Sanitizers/sanitizer_coverage.swift
Swift(linux-x86_64) :: Sanitizers/witness_table_lookup.swift
Swift(linux-x86_64) :: Python/swift_build_support.swift
Swift(linux-x86_64) :: Sanitizers/asan.swift
Expected Passes : 9151
Expected Failures : 92
Unsupported Tests : 1061
Unexpected Failures: 4
2 warning(s) in tests.
Comment by Stanislav Kaliev (JIRA)
I finally managed to install Swift 4.1 on Gentoo. With some issues of course...
emerged clang. Current version is 4.0.1
emerged libedit. Somewhere during the build there was a failure. editline/readline was required and couldn't be found. Well Apple's BSD legacy maybe =)
set python to 2.7 as default
utils/build-script --release-debuginfo --jobs 6 --install-prefix=/usr/local --lldb -T (ran as root, I don't know how's it going when ran as user)
During the lldb build there was a failure, so I had to manually find and replace 'python3.5m' with 'python2.7' in 'build/Ninja-RelWithDebInfoAssert/lldb-linux-x86_64/build.ninja'
then I ran command from 4th step again
I ran swift in command line, but it required lldb so I:
cd build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/bin/
ln -s ../../lldb-linux-x86_64/bin/lldb lldb
--install-prefix doesn't work somehow so...
echo 'PATH=/home/stan/repo/swift-source/build/Ninja-RelWithDebInfoAssert/swift-linux-x86_64/bin:"{$PATH}"' >> \~/.bashrc
source \~/.bashrc
Well swift works as an interpreter and a compiler.
stan@mygentoo \~ $ swift
Welcome to Swift version 4.1-dev (LLVM cd2d6e3b54, Clang f611516c9e, Swift 973448a942). Type :help for assistance.
1>
Here's the test output:
********************
Testing Time: 396.70s
********************
Failing Tests (2):
Swift(linux-x86_64) :: Index/Store/output-failure.swift
Swift(linux-x86_64) :: Python/swift_build_support.swift
Expected Passes : 9355
Expected Failures : 89
Unsupported Tests : 1158
Unexpected Failures: 2
We are very close! I wish someday there will be a ebuild dev-lang/swift in official Gentoo repo...
Vladislav (JIRA User) I'd be very glad to help. I see you are alone here with Swift on Gentoo...
Comment by Stanislav Kaliev (JIRA)
Built with Foundation support. But when I write import Foundation swift says 'no such module'
Environment
Linux ved-hp-gentoo 4.9.16-gentoo \#1 SMP Tue Apr 11 19:15:59 MSK 2017 x86_64 Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz GenuineIntel GNU/Linux Available Python interpreters, in order of preference: \[1\] python2.7 \[2\] python3.4 clang version 3.9.1 (tags/RELEASE_391/final) Target: x86_64-pc-linux-gnu Thread model: posixAdditional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, Linux | |Assignee | None | |Priority | Medium | md5: c37e460389f0c4406111d1d29203fae2Issue Description:
I am almost finished building Swift from sources on Gentoo Linux. During test phase I have got the following results:
********************
Failing Tests (2):
Swift(linux-x86_64) :: Python/swift_build_support.swift
Swift(linux-x86_64) :: Runtime/linux-fatal-backtrace.swift
Expected Passes : 7800
Expected Failures : 71
Unsupported Tests : 853
Unexpected Failures: 2
Failed while running tests for swift (check-swift-all-linux-x86_64)
The first one probably related to SR-2950
It is not clear which Python used.