intel / IntelSEAPI

IntelSEAPI
201 stars 53 forks source link

Static compilation is not supported #30

Closed raphaelcohn closed 3 years ago

raphaelcohn commented 6 years ago

It is not possible to statically compile, eg TestIntelSEAPI, since it requires a dynamic library. If static compilation can never succeed for parts of the code base, then either warn or simple omit building them.

araud commented 6 years ago

Hello, Raphael!

I wonder how you run the build. It is supposed to be buildall.py And it has some options.

Please give me more information on the task you need to solve?

raphaelcohn commented 6 years ago

Fixed it for my local build by patching the CFLAGs hardcoded in the cmake files.

raphaelcohn commented 6 years ago

Note, also, the code in jitprofiling.c is making use of dlclose(). This function doesn't do anything in the musl c library, and its implementation is effectively broken in GNU libc, ie dynamic library unloading doesn't actually work. Sad but true.