Comments (8)
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:
- 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.
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.
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.
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.
owenvoorhees (JIRA User) I see that you added a swift-help tool to the new driver. Should this bug be closed?
from swift-driver.
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.
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.
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)
- Driver diagnostics (such as remarks and errors) don't obey `-parseable-output` HOT 7
- Group CLI options for easier navigation HOT 1
- Cargo Termizi
- Crash due to an assertion in libswiftCore
- Xcode 14.3 RC 2 (14E222b) not pass '-strict-implicit-module-context' flag to swift-frontend
- `Process.findExecutable(arguments[0])` gives an unexpected result HOT 5
- Windows builds broken when querying target-info from libSwiftScan HOT 2
- Swift Potentially Uses the Wrong Swift Driver HOT 15
- "swift build" command duplicates error messages HOT 8
- iOS get error Dependency for P1: Debug:SwiftDriver Compilation Requirements app normal arm64 com.apple.xcode.tools.swift.compiler is not absolute
- swift help build doesn't work when it's documented to
- Test suite broken on Windows due to CAS HOT 1
- SPM doesn't enumerate source files properly in different configurations HOT 6
- tests crash on windows HOT 1
- `swift run` usage suggestion should be fixed HOT 1
- Program is several times slower when compiled with swiftc than when compiled with XCode due to retain&release calls HOT 1
- “swift ./-” does the same as “swift -” HOT 5
- This driver no longer looks in a passed-in `-sdk` for the Swift modules and libraries HOT 2
- Using -g for non-macho targets can cause driver planning errors
- Leaking temporary directory and file /tmp/TemporaryDirectory.*/dummyInput-*.swift
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift-driver.