Skip to content

[Tests] Set LD_LIBRARY_PATH when running tests #118

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

Merged
merged 1 commit into from
May 26, 2016

Conversation

modocache
Copy link
Contributor

swiftlang/swift#2609 introduced a change to the default behavior of the Swift driver, which now uses the gold linker unless specified otherwise. This caused a linker error in swift-corelibs-xctest's test suite, which this commit fixes.

/cc @compnerd -- does this seem like a reasonable fix? To be honest, I'm not sure why such a change would be necessary for gold but not bfd.

swiftlang/swift#2609 introduced a change to
the default behavior of the Swift driver, which now uses the gold
linker unless specified otherwise. This caused a linker error in
swift-corelibs-xctest's test suite, which this commit fixes.
@modocache
Copy link
Contributor Author

@swift-ci please test

@ddunbar
Copy link
Contributor

ddunbar commented May 26, 2016

This doesn't feel right to me, I'm not sure why clients should be expected to change as a result of that PR.

@modocache
Copy link
Contributor Author

I wonder if the real issue has more to do with swift-corelibs-foundation and how it packages libFoundation.so, as opposed to the library search paths our tests use at runtime. I'm still looking into it.

How would you feel about merging this as a short-term fix? I feel bad having broken @rintaro and @RLovelett's builds. 😞

@compnerd
Copy link
Member

This is okay to do. However, I think it would be better to just embed an DT_RUNPATH in the test binaries as they are tests. (--enable-new-dtags --rpath /path/to/libraries).

@modocache
Copy link
Contributor Author

The Foundation failure is preventing the Linux tests from running on CI, so we don't have a ton of visibility into how this affects the Linux build. That being said, I can assure you that this "works for me" 😁

@modocache
Copy link
Contributor Author

Created a task to track uncovering why this change was needed: SR-1625. For now, I'll merge this and unbreak @rintaro and @RLovelett's builds.

@modocache modocache merged commit 4f7b21c into swiftlang:master May 26, 2016
@modocache modocache deleted the fix-pr-2609-gold-by-default branch May 26, 2016 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants