[swift-dev] [SR-40] Port Swift to Arm progress / question

Nick Wellnhofer wellnhofer at aevum.de
Tue Dec 15 04:39:07 CST 2015


On 10/12/2015 00:05, William Dillon via swift-dev wrote:
> At this point, the compiler and standard library are all built, and I think I have one final issue.  In the testing suite, the binaries generated by the swift compiler don’t run.  They’re emitting unexpected reloc type errors.  It appears that reolc type 0x03 is R_ARM_REL32 which is not permitted for use with shared libraries:
>
> CollectionOfOne.swift.tmp/a.out: error while loading shared libraries: /home/wdillon/build/Ninja-ReleaseAssert/swift-linux-armv7/lib/swift/linux/libswiftCore.so: unexpected reloc type 0x03

Can you make sure you're compiling with the -fPIC flag? This is normally set 
by CMake depending on the platform, but it's possible that CMake doesn't know 
about Linux-ARM yet.

Nick



More information about the swift-dev mailing list