Gb-studio: Error when running or exporting project (missing file on appdata)

Created on 23 Apr 2019  路  7Comments  路  Source: chrismaltby/gb-studio

I created a project containing the default sample project, and didn't change a thing.
When attempted to run or export (web or ROM) I got this error:
... \AppData\Local\Temp/_gbs/gbdk/lib/small/asxxxx/gb/cr.: cannot open. 4294967295

I searched for this file and it is not there (also ran the .exe as admin, got the same).

OS: Windows 10 pro x64
Processor: Intel Core i5-7500T

_(btw, this project is amazing, congrats!)_

help wanted

All 7 comments

Thanks Diego.
By any chance does your Windows user folder contain a space? Or is it a particularly long username?
I've seen an issue only on Windows where the compiler doesn't like it if any file paths are too long
Could you open an Explorer window to the following folder
%localappdata%\Temp\_gbs\gbdk\lib\small\asxxxx\gb
I believe it's looking for crt0.o in that folder but the filename is getting cropped (by 4 characters)

The full path is
C:\Users\Desenvolvimento\AppData\Local\Temp\_gbs\gbdk\lib\small\asxxxx\gb

It worked fine when using %localappdata%\Temp\_gbs\gbdk\lib\small\asxxxx\gb

There is indeed a file called crt0.o on the folder, but the error mentions only cr., what do you mean by _"the filename is getting cropped (by 4 characters)"_ ? Why would this happen?

I think it's an issue with gbdk, the application I'm using to compile the ROM file (the last official Windows version is from August 2000) and from what I can tell the Windows version isn't allowing filenames over what looks like 76 characters. The Mac and Linux versions seemed to get a few more years of updates and are generally a bit more stable. Going to request for help if anyone has any suggestions where I could get a more up to date version for Windows (it's possible someone forked it and I've missed it).

As an alternative, I could make it try an alternate folder if it fails (say maybe C:\GBStudioTools) and I can provide a zip so that you can manually place the build tools in a location with a short path name. Not being a Windows user myself, could you maybe suggest a location where people aren't going to be too annoyed about these files going (that also would have a short filename) or do you think C:\GBStudioTools would work?

_"where people aren't going to be too annoyed about these files going"_

I personally don't care at all about it going directly at C:, but maybe people rather it on C:\Program Files\GBStudioTools

I've found a fork of gbdk used by users from retro forums: andreasjhkarlsson/gbdk-n

That fork cannot handle banking, which considering the bloated code size produced by SDCC (the back-end compiler), is particularly crippling.

I believe this issue is now fixed in the current dev builds and also the 1.1.1 release (only on Itch.io right now)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Veund picture Veund  路  3Comments

Veund picture Veund  路  5Comments

timsamoff picture timsamoff  路  4Comments

cubicstyle picture cubicstyle  路  3Comments

timsamoff picture timsamoff  路  4Comments