[swift-dev] Compile Error - Arch Linux

Ryan Lovelett swift-dev at ryan.lovelett.me
Fri Dec 11 12:37:31 CST 2015


I've made a pull request, https://github.com/apple/swift/pull/435, that
attempts to fix this problem. I'm not entirely sure why clang is not
seeing the flags they are clearly in the argument list.

On Sat, Dec 5, 2015, at 05:15 PM, Dmitri Gribenko wrote:
> 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