Replies: 1 comment 2 replies
-
Hello,
The reason was to skip searching for
The code in |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I had some problems when cross-compiling PoCL (for another non-x86 linux system). There was some "implicit declaration" of "
dlopen()
,dlclose()
.." and so on.It is caused by not including
<dlfcn.h>
hided under#ifdef
For example:
After some digging i found
HAVE_DLFCN_H
sets here under some conditions:So temporary fix is build with
-DENABLE_HOST_CPU_DEVICES=ON
and it compiles and all works just fine.But i don't need HOST_CPU_DEVICE neither HSA, just wanna build with my device driver only.
So the questions:
What the reason to hide finding and defining
dlfcn
under such condition?(
if (CMAKE_CROSSCOMPILING AND (NOT ENABLE_HOST_CPU_DEVICES) AND (NOT ENABLE_HSA))
)(I assume that may works just for me, but in other cases this condition may have sense)
How it intended to compile in case of not defined
HAVE_DLFCN_H
without including<dlfcn.h>
despite that, for example,devices.c
contains related function calls? (dlopen()
,dlclose()
and so on)Thanks!
Beta Was this translation helpful? Give feedback.
All reactions