veecle / tricore-probe

Just like probe-run but targeting the Tricore-Architecture
Apache License 2.0
18 stars 5 forks source link

tricore-probe build failed #30

Closed aizitf closed 2 months ago

aizitf commented 2 months ago

I followed the link to download the project, and then installed the tools according to the instructions in GitHub. https://github.com/veecle/tricore-probe?tab=readme-ov-file#requirements The following error occurred when compiling: image image image image image image

arctic-alpaca commented 2 months ago

Hi @aizitf,

bindgen seems to generate different bindings than expected. I cannot reproduce this on the systems I have available, could you share more information about your setup (architecture, windows version, etc). Are you using the current main branch?

While this is might be more of a work-around than a solution and I don't know if there are any other differences between your setup and our expected setup, you can try the following:

aizitf commented 2 months ago

Here is my message: windows version: Windows 11 64bits; current branch: image architecture: What does this mean by architecture? My computer or the hardware board I need to test?

I will modify and test according to your instructions, and I will send out the test results later.

aizitf commented 2 months ago

@arctic-alpaca Thank you. Now it build ok. image and the tricore-pribe.exe generated. image In addition, I would like to ask: The removed code seems to be used to determine the system environment. Do I need to configure the 'CARGO_CFG_TARGET_OS' variable in the if branch?

arctic-alpaca commented 2 months ago

windows version: Windows 11 64bits;

As far as I'm aware, we have not tested the setup on Windows 11, we might need to investigate this.

What does this mean by architecture?

I meant the architecture of the processor, x86(_64) or ARM. But I realized this was visible in your first screenshot.

The removed code seems to be used to determine the system environment. Do I need to configure the 'CARGO_CFG_TARGET_OS' variable in the if branch?

You do not need to configure anything, this is done by the Cargo build system. The removed code should build the bindings on Windows machines or use pre-built bindings on Linux. For some reason the bindings generated on your system differ from what is generated on our systems. With the code removed, it now uses the pre-built bindings.

Now it build ok.

Very happy to hear! Let us know if you encounter any other issues.

aizitf commented 2 months ago

@arctic-alpaca ok. Thank you for your help. I have no more questions about this issue.