Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2018-05-05 14:23:51

Theohmguy
Member
Registered: 2016-07-06
Post 14/21

I need help to solve a problem. (Pokered)

Recently, I opened my Cygwin terminal, and it said It could not fork child process. So I reinstalled cygwin, but when i tried to build the rom again, it said this:


$ make red
rgbasm -D _RED -h -o main_red.o main.asm
warning: main.asm(15) -> home.asm(118) -> home/overworld.asm(1998):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(15) -> home.asm(893) -> home/vcopy.asm(126):
    'LD HL,[SP+e8]' is obsolete, use 'LD HL,SP+e8' instead.
warning: main.asm(15) -> home.asm(893) -> home/vcopy.asm(208):
    'LD HL,[SP+e8]' is obsolete, use 'LD HL,SP+e8' instead.
warning: main.asm(15) -> home.asm(893) -> home/vcopy.asm(241):
    'LD HL,[SP+e8]' is obsolete, use 'LD HL,SP+e8' instead.
warning: main.asm(15) -> home.asm(893) -> home/vcopy.asm(293):
    'LD HL,[SP+e8]' is obsolete, use 'LD HL,SP+e8' instead.
warning: main.asm(15) -> home.asm(893) -> home/vcopy.asm(319):
    'LD HL,[SP+e8]' is obsolete, use 'LD HL,SP+e8' instead.
warning: main.asm(15) -> home.asm(893) -> home/vcopy.asm(363):
    'LD HL,[SP+e8]' is obsolete, use 'LD HL,SP+e8' instead.
warning: main.asm(15) -> home.asm(2946):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(15) -> home.asm(4396):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(15) -> home.asm(4554) -> home/predef.asm(27):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(15) -> home.asm(4579):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(585) -> engine/overworld/movement.asm(225) -> lb(1):
    Left shift of negative value: -1
warning: main.asm(587) -> engine/cable_club.asm(307):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(1188):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(2179):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(2978) -> engine/items/items.asm(16):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(4807) -> engine/menu/start_sub_menus.asm(121):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(5492) -> engine/slot_machine.asm(454):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(5505) -> engine/battle/trainer_ai.asm(54):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(5505) -> engine/battle/trainer_ai.asm(369):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(5526) -> engine/battle/core.asm(3207):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(5526) -> engine/battle/core.asm(5747):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(5526) -> engine/battle/core.asm(7196):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(5532) -> engine/trade.asm(49):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(5532) -> engine/trade.asm(657) -> lb(1):
    Left shift of negative value: -4
warning: main.asm(6691) -> engine/battle/battle_transitions.asm(65):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(6692) -> engine/town_map.asm(450) -> lb(1):
    Left shift of negative value: -4
warning: main.asm(6695) -> engine/palettes.asm(20):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(6833) -> engine/battle/animations.asm(216):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(6833) -> engine/battle/animations.asm(459):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(6833) -> engine/battle/animations.asm(644):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(6833) -> engine/battle/animations.asm(1082):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(6837) -> engine/overworld/ssanne.asm(19):
    'JP [HL]' is obsolete, use 'JP HL' instead.
warning: main.asm(15) -> home.asm(893) -> home/vcopy.asm(126):
    'LD HL,[SP+e8]' is obsolete, use 'LD HL,SP+e8' instead.
warning: main.asm(15) -> home.asm(893) -> home/vcopy.asm(208):
    'LD HL,[SP+e8]' is obsolete, use 'LD HL,SP+e8' instead.
warning: main.asm(15) -> home.asm(893) -> home/vcopy.asm(241):
    'LD HL,[SP+e8]' is obsolete, use 'LD HL,SP+e8' instead.
warning: main.asm(15) -> home.asm(893) -> home/vcopy.asm(293):
    'LD HL,[SP+e8]' is obsolete, use 'LD HL,SP+e8' instead.
warning: main.asm(15) -> home.asm(893) -> home/vcopy.asm(319):
    'LD HL,[SP+e8]' is obsolete, use 'LD HL,SP+e8' instead.
warning: main.asm(15) -> home.asm(893) -> home/vcopy.asm(363):
    'LD HL,[SP+e8]' is obsolete, use 'LD HL,SP+e8' instead.
warning: main.asm(585) -> engine/overworld/movement.asm(225) -> lb(1):
    Left shift of negative value: -1
warning: main.asm(5532) -> engine/trade.asm(657) -> lb(1):
    Left shift of negative value: -4
warning: main.asm(6692) -> engine/town_map.asm(450) -> lb(1):
    Left shift of negative value: -4
rgblink -n pokered.sym -o pokered.gbc audio_red.o main_red.o text_red.o wram_red.o
error: audio_red.o: Invalid file or object file version [RGB2]
Makefile:47: recipe for target 'pokered.gbc' failed
make: *** [pokered.gbc] Error 1

Do someone know how can I fix it?

Offline

#2 2018-05-05 17:10:36

Danny-E 33
Administrator
Registered: 2012-06-09
Post 1,088/1,119

Re: I need help to solve a problem. (Pokered)

The only actual error that is stopping it from building is "Invalid file or object file version" which means you probably recently upgraded to a new rgbds version, but the Makefile is trying to reuse old .o files, which are being rejected by rgbds. Doing a 'make clean' then 'make' would fix this.

All the warnings about instruction syntax being "obsolete" means you need to update your repo. If you are using an unmodified repo, just do 'git pull'
I've never seen the warnings about the lb macro and the negative shift values, but hopefully pulling will fix those warnings too.

Offline

#3 2018-05-05 19:32:35

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 3,545/3,578

Re: I need help to solve a problem. (Pokered)

I'm thinking that's a newer rgbds thing, because someone was trying to setup polished crystal last night with a new cygwin/rgbds/everything and he was also having it yell at him about the lb macro and left-shift on those type of values too.

Offline

#4 2018-05-06 15:57:31

Danny-E 33
Administrator
Registered: 2012-06-09
Post 1,089/1,119

Re: I need help to solve a problem. (Pokered)

Ah, yeah, I can confirm it's a new warning added to v0.3.7 a couple days ago.

There are lines like 'lb hl, -4, -4' to put -4 ($FC) into h and -4 into l with one instruction, instead of writing 'ld hl, $FCFC'
In my opinion, this warning isn't really necessary or helpful.
But of course, it's harmless.

Offline

#5 2018-05-12 13:41:00

Theohmguy
Member
Registered: 2016-07-06
Post 15/21

Re: I need help to solve a problem. (Pokered)

Thank you. I fixed "Invalid file or object file version", but i still got the obsolete error, and when I tried to type "git pull", this happened:

$ git pull
Updating fc474c8e..98f09b6d
error: Your local changes to the following files would be overwritten by merge:
        INSTALL.md
        Makefile
        README.md
        audio.asm
        audio/engine_1.asm
        audio/engine_2.asm
        audio/engine_3.asm
        audio/headers/sfxheaders1.asm
        audio/headers/sfxheaders2.asm
        audio/headers/sfxheaders3.asm
        audio/music/bikeriding.asm
        audio/music/celadon.asm
        audio/music/cinnabar.asm
        audio/music/cinnabarmansion.asm
        audio/music/cities1.asm
        audio/music/cities2.asm
        audio/music/credits.asm
        audio/music/defeatedgymleader.asm
        audio/music/defeatedtrainer.asm
        audio/music/defeatedwildmon.asm
        audio/music/dungeon1.asm
        audio/music/dungeon2.asm
        audio/music/dungeon3.asm
        audio/music/finalbattle.asm
        audio/music/gamecorner.asm
        audio/music/gym.asm
        audio/music/gymleaderbattle.asm
        audio/music/halloffame.asm
        audio/music/indigoplateau.asm
        audio/music/introbattle.asm
        audio/music/jigglypuffsong.asm
        audio/music/lavender.asm
        audio/music/meeteviltrainer.asm
        audio/music/meetfemaletrainer.asm
        audio/music/meetmaletrainer.asm
        audio/music/meetprofoak.asm
        audio/music/meetrival.asm
        audio/music/museumguy.asm
        audio/music/oakslab.asm
        audio/music/pallettown.asm
        audio/music/pkmnhealed.asm
        audio/music/pokecenter.asm
        audio/music/pokemontower.asm
        audio/music/routes1.asm
        audio/music/routes2.asm
        audio/music/routes3.asm
        audio/music/routes4.asm
        audio/music/safarizone.asm
        audio/music/silphco.asm
        audio/music/ssanne.asm
        audio/music/surfing.asm
        audio/music/titlescreen.asm
        audio/music/trainerbattle.asm
        audio/music/unusedsong.asm
        audio/music/vermilion.asm
        audio/music/wildbattle.asm
        audio/sfx/59_1.asm
        audio/sfx/59_3.asm
        audio/sfx/arrow_tiles_1.asm
        audio/sfx/arrow_tiles_3.asm
        audio/sfx/ball_poof.asm
        audio/sfx/ball_toss.asm
        audio/sfx/battle_09.asm
        audio/sfx/battle_0b.asm
        audio/sfx/battle_0c.asm
        audio/sfx/battle_0d.asm
        audio/sfx/battle_0e.asm
        audio/sfx/battle_0f.asm
        audio/sfx/battle_12.asm
        audio/sfx/battle_13.asm
        audio/sfx/battle_14.asm
        audio/sfx/battle_16.asm
        audio/sfx/battle_17.asm
        audio/sfx/battle_18.asm
        audio/sfx/battle_19.asm
        audio/sfx/battle_1b.asm
        audio/sfx/battle_1c.asm
        audio/sfx/battle_1e.asm
        audio/sfx/battle_20.asm
        audio/sfx/battle_21.asm
        audio/sfx/battle_22.asm
        audio/sfx/battle_23.asm
        audio/sfx/battle_24.asm
        audio/sfx/battle_25.asm
        audio/sfx/battle_26.asm
        audio/sfx/battle_27.asm
        audio/sfx/battle_28.asm
        audio/sfx/battle_29.asm
        audio/sfx/battle_2a.asm
        audio/sfx/battle_2b.asm
        audio/sfx/battle_2c.asm
        audio/sfx/battle_2e.asm
        audio/sfx/battle_2f.asm
        audio/sfx/battle_31.asm
        audio/sfx/battle_32.asm
        audio/sfx/battle_33.asm
        audio/sfx/battle_34.asm
        audio/sfx/battle_35.asm
        audio/sfx/battle_36.asm
        audio/sfx/caught_mon.asm
        audio/sfx/collision_1.asm
        audio/sfx/collision_3.asm
        audio/sfx/cry00_1.asm
        audio/sfx/cry00_2.asm
        audio/sfx/cry00_3.asm
        audio/sfx/cry01_1.asm
        audio/sfx/cry01_2.asm
        audio/sfx/cry01_3.asm
        audio/sfx/cry02_1.asm
        audio/sfx/cry02_2.asm
        audio/sfx/cry02_3.asm
        audio/sfx/cry03_1.asm
        audio/sfx/cry03_2.asm
        audio/sfx/cry03_3.asm
        audio/sfx/cry04_1.asm
        audio/sfx/cry04_2.asm
        audio/sfx/cry04_3.asm
        audio/sfx/cry05_1.asm
        audio/sfx/cry05_2.asm
        audio/sfx/cry05_3.asm
        audio/sfx/cry06_1.asm
        audio/sfx/cry06_2.asm
        audio/sfx/cry06_3.asm
        audio/sfx/cry07_1.asm
        audio/sfx/cry07_2.asm
        audio/sfx/cry07_3.asm
        audio/sfx/cry08_1.asm
        audio/sfx/cry08_2.asm
        audio/sfx/cry08_3.asm
        audio/sfx/cry09_1.asm
        audio/sfx/cry09_2.asm
        audio/sfx/cry09_3.asm
        audio/sfx/cry0a_1.asm
        audio/sfx/cry0a_2.asm
        audio/sfx/cry0a_3.asm
        audio/sfx/cry0b_1.asm
        audio/sfx/cry0b_2.asm
        audio/sfx/cry0b_3.asm
        audio/sfx/cry0c_1.asm
        audio/sfx/cry0c_2.asm
        audio/sfx/cry0c_3.asm
        audio/sfx/cry0d_1.asm
        audio/sfx/cry0d_2.asm
        audio/sfx/cry0d_3.asm
        audio/sfx/cry0e_1.asm
        audio/sfx/cry0e_2.asm
        audio/sfx/cry0e_3.asm
        audio/sfx/cry0f_1.asm
        audio/sfx/cry0f_2.asm
        audio/sfx/cry0f_3.asm
        audio/sfx/cry10_1.asm
        audio/sfx/cry10_2.asm
        audio/sfx/cry10_3.asm
        audio/sfx/cry11_1.asm
        audio/sfx/cry11_2.asm
        audio/sfx/cry11_3.asm
        audio/sfx/cry12_1.asm
        audio/sfx/cry12_2.asm
        audio/sfx/cry12_3.asm
        audio/sfx/cry13_1.asm
        audio/sfx/cry13_2.asm
        audio/sfx/cry13_3.asm

Aborting

Offline

#6 2018-05-14 17:00:56

Danny-E 33
Administrator
Registered: 2012-06-09
Post 1,090/1,119

Re: I need help to solve a problem. (Pokered)

I said

Danny-E 33 wrote:

If you are using an unmodified repo, just do 'git pull'

The git pull failed because you have a lot of uncommitted changes.
If all of those changed files are intentional, then you need to commit all of them.
If they are unintentional or not important, then you need to reset them.

After that, you can do git pull again.

If you are new to git and don't understand some of what I'm saying, do some reading online for a while to get a good understanding of git.

Offline

Board footer

Powered by FluxBB