GithubHelp home page GithubHelp logo

Comments (12)

bates64 avatar bates64 commented on August 22, 2024

@ethteck I thought Jenkins was partially using rpis to build?

from papermario.

ethteck avatar ethteck commented on August 22, 2024

I haven't used it in a while, so I can test it again soon. @Alto1772 could you provide more details on what failed? Did the build succeed but the checksum failed? Or does the build not finish?

from papermario.

Alto1772 avatar Alto1772 commented on August 22, 2024

here's my first ninja -v output from the last 12 lines:

[6636/6639] mips-linux-gnu-ld -r -b binary ver/us/build/assets.bin -o ver/us/build/assets.o
[6637/6639] mips-linux-gnu-ld -T ver/us/undefined_syms.txt -T ver/us/undefined_syms_auto.txt -T ver/us/undefined_funcs_auto.txt  -T ver/us/dead_syms.txt -Map ver/us/build/papermario.map --no-check-sections -T ver/us/build/papermario.ld -o ver/us/build/papermario.elf
[6638/6639] mips-linux-gnu-objcopy ver/us/build/papermario.elf ver/us/build/papermario.z64 -O binary && tools/n64crc ver/us/build/papermario.z64
BootChip: CIC-NUS-6103
CRC 1: 0x65EEE53A  Calculated: 0x65EEE69A (Bad, fixed)
CRC 2: 0xED7D733C  Calculated: 0x119C8F53 (Bad, fixed)
[6639/6639] sha1sum -c ver/us/checksum.sha1 && touch ver/us/build/ok
FAILED: ver/us/build/ok 
sha1sum -c ver/us/checksum.sha1 && touch ver/us/build/ok
ver/us/build/papermario.z64: FAILED
sha1sum: WARNING: 1 computed checksum did NOT match
ninja: build stopped: subcommand failed.

running ninja again gives the clearer result:

[1/6] link ver/jp/build/papermario.elf
[2/6] rom ver/jp/build/papermario.elf
BootChip: CIC-NUS-6103
CRC 1: 0x3BA7CDDC  Calculated: 0x3BA7CDDC (Good)
CRC 2: 0x464E52A0  Calculated: 0x464E52A0 (Good)
[3/6] compare
ver/jp/build/papermario.z64: OK
[4/6] link ver/us/build/papermario.elf
[5/6] rom ver/us/build/papermario.elf
BootChip: CIC-NUS-6103
CRC 1: 0x65EEE53A  Calculated: 0x65EEE69A (Bad, fixed)
CRC 2: 0xED7D733C  Calculated: 0x119C8F53 (Bad, fixed)
[6/6] compare
FAILED: ver/us/build/ok 
sha1sum -c ver/us/checksum.sha1 && touch ver/us/build/ok
ver/us/build/papermario.z64: FAILED
sha1sum: WARNING: 1 computed checksum did NOT match
ninja: build stopped: subcommand failed.

only the us version fails the checksum during this build.

from papermario.

ethteck avatar ethteck commented on August 22, 2024

Okay, so the checksum is just failing. Could you try ./first_diff.py to see where the first difference occurs? Or vbindiff?

from papermario.

Alto1772 avatar Alto1772 commented on August 22, 2024

./first_diff.py output:

First difference at ROM addr 0x3BDA4, osSetIntMask (RAM 0x80060940, ROM 0x3BD40, ver/us/build/asm/os/osSetIntMask.s.o)
Bytes: 95:4A:9A:9C vs 95:4A:9A:A0
Instruction difference at ROM addr 0x74E9C, D_80099AA0 (RAM 0x80099A9C, ROM 0x74E9C, ver/us/build/asm/os/osSetIntMask.s.o)
Bytes: 05:55:05:56 vs 00:00:00:00
Instruction difference at ROM addr 0x74F1C, jtbl_80099B20 (RAM 0x80099B1C, ROM 0x74F1C, ver/us/build/src/os/code_3c490_len_3c0.c.o)
Bytes: 80:06:13:D4 vs 0A:A9:0A:AA
Instruction difference at ROM addr 0x74F3C, D_80099B40 (RAM 0x80099B3C, ROM 0x74F3C, ver/us/build/src/os/code_3c940_len_140.c.o)
Bytes: 41:F0:00:00 vs 00:00:00:00
Instruction difference at ROM addr 0x74F4C, D_80099B50 (RAM 0x80099B4C, ROM 0x74F4C, ver/us/build/src/os/guLookAt.c.o)
Bytes: BF:F0:00:00 vs 00:00:00:00
Instruction difference at ROM addr 0x74F54, D_80099B58 (RAM 0x80099B54, ROM 0x74F54, ver/us/build/src/os/guLookAt.c.o)
Bytes: 3F:F0:00:00 vs 00:00:00:00

487 differing word(s).
To find ROM shifts, copy a clean .map file to ver/current/expected/build/papermario.map and rerun this script.

from papermario.

ethteck avatar ethteck commented on August 22, 2024

Thanks. I'll try to reproduce in a bit and see what's going on. I suspect it has to do with the recent support for addu in libultra

from papermario.

ethteck avatar ethteck commented on August 22, 2024

By the way, your old github bio was so good and we reference it from time to time lol

from papermario.

Alto1772 avatar Alto1772 commented on August 22, 2024

after that, i tested the unmatched compiled rom in the n64 emulator, and it crashes (sound still running) at the demo screen where mario ground pounds the sealed wooden platform at the windmill (after it fades to black).

from papermario.

ethteck avatar ethteck commented on August 22, 2024

I can confirm this issue is present on the mac build as well. Something is up with the rodata in world.c

from papermario.

ethteck avatar ethteck commented on August 22, 2024

I believe I fixed this, or at least I fixed the part of it that was also failing the osx build. Could you test the latest master commit @Alto1772 ?

from papermario.

Alto1772 avatar Alto1772 commented on August 22, 2024

yup, checksum is OK, no errors or interruptions during the build.
that's all i have to say.

from papermario.

ethteck avatar ethteck commented on August 22, 2024

Awesome! I'll close this one then. Thanks for the report :)

from papermario.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.