asterfusion / Helium_DPU

Helium DPU
Apache License 2.0
31 stars 8 forks source link

Host Driver Compilation Error #2

Closed Kryptoxic closed 1 year ago

Kryptoxic commented 1 year ago

Describe the bug When compiling the host driver for the DPU, the compilation fails.

To Reproduce Steps to reproduce the behavior:

  1. Clone the repo using command "git clone https://github.com/asterfusion/Helium_DPU"
  2. Navigate to the Host drivers folder "cd Helium_DPU/Host/Drivers"
  3. Compile using command "make"
  4. Error appears halfway through compilation

Expected behavior The compilation of the host drivers are successful.

Screenshots image

Desktop (please complete the following information):

Additional context When using the Helium-Driver-V1.0R1.tar.gz provided drivers, the drivers are able to be compiled.

LIYFei commented 1 year ago

I updated my current GCC version and got the same error. The reason is that in the new version of GCC compilation, the scope of the 'if' statement is unclear. Therefore, I made some modifications and successfully compiled it .commit-id 246a0f4

Kryptoxic commented 1 year ago

I will checkout the commit and compile it again on Monday and report back. Thanks for the reply.

Kryptoxic commented 1 year ago

The if error has been solved but I am now getting a new error during compilation

image

LIYFei commented 1 year ago

Due to the different kernel versions, I have made the corresponding modifications. Please try again.commit-id e82c569

Kryptoxic commented 1 year ago

Yes it works now. Thanks for the fix. I will try this new driver with Openstack to see if anything changed for issue #3