Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Medium
-
Resolution: Done
-
Component/s: Foundation
-
Labels:
-
Environment:
Create a scratchdirectory and put the attached buildswift script in it.
chmod +x buildscript to make it executable.then run the following docker command
docker run -it -v [scratchdirectory]:/root/swift-source --name fedora25clean fedora bash
once the image loads and drops into bash
$cd /root/swift-source
$./buildswiftThis will setup the compiler environment, and then run update-checkout to get the source and start the build. You can inspect the script to see what packages are loaded, and what the build-script options are.
Create a scratchdirectory and put the attached buildswift script in it. chmod +x buildscript to make it executable. then run the following docker command docker run -it -v [scratchdirectory] :/root/swift-source --name fedora25clean fedora bash once the image loads and drops into bash $cd /root/swift-source $./buildswift This will setup the compiler environment, and then run update-checkout to get the source and start the build. You can inspect the script to see what packages are loaded, and what the build-script options are.
Description
Started getting this recently
See "Environment" for instructions on how to bring up on Fedora 25 inside docker.
error generated. [97/320] CompileC: CoreFoundation/Base.subproj/CFSortFunctions.c FAILED: ../build/buildbot_linux/foundation-linux-x86_64/Foundation/CoreFoundation/Base.subproj/CFSortFunctions.c.o mkdir -p `dirname ../build/buildbot_linux/foundation-linux-x86_64/Foundation/CoreFoundation/Base.subproj/CFSortFunctions.c.o`; /root/swift-source/build/buildbot_linux/llvm-linux-x86_64/bin/clang -fcolor-diagnostics -fdollars-in-identifiers -fblocks -fobjc-runtime=macosx-10.11 -fintegrated-as -fPIC --target=x86_64-linux-gnu -O2 -Ibootstrap/common/usr/include -Ibootstrap/common/usr/local/include -Ibootstrap/x86_64-linux-gnu/usr/include -Ibootstrap/x86_64-linux-gnu/usr/local/include -I../build/buildbot_linux/foundation-linux-x86_64/Foundation -I../build/buildbot_linux/foundation-linux-x86_64 -I../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr//lib/swift -I../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr//lib/swift/CoreFoundation -I../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr//lib/swift/CoreFoundation -I../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr//lib/swift/CoreFoundation -DDEPLOYMENT_TARGET_LINUX -D_GNU_SOURCE -DCF_CHARACTERSET_DATA_DIR="CoreFoundation/CharacterSets"-DU_SHOW_DRAFT_API -DCF_BUILDING_CF -DDEPLOYMENT_RUNTIME_SWIFT -fconstant-cfstrings -fexceptions -Wno-shorten-64-to-32 -Wno-deprecated-declarations -Wno-unreachable-code -Wno-conditional-uninitialized -Wno-unused-variable -Wno-int-conversion -Wno-unused-function -I/usr/include/libxml2 -I/usr/include/curl -I./ -DDEPLOYMENT_ENABLE_LIBDISPATCH -I/root/swift-source/swift-corelibs-libdispatch -I/root/swift-source/build/buildbot_linux/libdispatch-linux-x86_64/tests -include CoreFoundation/Base.subproj/CoreFoundation_Prefix.h -c CoreFoundation/Base.subproj/CFSortFunctions.c -o ../build/buildbot_linux/foundation-linux-x86_64/Foundation/CoreFoundation/Base.subproj/CFSortFunctions.c.o In file included from <built-in>:1: In file included from ./CoreFoundation/Base.subproj/CoreFoundation_Prefix.h:30: ../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr//lib/swift/CoreFoundation/CFBase.h:72:10: fatal error: 'Block.h' file not found #include <Block.h> ^~~~~~~~~ 1 error generated. [98/320] CompileC: CoreFoundation/PlugIn.subproj/CFBundle_Grok.c FAILED: ../build/buildbot_linux/foundation-linux-x86_64/Foundation/CoreFoundation/PlugIn.subproj/CFBundle_Grok.c.o mkdir -p `dirname ../build/buildbot_linux/foundation-linux-x86_64/Foundation/CoreFoundation/PlugIn.subproj/CFBundle_Grok.c.o`; /root/swift-source/build/buildbot_linux/llvm-linux-x86_64/bin/clang -fcolor-diagnostics -fdollars-in-identifiers -fblocks -fobjc-runtime=macosx-10.11 -fintegrated-as -fPIC --target=x86_64-linux-gnu -O2 -Ibootstrap/common/usr/include -Ibootstrap/common/usr/local/include -Ibootstrap/x86_64-linux-gnu/usr/include -Ibootstrap/x86_64-linux-gnu/usr/local/include -I../build/buildbot_linux/foundation-linux-x86_64/Foundation -I../build/buildbot_linux/foundation-linux-x86_64 -I../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr//lib/swift -I../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr//lib/swift/CoreFoundation -I../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr//lib/swift/CoreFoundation -I../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr//lib/swift/CoreFoundation -DDEPLOYMENT_TARGET_LINUX -D_GNU_SOURCE -DCF_CHARACTERSET_DATA_DIR="CoreFoundation/CharacterSets"-DU_SHOW_DRAFT_API -DCF_BUILDING_CF -DDEPLOYMENT_RUNTIME_SWIFT -fconstant-cfstrings -fexceptions -Wno-shorten-64-to-32 -Wno-deprecated-declarations -Wno-unreachable-code -Wno-conditional-uninitialized -Wno-unused-variable -Wno-int-conversion -Wno-unused-function -I/usr/include/libxml2 -I/usr/include/curl -I./ -DDEPLOYMENT_ENABLE_LIBDISPATCH -I/root/swift-source/swift-corelibs-libdispatch -I/root/swift-source/build/buildbot_linux/libdispatch-linux-x86_64/tests -include CoreFoundation/Base.subproj/CoreFoundation_Prefix.h -c CoreFoundation/PlugIn.subproj/CFBundle_Grok.c -o ../build/buildbot_linux/foundation-linux-x86_64/Foundation/CoreFoundation/PlugIn.subproj/CFBundle_Grok.c.o In file included from <built-in>:1: In file included from ./CoreFoundation/Base.subproj/CoreFoundation_Prefix.h:30: ../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr//lib/swift/CoreFoundation/CFBase.h:72:10: fatal error: 'Block.h' file not found #include <Block.h> ^~~~~~~~~ 1 error generated. ninja: build stopped: subcommand failed. swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting