Giter Club home page Giter Club logo

Comments (8)

swift-ci avatar swift-ci commented on September 2, 2024

Comment by Jhonny Bill Mena (JIRA)

Hi, I have been trying to tackle this, but I have problems building the project.

I followed the instructions in the [getting started guide|https://github.com/apple/swift#getting-started] but:

  1. When running utils/build-script —xcode —release-debuginfo

It fails with:

 ** BUILD FAILED **
 
The following build commands failed: CompileC
../swift-source/build/Xcode-RelWithDebInfoAssert/swift-macosx-x86_64/lib/Sema/Swift.build/RelWithDebInfo/swiftSema.build/Objects-normal/x86_64/TypeCheckAttr.o lib/Sema/TypeCheckAttr.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
utils/build-script: fatal error: command terminated with a non-zero exit status 65, aborting
  2. When trying with Ninja using `utils/build-script —release-debuginfo` 

But this time it throws the following error:

../swift-source/swift/lib/Sema/TypeCheckAttr.cpp:3558:5: error: non-void function 'typeCheckDerivativeAttr' should return a value [-Wreturn-type]
    return;
    ^
1 error generated.
[584/1771][ 32%][395.978s] Building CXX object lib/Sema/CMakeFiles/swiftSema.dir/TypeCheckDecl.cpp.o
ninja: build stopped: subcommand failed.
utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting

Environment:

  • Apple Swift 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15). Target: x86_64-apple-darwin19.2.0

  • macOS Catalina 10.15.2

  • cmake 3.16.1

  • Ninja 1.9.0

  • Python 2.7.16

Thanks in advance!

from swift-driver.

beccadax avatar beccadax commented on September 2, 2024

JhonnyBillM (JIRA User) Thanks for taking a look at this bug!

The TypeCheckAttr.cpp error was fixed in PR #28897. If you run a "git pull" in your "swift" folder, you should get the fix for it as long as you're on master. (Pulling only the "swift" folder will keep you from having to rebuild LLVM and clang; if you used "utils/update-checkout", you'd probably have to start the build from scratch.)

The Xcode build also stopped while trying to build TypeCheckAttr.cpp, so I'm guessing it hit the same issue and the diagnostic was just buried earlier in the log.

If you need any more help you can keep posting here, or you can message me on Swift Forums or Twitter. My username in both places is "brentdax".

from swift-driver.

swift-ci avatar swift-ci commented on September 2, 2024

Comment by Jhonny Bill Mena (JIRA)

Worked! Thank you brentdax (JIRA User) .

By the way, what do you think fits better for this case, adding a new swift-help executable (I do not know how to do it, but I can figure it out), or adding this as an "extra case" in the Swift Driver subcommand handling?

from swift-driver.

swift-ci avatar swift-ci commented on September 2, 2024

Comment by Matei Oprea (JIRA)

brentdax (JIRA User) is this still open? I might have an implementation for it, but after compiling Swift, it didn't output "swift-build" or "swift-run" executables in swift-macosx-x86_64/bin/*. Any recommendations on how to take it from here?

from swift-driver.

beccadax avatar beccadax commented on September 2, 2024

owenvoorhees (JIRA User) I see that you added a swift-help tool to the new driver. Should this bug be closed?

from swift-driver.

swift-ci avatar swift-ci commented on September 2, 2024

Comment by Owen Voorhees (JIRA)

brentdax (JIRA User) Right now swift-driver's `swift-help` has pretty limited functionality and only works for driver options (so for example "swift help package" doesn't work). I think we can probably repurpose this issue to track at least handling subcommands properly, since that's an important use case.

from swift-driver.

valeriyvan avatar valeriyvan commented on September 2, 2024

Comment by Owen Voorhees (JIRA)

brentdax (JIRA User) Right now swift-driver's swift-help has pretty limited functionality and only works for driver options (so for example "swift help package" doesn't work). I think we can probably repurpose this issue to track at least handling subcommands properly, since that's an important use case.

swift help package working as expected now. Probably, this issue might be closed as implemented.

from swift-driver.

AnthonyLatsis avatar AnthonyLatsis commented on September 2, 2024

I think we should let the driver folks decide whether this is resolved.

@artemcm Could you transfer this issue to the swift-driver repo?

from swift-driver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.