[swift-dev] Compile Error - Arch Linux

Dmitri Gribenko gribozavr at gmail.com
Sat Dec 5 16:15:04 CST 2015


On Sat, Dec 5, 2015 at 6:28 AM, Ryan Lovelett
<swift-dev at ryan.lovelett.me> wrote:
> Dmitri,
>
> Thanks for the extra set of eyes. I have confirmed that moving
> '-lpthread -ldl' to either the beginning or end will allow that step to
> succeed. The part that I'm stuck on is where that linker argument comes
> from in the first place and how to reorder them. Do you happen to have
> any insight on that?

Ryan,

Highly likely it is this line that adds them:

cmake/modules/AddSwift.cmake:    list(APPEND result "-lpthread" "-ldl")

> For the 'final' package build script I plan to make my own preset for
> arch linux that is based on 'mixin_linux_installation'. This is what
> 'buildbot_linux_1404' and 'buildbot_linux_1510' are based on. I just
> want be able to consistently build before I start tweaking parameters.

Sounds good.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/


More information about the swift-dev mailing list