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

_Complex type causes Unknown type kind: 100: Complex #109

Open
drbixx opened this issue Jun 20, 2024 · 0 comments
Open

_Complex type causes Unknown type kind: 100: Complex #109

drbixx opened this issue Jun 20, 2024 · 0 comments

Comments

@drbixx
Copy link

drbixx commented Jun 20, 2024

Include files that contain structs with _Complex ... fields, result in

% atlas build |& sanatize
[Info] (..) is the current workspace
  Verifying dependencies for [email protected]
     Info:  Dependency on futhark@any version already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on termstyle@any version already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on macroutils@any version already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on https://github.com/PMunch/nimbleutils@>= 0.3.0 already satisfied
  Verifying dependencies for [email protected]
   Building complex_issue/complex_issue using c backend
project/_deps/futhark/src/futhark.nim(49, 7) Warning: Couldn't find futhark version from 'nimble dump project/_deps/futhark/futhark.nimble' [User]
Unknown type kind: 100: Complex
stack trace: (most recent call last)
project/_deps/futhark/src/futhark.nim(881, 19) importcImpl
project/_deps/futhark/src/futhark.nim(254, 34) addUsings
project/_deps/futhark/src/futhark.nim(229, 10) findAlias
project/src/complex_issue.nim(13, 1) template/generic instantiation of `importc` from here
project/_deps/futhark/src/futhark.nim(689, 14) template/generic instantiation of `importcImpl` from here
project/_deps/futhark/src/futhark.nim(229, 10) Error: Unknown kind in findAlias: {"kind":"invalid","value":"???"}
       Tip: 10 messages have been suppressed, use --verbose to show them.
nimble.nim(304)          buildFromDir

    Error:  Build failed for the package: complex_issue

Ideally, _Complex types are supported. At minimum, it would be nice if the error can be turned into a warning, especially when the nim bindings for _Complex types aren't needed.

complex_issue.txt

@drbixx drbixx changed the title _Complex type causes " _Complex type causes Unknown type kind: 100: Complex Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant