build swift-package-manager-0.1 Linux Swift 2.2


(CK TUNG) #1

Hi
I try to build swift-package-manager-0.1 from source in raspberry pi, build success but with error on run as below

$ swift build
Not implemented relocation type!
UNREACHABLE executed at /mnt/usbms/package-swift/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp:453!
Stack dump:
0. Program arguments: /usr/bin/swift -frontend -interpret /home/pi/Package.swift -target armv7-unknown-linux-gnueabihf -disable-objc-interop -I /usr/lib/swift/pm -module-name Package -lPackageDescription
swift-build: ExitSignal

Thanks


(CK TUNG) #2

Hi
I try to build swift-package-manager-0.1 from source in raspberry pi, build success but with error on run as below

$ swift build
Not implemented relocation type!
UNREACHABLE executed at /mnt/usbms/package-swift/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp:453!
Stack dump:
0. Program arguments: /usr/bin/swift -frontend -interpret /home/pi/Package.swift -target armv7-unknown-linux-gnueabihf -disable-objc-interop -I /usr/lib/swift/pm -module-name Package -lPackageDescription
swift-build: ExitSignal

Thanks


(Daniel Dunbar) #3

+Lang

`swift build` currently uses the Swift interpreter to get the Package metadata from the Package.swift. That in turn uses the LLVM JIT. It may be that some of what Swift is using is not implemented in the JIT for this platform.

This is worth filing a bug on http://bugs.swift.org, if you haven't already.

- Daniel

···

On Apr 5, 2016, at 7:29 PM, CK TUNG via swift-users <swift-users@swift.org> wrote:

Hi
I try to build swift-package-manager-0.1 from source in raspberry pi, build success but with error on run as below

$ swift build
Not implemented relocation type!
UNREACHABLE executed at /mnt/usbms/package-swift/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp:453!
Stack dump:
0. Program arguments: /usr/bin/swift -frontend -interpret /home/pi/Package.swift -target armv7-unknown-linux-gnueabihf -disable-objc-interop -I /usr/lib/swift/pm -module-name Package -lPackageDescription
swift-build: ExitSignal

Thanks
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


(Lang Hames) #4

Hi Daniel,

Yep - that’s exactly it. It sounds like the JIT linker is missing an ELF/ARM relocation, but it’s not possible to tell which one from this error message.

CK - If you file a bug, can you include a reduced test case?

- Lang.

···

On Apr 6, 2016, at 11:37 PM, Daniel Dunbar <daniel_dunbar@apple.com> wrote:

+Lang

`swift build` currently uses the Swift interpreter to get the Package metadata from the Package.swift. That in turn uses the LLVM JIT. It may be that some of what Swift is using is not implemented in the JIT for this platform.

This is worth filing a bug on http://bugs.swift.org <http://bugs.swift.org/>, if you haven't already.

- Daniel

On Apr 5, 2016, at 7:29 PM, CK TUNG via swift-users <swift-users@swift.org <mailto:swift-users@swift.org>> wrote:

Hi
I try to build swift-package-manager-0.1 from source in raspberry pi, build success but with error on run as below

$ swift build
Not implemented relocation type!
UNREACHABLE executed at /mnt/usbms/package-swift/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp:453!
Stack dump:
0. Program arguments: /usr/bin/swift -frontend -interpret /home/pi/Package.swift -target armv7-unknown-linux-gnueabihf -disable-objc-interop -I /usr/lib/swift/pm -module-name Package -lPackageDescription
swift-build: ExitSignal

Thanks
_______________________________________________
swift-users mailing list
swift-users@swift.org <mailto:swift-users@swift.org>
https://lists.swift.org/mailman/listinfo/swift-users