Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsuccessful make on windows 10 WSL 2 #1207

Closed
bigwhitechen opened this issue Apr 28, 2022 · 3 comments
Closed

Unsuccessful make on windows 10 WSL 2 #1207

bigwhitechen opened this issue Apr 28, 2022 · 3 comments

Comments

@bigwhitechen
Copy link

setting up: win10 WSL 2 ubuntu 18.04

successfully running 'make setup'
but get error running 'make'
error output:
python3 tools/asm_processor/build.py tools/ido_recomp/linux/7.1/cc -- mips-linux-gnu-as -march=vr4300 -32 -Iinclude -- -c -G 0 -non_shared -Xfullwarn -Xcpluscomm -Iinclude -Isrc -Iassets -Ibuild -I. -Wab,-r4300_mul -woff 649,838,712 -mips2 -O2 -o build/src/overlays/actors/ovl_En_Dodongo/z_en_dodongo.o src/overlays/actors/ovl_En_Dodongo/z_en_dodongo.c
gcc -fno-builtin -fsyntax-only -funsigned-char -std=gnu90 -D_LANGUAGE_C -DNON_MATCHING -Iinclude -Isrc -Iassets -Ibuild -I. -Wall -Wextra -Wno-format-security -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-variable -Wno-missing-braces -Wno-int-conversion -m32 src/overlays/actors/ovl_En_Dodongo/z_en_dodongo.c
python3 tools/asm_processor/build.py tools/ido_recomp/linux/7.1/cc -- mips-linux-gnu-as -march=vr4300 -32 -Iinclude -- -c -G 0 -non_shared -Xfullwarn -Xcpluscomm -Iinclude -Isrc -Iassets -Ibuild -I. -Wab,-r4300_mul -woff 649,838,712 -mips2 -O2 -o build/src/overlays/actors/ovl_En_Po_Relay/z_en_po_relay.o src/overlays/actors/ovl_En_Po_Relay/z_en_po_relay.c
gcc -fno-builtin -fsyntax-only -funsigned-char -std=gnu90 -D_LANGUAGE_C -DNON_MATCHING -Iinclude -Isrc -Iassets -Ibuild -I. -Wall -Wextra -Wno-format-security -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-variable -Wno-missing-braces -Wno-int-conversion -m32 src/overlays/actors/ovl_En_Po_Relay/z_en_po_relay.c
python3 tools/asm_processor/build.py tools/ido_recomp/linux/7.1/cc -- mips-linux-gnu-as -march=vr4300 -32 -Iinclude -- -c -G 0 -non_shared -Xfullwarn -Xcpluscomm -Iinclude -Isrc -Iassets -Ibuild -I. -Wab,-r4300_mul -woff 649,838,712 -mips2 -O2 -o build/src/overlays/actors/ovl_Bg_Bowl_Wall/z_bg_bowl_wall.o src/overlays/actors/ovl_Bg_Bowl_Wall/z_bg_bowl_wall.c
gcc -fno-builtin -fsyntax-only -funsigned-char -std=gnu90 -D_LANGUAGE_C -DNON_MATCHING -Iinclude -Isrc -Iassets -Ibuild -I. -Wall -Wextra -Wno-format-security -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-variable -Wno-missing-braces -Wno-int-conversion -m32 src/overlays/actors/ovl_Bg_Bowl_Wall/z_bg_bowl_wall.c
python3 tools/asm_processor/build.py tools/ido_recomp/linux/7.1/cc -- mips-linux-gnu-as -march=vr4300 -32 -Iinclude -- -c -G 0 -non_shared -Xfullwarn -Xcpluscomm -Iinclude -Isrc -Iassets -Ibuild -I. -Wab,-r4300_mul -woff 649,838,712 -mips2 -O2 -o build/src/overlays/actors/ovl_Bg_Hidan_Rock/z_bg_hidan_rock.o src/overlays/actors/ovl_Bg_Hidan_Rock/z_bg_hidan_rock.c
gcc -fno-builtin -fsyntax-only -funsigned-char -std=gnu90 -D_LANGUAGE_C -DNON_MATCHING -Iinclude -Isrc -Iassets -Ibuild -I. -Wall -Wextra -Wno-format-security -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-variable -Wno-missing-braces -Wno-int-conversion -m32 src/overlays/actors/ovl_Bg_Hidan_Rock/z_bg_hidan_rock.c
python3 tools/asm_processor/build.py tools/ido_recomp/linux/7.1/cc -- mips-linux-gnu-as -march=vr4300 -32 -Iinclude -- -c -G 0 -non_shared -Xfullwarn -Xcpluscomm -Iinclude -Isrc -Iassets -Ibuild -I. -Wab,-r4300_mul -woff 649,838,712 -mips2 -O2 -o build/src/overlays/actors/ovl_Demo_Gj/z_demo_gj.o src/overlays/actors/ovl_Demo_Gj/z_demo_gj.c
gcc -fno-builtin -fsyntax-only -funsigned-char -std=gnu90 -D_LANGUAGE_C -DNON_MATCHING -Iinclude -Isrc -Iassets -Ibuild -I. -Wall -Wextra -Wno-format-security -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-variable -Wno-missing-braces -Wno-int-conversion -m32 src/overlays/actors/ovl_Demo_Gj/z_demo_gj.c
python3 tools/asm_processor/build.py tools/ido_recomp/linux/7.1/cc -- mips-linux-gnu-as -march=vr4300 -32 -Iinclude -- -c -G 0 -non_shared -Xfullwarn -Xcpluscomm -Iinclude -Isrc -Iassets -Ibuild -I. -Wab,-r4300_mul -woff 649,838,712 -mips2 -O2 -o build/src/overlays/actors/ovl_Demo_Im/z_demo_im_cutscene_data.o src/overlays/actors/ovl_Demo_Im/z_demo_im_cutscene_data.c
cfe: Error: src/overlays/actors/ovl_Demo_Im/z_demo_im_cutscene_data.c:26: Missing ')' in macro instantiation
cfe: Error: src/overlays/actors/ovl_Demo_Im/z_demo_im_cutscene_data.c:26: Missing ')' in macro instantiation
Failed to compile file src/overlays/actors/ovl_Demo_Im/z_demo_im_cutscene_data.c. Command line:

tools/ido_recomp/linux/7.1/cc -c -G 0 -non_shared -Xfullwarn -Xcpluscomm -Iinclude -Isrc -Iassets -Ibuild -I. -Wab,-r4300_mul -woff 649,838,712 -mips2 -O2 -I /home/bigwhite/oot/src/overlays/actors/ovl_Demo_Im -o build/src/overlays/actors/ovl_Demo_Im/z_demo_im_cutscene_data.o /tmp/preprocessed9eo1owjf.c

Makefile:318: recipe for target 'build/src/overlays/actors/ovl_Demo_Im/z_demo_im_cutscene_data.o' failed
make: *** [build/src/overlays/actors/ovl_Demo_Im/z_demo_im_cutscene_data.o] Error 55

@Dragorn421
Copy link
Collaborator

As far as we know, this is an issue with the recompilation we have of the original compiler (IDO) used for OoT.

You can avoid this issue by not using the recompilation, and emulating the original compiler instead:

  1. Download qemu-irix from https://github.com/zeldaret/oot/releases/tag/0.1q
  2. Place it somewhere, preferably in the WSL filesystem (for example in your home directory ~)
  3. Change the permissions on qemu-irix to make it executable (for example chmod u+x qemu-irix)
  4. Run make with setting QEMU_IRIX to the path to your qemu-irix, and setting ORIG_COMPILER to 1 (for example make QEMU_IRIX=~/qemu-irix ORIG_COMPILER=1)

@bigwhitechen
Copy link
Author

As far as we know, this is an issue with the recompilation we have of the original compiler (IDO) used for OoT.

You can avoid this issue by not using the recompilation, and emulating the original compiler instead:

  1. Download qemu-irix from https://github.com/zeldaret/oot/releases/tag/0.1q
  2. Place it somewhere, preferably in the WSL filesystem (for example in your home directory ~)
  3. Change the permissions on qemu-irix to make it executable (for example chmod u+x qemu-irix)
  4. Run make with setting QEMU_IRIX to the path to your qemu-irix, and setting ORIG_COMPILER to 1 (for example make QEMU_IRIX=~/qemu-irix ORIG_COMPILER=1)

tools/ZAPD/ZAPD.out bblb -eh -i assets/objects/object_mori_tex/object_moriTex_Blob_000000.bin -o build/assets/objects/object_mori_tex/object_moriTex_Blob_000000.bin.inc.c
tools/ZAPD/ZAPD.out bblb -eh -i assets/objects/object_fr/object_fr_Blob_001D50.bin -o build/assets/objects/object_fr/object_fr_Blob_001D50.bin.inc.c
tools/ZAPD/ZAPD.out bblb -eh -i assets/objects/object_oE1s/object_oE1s_Blob_0015F8.bin -o build/assets/objects/object_oE1s/object_oE1s_Blob_0015F8.bin.inc.c
tools/ZAPD/ZAPD.out bblb -eh -i assets/objects/object_oE1s/object_oE1s_Blob_001C78.bin -o build/assets/objects/object_oE1s/object_oE1s_Blob_001C78.bin.inc.c
tools/ZAPD/ZAPD.out bblb -eh -i assets/objects/object_wood02/object_wood02_Blob_007A00.bin -o build/assets/objects/object_wood02/object_wood02_Blob_007A00.bin.inc.c
tools/ZAPD/ZAPD.out bblb -eh -i assets/objects/object_oE9/object_oE9_Blob_001290.bin -o build/assets/objects/object_oE9/object_oE9_Blob_001290.bin.inc.c
tools/ZAPD/ZAPD.out bblb -eh -i assets/objects/object_wf/object_wf_zeroes_Blob_0057B0.bin -o build/assets/objects/object_wf/object_wf_zeroes_Blob_0057B0.bin.inc.c
tools/ZAPD/ZAPD.out bblb -eh -i assets/objects/object_wf/object_wf_zeroes_Blob_0098D8.bin -o build/assets/objects/object_wf/object_wf_zeroes_Blob_0098D8.bin.inc.c
tools/ZAPD/ZAPD.out bblb -eh -i assets/objects/object_wf/object_wf_zeroes_Blob_00A4BC.bin -o build/assets/objects/object_wf/object_wf_zeroes_Blob_00A4BC.bin.inc.c
tools/ZAPD/ZAPD.out bblb -eh -i assets/objects/object_wf/object_wf_zeroes_Blob_004648.bin -o build/assets/objects/object_wf/object_wf_zeroes_Blob_004648.bin.inc.c
tools/ZAPD/ZAPD.out bblb -eh -i assets/objects/object_wf/object_wf_zeroes_Blob_004AE0.bin -o build/assets/objects/object_wf/object_wf_zeroes_Blob_004AE0.bin.inc.c
tools/ZAPD/ZAPD.out bblb -eh -i assets/objects/object_wf/object_wf_zeroes_Blob_005440.bin -o build/assets/objects/object_wf/object_wf_zeroes_Blob_005440.bin.inc.c
tools/ZAPD/ZAPD.out bblb -eh -i assets/objects/object_ta/object_ta_Blob_00B4B8.bin -o build/assets/objects/object_ta/object_ta_Blob_00B4B8.bin.inc.c
tools/ZAPD/ZAPD.out bblb -eh -i assets/scenes/indoors/miharigoya/gMiharigoyaBlob_0038D8.bin -o build/assets/scenes/indoors/miharigoya/gMiharigoyaBlob_0038D8.bin.inc.c
python3 tools/msgenc.py assets/text/charmap.txt assets/text/message_data.h build/assets/text/message_data.enc.h
make: python3: Command not found
Makefile:300: recipe for target 'build/assets/text/message_data.enc.h' failed
make: *** [build/assets/text/message_data.enc.h] Error 127

after following your instructions, I got another type of error, and still not working

but i found another solution on discord:
微信截图_20220428155138

@Dragorn421
Copy link
Collaborator

Good to hear it's working now :)

For what it's worth,
make: python3: Command not found
Would indicate you don't have python3, but installing that is part of the installation instructions in the readme, and the setup/build process should have failed much earlier I think if you really don't have it 🤔 weird
And what I suggested shouldn't mess with it at all either 😅

Anyway if it works now, good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants