Dwedit's Board

Enjoy the board

You are not logged in.

Announcement

Welcome, fellow visitors from other websites!
Whenever you download a file, I'd appreciate it if you posted a nice "Thank You" message, then tell me which site you came from. Thanks.
- Dwedit

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

PrgmrAtHrt
Slime
Slime
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
Alex Trebek (Administrator)
From: Chicago
Registered: 2004-12-12
Posts: 985
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
Slime
Slime
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
Alex Trebek (Administrator)
From: Chicago
Registered: 2004-12-12
Posts: 985
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
Slime
Slime
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

Quick reply

Write your message and submit

Board footer

Powered by FluxBB