[swift-dev] Linux: Build process not finding my ICU

2016-09-13 Thread Eric Wing via swift-dev
I'm trying to build Swift 3 on a Linux system that doesn't come with a usable libICU. I've built ICU myself and placed it in a non-root directory (along with a lot of other dependencies not available on my system that Swift needs). I've had to reimplement my patch because it looks like a rebase wa

[swift-dev] Android: Build error: No such module "SwiftGlibc"

2016-09-14 Thread Eric Wing via swift-dev
I'm trying to build Swift 3 for Android. I'm getting an error at compiling android/armv7/Glibc.o Glibc.swift:13 error: no such module 'SwiftGlibc' @_exported import SwiftGlibc // Clang module Any ideas what to do? Thanks, Eric ___ swift-dev mailing list

Re: [swift-dev] Android: Build error: No such module "SwiftGlibc"

2016-09-14 Thread Eric Wing via swift-dev
On 9/14/16, william wrote: > I'm so glad someone else is hitting this problem! > > I've been seeing this relatively often. I have a set of superstitions that > allow me to get past it, and once I do, I try very hard not to delete > anything in my build directory. > > - Will > Can you suggest som

[swift-dev] NSXMLNode.swift: error: integer literal overflows when stored into Int

2016-09-16 Thread Eric Wing via swift-dev
I'm trying to build Swift 3 for Raspberry Pi 2/armv7. I'm currently hitting a compile error at: Foundation/NSXMLNode.swift:86:351: error: integer literal '4293918720' overflows when stored into 'Int'. public static let nodePreserveAll = Options(rawValue: Options([.nodePreserveNamespaceOrder, .no

[swift-dev] 'SwiftShims': no such file or directory

2016-09-19 Thread Eric Wing via swift-dev
I've been trying to build Swift for Linux with --installable-package to build a swift-package.tar.gz that I can install to another Linux machine. When I extract my package on the other machine, and try either compiling a simple print("hello world") program either with swiftc, or doing this in the

Re: [swift-dev] Android: Build error: No such module "SwiftGlibc"

2016-09-19 Thread Eric Wing via swift-dev
So I did some superstition as William suggested and started removing and changing a bunch of build flags. At some point, the message went away, and when I put the flags back, the message didn't come back. My original attempt should have been a completely clean checkout and rebuild from scratch. (T

[swift-dev] More Swift 3 Raspberry Pi 2 build problems

2016-09-19 Thread Eric Wing via swift-dev
I temporarily hacked around the NSXMLNode.swift integer literal overflow error I mentioned in the other thread to continue the build. I hit a few more problems afterwards. First, there was some kind of segmentation fault. It looks like swift crashed trying to build libXCTest.so. =

Re: [swift-dev] 'SwiftShims': no such file or directory

2016-09-19 Thread Eric Wing via swift-dev
On 9/19/16, Daniel Dunbar wrote: > Are you building within a shared folder? We have heard reports of this > happening in such an environment, but we don't have a handle on the exact > steps to reproduce. Getting that information would be very useful. > Unfortunately no. I didn't use shared folder

Re: [swift-dev] More Swift 3 Raspberry Pi 2 build problems

2016-09-20 Thread Eric Wing via swift-dev
And here is one more problem I found. I get a compiler assertion failure on some code that used to work for me in Swift 2.3 on Pi, and also compiles fine under Xcode 8/Swift 3. I filed a formal radar for this one. https://bugs.swift.org/browse/SR-2706 swift: /home/pi/Source/SWIFT/swift/lib/IRGen/

Re: [swift-dev] More Swift 3 Raspberry Pi 2 build problems

2016-09-20 Thread Eric Wing via swift-dev
On 9/20/16, william wrote: > Hi Eric, > > Can you check whether what you're building on has this commit? > https://github.com/apple/swift-package-manager/commit/0268214b5477ca338b502c90aaa3e9ba50b68e18 >

Re: [swift-dev] More Swift 3 Raspberry Pi 2 build problems

2016-09-20 Thread Eric Wing via swift-dev
On 9/20/16, William Dillon wrote: > >> On Sep 20, 2016, at 1:01 PM, Eric Wing wrote: >> >> On 9/20/16, william wrote: >>> Hi Eric, >>> >>> Can you check whether what you're building on has this commit? >>> https://github.com/apple/swift-package-manager/commit/0268214b5477ca338b502c90aaa3e9ba50b6

Re: [swift-dev] 'SwiftShims': no such file or directory

2016-09-20 Thread Eric Wing via swift-dev
On 9/19/16, Dave Abrahams via swift-dev wrote: > > on Mon Sep 19 2016, Eric Wing wrote: > >> I've been trying to build Swift for Linux with --installable-package >> to build a swift-package.tar.gz that I can install to another Linux >> machine. >> >> When I extract my package on the other machine

Re: [swift-dev] More Swift 3 Raspberry Pi 2 build problems

2016-09-21 Thread Eric Wing via swift-dev
Since you spotted a problem using QEMU, I did a rebuild on a real Pi 2. I think the segfaults during the build went away. However, I still get the install error about CMake Error at scripts/cmake_install.cmake:36 (file): file INSTALL cannot find "/home/pi/Source/SWIFT/build/Ninja-Release/lldb-

Re: [swift-dev] More Swift 3 Raspberry Pi 2 build problems

2016-09-21 Thread Eric Wing via swift-dev
On 9/21/16, William Dillon wrote: > Hi Eric, > > I'm glad you're making progress. > > I've seen the swift-autolink-extract issue before. For some reason that > symlink to swift isn't being made for you. You can try making a new symlink > to `swift` and see if that gets you forward. > Thank you

Re: [swift-dev] More Swift 3 Raspberry Pi 2 build problems

2016-09-22 Thread Eric Wing via swift-dev
Well, I finished the full rebuild, but I seemed to have come across a lot of the same problems again. (1) First, building everything via the package.sh, I hit some error I think connected to xctest or maybe swiftpm: + /home/pi/Source/SWIFTARM/package-swift/swiftpm/Utilities/bootstrap --

[swift-dev] Android: wrong ld (linker) keeps being invoked

2016-09-24 Thread Eric Wing via swift-dev
I'm being hit by the problem where the wrong linker is being invoked when trying to build a program with swiftc for Android. The problem seems to already be known and reported here, but the solutions/workarounds don't fully work for me: https://bugs.swift.org/browse/SR-1264 The only way I can mak

Re: [swift-dev] Android: wrong ld (linker) keeps being invoked

2016-10-28 Thread Eric Wing via swift-dev
use-ld accepts full paths to > linkers. So it may work if you have a sufficiently recent version -- > although I haven't tried myself. > > - Brian Gesiak > > > > On Sat, Sep 24, 2016 at 8:26 PM, Eric Wing via swift-dev < > [email protected]> wrote: > >

[swift-dev] Glibc.swift: error: no such module 'SwiftGlibc'

2016-11-07 Thread Eric Wing via swift-dev
I am trying to build Swift for Android and I'm getting the error: Glibc.swift:13:19: error: no such module 'SwiftGlibc' I found several other posts asking about this problem for Linux, but no solid resolution. https://lists.swift.org/pipermail/swift-dev/Week-of-Mon-20160418/001741.html https://w

Re: [swift-dev] Glibc.swift: error: no such module 'SwiftGlibc'

2016-11-08 Thread Eric Wing via swift-dev
I'm comparing the build log differences between the successful build on Ubuntu 16.10 and the failed build in Steam-Runtime. It looks like while building Swift (past llvm & clang), at step [651/720], the build logs diverge. In the successful case on Ubuntu, the command is building glibc.modulemap.

Re: [swift-dev] Glibc.swift: error: no such module 'SwiftGlibc'

2016-11-09 Thread Eric Wing via swift-dev
On 11/9/16, Jordan Rose wrote: > Ah, that does help. The logic to build the Glibc module map comes from > stdlib/public/Platform/CMakeLists.txt, and explicitly checks for “LINUX”, > “FREEBSD”, “ANDROID”, and “CYGWIN”. Does the Steam-Runtime build use a > different SDK name? > > Jordan > How would

Re: [swift-dev] Glibc.swift: error: no such module 'SwiftGlibc'

2016-11-09 Thread Eric Wing via swift-dev
On 11/9/16, Eric Wing wrote: > On 11/9/16, Jordan Rose wrote: >> Ah, that does help. The logic to build the Glibc module map comes from >> stdlib/public/Platform/CMakeLists.txt, and explicitly checks for “LINUX”, >> “FREEBSD”, “ANDROID”, and “CYGWIN”. Does the Steam-Runtime build use a >> differe

Re: [swift-dev] Glibc.swift: error: no such module 'SwiftGlibc'

2016-11-10 Thread Eric Wing via swift-dev
On 11/9/16, Eric Wing wrote: > On 11/9/16, Eric Wing wrote: >> On 11/9/16, Jordan Rose wrote: >>> Ah, that does help. The logic to build the Glibc module map comes from >>> stdlib/public/Platform/CMakeLists.txt, and explicitly checks for >>> “LINUX”, >>> “FREEBSD”, “ANDROID”, and “CYGWIN”. Does

Re: [swift-dev] Glibc.swift: error: no such module 'SwiftGlibc'

2016-11-10 Thread Eric Wing via swift-dev
On 11/10/16, Jordan Rose wrote: > >> On Nov 10, 2016, at 13:34, Eric Wing wrote: >> >> On 11/9/16, Eric Wing wrote: >>> On 11/9/16, Eric Wing wrote: On 11/9/16, Jordan Rose wrote: > Ah, that does help. The logic to build the Glibc module map comes from > stdlib/public/Platform/CMa

[swift-dev] Swift compiler assertion failure: Assertion `LastArgWritten >= adjustedArg.size()' failed

2016-11-15 Thread Eric Wing via swift-dev
Hi, I have encountered an internal Swift compiler assertion/bug when using Swift on ARM (Raspberry Pi). The assertion is: Swift compiler assertion failure: Assertion `LastArgWritten >= adjustedArg.size()' failed It seems to be related to calling a bridged C function with a C struct parametert.

Re: [swift-dev] build order? Glibc.swift: error: no such module 'SwiftGlibc'

2016-11-18 Thread Eric Wing via swift-dev
/swift/stdlib/public/Platform/TiocConstants.swift > /home/ec2-user/swift/build/Ninja-ReleaseAssert/swift-linux-x86_64/stdlib/public/Platform/8/tgmath.swift > /home/ec2-user/swift/swift/stdlib/public/Platform/Glibc.swift:13:19: error: > no such module 'SwiftGlibc' > @_exported

Re: [swift-dev] build order? Glibc.swift: error: no such module 'SwiftGlibc'

2016-11-21 Thread Eric Wing via swift-dev
On 11/20/16, rintaro ishizaki wrote: > Hi Eric, > > https://bugs.swift.org/browse/SR-3219 has been resolved. > The current master branch still reproduce the problem? If so, could you > open a new SR and share the generated build.ninja file in the build > directory? > This appears to have fixed t

Re: [swift-dev] How to run Swift on Windows

2017-12-17 Thread Eric Wing via swift-dev
On 12/14/17, Kazuki Ohara via swift-dev wrote: > Hi, > > I'm interested in running Swift on Windows. > > I found the document to build the Swift compiler for Windows ( > https://github.com/apple/swift/blob/master/docs/Windows.md) and tried it. > I managed to build it with MSVC, but the resulting c

Re: [swift-dev] How to run Swift on Windows

2017-12-20 Thread Eric Wing via swift-dev
> > git clone https://github.com/apple/swift.git > cd swift > git checkout swift-4.0.2-RELEASE > patch -p1 < swift.patch > cd .. I'm having trouble applying the patches. I think it is due to the Windows line endings. Is there an easy way to work around this to apply the patches? __