[swift-dev] Error with SwiftGlibs building for arm-linux

Труб Илья itrub at yandex.ru
Thu Mar 24 16:03:03 CDT 2016


Thanks for your answer, Dmitry. I will look for examples of module maps in test sources.
24.03.2016, 23:56, "Dmitri Gribenko" <gribozavr at gmail.com>:
> On Thu, Mar 24, 2016 at 1:30 PM, Труб Илья <swift-dev at swift.org> wrote:
>>  Dear colleagues
>>  I have faced with strange behaviour, when I compile some swift source on Ubuntu 14, target=arm-linux-gnueabi, all neccessary modules for arm present, -sysroot and
>>  -isysroot are passed via -Xcc.
>>
>>  <module-includes>:61:10: note: in file included from <module-includes>:61:
>>  #include "/usr/include/x86_64-linux-gnu/sys/wait.h"
>>           ^
>>  /usr/include/x86_64-linux-gnu/sys/wait.h:148:20: error: unknown type name 'idtype_t'
>>  extern int waitid (idtype_t __idtype, __id_t __id, siginfo_t *__infop,
>>                     ^
>>  <unknown>:0: error: could not build Objective-C module 'SwiftGlibc'
>
> You need a different variant of the module map for Glibc that
> references the arm triple.
>
> 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