Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-813] Building swift fails 2 unexpected tests if LD_LIBRARY_PATH is set #43425

Closed
swift-ci opened this issue Feb 25, 2016 · 2 comments
Closed
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself legacy driver Area → compiler: the integrated C++ legacy driver. Succeeded by the swift-driver project

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-813
Radar None
Original Reporter inscrutablemike (JIRA User)
Type Bug
Status Resolved
Resolution Done
Environment

Ubuntu 15.10

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, Driver
Assignee @belkadan
Priority Medium

md5: 5bb486d5dfb4bfb9b52a99e91fbcb132

Issue Description:

If the LD_LIBRARY_PATH environment variable has contents in the local shell, running:

{{./swift/utils/build-script --preset=buildbot_linux install_destdir="/tmp/install" installable_package="/tmp/swift.tar.gz"
}}

Results in:

{{
Exit Code: 1

Command Output (stderr):

/home/x/devel/git_projects/swift_repos/swift_build/swift/test/Driver/options-interpreter.swift:21:35: error: expected string not found in input
// CHECK-RESOURCE-DIR-ONLY-LINUX: # LD_LIBRARY_PATH=/RSRC/linux{{$}}
^
<stdin>:1:1: note: scanning from here
/home/x/devel/git_projects/swift_repos/swift_build/build/buildbot_linux/swift-linux-x86_64/bin/swift -frontend -interpret /home/x/devel/git_projects/swift_repos/swift_build/swift/test/Driver/options-interpreter.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -module-cache-path /tmp/swift-testsuite-clang-module-caches0WIiy -resource-dir /RSRC/ -module-name main # LD_LIBRARY_PATH=/RSRC/linux:/home/x/.gvm/pkgsets/go1.5/global/overlay/lib:/home/x/.gvm/pkgsets/go1.5/global/overlay/lib:/home/x/.gvm/pkgsets/go1.5/global/overlay/lib::/home/x/cuda-5.5/lib64:/home/x/cuda-5.5/lib
^
<stdin>:1:389: note: possible intended match here
/home/x/devel/git_projects/swift_repos/swift_build/build/buildbot_linux/swift-linux-x86_64/bin/swift -frontend -interpret /home/x/devel/git_projects/swift_repos/swift_build/swift/test/Driver/options-interpreter.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -module-cache-path /tmp/swift-testsuite-clang-module-caches0WIiy -resource-dir /RSRC/ -module-name main # LD_LIBRARY_PATH=/RSRC/linux:/home/x/.gvm/pkgsets/go1.5/global/overlay/lib:/home/x/.gvm/pkgsets/go1.5/global/overlay/lib:/home/x/.gvm/pkgsets/go1.5/global/overlay/lib::/home/x/cuda-5.5/lib64:/home/x/cuda-5.5/lib
^

--

********************
Testing Time: 456.07s
********************
Failing Tests (2):
Swift :: Driver/environment.swift
Swift :: Driver/options-interpreter.swift

Expected Passes : 7228
Expected Failures : 83
Unsupported Tests : 654
Unexpected Failures: 2

      • Failed while running tests for swift (check-swift-all-linux-x86_64)
        swift/utils/build-script: command terminated with a non-zero exit status 1, aborting
        swift/utils/build-script: command terminated with a non-zero exit status 1, aborting
        }}

After performing:

unset LD_LIBRARY_PATH

Re-running the build command succeeds.

@belkadan
Copy link
Contributor

Finally got back to this. #2976

@belkadan
Copy link
Contributor

Merged as 3a6a2da.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself legacy driver Area → compiler: the integrated C++ legacy driver. Succeeded by the swift-driver project
Projects
None yet
Development

No branches or pull requests

2 participants