rdma_dist
rdma_dist copied to clipboard
Problems compiling the C source
Dear Sir
Thank you for creating this project! I would like to try this out on my local HPC cluster. I can't claim the following is an issue with the project code: I imagine it is an issue with my knowledge of the local HPC cluster setup.
I am having problems compiling the C source. This gist has the rebar.config I am using, and the error output from rebar compile: https://gist.github.com/llaisdy/9c98fdc2ab94b4abb20a
I have added various include and lib paths to the rebar.config. I am compiling with gcc4.8 and erlang 17.1
My C is rudimentary, but the error messages look like the compiler can't find certain libraries --- e.g. I think some of the definitions it can't find are in stddef.h --- but stddef.h is in the -I paths specified.
The HPC system I'm working on seems to have different versions of header files like stddef.h in different places. Also, if I change the order of the -I paths in the CFLAGS parameter, I get different error messages.
I wonder if the compiler is finding incorrect versions of the libraries it needs, or if the three separate paths I am giving in rebar.config cause conflicts.
Does anything obvious leap out at you about these error messages?
Can you suggest a way to include all and only the header files that I need?
With thanks and best wishes
Ivan
Thanks for the report. This project may have suffered from some bitrot due to perceived lack of interest. I will try to take a look at it some time this week.
Thanks! Any pointers or suggestions you can give me, I'll try some things out myself (e.g., including stddef.h in rdma_drv.c got rid of a good few errors).
Best wishes
Ivan
Hello again. Including types.h knocks off another hundred or so lines of errors messages. Many errors still remaining are unknown types. I've also seen improvements adjusting the CFLAGS parameter in the rebar.config.
If/when I get it working I'll create a fork so you can see how I've hacked it together.
In the meantime any pointers appreciated.
Best wishes
Ivan