[swift-users] Build doesn't find ioctl.h
Lane Schwartz
dowobeha at gmail.com
Tue Dec 8 17:04:16 CST 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20151208/0322e82c/attachment.html>
More information about the swift-users
mailing list