hkaiser changed the topic of #ste||ar to: STE||AR: Systems Technology, Emergent Parallelism, and Algorithm Research | stellar.cct.lsu.edu | HPX: A cure for performance impaired parallel applications | github.com/STEllAR-GROUP/hpx | Buildbot: http://rostam.cct.lsu.edu/ | Log: http://irclog.cct.lsu.edu/
quaz0r has quit [Ping timeout: 240 seconds]
eschnett_ has joined #ste||ar
K-ballo has quit [Quit: K-ballo]
nanashi55 has quit [Ping timeout: 250 seconds]
nanashi55 has joined #ste||ar
K-ballo has joined #ste||ar
pmikolajczyk41 has joined #ste||ar
pmikolajczyk41 has quit [Client Quit]
quaz0r has joined #ste||ar
eschnett_ has quit [Ping timeout: 250 seconds]
cyber_drudge has joined #ste||ar
cyber_drudge has quit [Ping timeout: 250 seconds]
cyberdrudge has joined #ste||ar
cyberdrudge has left #ste||ar ["Leaving"]
cyberdrudge has joined #ste||ar
<cyberdrudge> heyy!!
<cyberdrudge> i am trying to set up a new hpx project by reading the documentation
<cyberdrudge> i am getting an error on performing make all command
<cyberdrudge> hpx_wrap.cpp:(.text+0x449): undefined reference to `main'
<cyberdrudge> can someone help me in fixing this
<K-ballo> cyberdrudge: does your project have a main? is the file in which it is defined being compiled/linked?
<cyberdrudge> yes it has a main.cpp file
<K-ballo> is there a main function in it?
<cyberdrudge> yes
<cyberdrudge> [100%] Linking CXX executable my_hpx_program
<cyberdrudge> hpx_wrap.cpp:(.text+0x12): undefined reference to `main'
ste||ar-github has joined #ste||ar
<ste||ar-github> [hpx] diehlpk opened pull request #3591: Fix compilation error n arm7 architecture. Compiles and runs on Fedora 29 on Pi 3. (master...fixarm7) https://github.com/STEllAR-GROUP/hpx/pull/3591
ste||ar-github has left #ste||ar [#ste||ar]
<K-ballo> then we have to assume that either the main.cpp file is not being compiled, or that it does not in fact have a main function in i
<K-ballo> maybe you are including hpx_main.hpp or some other thing like that?
<K-ballo> which documentation are you following?
<cyberdrudge> quick start guide in the documentation
<cyberdrudge> i copied the main function given in the "Setting up an HPX project" section in the quick start segment of the documentation
<K-ballo> I'm not familiar with the new hpx_wrap machinery, or how it interacts with hpx_main
<nikunj> cyberdrudge, could you show your cmake script
<K-ballo> for reference, here's the quick start guide https://stellar-group.github.io/hpx/docs/sphinx/latest/html/quickstart.html
<nikunj> there seems to be a linking order error most likely. jbjnr, experienced it sometime ago
<K-ballo> where is the actual main supposed to be comming from? hpx_wrap.cpp?
<nikunj> yes
<nikunj> and then hpx_wrap calls onto the main function of the actual program
<nikunj> the hpx_wrap's main function i.e
<K-ballo> which one is actually mangled as `main`?
<cyberdrudge> this is my cmakelists file
<cyberdrudge> cmake_minimum_required(VERSION 3.3.2)
<cyberdrudge> project(my_hpx_project CXX)
<cyberdrudge> find_package(HPX REQUIRED)
<cyberdrudge> add_hpx_executable(my_hpx_program SOURCES main.cpp)
<nikunj> K-ballo, the one in the actual program is mangled as main
<cyberdrudge> K-ballo, i am using the same deocumentation you just referenced
<nikunj> and mine is mangled as __wrap_main
<nikunj> cyberdrudge, what version of hpx are you using?
<cyberdrudge> where can i check the version? BTW i installed hpx yesterday
<nikunj> which os are you using?
<cyberdrudge> Kali-Linux
<nikunj> what code are you using in your main.cpp?
<cyberdrudge> #include <hpx/hpx_main.hpp>
<cyberdrudge> #include <hpx/include/iostreams.hpp>
<cyberdrudge> int main()
<cyberdrudge> {
<cyberdrudge> // Say hello to the world!
<cyberdrudge> hpx::cout << "Hello World!\n" << hpx::flush;
<cyberdrudge> return 0;
<cyberdrudge> }
<cyberdrudge> i think there is a linking error
<nikunj> yes there's a linking error. Everything else looks fine to me
<nikunj> cyberdrudge, could you raise a ticket. I'll try running the code in kali tomorrow
<nikunj> most likely it's a linking order error
<cyberdrudge> nikunj, by raising a ticket you mean raising an issue on github?
<nikunj> yes
<cyberdrudge> ok
<nikunj> till then you could try installing hpx using cmake parameter HPX_WITH_DYNAMIC_HPX_MAIN=OFF
<nikunj> that will resolve your current issues
<cyberdrudge> ok i will try this
cyberdrudge has quit [Ping timeout: 250 seconds]