Skip to content
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

[SR-9050] error: cannot load underlying module for 'Dispatch' #643

Open
norio-nomura opened this issue Oct 20, 2018 · 4 comments
Open

[SR-9050] error: cannot load underlying module for 'Dispatch' #643

norio-nomura opened this issue Oct 20, 2018 · 4 comments

Comments

@norio-nomura
Copy link

Previous ID SR-9050
Radar None
Original Reporter @norio-nomura
Type Bug
Status Reopened
Resolution
Environment

swift-tensorflow DEVELOPMENT-2018-11-21-a. on ubuntu 16.04

Additional Detail from JIRA
Votes 1
Component/s libdispatch
Labels Bug
Assignee None
Priority Medium

md5: bd4d55d426fcb147ee55d10380a3fa3b

Issue Description:

Log:

$ docker run --privileged -it --rm norionomura/swift:20181019a swift
Welcome to Swift version 4.2-dev (LLVM c4a0883115, Clang 0a99881462, Swift a640fe7dd6).
Type :help for assistance.
  1> import Dispatch
warning: Swift error in fallback scratch context: error: repl.swift:1:8: error: cannot load underlying module for 'Dispatch'
import Dispatch
       ^



note: This error message is displayed only once. If the error displayed above is due to conflicting search paths to Clang modules in different images of the debugged executable, this can slow down debugging of Swift code significantly, since a fresh Swift context has to be created every time a conflict is encountered.

expression failed to parse, unknown error
  1>  

On swift-DEVELOPMENT-SNAPSHOT-2018-10-19-a, it seems /usr/lib/swift/dispatch/module.modulemap changed to symbolic link against /home/buildnode/jenkins/workspace/oss-swift-package-linux-ubuntu-16_04/swift-corelibs-libdispatch/dispatch/generic/module.modulemap that does not exists.

 ls -la /usr/lib/swift/dispatch/
total 216
drwxr-xr-x  2 root root  4096 Oct 19 16:44 .
drwxr-xr-x 11 root root  4096 Oct 19 16:44 ..
-rw-r--r--  1 root root  8155 Oct 19 15:42 base.h
-rw-r--r--  1 root root 17651 Oct 19 15:42 block.h
-rw-r--r--  1 root root 10865 Oct 19 15:42 data.h
-rw-r--r--  1 root root  1994 Oct 19 15:42 dispatch.h
-rw-r--r--  1 root root  8412 Oct 19 15:42 group.h
-rw-r--r--  1 root root  4894 Oct 19 15:42 introspection.h
-rw-r--r--  1 root root 25802 Oct 19 15:42 io.h
lrwxrwxrwx  1 root root   131 Oct 19 16:46 module.modulemap -> /home/buildnode/jenkins/workspace/oss-swift-package-linux-ubuntu-16_04/swift-corelibs-libdispatch/dispatch/generic/module.modulemap
-rw-r--r--  1 root root 17247 Oct 19 15:42 object.h
-rw-r--r--  1 root root  3633 Oct 19 15:42 once.h
-rw-r--r--  1 root root 50416 Oct 19 15:42 queue.h
-rw-r--r--  1 root root  3321 Oct 19 15:42 semaphore.h
-rw-r--r--  1 root root 27456 Oct 19 15:42 source.h
-rw-r--r--  1 root root  3020 Oct 19 15:42 time.h
@belkadan
Copy link

cc dgrove-oss (JIRA User), @compnerd

@norio-nomura
Copy link
Author

I confirmed that this issue has been resolved on swift-DEVELOPMENT-SNAPSHOT-2018-11-13-a.

@norio-nomura
Copy link
Author

This issue happens on swift-tensorflow DEVELOPMENT-2018-11-21-a.
https://circleci.com/gh/norio-nomura/SwiftCompilerDiscordappBot/1069

@belkadan
Copy link

Does it only happen on the TensorFlow branch? If so, maybe it's just that they haven't pulled in the necessary fixes yet.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants