Comments (11)
What Linux distribution/version/configuration are you using?
from swift.
Also, are you using the pre-built binaries, or rolling your own from sources?
from swift.
I'm rolling my own from sources.
My guess is that many distros, that don't use the weird Debian/Ubuntu layout,
might be affected by this issue.
I use Gentoo for example.
from swift.
I suspect we will need some build-time configuration logic to figure out the right locations and generate the module map.
from swift.
Comment by James Laver (JIRA)
I'm also a gentoo user and I've worked around this for now by symlinking /usr/include/x86-64-linux-gnu to /usr/include, if that helps other people in the meantime.
from swift.
Great - thank you for noting the workaround for others.
from swift.
Comment by Manolo van Ee (JIRA)
This will be fixed by pull request 282:
#282
from swift.
Comment by William Casarin (JIRA)
This still doesn't fix the module map on NixOS, I'm getting this error:
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "/nix/store/hd6km3hscbgl2yw8nx7lr5z9s8h89p04-glibc-2.21/include/complex.h"
^
/nix/store/hd6km3hscbgl2yw8nx7lr5z9s8h89p04-glibc-2.21/include/complex.h:25:10: error: 'features.h' file not found with <angled> include; use "quotes" instead
#include <features.h>
^
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "/nix/store/hd6km3hscbgl2yw8nx7lr5z9s8h89p04-glibc-2.21/include/complex.h"
^
/nix/store/hd6km3hscbgl2yw8nx7lr5z9s8h89p04-glibc-2.21/include/complex.h:25:10: note: in file included from /nix/store/hd6km3hscbgl2yw8nx7lr5z9s8h89p04-glibc-2.21/include/complex.h:25:
#include <features.h>
^
/nix/store/hd6km3hscbgl2yw8nx7lr5z9s8h89p04-glibc-2.21/include/features.h:343:10: error: 'stdc-predef.h' file not found with <angled> include; use "quotes" instead
#include <stdc-predef.h>
^
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "/nix/store/hd6km3hscbgl2yw8nx7lr5z9s8h89p04-glibc-2.21/include/complex.h"
^
/nix/store/hd6km3hscbgl2yw8nx7lr5z9s8h89p04-glibc-2.21/include/complex.h:25:10: note: in file included from /nix/store/hd6km3hscbgl2yw8nx7lr5z9s8h89p04-glibc-2.21/include/complex.h:25:
#include <features.h>
^
/nix/store/hd6km3hscbgl2yw8nx7lr5z9s8h89p04-glibc-2.21/include/features.h:365:12: error: 'sys/cdefs.h' file not found with <angled> include; use "quotes" instead
# include <sys/cdefs.h>
^
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "/nix/store/hd6km3hscbgl2yw8nx7lr5z9s8h89p04-glibc-2.21/include/complex.h"
^
/nix/store/hd6km3hscbgl2yw8nx7lr5z9s8h89p04-glibc-2.21/include/complex.h:25:10: note: in file included from /nix/store/hd6km3hscbgl2yw8nx7lr5z9s8h89p04-glibc-2.21/include/complex.h:25:
#include <features.h>
^
/nix/store/hd6km3hscbgl2yw8nx7lr5z9s8h89p04-glibc-2.21/include/features.h:365:12: note: in file included from /nix/store/hd6km3hscbgl2yw8nx7lr5z9s8h89p04-glibc-2.21/include/features.h:365:
# include <sys/cdefs.h>
^
/nix/store/hd6km3hscbgl2yw8nx7lr5z9s8h89p04-glibc-2.21/include/sys/cdefs.h:402:10: error: 'bits/wordsize.h' file not found
#include <bits/wordsize.h>
^
/home/jb55/dev/swift/swift/stdlib/public/Glibc/Glibc.swift:13:19: error: could not build Objective-C module 'SwiftGlibc'
@_exported import SwiftGlibc // Clang module
^
[470/487] Compiling /home/jb55/dev/swift/Ninja-ReleaseA...stdlib/private/SwiftPrivate/linux/x86_64/SwiftPrivate.o
ninja: build stopped: subcommand failed
any ideas?
from swift.
Comment by Manolo van Ee (JIRA)
I've got no experience with NixOS, but I can give it a try. I assume you changed the following line in stdlib/public/Glibc/CMakeLists.txt:
set(GLIBC_INCLUDE_PATH "/usr/include")
Is that correct?
from swift.
Comment by William Casarin (JIRA)
Yeah I did, it looks like the library path just wasn't set up in my build properly. Sorry for the noise.
from swift.
Comment by Manolo van Ee (JIRA)
Set to resolved.
Fixed by pull request 282.
from swift.
Related Issues (20)
- CI Builds for Debian 12 Failing
- Why can I mark a Sendable value sending HOT 1
- Misleading errors when chaining correct code with incorrect code. HOT 1
- Can RBI give me a better clue here?
- Factor `GlobalConcurrency` checking from ActorIsolationRequest
- assumeIsolated doesn't work for actors with Dispatch executors HOT 8
- UNREACHABLE executed at lib/SILOptimizer/Mandatory/MoveOnlyWrappedTypeEliminator.cpp:56!
- Not all concurrency annotations added to Objective-C are visible in the Swift translation HOT 2
- Crash when typechecking union with const field HOT 1
- Swift's Windows installer is missing the features.json file for docc and clang HOT 1
- Unable to form key path to main actor-isolated properties
- Visibility Issue with ExtensionMacro in Different Files When Attached to Protocol
- This complicated combination of trailing closures and autoclosures crashes the Swift compiler HOT 4
- Swift 6 Regression: Existential Casting Is Broken HOT 1
- Swift 6 compiler crashes while emitting protocol witness HOT 1
- 5.10 build crash: While running pass SILModuleTransform "CrossModuleOptimization"
- Improve the function remove (at index: Int) -> Element
- Compiler crash when type-checking a subclass that overrides a property HOT 1
- Implicitly open implicitly unwrapped existential optionals
- Unexpected behavior of Sequence.split(separator:maxSplits:omittingEmptySubsequences:)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift.