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

Loading the package kills julia with LLVM ERROR: Unsupported calling convention. on Apple Silicon #338

Closed
giordano opened this issue Apr 22, 2022 · 1 comment · Fixed by #339

Comments

@giordano
Copy link
Contributor

With #335 (missing JLL libraries) fixed, loading this package on a MacBook M1 kills julia with

julia> using ODBC
LLVM ERROR: Unsupported calling convention.

signal (6): Abort trap: 6
in expression starting at REPL[8]:1
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 6169450 (Pool: 6163744; Big: 5706); GC: 9

As far as I can tell, the error is coming from Handle(SQL_HANDLE_ENV) at

ODBC_ENV[] = Handle(SQL_HANDLE_ENV)
I haven't pinned further down the issue.

@giordano
Copy link
Contributor Author

Quick update: I followed the error up to the call to SQLAllocHandle at

@checksuccess parent SQLAllocHandle(type, parent isa Handle ? parent.ptr : parent, ref)
It's still not entirely clear to me what's the issue. I presume the ccall in the @odbc macro may be wrong, but I can't tell what is wrong from a quick look.

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

Successfully merging a pull request may close this issue.

1 participant