Real newbie here, since I haven't even successfully built Swift. After executing the build script for about 9 hours, it fails because it can't find stdalign.h I am trying to build swift on the following. Any help would be greatly appreciated.
Built using: > ./swift/utils/build-script -- \ preset=buildbot_swiftpm_linux_platform,tools=RA,stdlib=RA
.....Building for production...
In file included from /home/mtennes/swift-source/swift-crypto/Sources/CCryptoBoringSSL/crypto/fipsmodule/bn/exponentiation.c:119:
In file included from /home/mtennes/swift-source/swift-crypto/Sources/CCryptoBoringSSL/crypto/fipsmodule/bn/internal.h:135:
/home/mtennes/swift-source/swift-crypto/Sources/CCryptoBoringSSL/crypto/fipsmodule/bn/../../internal.h:128:10: fatal error: 'stdalign.h' file not found #include <stdalign.h>
^~~~~~~~~~~~
1 error generated.
“Building Swift
Before you begin building Swift, you will need to understand that this will take hours to build depending on your system or virtual machine setup. If you are using a virtual machine, like VirtualBox, I would strongly recommend that you allocate multiple cores to your virtual machine; it will dramatically shorten the build time. The following command will build Swift, its toolchain, and the package manager:
./swift/utils/build-script --preset=buildbot_swiftpm_linux_platform,tools=RA,stdlib=RA
Once this has built everything, we need to install it somewhere and put the binaries in our path.”
Excerpt From
Mastering Swift 5.3
Jon Hoffman