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

2016-04-03 Thread Iliya Trub via swift-dev
That is true, it is not sufficient. Even if to add sysroot-prefix to all .h-files within modulemap, they are found correctly, but their's inner includes are given wrongly, without sysroot prefix. Could anybody hint, what source code is responsible for internal parsing of .h-files, starting from

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

2016-03-31 Thread Iliya Trub via swift-dev
I think, I know how to add sysroot to place in code, which I have shown. But, may be, it is not sufficient. It is also need to provide adding of prefix when traversing other "angled" include-directives from modulemap-file in deep. I do not know how to do that, but I am looking for. 01.04.2016,

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

2016-03-31 Thread William Dillon via swift-dev
I believe the bug still exists. I tried to build armv7 on native hardware yesterday and hit this bug. I haven't had time to look into it at all though. - Will > On Mar 31, 2016, at 1:11 PM, Iliya Trub via swift-dev > wrote: > > Dear colleagues > What about my last message from this thread?

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

2016-03-31 Thread Iliya Trub via swift-dev
Dear colleagues What about my last message from this thread? Does bug exist or not? Really, I get glibs.modulemap after overall compiler building under arm-emulator, then use cross-compiling under x86_64 Ubuntu, and swift takes headers, listed within glibc.modulemap (starting from /usr/include),

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

2016-03-25 Thread Труб Илья via swift-dev
It seems to me, the last phenomena is explained by swift compiler bug. Let us look into clang/lib/Lex/ModuleMap.cpp source file, method parseHeaderDecl. We can find, for example, following lines: if (llvm::sys::path::is_absolute(Header.FileName)) { RelativePathName = Header.FileName; File

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

2016-03-25 Thread Труб Илья via swift-dev
Yes, Dmitry. I found corresponding module.map for arm and placed it into glibs subdirectory of my swiftc's include path. It was found. But, it seems to me, sysroot argument is not applied to paths, written in that module.map or I do not how to correct do that. I add to swift command-line followi

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

2016-03-24 Thread Dmitri Gribenko via swift-dev
Then you should have a module map for Glibc in the build products. Dmitri On Thu, Mar 24, 2016 at 2:32 PM, Труб Илья wrote: > I have built all targets for arm (including modules and libraries) within the > native arm environment on arm-emulator with chroot. > > 25.03.2016, 00:25, "Dmitri Griben

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

2016-03-24 Thread Труб Илья via swift-dev
I have built all targets for arm (including modules and libraries) within the native arm environment on arm-emulator with chroot. 25.03.2016, 00:25, "Dmitri Gribenko" : > On Thu, Mar 24, 2016 at 2:03 PM, Труб Илья wrote: >>  Thanks for your answer, Dmitry. I will look for examples of module maps

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

2016-03-24 Thread Dmitri Gribenko via swift-dev
On Thu, Mar 24, 2016 at 2:03 PM, Труб Илья wrote: > > Thanks for your answer, Dmitry. I will look for examples of module maps in > test sources. You shouldn't need to. If you have built Swift for arm, you should have the right one produced by the build system. How did you compile the standard

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

2016-03-24 Thread Труб Илья via swift-dev
Thanks for your answer, Dmitry. I will look for examples of module maps in test sources. 24.03.2016, 23:56, "Dmitri Gribenko" : > On Thu, Mar 24, 2016 at 1:30 PM, Труб Илья wrote: >>  Dear colleagues >>  I have faced with strange behaviour, when I compile some swift source on >> Ubuntu 14, targ

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

2016-03-24 Thread Dmitri Gribenko via swift-dev
On Thu, Mar 24, 2016 at 1:30 PM, Труб Илья 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. > > :61:10: note: in file

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

2016-03-24 Thread Труб Илья via swift-dev
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. :61:10: note: in file included from :61: #include "/usr/include/x86_64-linux-gnu/sys