-
Notifications
You must be signed in to change notification settings - Fork 550
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
Big Endian environment issues #916
Comments
Thank you for the big endian testing! Travis CI can run arbitrary docker images, but not on arbitrary hardware. They only have x86 servers available. |
OH I see. that's sad news. |
I will debug the issue "1.2". |
Thanks for calling back out the YEAR issue so it doesn't get lost! |
Thanks for the fix to YEAR! |
Just moment, could you reopen?
I want to consider to add the big endian environment to Travis if possible. Showring this page again, Maybe |
I am testing mysql2 on several environments. |
I tried to add big endian docker test case on Travis. junaruga@cc561e1
But I got error "standard_init_linux.go:178: exec user process caused "exec format error". So, keep closing this ticket. |
Some day I will have an excuse to buy one of these for home :) https://raptorcs.com/content/TL2DS1/intro.html |
That's awesome if that can be achieved! 😄 |
I suggested Travis CI supporting big endian environment as a testing environment. :) |
@sodabrew Good news. Build your open source projects on IBM Power and IBM Z CPU architecture |
Summary
I am trying to build
mysql2
and run the unit test on not onlyx86_64
(little endian), but alsoppc64
(big endian).local_infile
. I sent PR for that. (local_infile not enabled on a big endian environment #914).YEAR
column.1.2 The detail of Issue for result object's
YEAR
column.Below test is failed on big endian environments such as ppc64 and s390x architectures.
When I ran with below debug logs,
ext/mysql2/result.c rb_mysql_result_fetch_row_stmt
The result is like this on x86_64 (little endian)
2009 => 111 11011001 on binary number
And like this on ppc64 (big endian)
131661824 => 111 11011001 00000000 00000000 on binary number
But I have no idea about how to fix this issue.
And there might be other parts to fix related to this issue.
2. Adding big endian environment to Travis CI test.
I want to add big endian environment to Travis CI platform.
Ubuntu docker has some architectures (platforms).
https://hub.docker.com/_/ubuntu/
https://github.com/docker-library/official-images#architectures-other-than-amd64
ppc64
is not there. Buts390x
(another big endian) is there.It is possible to add technically.
How do you think?
Thank you.
The text was updated successfully, but these errors were encountered: