More specifically, this is the error message from the REPL:
Welcome to Swift version 5.0-dev (LLVM dcb9eb74a7, Clang 95cdf7c9af, Swift ec27d9b99d). Type :help for assistance. 1> 2> 3> 4> import Glibc 5> let h = dlopen("package/.build/x86_64-unknown-linux/debug/libjupyterInstalledPackages.so", RTLD_NOW) h: UnsafeMutableRawPointer? = (_rawValue = 0x000000000134cb70) 6> import vips warning: Swift error in fallback scratch context: <module-includes>:1:10: note: in file included from <module-includes> :1: #include "/home/pedro/code/s4tf/fastai_docs/dev_swift/SwiftVips/Sources/vips/shim.h" ^ /home/pedro/code/s4tf/fastai_docs/dev_swift/SwiftVips/Sources/vips/shim.h:1:10: note: in file included from /home/pedro /code/s4tf/fastai_docs/dev_swift/SwiftVips/Sources/vips/shim.h:1: #include <vips/vips.h> ^ error: /usr/local/include/vips/vips.h:87:10: error: 'glib.h' file not found #include <glib.h> ^ error: repl.swift:6:8: error: could not build C module 'vips' import vips ^ note: This error message is displayed only once. If the error displayed above is due to conflicting search paths to Cla ng modules in different images of the debugged executable, this can slow down debugging of Swift code significantly, si nce a fresh Swift context has to be created every time a conflict is encountered. expression failed to parse, unknown error
I’m guessing there are some system module maps that are not being correctly prepared in the install directory. I tried to force it by defining pkg-config dependencies for them, but it didn’t work. I’ll see if I can get some info from the build.db database, maybe we can whitelist them.