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

Can't compile GSM from source #4

Open
Ratintosh opened this issue Feb 16, 2022 · 0 comments
Open

Can't compile GSM from source #4

Ratintosh opened this issue Feb 16, 2022 · 0 comments

Comments

@Ratintosh
Copy link

Whenever I run "make", I get loads of invalid operand errors and I honestly have no idea why. I can build other PS2 apps just fine but this one seems different. I've got PS2SDK installed and everything. Below is the errors I keep getting when trying to make the project.

$ make
gsm_engine.S: Assembler messages:
gsm_engine.S:206: Warning: .ent or .aent not in text section
gsm_engine.S:515: Warning: .end not in text section
gsm_engine.S:523: Warning: .ent or .aent not in text section
gsm_engine.S:797: Error: invalid operands `andi $t5,$t0,0x0FFF'
gsm_engine.S:798: Error: invalid operands `mflo $t4'
gsm_engine.S:799: Error: invalid operands `addi $t6,$t5,1'
gsm_engine.S:801: Error: operand 2 must be constant `divu $zero,$t6,$t4'
gsm_engine.S:807: Error: invalid operands `or $t7,$zero,$t5'
gsm_engine.S:808: Error: operand 2 must be constant `sub $t0,$t6,$t4'
gsm_engine.S:809: Error: invalid operands `li $t4,0'
gsm_engine.S:820: Error: invalid operands `mult $t4,$t0'
gsm_engine.S:824: Error: invalid operands `addi $t7,$t1,-1'
gsm_engine.S:825: Error: invalid operands `addi $t4,$t0,-1'
gsm_engine.S:826: Error: operand 2 must be constant `sub $t0,$t5,$t7'
gsm_engine.S:837: Error: invalid operands `add $t6,$t0,$t1'
gsm_engine.S:838: Error: invalid operands `bltzl $t6,have_DISPLAY1_write_5'
gsm_engine.S:839: Error: invalid operands `and $t6,$t6,$zero'
gsm_engine.S:842: Error: operand 3 must be constant `sub $t0,$t1,$t6'
gsm_engine.S:844: Error: invalid operands `add $t7,$t7,$t0'
gsm_engine.S:847: Error: invalid operands `andi $t7,$t7,0x0FFF'
gsm_engine.S:848: Error: invalid operands `andi $t4,$t4,0x000F'
gsm_engine.S:849: Error: invalid operands `andi $t6,$t6,0x0FFF'
gsm_engine.S:850: Error: operand 2 must be constant `dsll32 $t0,$t7,0'
gsm_engine.S:852: Error: operand 2 must be constant `dsll $t0,$t4,23'
gsm_engine.S:857: Error: invalid operands `add $t6,$t6,$t1'
gsm_engine.S:858: Error: invalid operands `bgez $t6,have_DISPLAY1_write_7'
gsm_engine.S:860: Error: invalid operands `move $t6,$zero'
gsm_engine.S:862: Error: invalid operands `andi $t6,$t6,0x0FFF'
gsm_engine.S:864: Error: operand 3 must be constant `or $v0,$v0,$t6'
gsm_engine.S:887: Error: invalid operands `andi $t5,$t0,0x07FF'
gsm_engine.S:888: Error: invalid operands `mflo $t4'
gsm_engine.S:889: Error: invalid operands `addi $t6,$t5,1'
gsm_engine.S:891: Error: operand 2 must be constant `divu $zero,$t6,$t4'
gsm_engine.S:897: Error: invalid operands `or $t7,$zero,$t5'
gsm_engine.S:898: Error: operand 2 must be constant `sub $t0,$t6,$t4'
gsm_engine.S:899: Error: invalid operands `li $t4,0'
gsm_engine.S:910: Error: invalid operands `mult $t4,$t0'
gsm_engine.S:914: Error: invalid operands `addi $t7,$t1,-1'
gsm_engine.S:915: Error: invalid operands `addi $t4,$t0,-1'
gsm_engine.S:916: Error: operand 2 must be constant `sub $t0,$t5,$t7'
gsm_engine.S:928: Error: invalid operands `add $t6,$t0,$t1'
gsm_engine.S:929: Error: invalid operands `bltzl $t6,have_DISPLAY1_write_11'
gsm_engine.S:930: Error: invalid operands `and $t6,$t6,$zero'
gsm_engine.S:933: Error: operand 3 must be constant `sub $t0,$t1,$t6'
gsm_engine.S:935: Error: invalid operands `add $t7,$t7,$t0'
gsm_engine.S:945: Error: invalid operands `beql $t4,$zero,have_DISPLAY1_write_13'
gsm_engine.S:946: Error: invalid operands `addi $t4,$t4,1'
gsm_engine.S:947: Error: invalid operands `addi $t4,$t4,2'
gsm_engine.S:948: Error: operand 2 must be constant `addi $t0,$t4,-4'
gsm_engine.S:950: Error: invalid operands `ori $t4,$zero,3'
gsm_engine.S:953: Error: invalid operands `andi $t7,$t7,0x07FF'
gsm_engine.S:954: Error: invalid operands `andi $t4,$t4,0x0003'
gsm_engine.S:955: Error: invalid operands `andi $t6,$t6,0x07FF'
gsm_engine.S:956: Error: operand 2 must be constant `dsll32 $t0,$t7,12'
gsm_engine.S:958: Error: operand 2 must be constant `dsll $t0,$t4,27'
gsm_engine.S:963: Error: invalid operands `add $t6,$t6,$t1'
gsm_engine.S:964: Error: invalid operands `bgez $t6,have_DISPLAY1_write_14'
gsm_engine.S:966: Error: invalid operands `move $t6,$zero'
gsm_engine.S:968: Error: invalid operands `andi $t6,$t6,0x07FF'
gsm_engine.S:970: Error: operand 2 must be constant `dsll $t0,$t6,12'
gsm_engine.S:1038: Error: invalid operands `andi $t5,$t0,0x0FFF'
gsm_engine.S:1039: Error: invalid operands `mflo $t4'
gsm_engine.S:1040: Error: invalid operands `addi $t6,$t5,1'
gsm_engine.S:1042: Error: operand 2 must be constant `divu $zero,$t6,$t4'
gsm_engine.S:1048: Error: invalid operands `or $t7,$zero,$t5'
gsm_engine.S:1049: Error: operand 2 must be constant `sub $t0,$t6,$t4'
gsm_engine.S:1050: Error: invalid operands `li $t4,0'
gsm_engine.S:1061: Error: invalid operands `mult $t4,$t0'
gsm_engine.S:1065: Error: invalid operands `addi $t7,$t1,-1'
gsm_engine.S:1066: Error: invalid operands `addi $t4,$t0,-1'
gsm_engine.S:1067: Error: operand 2 must be constant `sub $t0,$t5,$t7'
gsm_engine.S:1078: Error: invalid operands `add $t6,$t0,$t1'
gsm_engine.S:1079: Error: invalid operands `bltzl $t6,have_DISPLAY2_write_5'
gsm_engine.S:1080: Error: invalid operands `and $t6,$t6,$zero'
gsm_engine.S:1083: Error: operand 3 must be constant `sub $t0,$t1,$t6'
gsm_engine.S:1085: Error: invalid operands `add $t7,$t7,$t0'
gsm_engine.S:1088: Error: invalid operands `andi $t7,$t7,0x0FFF'
gsm_engine.S:1089: Error: invalid operands `andi $t4,$t4,0x000F'
gsm_engine.S:1090: Error: invalid operands `andi $t6,$t6,0x0FFF'
gsm_engine.S:1091: Error: operand 2 must be constant `dsll32 $t0,$t7,0'
gsm_engine.S:1093: Error: operand 2 must be constant `dsll $t0,$t4,23'
gsm_engine.S:1098: Error: invalid operands `add $t6,$t6,$t1'
gsm_engine.S:1099: Error: invalid operands `bgez $t6,have_DISPLAY2_write_7'
gsm_engine.S:1101: Error: invalid operands `move $t6,$zero'
gsm_engine.S:1103: Error: invalid operands `andi $t6,$t6,0x0FFF'
gsm_engine.S:1105: Error: operand 3 must be constant `or $v0,$v0,$t6'
gsm_engine.S:1128: Error: invalid operands `andi $t5,$t0,0x07FF'
gsm_engine.S:1129: Error: invalid operands `mflo $t4'
gsm_engine.S:1130: Error: invalid operands `addi $t6,$t5,1'
gsm_engine.S:1132: Error: operand 2 must be constant `divu $zero,$t6,$t4'
gsm_engine.S:1138: Error: invalid operands `or $t7,$zero,$t5'
gsm_engine.S:1139: Error: operand 2 must be constant `sub $t0,$t6,$t4'
gsm_engine.S:1140: Error: invalid operands `li $t4,0'
gsm_engine.S:1151: Error: invalid operands `mult $t4,$t0'
gsm_engine.S:1155: Error: invalid operands `addi $t7,$t1,-1'
gsm_engine.S:1156: Error: invalid operands `addi $t4,$t0,-1'
gsm_engine.S:1157: Error: operand 2 must be constant `sub $t0,$t5,$t7'
gsm_engine.S:1169: Error: invalid operands `add $t6,$t0,$t1'
gsm_engine.S:1170: Error: invalid operands `bltzl $t6,have_DISPLAY2_write_11'
gsm_engine.S:1171: Error: invalid operands `and $t6,$t6,$zero'
gsm_engine.S:1174: Error: operand 3 must be constant `sub $t0,$t1,$t6'
gsm_engine.S:1176: Error: invalid operands `add $t7,$t7,$t0'
gsm_engine.S:1186: Error: invalid operands `beql $t4,$zero,have_DISPLAY2_write_13'
gsm_engine.S:1187: Error: invalid operands `addi $t4,$t4,1'
gsm_engine.S:1188: Error: invalid operands `addi $t4,$t4,2'
gsm_engine.S:1189: Error: operand 2 must be constant `addi $t0,$t4,-4'
gsm_engine.S:1191: Error: invalid operands `ori $t4,$zero,3'
gsm_engine.S:1194: Error: invalid operands `andi $t7,$t7,0x07FF'
gsm_engine.S:1195: Error: invalid operands `andi $t4,$t4,0x0003'
gsm_engine.S:1196: Error: invalid operands `andi $t6,$t6,0x07FF'
gsm_engine.S:1197: Error: operand 2 must be constant `dsll32 $t0,$t7,12'
gsm_engine.S:1199: Error: operand 2 must be constant `dsll $t0,$t4,27'
gsm_engine.S:1204: Error: invalid operands `add $t6,$t6,$t1'
gsm_engine.S:1205: Error: invalid operands `bgez $t6,have_DISPLAY2_write_14'
gsm_engine.S:1207: Error: invalid operands `move $t6,$zero'
gsm_engine.S:1209: Error: invalid operands `andi $t6,$t6,0x07FF'
gsm_engine.S:1211: Error: operand 2 must be constant `dsll $t0,$t6,12'
gsm_engine.S:1498: Warning: .end not in text section
gsm_engine.S:1505: Warning: .ent or .aent not in text section
gsm_engine.S:1519: Error: invalid operands `sq $t4,0xC0($a0)'
gsm_engine.S:1520: Error: invalid operands `sq $t5,0xD0($a0)'
gsm_engine.S:1525: Error: invalid operands `lui $t5,(KSEG>>16)'
gsm_engine.S:1530: Error: operand 3 must be constant `or $a0,$zero,$t4'
gsm_engine.S:1537: Error: invalid operands `or $t4,$zero,$a0'
gsm_engine.S:1538: Error: invalid operands `lw $a2,%lo(Pattern_Code_Ptr)($t5)'
gsm_engine.S:1539: Error: invalid operands `lw $a3,%lo(Pattern_Mask_Ptr)($t5)'
gsm_engine.S:1564: Error: operand 3 must be constant `or $a0,$zero,$t4'
gsm_engine.S:1565: Error: invalid operands `lw $a1,%lo(Replacement_Code_Ptr)($t5)'
gsm_engine.S:1582: Error: invalid operands `lq $t5,0xD0($a0)'
gsm_engine.S:1583: Error: invalid operands `lq $t4,0xC0($a0)'
gsm_engine.S:1594: Warning: .end not in text section
make: *** [/usr/local/ps2dev/ps2sdk/samples/Makefile.eeglobal:72: gsm_engine.o] Error 1

Honestly any help would be really appreciated.

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

1 participant