Dwedit's Board

Enjoy the board

You are not logged in.

Announcement

User passwords may have been corrupted, if you can't log in, use the "Forgot Password" feature. If you still can't log in, contact me and I can try to manually reset your password.

#1 2022-06-02 9:55:02 am

PrgmrAtHrt
Member
Registered: 2021-08-01
Posts: 5

PocketNES will not compile with current DevkitARM

Unfortunately, as of the transition to GCC 12 with the newest DevkitARM update, PocketNES will no longer compile. It hits an internal compiler error at the "C_entry" function.

Last edited by PrgmrAtHrt (2022-06-02 9:56:05 am)

Offline

#2 2022-06-02 12:00:16 pm

Dwedit
Administrator
From: Chicago
Registered: 2004-12-12
Posts: 1,018
Website

Re: PocketNES will not compile with current DevkitARM

Thanks, will check it out.

edit: If I comment out the two while loops, it builds without internal compiler errors.

		//advance past first null
		while (*s++ != 0);
		//advance past second null
		while (*s++ != 0);

Edit 2: A minimal program which triggers the internal error:  (Build with -Os)

int main()
{
	{
		char *s=(char*)0x0203fc08;
		//advance past first null
		while (*s++ != 0);
		//advance past second null
		while (*s++ != 0);
	}
	return 0;
}

"We are merely sprites that dance at the beck and call of our button pressing overlord."

Offline

#3 2022-06-02 12:31:51 pm

PrgmrAtHrt
Member
Registered: 2021-08-01
Posts: 5

Re: PocketNES will not compile with current DevkitARM

Thanks for the quick response and fix!

Offline

#4 2022-06-02 12:41:56 pm

Dwedit
Administrator
From: Chicago
Registered: 2004-12-12
Posts: 1,018
Website

Re: PocketNES will not compile with current DevkitARM

It's not really a fix, removing that code breaks pogoshell support.  Declaring the variable "s" as volatile seems to be a temporary actual fix.

I've sent a small report of the issue to the devkitarm forum.


Also, look at the branch named "mapper_overlays_and_compy" on github rather than the main branch for now.


"We are merely sprites that dance at the beck and call of our button pressing overlord."

Offline

#5 2022-06-02 1:11:24 pm

PrgmrAtHrt
Member
Registered: 2021-08-01
Posts: 5

Re: PocketNES will not compile with current DevkitARM

I was going to mention making the pointer volatile, but you beat me to it. At least there's a workaround for now.

Last edited by PrgmrAtHrt (2022-06-02 1:57:24 pm)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman