Skip to content
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

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

Open
yurivict opened this issue Nov 14, 2020 · 5 comments
Open

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

yurivict opened this issue Nov 14, 2020 · 5 comments

Comments

@yurivict
Copy link

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
Copy link
Member

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
Copy link
Author

Thus include statement refers to system headers:

#include <wdt/Wdt.h>

What package installs wdt/Wdt.h?

@davide125
Copy link
Member

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
Copy link
Author

That's odd. Can you fix this?

@davide125
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants