Skip to content

Circular dependency between modules 'Swift' and '_Builtin_float' #81594

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rauhul opened this issue May 18, 2025 · 0 comments · Fixed by #81857
Closed

Circular dependency between modules 'Swift' and '_Builtin_float' #81594

rauhul opened this issue May 18, 2025 · 0 comments · Fixed by #81857
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. embedded Embedded Swift triage needed This issue needs more specific labels

Comments

@rauhul
Copy link
Member

rauhul commented May 18, 2025

Description

When updating swift-embedded-examples to main-snapshots from May, we see a new issue trying to use the llvm toolchain: error: circular dependency between modules 'Swift' and '_Builtin_float'

Reproduction

$ rm -r /tmp/mc
$ echo "" | swiftc \
        -c - \
        -target armv7em-none-none-eabi \
        -v \
        -module-cache-path /tmp/mc \
        -enable-experimental-feature Embedded -wmo \
        -Xcc -Illvm-toolchain/lib/clang-runtimes/arm-none-eabi/armv7m_soft_fpv4_sp_d16_exn_rtti/include

Apple Swift version 6.2-dev (LLVM 9ae4b59a6edd27c, Swift 9b6c04e3c75cff6)
Target: armv7em-none-none-eabi
/Users/kuba/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2025-05-11-a.xctoolchain/usr/bin/swift-frontend -frontend -c - -target armv7em-none-none-eabi -disable-objc-interop -color-diagnostics -Xcc -fcolor-diagnostics -module-cache-path /tmp/mc -enable-experimental-feature Embedded -empty-abi-descriptor -Xcc -Illvm-toolchain/lib/clang-runtimes/arm-none-eabi/armv7m_soft_fpv4_sp_d16_exn_rtti/include -no-auto-bridging-header-chaining -module-name main -in-process-plugin-server-path /Users/kuba/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2025-05-11-a.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -plugin-path /Users/kuba/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2025-05-11-a.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Users/kuba/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2025-05-11-a.xctoolchain/usr/local/lib/swift/host/plugins -o main.o

<unknown>:0: error: circular dependency between modules 'Swift' and '_Builtin_float'

Expected behavior

No module issues.

Environment

swift-DEVELOPMENT-SNAPSHOT-2025-05-11-a

Additional information

No response

@rauhul rauhul added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels embedded Embedded Swift labels May 18, 2025
@rauhul rauhul changed the title error: circular dependency between modules 'Swift' and '_Builtin_float' Circular dependency between modules 'Swift' and '_Builtin_float' May 18, 2025
@kubamracek kubamracek self-assigned this May 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. embedded Embedded Swift triage needed This issue needs more specific labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants