-
Notifications
You must be signed in to change notification settings - Fork 1.2k
configure: error: cannot compute suffix of object files: cannot compile #1520
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
Comments
Can you check the |
Please describe all steps needed to reproduce this from scratch and capture and attach your failing build log. That's all steps from the initial This error can occur if you haven't done a clean build - e.g.: This issue explains how to successfully add a simple custom instruction to the toolchain so there's obviously nothing wrong with the toolchain from that point of view: |
Hello, but this error is not related and i think its not even the reason for terminating the process. |
It seems you environment need a default gcc to do the make task, please check if you have install the Prerequisites in README mentioned. |
Yes I already did. I am using the toolchain for other cores without any issue. Also when I add a new instruction to INSN_CLASS_I class it work fine. but when i try to add new instruction to INSN_CLASS_F_INX class here i face the issue. I need to add the instruction as described up but I class dont have m and R3. Actually if you can help me to add new_inst Rd,R1,R2,R3,m |
Does the toolchain build for you ok if you don't make any changes to add custom instructions? |
Yes it work fine. And as I said when i added I class new instruction it also worked. Its just the f class that didnt work for me. i mean the format new_inst Rd,R1,R2,R3,m that i want to add. I added normal new_inst Rd,R1,R2 and it worked. |
What I am actually trying to do is to add new instruction that takes 3 operands and have func3[14:12] and m[26:25], m here is a control signal. so the assembly code should look like this |
Does this issue help at all? |
It helped but how can I test the new instruction. I tried this code: // Function to use the custom instruction int main() {
} |
You need to figure out what's wrong with your code and its use of inline assembly. You probably need to read the GCC inline assembly documentation carefully. |
the code works fine with fmadd.s but not the new instruction even tho i build them the same. |
and what is the different between INSERT_OPERAND (RS1, *ip, regno); USE_BITS (OP_MASK_RS2, OP_SH_RS2) and INSERT_OPERAND (RS1, insn, va_arg (args, int)); |
I don't think that this stuff is RISC-V specific and you might get better help on it in a GCC forum such as one of the mailing lists. |
Thanks a lot Tommy |
Closing due to lack of activity. |
I faced this error while trying to add new instruction. The instruction will follow the same format of fmadd.
{"mod.s", 0, INSN_CLASS_F_INX, "D,S,T,R", MATCH_MOD_S|MASK_RM, MASK_MOD_S|MASK_RM, match_opcode, 0 },
{"mod.s", 0, INSN_CLASS_F_INX, "D,S,T,R,m", MATCH_MOD_S, MASK_MOD_S, match_opcode, 0 },
and the mask the mast and match is
#define MATCH_MOD_S 0x7f
#define MASK_MOD_S 0x600007f
any idea why i am facing this error?
The text was updated successfully, but these errors were encountered: