Giter VIP home page Giter VIP logo

Comments (11)

tkremenek avatar tkremenek commented on July 29, 2024

What Linux distribution/version/configuration are you using?

from swift.

tkremenek avatar tkremenek commented on July 29, 2024

Also, are you using the pre-built binaries, or rolling your own from sources?

from swift.

octoploid avatar octoploid commented on July 29, 2024

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.

tkremenek avatar tkremenek commented on July 29, 2024

I suspect we will need some build-time configuration logic to figure out the right locations and generate the module map.

from swift.

swift-ci avatar swift-ci commented on July 29, 2024

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.

bitjammer avatar bitjammer commented on July 29, 2024

Great - thank you for noting the workaround for others.

from swift.

swift-ci avatar swift-ci commented on July 29, 2024

Comment by Manolo van Ee (JIRA)

This will be fixed by pull request 282:
#282

from swift.

swift-ci avatar swift-ci commented on July 29, 2024

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.

swift-ci avatar swift-ci commented on July 29, 2024

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.

swift-ci avatar swift-ci commented on July 29, 2024

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.

swift-ci avatar swift-ci commented on July 29, 2024

Comment by Manolo van Ee (JIRA)

Set to resolved.
Fixed by pull request 282.

from swift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.