Skip to content

Instantly share code, notes, and snippets.

@satyaki3794
Created March 11, 2016 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save satyaki3794/a7bf80a8678c55433065 to your computer and use it in GitHub Desktop.
Save satyaki3794/a7bf80a8678c55433065 to your computer and use it in GitHub Desktop.
Make errors related to init_globally.cpp example while building HPX out of the box
Linking CXX executable ../../bin/fractals
[ 77%] Building CXX object examples/quickstart/CMakeFiles/init_globally_exe.dir/init_globally.cpp.o
[ 77%] Built target fractals_exe
Scanning dependencies of target interest_calculator_exe
[ 77%] Building CXX object examples/quickstart/CMakeFiles/interest_calculator_exe.dir/interest_calculator.cpp.o
/home/satyaki3794/Desktop/sudoku_test/hpx/examples/quickstart/init_globally.cpp: In lambda function:
/home/satyaki3794/Desktop/sudoku_test/hpx/examples/quickstart/init_globally.cpp:225:66: error: parameter packs not expanded with ‘...’:
result.emplace(hpx::util::invoke(f, std::forward<Ts>(ts)...));
^
/home/satyaki3794/Desktop/sudoku_test/hpx/examples/quickstart/init_globally.cpp:225:66: note: ‘ts’
/home/satyaki3794/Desktop/sudoku_test/hpx/examples/quickstart/init_globally.cpp: In lambda function:
/home/satyaki3794/Desktop/sudoku_test/hpx/examples/quickstart/init_globally.cpp:259:51: error: parameter packs not expanded with ‘...’:
hpx::util::invoke(f, std::forward<Ts>(ts)...);
^
/home/satyaki3794/Desktop/sudoku_test/hpx/examples/quickstart/init_globally.cpp:259:51: note: ‘ts’
/home/satyaki3794/Desktop/sudoku_test/hpx/examples/quickstart/init_globally.cpp: In instantiation of ‘struct execute_hpx_thread(std::false_type, const F&, Ts&& ...) [with F = int (*)(int); Ts = {int}; typename std::result_of<_Functor(_Args&& ...)>::type = int; std::false_type = std::integral_constant<bool, false>]::__lambda21’:
/home/satyaki3794/Desktop/sudoku_test/hpx/examples/quickstart/init_globally.cpp:233:9: required from ‘typename std::result_of<_Functor(_Args&& ...)>::type execute_hpx_thread(std::false_type, const F&, Ts&& ...) [with F = int (*)(int); Ts = {int}; typename std::result_of<_Functor(_Args&& ...)>::type = int; std::false_type = std::integral_constant<bool, false>]’
/home/satyaki3794/Desktop/sudoku_test/hpx/examples/quickstart/init_globally.cpp:286:75: required from ‘typename std::result_of<_Functor(_Args&& ...)>::type execute_hpx_thread(const F&, Ts&& ...) [with F = int (*)(int); Ts = {int}; typename std::result_of<_Functor(_Args&& ...)>::type = int]’
/home/satyaki3794/Desktop/sudoku_test/hpx/examples/quickstart/init_globally.cpp:325:58: required from here
/home/satyaki3794/Desktop/sudoku_test/hpx/examples/quickstart/init_globally.cpp:232:13: error: using invalid field ‘execute_hpx_thread(std::false_type, const F&, Ts&& ...)::__lambda21::__ts’
cond.notify_all();
^
/home/satyaki3794/Desktop/sudoku_test/hpx/examples/quickstart/init_globally.cpp: In instantiation of ‘struct execute_hpx_thread(std::true_type, const F&, Ts&& ...) [with F = void (*)(); Ts = {}; std::true_type = std::integral_constant<bool, true>]::__lambda22’:
/home/satyaki3794/Desktop/sudoku_test/hpx/examples/quickstart/init_globally.cpp:267:9: required from ‘void execute_hpx_thread(std::true_type, const F&, Ts&& ...) [with F = void (*)(); Ts = {}; std::true_type = std::integral_constant<bool, true>]’
/home/satyaki3794/Desktop/sudoku_test/hpx/examples/quickstart/init_globally.cpp:286:75: required from ‘typename std::result_of<_Functor(_Args&& ...)>::type execute_hpx_thread(const F&, Ts&& ...) [with F = void (*)(); Ts = {}; typename std::result_of<_Functor(_Args&& ...)>::type = void]’
/home/satyaki3794/Desktop/sudoku_test/hpx/examples/quickstart/init_globally.cpp:330:45: required from here
/home/satyaki3794/Desktop/sudoku_test/hpx/examples/quickstart/init_globally.cpp:266:13: error: using invalid field ‘execute_hpx_thread(std::true_type, const F&, Ts&& ...)::__lambda22::__ts’
cond.notify_all();
^
make[2]: *** [examples/quickstart/CMakeFiles/init_globally_exe.dir/init_globally.cpp.o] Error 1
make[1]: *** [examples/quickstart/CMakeFiles/init_globally_exe.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Linking CXX executable ../../bin/hello_world
[ 77%] Built target hello_world_exe
Linking CXX executable ../../bin/interest_calculator
[ 77%] Built target interest_calculator_exe
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment