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-9993] Crash when attempting to build Swift toolchain #52397

Open
swift-ci opened this issue Feb 24, 2019 · 3 comments
Open

[SR-9993] Crash when attempting to build Swift toolchain #52397

swift-ci opened this issue Feb 24, 2019 · 3 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. build-script Area → utils: The build script Linux Platform: Linux

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-9993
Radar None
Original Reporter aemino (JIRA User)
Type Bug

Attachment: Download

Environment

Arch Linux (4.20.10-arch1-1-ARCH)

Additional Detail from JIRA
Votes 0
Component/s
Labels Bug, BuildScript, Linux
Assignee None
Priority Medium

md5: 7c759a7c99e95931845587296dfee098

Issue Description:

I have been successfully using a development snapshot of the Swift toolchain built on Arch Linux since December 2018 (about 2 months ago). I recently attempted to build a newer toolchain, (snapshot-2019-02-14), but I am no longer able to do so seemingly due to a crash when building IndexStoreDB.

I am building the toolchain using the build script and a very slightly modified version of the buildbot_linux preset that patches the Python version to 2.

@belkadan
Copy link
Contributor

"fatal error: error in backend: invalid llvm.linker.options" I wonder what the invalid options are. Can you run that failing command with "-S -emit-llvm -o out.ll" appended to the end? That'll generate the LLVM IR for the problem file and we can see what's going on.

(It's likely this is a Clang bug and will need to be reported at https://llvm.org/bugs, but let's figure it out.)

@swift-ci
Copy link
Collaborator Author

Comment by aemino (JIRA)

I've attached the `out.ll` file to this issue as you requested.

As an aside, it might be worth noting that when trying to build SourceKit-LSP in the past (which depends on IndexStoreDB), I had to prepend "env CCC_OVERRIDE_OPTIONS="#x-fmodules s/-fmodules-cache-path.*//"" to the `swift build` invocation in order for it to compile successfully. Not sure if there's any relation between these, just wanted to point it out in case.

@swift-ci
Copy link
Collaborator Author

Comment by aemino (JIRA)

Hey @belkadan, would you mind taking a look at this issue again?

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
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. build-script Area → utils: The build script Linux Platform: Linux
Projects
None yet
Development

No branches or pull requests

2 participants