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
x/sys: does not build on linux/sparc64, stuck on porting attempt #55000
Comments
The various asm files in x/sys are not used by gccgo. For example, asm_linux_loong64.s has a You'll need to add a cpu/cpu_sparc64.go file to define |
Thanks for the info!! Glad to know I don't need to learn sparc64 asm :D. I added the I am a bit confused for what to set Sadly, it looks like it fails a good deal of tests:
You can take a look at the Any tips on where to go from here? Am a bit lost on where these tests might be failing.. I appreciate your time :) |
Yes, The tests suggest that |
aaaaahrg I'm getting stuck on this. I'm not using the docker method, as I want the information from my running system to be used, to see if there's any differences. Plus, Docker('s deps) requires go 1.18 to build. As far as I'm aware, gcc12 only supports up to go 1.16. I took a look at
I'm running it directly like this, not sure if this is how I'm supposed to do it:
I keep looking at the test results, then the tests, and I'm just.... baffled. Like I'll keep assuming it's something wrong in I'll keep working on it, but in the meantime, if I can get some hints with this |
Update: Writing a script to try every possible value combination in Stat_t. Will leave overnight, maybe, just maybe, by morning I'll have something that passes tests :D |
So I finally understood what to do to generate these the right way. I don't really know go, so they were hard for me to follow, and I misunderstood. Anyways, I'm again back to getting the values by hand. The whole script thing I mentioned above didn't work too well :/. I'm trying to adapt |
Thanks for the tip Ian! I'll take a look at it next chance I get :)
|
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes on git master branch
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Running with no changes, I get:
After this commit, and trying to write
unix/asm_linux_sparc64.s
(started with just copying over loong64's), I get this error:I assume this is why there was a
gc
requirement. On sparc64, gccgo is the only option.So, how would I get an assembly file compileable with gccgo? Is there a way to make it work with
textflag.h
, or a way to make it work without it?Thanks for your time, I am really excited about getting x/sys running on my sparcbox, and hopefully soon everyone elses =^D
The text was updated successfully, but these errors were encountered: