[swift-users] Build doesn't find ioctl.h
Johan Jensen
jj at johanjensen.dk
Wed Dec 9 01:50:22 CST 2015
I’d imagine you would have to look into Pull Request #282
<https://github.com/apple/swift/pull/282> and stdlib/public/Glibc/
module.map.in.
Right now they’re making it look in /usr/include/sys/ rather than
/usr/include/x86_64-linux-gnu/sys/.
On Wed, Dec 9, 2015 at 12:04 AM, Lane Schwartz via swift-users <
swift-users at swift.org> wrote:
> Hi,
>
> 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:
>
> $ ls /usr/include/linux/ioctl.h
>> /usr/include/linux/ioctl.h
>
>
>
> [473/490] Compiling
>> /home/lanes/swift/build/Ninja-DebugAssert/swift-linux-x86_64/stdlib/public/Glibc/linux/x86_64/Glibc.o
>> 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
>> /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
>> header "/usr/include/x86_64-linux-gnu/sys/ioctl.h"
>> ^
>> /home/lanes/swift/swift/stdlib/public/Glibc/Glibc.swift:13:19: error:
>> could not build Objective-C module 'SwiftGlibc'
>> @_exported import SwiftGlibc // Clang module
>> ^
>> [473/490] Compiling
>> /home/lanes/swift/build/Ninja-DebugAssert/swift-linux-x86_64/stdlib/private/SwiftPrivate/linux/x86_64/SwiftPrivate.o
>> ninja: build stopped: subcommand failed.
>> ./swift/utils/build-script: command terminated with a non-zero exit
>> status 1, aborting
>
>
>
> I'm assuming there should be a pretty trivial fix for this. Any
> suggestions would be greatly appreciated.
>
> Thanks,
> Lane
>
>
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20151209/f677faf1/attachment.html>
More information about the swift-users
mailing list