<div dir="ltr"><p style="margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:17.92px;margin-top:0px!important">Thanks. I'd like to test this fix on Scientific Linux 7.1, but I'm having trouble applying the patch. I replaced stdlib/public/Glibc/CMakeLists.txt with the version from this commit, and likewise removed stdlib/public/Glibc/module.map and added the stdlib/public/Glibc/<a href="http://module.map.in">module.map.in</a> from this commit.</p><p style="margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:17.92px">But after doing so, the build doesn't know how to create stdlib/public/Glibc/module.map:</p><ul style="padding:0px 0px 0px 2em;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:17.92px"><li>/home/lanes/cmake-3.4.1-Linux-x86_64.binary_distribution/bin/cmake --build /home/lanes/swift/build/Ninja-DebugAssert/swift-linux-x86_64 -- all swift-stdlib-linux-x86_64 ninja: error: '/home/lanes/swift/swift/stdlib/public/Glibc/module.map', needed by 'lib/swift/glibc', missing and no known rule to make it</li></ul><p style="margin-top:0px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:17.92px;margin-bottom:0px!important">How should this fix be applied? Sorry for such a simple question - I'm fairly new to cmake and don't know ninja at all.</p></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 9, 2015 at 1:50 AM, Johan Jensen <span dir="ltr"><<a href="mailto:jj@johanjensen.dk" target="_blank">jj@johanjensen.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I’d imagine you would have to look into <a href="https://github.com/apple/swift/pull/282" target="_blank">Pull Request #282</a> and <span title="stdlib/public/Glibc/module.map → stdlib/public/Glibc/module.map.in">stdlib/public/Glibc/<a href="http://module.map.in" target="_blank">module.map.in</a>. <br></span></div><span title="stdlib/public/Glibc/module.map → stdlib/public/Glibc/module.map.in">Right now they’re making it look in </span>/usr/include/sys/ rather than /usr/include/x86_64-linux-gnu/sys/. </div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Dec 9, 2015 at 12:04 AM, Lane Schwartz via swift-users <span dir="ltr"><<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>I'm attempting to build on Scientific Linux 7.1. I've made good progress, but I just hit another error. The build can't find ioctl.h; it exists, just not in the location the build system is looking for it:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">$ ls /usr/include/linux/ioctl.h<br>/usr/include/linux/ioctl.h</blockquote><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">[473/490] Compiling /home/lanes/swift/build/Ninja-DebugAssert/swift-linux-x86_64/stdlib/public/Glibc/linux/x86_64/Glibc.o<br>FAILED: cd /home/lanes/swift/build/Ninja-DebugAssert/swift-linux-x86_64/stdlib/public/Glibc && /home/lanes/cmake-3.4.1-Linux-x86_64.binary_distribution/bin/cmake -E make_directory /home/lanes/swift/build/Ninja-DebugAssert/swift-linux-x86_64/stdlib/public/Glibc/linux/x86_64 && /home/lanes/cmake-3.4.1-Linux-x86_64.binary_distribution/bin/cmake -E make_directory /home/lanes/swift/build/Ninja-DebugAssert/swift-linux-x86_64/./lib/swift/linux/x86_64 && /home/lanes/swift/swift/utils/line-directive /home/lanes/swift/swift/stdlib/public/Glibc/Glibc.swift -- /home/lanes/swift/build/Ninja-DebugAssert/swift-linux-x86_64/./bin/swiftc -c -sdk / -target x86_64-unknown-linux-gnu -Onone -g -D INTERNAL_CHECKS_ENABLED -I /home/lanes/swift/build/Ninja-DebugAssert/swift-linux-x86_64/./lib/swift/linux/x86_64 -module-cache-path /home/lanes/swift/build/Ninja-DebugAssert/swift-linux-x86_64/./clang-module-cache -no-link-objc-runtime -autolink-force-load -module-link-name swiftGlibc -force-single-frontend-invocation -parse-as-library -emit-module -emit-module-path /home/lanes/swift/build/Ninja-DebugAssert/swift-linux-x86_64/./lib/swift/linux/x86_64/Glibc.swiftmodule -o /home/lanes/swift/build/Ninja-DebugAssert/swift-linux-x86_64/stdlib/public/Glibc/linux/x86_64/Glibc.o /home/lanes/swift/swift/stdlib/public/Glibc/Glibc.swift<br>/home/lanes/swift/build/Ninja-DebugAssert/swift-linux-x86_64/lib/swift/glibc/module.map:187:14: error: header '/usr/include/x86_64-linux-gnu/sys/ioctl.h' not found<br> header "/usr/include/x86_64-linux-gnu/sys/ioctl.h"<br> ^<br>/home/lanes/swift/swift/stdlib/public/Glibc/Glibc.swift:13:19: error: could not build Objective-C module 'SwiftGlibc'<br>@_exported import SwiftGlibc // Clang module<br> ^<br>[473/490] Compiling /home/lanes/swift/build/Ninja-DebugAssert/swift-linux-x86_64/stdlib/private/SwiftPrivate/linux/x86_64/SwiftPrivate.o<br>ninja: build stopped: subcommand failed.<br>./swift/utils/build-script: command terminated with a non-zero exit status 1, aborting</blockquote><div><br></div><div><br></div><div>I'm assuming there should be a pretty trivial fix for this. Any suggestions would be greatly appreciated.</div><div><br></div><div>Thanks,</div><div>Lane</div><div> </div></div>
</div></div><img src="https://u2002410.ct.sendgrid.net/wf/open?upn=KlmFWKNIEcyPEGx2Wqruu-2FaM6I0anrxIOlKS1pgqec7Uy8aBo-2F19J2hYzvnZXt-2BAAlnYODbEksIeYm4i-2BEgmLtmWDbIX-2BOPRZ3muSod0KHCVRwPbcvfc0vSbCPtZUdrq98pgb2PStSeLtae7l28YsqYqSnRHeS0nQSycs4mqn1Y6iD8BP72OoosFDVq33XuDmo-2FqyTmSZ7Svc9lk4O8KIzS5UXU7eyLwyHsyAPmV2N8-3D" alt="" style="min-height:1px!important;width:1px!important;border-width:0!important;margin-top:0!important;margin-bottom:0!important;margin-right:0!important;margin-left:0!important;padding-top:0!important;padding-bottom:0!important;padding-right:0!important;padding-left:0!important" height="1" border="0" width="1">
<br>_______________________________________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">When a place gets crowded enough to require ID's, social collapse is not<br>far away. It is time to go elsewhere. The best thing about space travel<br>is that it made it possible to go elsewhere.<br> -- R.A. Heinlein, "Time Enough For Love"</div>
</div>