Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Windows][Swift 5.10.1] Hello world app throws: error: could not build C module 'SwiftShims' #75767

Closed as not planned
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.triage neededThis issue needs more specific labels
@procedural

Description

@procedural

Description

Fresh install of Windows 10 and Swift (currently version 5.10.1).

helloworld.swift:

print("Hello, World!")

In cmd.exe, running:

swiftc helloworld.swift

Prints:

<module-includes>:1:10: note: in file included from <module-includes>:1:#include "AssertionReporting.h"         ^C:\Users\Constantine\AppData\Local\Programs\Swift\Platforms\5.10.1\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\shims/AssertionReporting.h:16:10: note: in file included from C:\Users\Constantine\AppData\Local\Programs\Swift\Platforms\5.10.1\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\shims/AssertionReporting.h:16:#include "SwiftStdint.h"         ^C:\Users\Constantine\AppData\Local\Programs\Swift\Platforms\5.10.1\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\shims/SwiftStdint.h:28:10: error: 'stdint.h' file not found#include <stdint.h>         ^<unknown>:0: error: could not build C module 'SwiftShims'error: fatalError

Guide me!

Reproduction

print("Hello, World!")

Run:

swiftc helloworld.swift

Expected behavior

No, Mr. Bond! I expect you to work!

Environment

$ swiftc --version
Swift version 5.10.1 (swift-5.10.1-RELEASE)
Target: x86_64-unknown-windows-msvc

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.triage neededThis issue needs more specific labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp