<div dir="ltr">Hi Eric,<div><br></div><div><a href="https://bugs.swift.org/browse/SR-3219" rel="noreferrer" style="font-size:14px" target="_blank">https://bugs.swift.org/browse/<wbr>SR-3219</a><span style="font-size:14px"> has been resolved.</span></div><div><span style="font-size:14px">The current master branch still reproduce the problem? If so, </span><span style="font-size:14px">could you</span></div><div><span style="font-size:14px">open a new </span><span style="font-size:14px">SR </span><span style="font-size:14px">and share the generated </span><span style="font-size:14px">build.ninja file in the build directory?</span></div><div><span style="font-size:14px"><br></span></div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-19 13:57 GMT+09:00 Eric Wing via swift-dev <span dir="ltr">&lt;<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 11/15/16, Will Stanton &lt;<a href="mailto:willstanton1@yahoo.com">willstanton1@yahoo.com</a>&gt; wrote:<br>
&gt; Hello Eric,<br>
&gt;<br>
&gt; Wanted to share I ran into a similar/the same error message this week<br>
&gt; rebuilding from scratch (clean build/ on AWS Linux like CentOS): the build<br>
&gt; stops (almost certainly) because the native SwiftGlibc module isn’t<br>
&gt; generated. It happens near the end of the Swift build, around step<br>
&gt; 600/640ish.<br>
&gt; I’m not sure if there is one cause, since others posting online have run<br>
&gt; into this message over the last year seemingly for different reasons<br>
&gt; (missing libraries?).<br>
&gt;<br>
&gt;<br>
&gt; Anyway I was able to get past it by executing:<br>
&gt; ninja make lib-swift-linux-x86_64-glibc.<wbr>modulemap<br>
&gt;<br>
&gt; Re-invoking the build script gave me this:<br>
&gt; [1/1] Generating glibc.modulemap from glibc.modulemap.gyb<br>
&gt;<br>
&gt; And the rest of the build went on its way. Maybe it’ll work for you if<br>
&gt; you&#39;re still seeing the problem?<br>
&gt;<br>
&gt; I’ve filed SR-3219 <a href="https://bugs.swift.org/browse/SR-3219" rel="noreferrer" target="_blank">https://bugs.swift.org/browse/<wbr>SR-3219</a> with my build.ninja<br>
&gt; in case it’s related to build order (alas I’m not too familiar with<br>
&gt; everything so I don’t know when SwiftGlibc is expected).<br>
&gt;<br>
&gt; The error I came across:<br>
&gt; [1/51] Compiling<br>
&gt; /home/ec2-user/swift/...b/<wbr>public/Platform/linux/x86_64/<wbr>Glibc.o<br>
&gt; FAILED: stdlib/public/Platform/linux/<wbr>x86_64/Glibc.o<br>
&gt; cd<br>
&gt; /home/ec2-user/swift/build/<wbr>Ninja-ReleaseAssert/swift-<wbr>linux-x86_64/stdlib/public/<wbr>Platform<br>
&gt; &amp;&amp; /home/ec2-user/swift/swift/<wbr>utils/line-directive<br>
&gt; /home/ec2-user/swift/swift/<wbr>stdlib/public/Platform/Glibc.<wbr>swift<br>
&gt; /home/ec2-user/swift/swift/<wbr>stdlib/public/Platform/<wbr>Platform.swift<br>
&gt; /home/ec2-user/swift/swift/<wbr>stdlib/public/Platform/<wbr>TiocConstants.swift<br>
&gt; /home/ec2-user/swift/build/<wbr>Ninja-ReleaseAssert/swift-<wbr>linux-x86_64/stdlib/public/<wbr>Platform/8/tgmath.swift<br>
&gt; --<br>
&gt; /home/ec2-user/swift/build/<wbr>Ninja-ReleaseAssert/swift-<wbr>linux-x86_64/./bin/swiftc<br>
&gt; -c -sdk / -target x86_64-unknown-linux-gnu -resource-dir<br>
&gt; /home/ec2-user/swift/build/<wbr>Ninja-ReleaseAssert/swift-<wbr>linux-x86_64/./lib/swift<br>
&gt; -O -D INTERNAL_CHECKS_ENABLED -I<br>
&gt; /home/ec2-user/swift/build/<wbr>Ninja-ReleaseAssert/swift-<wbr>linux-x86_64/./lib/swift/<wbr>linux/x86_64<br>
&gt; -module-cache-path<br>
&gt; /home/ec2-user/swift/build/<wbr>Ninja-ReleaseAssert/swift-<wbr>linux-x86_64/./module-cache<br>
&gt; -no-link-objc-runtime -autolink-force-load -module-link-name swiftGlibc<br>
&gt; -force-single-frontend-<wbr>invocation -parse-as-library -o<br>
&gt; /home/ec2-user/swift/build/<wbr>Ninja-ReleaseAssert/swift-<wbr>linux-x86_64/stdlib/public/<wbr>Platform/linux/x86_64/Glibc.o<br>
&gt; /home/ec2-user/swift/swift/<wbr>stdlib/public/Platform/Glibc.<wbr>swift<br>
&gt; /home/ec2-user/swift/swift/<wbr>stdlib/public/Platform/<wbr>Platform.swift<br>
&gt; /home/ec2-user/swift/swift/<wbr>stdlib/public/Platform/<wbr>TiocConstants.swift<br>
&gt; /home/ec2-user/swift/build/<wbr>Ninja-ReleaseAssert/swift-<wbr>linux-x86_64/stdlib/public/<wbr>Platform/8/tgmath.swift<br>
&gt; /home/ec2-user/swift/swift/<wbr>stdlib/public/Platform/Glibc.<wbr>swift:13:19: error:<br>
&gt; no such module &#39;SwiftGlibc&#39;<br>
&gt; @_exported import SwiftGlibc // Clang module<br>
&gt;                   ^<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Regards,<br>
&gt; Will Stanton<br>
&gt;<br>
&gt;&gt; On Nov 10, 2016, at 4:34 PM, Eric Wing via swift-dev &lt;<a href="mailto:swift-dev@swift.org">swift-dev@swift.org</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Ubuntu 16.10 supplies CMake 3.5.2.<br>
&gt;&gt; Steam-Runtime ships a version that is way too old, so I built and used<br>
&gt;&gt; the latest stable CMake version, 3.6.3.<br>
&gt;&gt;<br>
&gt;&gt; Using 3.6.3 seems to always trigger this problem with the Swift build.<br>
&gt;&gt;<br>
&gt;&gt; I tested it both ways:<br>
&gt;&gt;<br>
&gt;&gt; 1. I changed Ubuntu 16.10 to use CMake 3.6.3 and the build broke in<br>
&gt;&gt; exactly the same way I described.<br>
&gt;&gt;<br>
&gt;&gt; 2. In Steam-Runtime, I built/used CMake 3.5.2 instead, and the build<br>
&gt;&gt; completed.<br>
&gt;<br>
&gt;<br>
<br>
</div></div>Interesting...following your suggestion, also doing:<br>
<br>
ninja make lib-swift-android-armv7-glibc.<wbr>modulemap<br>
<br>
and then resuming the normal build got me through the rest of the<br>
build with CMake 3.6.3.<br>
<br>
<br>
(To your other email,<br>
Android is technically Bionic instead of Glibc, but the Swift build<br>
system is pretending they are the same. This may need to be addressed<br>
in the future...)<br>
<br>
Thanks,<br>
Eric<br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
swift-dev mailing list<br>
<a href="mailto:swift-dev@swift.org">swift-dev@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-dev" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-dev</a><br>
</div></div></blockquote></div><br></div></div>