[swift-build-dev] Building Swift Package Manager on ARM
Joseph Bell
joe at iachieved.it
Mon Dec 28 09:00:41 CST 2015
Howdy,
I'm looking to getting the Swift Package Manager building on ARM systems
such as the BeagleBoard, and its now in the bootstrap stage, and bombs out
which what appears to be a linking error. I know that
_TMaC18PackageDescription7Package
is defined in libPackageDescription.so but its not being picked up when
Package.swift is compiled.
That issue aside, what is the meaning of the "driver-mode" option to
swiftc, and why would one invoke swiftc with --driver-mode=swift?
swiftpm: using standard linker
+ /mnt/usbms/package-swift/swiftpm/Utilities/bootstrap
--swiftc=/mnt/usbms/package-swift/build/buildbot_linux/swift-linux-armv7/bin/swiftc
--sbt=/mnt/usbms/package-swift/build/buildbot_linux/llbuild-linux-armv7/bin/swift-build-tool
--build=/mnt/usbms/package-swift/build/buildbot_linux/swiftpm-linux-armv7
--xctest=/mnt/usbms/package-swift/build/buildbot_linux/xctest-linux-armv7
bootstrap: note: building stage1:
/mnt/usbms/package-swift/build/buildbot_linux/llbuild-linux-armv7/bin/swift-build-tool
-f
/mnt/usbms/package-swift/build/buildbot_linux/swiftpm-linux-armv7/.bootstrap/build.swift-build
bootstrap: note: building self-hosted 'swift-build': env
SWIFTC=/mnt/usbms/package-swift/build/buildbot_linux/swift-linux-armv7/bin/swiftc
SWIFT_BUILD_TOOL=/mnt/usbms/package-swift/build/buildbot_linux/llbuild-linux-armv7/bin/swift-build-tool
SWIFT_BUILD_PATH=/mnt/usbms/package-swift/build/buildbot_linux/swiftpm-linux-armv7
SWIFTPM_EMBED_RPATH=$ORIGIN/../lib/swift/linux
/mnt/usbms/package-swift/build/buildbot_linux/swiftpm-linux-armv7/.bootstrap/bin/swift-build
bootstrap: note: cwd will be set to /mnt/usbms/package-swift/swiftpm
LLVM ERROR: Program used external function
'_TMaC18PackageDescription7Package' which could not be resolved!
error: ExitStatus(1,
["/mnt/usbms/package-swift/build/buildbot_linux/swift-linux-armv7/bin/swiftc",
"--driver-mode=swift", "-I",
"/mnt/usbms/package-swift/build/buildbot_linux/swiftpm-linux-armv7/.bootstrap/lib/swift/pm",
"-L",
"/mnt/usbms/package-swift/build/buildbot_linux/swiftpm-linux-armv7/.bootstrap/lib/swift/pm",
"-lPackageDescription", "/mnt/usbms/package-swift/swiftpm/Package.swift"])
bootstrap: error: build failed with exit status 1
./swift/utils/build-script: command terminated with a non-zero exit status
1, aborting
./swift/utils/build-script: command terminated with a non-zero exit status
1, aborting
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-build-dev/attachments/20151228/dd19f7f7/attachment.html>
More information about the swift-build-dev
mailing list