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
HPX(bad_component_type) with gcc 4.7.2 and boost 1.51 #575
Comments
Component loading problem |
Can you add What machine are you building on? |
Could you please provide us with a full log of your configure and build step, and your full command line? The error you're seeing is something which happens if the HPX core library can't be properly loaded for some reason. |
Actually, just tarball your entire build directory, and your entire source directory, and host them somewhere where I can FTP them. |
Thanks guys. Reconfigured and rebuilt and now it seems to be working. Who knows what the issue was... probably something local. Closing this. |
I get similar issues with GCC 4.7.2 and HPX 0.9.5 on my computer, and I have tried reconfiguring (with fresh build and install directories). I get some variant of "missing component" for many of the examples, including |
Running |
Could you post the output of your code when running with --hpx:debug-hpx-log please? |
Jeremiah, please provide us with a full log of configure (cmake) and build (make) for HPX and your application. |
@sithhell: The run log is at http://www.osl.iu.edu/~jewillco/hpx-run-log.txt |
Yes, the cache is something we can work with. Also, steps to reproduce it would be great. Does the procedure and example as in the docs ( http://stellar.cct.lsu.edu/files/hpx_0.9.5/html/hpx/manual/cmake/unix_apps_pkg_config.html ) work for you? |
Yes, that example works (compiles and runs). Here's a small test that reproduces the problem:
The last line is important to triggering the problem. I am compiling using:
where |
The problem is indeed HPX_REGISTER_COMPONENT_MODULE(). It registers the startup and loading functions for a HPX module. Without any further actions it "thinks" it's the main hpx library. For some reason, this overrides everything defined in libhpx.so. In order to fix this, you need add a HPX_COMPONENT_NAME preprocessor constant so that the HPX_REGISTER_COMPONENT_MODULE() can generate the correct component registration code.
This is also documented at: http://stellar.cct.lsu.edu/files/hpx_0.9.5/html/hpx/manual/cmake/unix_comps_pkg_config.html Please report if that fixes your problem |
I ended up just commenting out the |
Correct. This is only necessary if you need to register components. |
…se compiler errors if somebody uses HPX_REGISTER_COMPONENT_MODULE() without explicitly defining it (see #575: HPX(bad_component_type) with gcc 4.7.2 and boost 1.51)
This has been resolved by defining |
i everyone. I'm seeing the following error when running the simple ag_client example. Can anyone pinpoint what this is coming from?
Thanks,
Luke Dalessandro
<ldalessa@frogstar bin>$ ./ag_client --np 8 -t 8
Aborted (core dumped)
The text was updated successfully, but these errors were encountered: