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

only Debian/Ubuntu is supported for building rom #625

Closed
Alto1772 opened this issue Jan 18, 2022 · 10 comments
Closed

only Debian/Ubuntu is supported for building rom #625

Alto1772 opened this issue Jan 18, 2022 · 10 comments

Comments

@Alto1772
Copy link
Contributor

Only some Linux distros with cpp-mips-linux-gnu package is supported right now, because of KMC gcc compiler executing mips-linux-gnu-cpp which it does not available for some distros. You can fix this by asking Pink Horned Man White Nose to use the host's cpp, or if he doesn't want to do it use mine instead. (I will tell more about it if you agree to use my version of his.)

Build running on Arch Linux:

2022-01-18_16-49

@ethteck
Copy link
Member

ethteck commented Jan 18, 2022

Pink Horned Man White Nose??? lol

@ethteck
Copy link
Member

ethteck commented Jan 18, 2022

image

omfg lollll

@Alto1772
Copy link
Contributor Author

Alto1772 commented Jan 18, 2022

[Mr-Wiseguy pfp]
omfg lollll

yep thats the guy...

you can try my alternative version of his (kmc-exew32-loader). Feel free to test it out for yourself... (This repo myght become private if no one is testing it.)

@ethteck
Copy link
Member

ethteck commented Jan 18, 2022

I'm a little more tempted to stick with wiseguy's wrapper because it's kind of more of a "standard" in the community, and he's easier to reach and ask questions about it, being active on discord and stuff. (It's totally fine that you're not on discord, but it just makes collaborating a little harder)

It may make more sense to integrate changes to his repo that you feel would be ideal. Also we can involve him in this discussion @Mr-Wiseguy

@ethteck
Copy link
Member

ethteck commented Jan 19, 2022

Pink Horned Man White Nose (who I shall refer to as PHMWN from here on) informed me we should be able to use an unmodified gcc 2.7.2.1 instead, to build libultra. so I'll be investigating that soon and will update here with more details. We may be able to avoid wrappers for kmc altogether

@Alto1772
Copy link
Contributor Author

I'm a little more tempted to stick with wiseguy's wrapper because it's kind of more of a "standard" in the community

Aww, that's so sad no one in the community had tested my first C program. :(
But that is ok, I just need to request some changes to replace mips-linux-gnu-cpp with just only cpp to work on some distros.

It's totally fine that you're not on discord

Well, I do have one but i use it frequently, plus i dont want to join that modding discord for my embarrassment and spoiled.

Pink Horned Man White Nose (who I shall refer to as PHMWN from here on) informed me we should be able to use an unmodified gcc 2.7.2.1 instead, to build libultra.

Here some instructions to compile the same versions that kmc uses, in windows 95 (i don't know if its the right way). it just needs some tweaks to work on linux.

Source tarballs that he used from the link:
https://ftp.gnu.org/gnu/binutils/binutils-2.8.1.tar.gz
https://ftp.gnu.org/old-gnu/gcc/gcc-2.7.2.3.tar.gz
https://ftp.gnu.org/gnu/make/make-3.82.tar.gz

@JoshDuMan
Copy link
Member

Yeah, the obvious upside of using GCC 2.7.2.1 is that we can actually support building on Mac, which means we won't need to include the assembly code as we do (which seems like a major upside to me).

@Alto1772
Copy link
Contributor Author

but there is a problem with that gcc version, it does not have the vr4300 mul bug fix option, so...

Also, this isn't a discussion for a plan to replace kmc gcc with gcc 2.7.2.1, make another issue for that. (I won't make another one, it's ur choice).

@ethteck
Copy link
Member

ethteck commented Jan 19, 2022

Well, I do have one but i use it frequently, plus i dont want to join that modding discord for my embarrassment and spoiled.

I don't understand why joining PMM would be embarrassing or what you would get spoiled. We don't share spoilers for anything in the decomp-64 channel. Maybe this is a language barrier thing?

Also, this isn't a discussion for a plan to replace kmc gcc with gcc 2.7.2.1, make another issue for that.

I appreciate your sporadic contributions to this project, but do not talk to project maintainers like this. This issue is related to what Josh and I are talking about, so it's totally fine to have the discussion here.

@ethteck
Copy link
Member

ethteck commented Jan 29, 2022

We just removed the kmc gcc wrapper from the repo, so this should no longer be a problem. Closing :)

@ethteck ethteck closed this as completed Jan 29, 2022
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

3 participants