(0:0) [E584] Cannot find type "RemObjects.Oxygene.System.Cardinal" from library "<library>" referenced by "swift"

I’m attempting to run the following command:

ElementsCC.exe --assembly=example.testing -out=bazel-out/darwin_x86_64-fastbuild/bin/devtools/bazel/rules/elements/examples -q --ref=external/local_jdk/jre/lib/rt.jar --ref=external/elements/References/Cooper/swift.jar devtools/bazel/rules/elements/examples/Printer.swift -t=staticlibrary -m=cooper

I keep getting this in an infinite loop:
(0:0) [E584] Cannot find type "RemObjects.Oxygene.System.Cardinal" from library "<library>" referenced by "swift"

Is there something else I need to reference?

FWIW, I am able to successfully compile other simpler swift programs just fine, but when I --ref swift.jar things go haywire.

Solved my own problem, I needed to also reference elements.jar and cooper.jar.

At least cooper.jar, although that error needs to be way better.

Thanks, logged as bugs://78195

bugs://78195 got closed with status fixed.