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

Initial Swift 4 #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Initial Swift 4 #9

wants to merge 1 commit into from

Conversation

gildub
Copy link

@gildub gildub commented Aug 4, 2017

Besides the swift 4 adaptations this uses a patch to replace the need to install a patched version of swift.

@acheron2013
Copy link

This project failed to build on Fedora 25. This error is generated during building:

[754/876] Linking CXX shared library lib/libsourcekitdInProc.so
FAILED: lib/libsourcekitdInProc.so
: && /usr/lib64/ccache/clang++ -fPIC -Wno-unknown-warning-option -Werror=unguarded-availability-new -fno-stack-protector -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -Werror=date-time -std=c++11 -fcolor-diagnostics -ffunction-sections -fdata-sections -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -O2 -target x86_64-unknown-linux-gnu -lpthread -latomic -ldl -fuse-ld=gold -lBlocksRuntime -shared -Wl,-soname,libsourcekitdInProc.so -o lib/libsourcekitdInProc.so tools/SourceKit/tools/sourcekitd/bin/InProc/CMakeFiles/sourcekitdInProc.dir/sourcekitdInProc.cpp.o -L/root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/./lib -Wl,-rpath,"$ORIGIN/../lib/swift/linux:/usr/lib/swift/linux" lib/libSourceKitSwiftLang.a lib/libsourcekitdAPI.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMCoverage.a -lBlocksRuntime lib/libSourceKitSwiftLang.a lib/libSourceKitCore.a lib/libswiftDriver.a lib/libswiftFrontend.a lib/libswiftIDE.a lib/libswiftMigrator.a lib/libswiftFrontend.a lib/libswiftIDE.a lib/libswiftMigrator.a lib/libswiftIndex.a lib/libswiftIRGen.a lib/libswiftSILGen.a lib/libswiftSILOptimizer.a lib/libswiftLLVMPasses.a lib/libswiftClangImporter.a lib/libswiftParse.a lib/libswiftSIL.a lib/libswiftSema.a lib/libswiftSerialization.a lib/libswiftClangImporter.a lib/libswiftParse.a lib/libswiftSIL.a lib/libswiftSema.a lib/libswiftSerialization.a lib/libswiftSyntax.a lib/libswiftAST.a lib/libswiftMarkup.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangFrontendTool.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangCodeGen.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMCoverage.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMCoroutines.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangARCMigrate.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangStaticAnalyzerFrontend.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangStaticAnalyzerCheckers.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangASTMatchers.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangStaticAnalyzerCore.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangRewriteFrontend.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangIndex.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangFrontend.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangIndex.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangFrontend.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangFormat.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangToolingCore.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangDriver.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangSerialization.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangParse.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangSema.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangAnalysis.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangEdit.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangRewrite.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangAST.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangLex.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangAPINotes.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libclangBasic.a lib/libswiftOption.a /root/rpmbuild/BUILD/build/buildbot_linux/cmark-linux-x86_64/src/libcmark.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/./lib/libclangIndex.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/./lib/libclangFormat.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/./lib/libclangToolingCore.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/./lib/libclangFrontendTool.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/./lib/libclangFrontend.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/./lib/libclangDriver.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/./lib/libclangCodeGen.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/./lib/libclangSerialization.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/./lib/libclangParse.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/./lib/libclangSema.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/./lib/libclangAnalysis.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/./lib/libclangEdit.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/./lib/libclangRewriteFrontend.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/./lib/libclangLex.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/./lib/libclangAST.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/./lib/libclangAPINotes.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMX86CodeGen.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMX86AsmParser.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMX86Desc.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMX86AsmPrinter.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMX86Utils.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMX86Disassembler.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMX86Info.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMARMCodeGen.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMARMAsmParser.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMARMDisassembler.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMARMDesc.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMARMAsmPrinter.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMARMInfo.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMAArch64CodeGen.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMGlobalISel.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMAArch64AsmParser.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMAArch64Disassembler.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMAArch64Desc.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMAArch64AsmPrinter.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMAArch64Info.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMAArch64Utils.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMPowerPCCodeGen.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMPowerPCAsmParser.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMPowerPCDesc.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMPowerPCAsmPrinter.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMPowerPCDisassembler.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMPowerPCInfo.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSystemZCodeGen.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMAsmPrinter.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMDebugInfoCodeView.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMDebugInfoMSF.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSelectionDAG.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSystemZAsmParser.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSystemZDisassembler.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSystemZDesc.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSystemZAsmPrinter.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSystemZInfo.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMCDisassembler.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMDebugInfoDWARF.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMLTO.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMPasses.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMipo.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMInstrumentation.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMIRReader.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMAsmParser.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMLinker.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMCodeGen.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMBitWriter.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMTarget.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMScalarOpts.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMInstCombine.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMVectorize.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMOption.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMObjCARCOpts.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMTransformUtils.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMAnalysis.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMObject.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMBitReader.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMCParser.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMMC.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMProfileData.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMCore.a lib/libSourceKitSupport.a -lBlocksRuntime lib/libswiftBasic.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMSupport.a -lrt -ldl -ltinfo -lpthread -lz -lm /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/lib/libLLVMDemangle.a lib/libswiftDemangling.a /usr/lib64/libuuid.so /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/./lib/libclangRewrite.a /root/rpmbuild/BUILD/build/buildbot_linux/llvm-linux-x86_64/./lib/libclangBasic.a /root/rpmbuild/BUILD/build/buildbot_linux/libdispatch-linux-x86_64/src/.libs/libdispatch.so && :
/usr/bin/ld.gold: error: cannot find -lBlocksRuntime
/usr/bin/ld.gold: error: cannot find -lBlocksRuntime
/usr/bin/ld.gold: error: cannot find -lBlocksRuntime
clang-3.9: error: linker command failed with exit code 1 (use -v to see invocation)

I don't really understand exactly what the script is up to but it appears it may have deleted the object without actually copying it out of where it was built?

@gildub
Copy link
Author

gildub commented Sep 5, 2017

@acheron2013, not sure what's happening either. I'm now facing same issue.

@Digi59404
Copy link

You may need to install libblocksruntime-dev before doing the build. It appears the linker is failing because it cannot find this library.

@tachoknight
Copy link
Collaborator

tachoknight commented Oct 24, 2017 via email

@tachoknight
Copy link
Collaborator

Check out 43a07e5 or you can try getting the version from me (https://github.com/tachoknight/swift-rpm) until she merges; this version successfully builds the Swift 4 RPM on Fedora 26.

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.

4 participants