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-4881] build-script -R produces: <unknown>:0: error: fatal error encountered during compilation; #47458

Open
swift-ci opened this issue May 13, 2017 · 5 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. build-script Area → utils: The build script compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-4881
Radar None
Original Reporter _BrandonBradley (JIRA User)
Type Bug
Environment

FreeBSD 11 1GB Real Memory 10GB Swap Memory Compiling Swift 3

Additional Detail from JIRA
Votes 1
Component/s Compiler
Labels Bug, BuildScript, CompilerCrash, FreeBSD
Assignee None
Priority Medium

md5: 8ce7d7106c57564c50e8076c0eda0a05

Issue Description:

I'm compiling Swift 3 on FreeBSD 11. Running:

utils/build-script -R

Get's me to this point:

build/Ninja-ReleaseAssert/swift-freebsd-x86_64/stdlib/public/core/freebsd/x86_64/Swift.o

At which point I get the following error:

<unknown>:0: error: fatal error encountered during compilation; please file a bug report with your project and the crash log
<unknown>:0: note: Broken function found, compilation aborted!
<unknown>:0: error: unable to execute command: Abort trap
<unknown>:0: error: compile command failed due to signal 6 (use -v to see invocation)
ninja: build stopped: subcommand failed.
utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting

The full message is as follows:

swift/stdlib/public/core/SetAlgebra.swift:59:18: warning: redeclaration of associated type 'Element' from protocol 'ExpressibleByArrayLiteral' is better expressed as a 'where' clause on the protocol
associatedtype Element
~~~~~~~~~~~~~~^~~~~~

/usr/home/freebsd/building/swift/stdlib/public/core/CompilerProtocols.swift:583:18: note: 'Element' declared here
associatedtype Element
^
swifterror value when used in a callsite should be marked with swifterror attribute
%6 = alloca swifterror %swift.error*, align 8
%24 = call %Ts27_ContiguousArrayStorageBaseC* @T0s10CollectionPsE3mapSayqdGqd_8_ElementQzKcKlFTfq4gn_n(i8* bitcast (void (%swift.opaque*, %swift.opaque*, %swift.refcounted*)* @_T0s15_arrayForceCastSayq_GSayxGr0_lFq_xcfU_TA to i8*), %swift.refcounted* %15, %swift.type* %21, %swift.type* %3, i8** %22, %swift.opaque* noalias nocapture %23, %swift.error** nocapture %6)
<unknown>:0: error: fatal error encountered during compilation; please file a bug report with your project and the crash log
<unknown>:0: note: Broken function found, compilation aborted!
<unknown>:0: error: unable to execute command: Abort trap
<unknown>:0: error: compile command failed due to signal 6 (use -v to see invocation)
ninja: build stopped: subcommand failed.
utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting

@belkadan
Copy link
Contributor

When you say "compiling Swift 3", which branch do you have checked out?

(FreeBSD is not an officially supported platform of the Swift project, but the error might affect other people as well.)

@swift-ci
Copy link
Collaborator Author

Comment by Brandon Bradley (JIRA)

@belkadan I checked out the master branch.

@belkadan
Copy link
Contributor

Ah, okay, that's closer to Swift 4 at this point.

@swift-ci
Copy link
Collaborator Author

Comment by Brandon Bradley (JIRA)

After checking out the swift-3.1 branch, I no longer have this issue, although another one does arise: https://bugs.swift.org/browse/SR-5026 .

@swift-ci
Copy link
Collaborator Author

Comment by Brandon Bradley (JIRA)

Actually, after going further through the compilation process (and resolving the bug in my previous comment) this exact same error occurs while compiling

stdlib/public/core/freebsd/x86_64/Swift.o

with the Swift-3.1-branch.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 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 compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software
Projects
None yet
Development

No branches or pull requests

3 participants