-
Notifications
You must be signed in to change notification settings - Fork 22
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
Error in test suite on M1: Program type out of range #41
Comments
Interestingly, replacing this line: odbc/src/Database/ODBC/Internal.hs Line 944 in b7d19d8
with I tried adding odbc/src/Database/ODBC/Internal.hs Line 941 in b7d19d8
but only (traceShowId column) seemed to worked 🤔
|
I've tried printing the input I get in this function: Lines 222 to 232 in d5fb33a
I added For some reason, when I try to select a text column (for which /var/folders/4p/vsznhmbx6p15bndr9g1fwv3m0000gn/T/ghc3543_0/ghc_1.s:354:2: error:
warning: instruction movi.2d with immediate #0 may not function correctly on this CPU, converting to equivalent movi.16b
movi.2d v0, #0000000000000000
^
|
354 | movi.2d v0, #0000000000000000
| ^ What I tried doing is pass This might be a GHC bug, I'm not sure. But this workaround works for me for now. |
Opened a ghc bug for this https://gitlab.haskell.org/ghc/ghc/-/issues/20735 |
Very good sleuthing! Good catch. |
I am getting an error running the test suite on a macbook with the M1 chip.
Specifically, the
Database.ODBC.Internal, Data retrieval, Basic santiy check
test fails withUnsuccessfulReturnCode "getSize" (-1) "[unixODBC][Driver Manager]Program type out of range[unixODBC][Driver Manager]Program type out of range"
Context
I'm on macOS, M1 chip, using
brew install HOMEBREW_NO_ENV_FILTERING=1 ACCEPT_EULA=Y brew install msodbcsql17 mssql-tools unixodbc
to install odbc drivers.I'm using the
mcr.microsoft.com/azure-sql-edge:latest
docker image to run mssql server:but this issue also occurs when running SQL Server on a remote machine with x86_64:
I've cloned the fpco/odbc repo and built with cabal and ghc-8.10.7, then ran the tests:
Result:
97 examples, 1 failure
:I've tried to run this test repeatedly by changing the failing test in
tests/Main.hs
from:it "Basic santiy check"
to:
And ran it again:
And the failing test failed exactly 21 times and then started passing. This behaviour is consistent when running the test many times:
I can replicate similar behaviour when running
cabal v2-run odbc
and running the test manually. If we are a bit persistent we can get the expected results:The text was updated successfully, but these errors were encountered: