hpx icon indicating copy to clipboard operation
hpx copied to clipboard

Static linking fails during CMake configuration

Open msimberg opened this issue 6 years ago • 5 comments

When setting -DHPX_WITH_STATIC_LINKING=ON CMake configuration fails at the end with

-- Configuring done
CMake Error: install(EXPORT "HPXTargets" ...) includes target "hpx" which requires target "hpx_assertion" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "hpx" which requires target "hpx_cache" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "hpx" which requires target "hpx_collectives" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "hpx" which requires target "hpx_config" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "hpx" which requires target "hpx_hardware" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "hpx" which requires target "hpx_preprocessor" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "accumulator_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "template_accumulator_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "template_function_accumulator_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "cancelable_action_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "jacobi_component_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "nqueen_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "sine_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "random_mem_access_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "startup_shutdown_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "throttle_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "simple_central_tuplespace_component" which requires target "hpx_internal_flags" that is not in the export set.
CMake Error: install(EXPORT "HPXTargets" ...) includes target "parcel_coalescing" which requires target "hpx_internal_flags" that is not in the export set.
-- Generating done

This is not very high priority for me so if someone needs it fixed let us know. Curiously this is exactly the error we had before making sure HPX modules are PRIVATE dependencies. I haven't yet figured out if this is a CMake bug or if there's something we can do about it.

msimberg avatar Jul 10 '19 12:07 msimberg

This may actually work again now that we export more targets... I'll give this a try in the next days.

msimberg avatar Nov 18 '19 15:11 msimberg

This may actually work again now that we export more targets... I'll give this a try in the next days.

Things are better, but still don't work. This is definitely fixable but I'll leave it until someone actually asks for this. Please speak up if you do need it!

msimberg avatar Nov 22 '19 12:11 msimberg

If this will not be fixed for V1.4, please add a 'known problems' to the release notes.

hkaiser avatar Nov 22 '19 16:11 hkaiser

Yeah, good idea. Will do!

msimberg avatar Nov 22 '19 16:11 msimberg

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 20 '20 16:05 stale[bot]