[swift-dev] Issues when building swift using GNU 2.26 related to protected symbols

Joe Groff jgroff at apple.com
Mon Feb 22 12:29:47 CST 2016


> On Feb 22, 2016, at 10:25 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> 
> On Mon, Feb 22, 2016 at 10:23 AM, Joe Groff <jgroff at apple.com <mailto:jgroff at apple.com>> wrote:
>> 
>>> On Feb 22, 2016, at 10:21 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
>>> 
>>> On Mon, Feb 22, 2016 at 9:30 AM, Joe Groff <jgroff at apple.com> wrote:
>>>> Let's make sure it isn't our bug first. Is
>>>> _Tvs19_emptyStringStorageVs6UInt32 defined in any of the .o or .a files that
>>>> get linked into the core?
>>> 
>>> Yes, it is there:
>>> 
>>> $ nm stdlib/public/core/linux/x86_64/Swift.o | grep
>>> _Tvs19_emptyStringStorageVs6UInt32
>>> 0000000000000020 B _Tvs19_emptyStringStorageVs6UInt32
>> 
>> Does it only fail with GNU ld on 16.04? Does it work on older Ubuntus, or with gold?
> 
> It works with GNU ld 2.24 (on Ubuntu 14.04), and with gold on current Debian.

Does linking with -Bsymbolic work around the bug? `protected` is supposed to make that unnecessary, but maybe they regressed.

-Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20160222/20796e9c/attachment.html>


More information about the swift-dev mailing list