facebook / wdt

Warp speed Data Transfer (WDT) is an embeddedable library (and command line tool) aiming to transfer data between 2 systems as fast as possible over multiple TCP paths.
https://www.facebook.com/WdtOpenSource
Other
2.86k stars 392 forks source link

fatal error: 'wdt/Wdt.h' file not found #213

Open yurivict opened 3 years ago

yurivict commented 3 years ago

Build fails (rev.3573f1c):

[1/35] /usr/bin/c++ -DSTANDALONE_APP -I/usr/local/include -I. -I/usr/ports/net/wdt/work/wdt-1.27.1612021-171-g3573f1c/.. -msse4.2 -mpclmul -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -std=gnu++14 -MD -MT CMakeFiles/wdtbin.dir/Wdt.cpp.o -MF CMakeFiles/wdtbin.dir/Wdt.cpp.o.d -o CMakeFiles/wdtbin.dir/Wdt.cpp.o -c /usr/ports/net/wdt/work/wdt-1.27.1612021-171-g3573f1c/Wdt.cpp
FAILED: CMakeFiles/wdtbin.dir/Wdt.cpp.o 
/usr/bin/c++ -DSTANDALONE_APP -I/usr/local/include -I. -I/usr/ports/net/wdt/work/wdt-1.27.1612021-171-g3573f1c/.. -msse4.2 -mpclmul -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -std=gnu++14 -MD -MT CMakeFiles/wdtbin.dir/Wdt.cpp.o -MF CMakeFiles/wdtbin.dir/Wdt.cpp.o.d -o CMakeFiles/wdtbin.dir/Wdt.cpp.o -c /usr/ports/net/wdt/work/wdt-1.27.1612021-171-g3573f1c/Wdt.cpp
/usr/ports/net/wdt/work/wdt-1.27.1612021-171-g3573f1c/Wdt.cpp:1:10: fatal error: 'wdt/Wdt.h' file not found
#include <wdt/Wdt.h>
         ^~~~~~~~~~~
1 error generated.

It seems to depend on itself being installed?

davide125 commented 3 years ago

I can't repro this failure, but I suspect you have some conflicting includes in your CFLAGS. Can you share some more details about your build environment? Wdt.h comes from here.

yurivict commented 3 years ago

Thus include statement refers to system headers:

include <wdt/Wdt.h>

What package installs wdt/Wdt.h?

davide125 commented 3 years ago

Ok, I have a repro for this now. The way the includes are currently setup, the build won't work unless the base directory is called wdt, and it's wdt-1.27.1612021-171-g3573f1c in your example.

yurivict commented 3 years ago

That's odd. Can you fix this?

davide125 commented 3 years ago

I think so, but this isn't straightforward and will likely take a while. In the meantime, you should be able to workaround the issue by creating a wdt symlink and building from there.