<div dir="ltr"><div><div><div>hello everyone,<br></div>I after building arm-rtems6 toolchain with my ftw patch <br></div>when i build rtems i receive this error <br></div><div>The error comes on the patches that were earlier version of the successfully tested patch:)<br></div><div><br></div><div>Error log :</div><div>/home/eshan/development/rtems/kernel/rtems/c/src/../../testsuites/sptests/spcxx01/init.cc: In function 'void test_future()':<br>/home/eshan/development/rtems/kernel/rtems/c/src/../../testsuites/sptests/spcxx01/init.cc:64:20: error: variable 'std::future<int> f' has initializer but incomplete type<br> 64 | std::future<int> f = std::async(std::launch::async, []{ return 12358; });<br> | ^<br>/home/eshan/development/rtems/kernel/rtems/c/src/../../testsuites/sptests/spcxx01/init.cc:64:74: error: invalid use of incomplete type 'class std::future<int>'<br> 64 | d::future<int> f = std::async(std::launch::async, []{ return 12358; });<br> | ^<br><br>In file included from /home/eshan/development/rtems/kernel/rtems/c/src/../../testsuites/sptests/spcxx01/init.cc:32:<br>/home/eshan/development/rtems/6/lib/gcc/arm-rtems6/10.2.1/include/c++/future:125:11: note: declaration of 'class std::future<int>'<br> 125 | class future;<br> | ^~~~~~<br>/home/eshan/development/rtems/6/lib/gcc/arm-rtems6/10.2.1/include/c++/future: At global scope:<br>/home/eshan/development/rtems/6/lib/gcc/arm-rtems6/10.2.1/include/c++/future:189:5:
error: 'std::future<typename std::__invoke_result<typename
std::decay<_Tp>::type, typename std::decay<_Args>::type
...>::type> std::async(std::launch, _Fn&&, _Args&&
...) [with _Fn = test_future()::<lambda()>; _Args = {}; typename
std::__invoke_result<typename std::decay<_Tp>::type, typename
std::decay<_Args>::type ...>::type = int]', declared using
local type 'test_future()::<lambda()>', is used but never defined
[-fpermissive]<br> 189 | async(launch __policy, _Fn&& __fn, _Args&&... __args);<br> | ^~~~~<br>Makefile:12245: recipe for target 'spcxx01/spcxx01-init.o' failed<br>make[5]: *** [spcxx01/spcxx01-init.o] Error 1<br>make[5]: Leaving directory '/home/eshan/development/rtems/kernel/xilinx_zynq_a9_qemu/arm-rtems6/c/xilinx_zynq_a9_qemu/testsuites/sptests'<br>Makefile:663: recipe for target 'sptests' failed<br>make[4]: *** [sptests] Error 2<br>make[4]: Leaving directory '/home/eshan/development/rtems/kernel/xilinx_zynq_a9_qemu/arm-rtems6/c/xilinx_zynq_a9_qemu/testsuites'<br>Makefile:1222: recipe for target 'testsuites' failed<br>make[3]: *** [testsuites] Error 2<br>make[3]: Leaving directory '/home/eshan/development/rtems/kernel/xilinx_zynq_a9_qemu/arm-rtems6/c/xilinx_zynq_a9_qemu'<br>Makefile:716: recipe for target 'all-recursive' failed<br>make[2]: *** [all-recursive] Error 1<br>make[2]: Leaving directory '/home/eshan/development/rtems/kernel/xilinx_zynq_a9_qemu/arm-rtems6/c/xilinx_zynq_a9_qemu'<br>Makefile:289: recipe for target 'all-recursive' failed<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory '/home/eshan/development/rtems/kernel/xilinx_zynq_a9_qemu/arm-rtems6/c'<br>Makefile:410: recipe for target 'all-recursive' failed<br>make: *** [all-recursive] Error 1<br> ~/development/rtems/kernel/xilinx_zynq_a9_qemu 01:25:05 eshan <br> 2 ❯ <br><font style="--darkreader-inline-color:#a99e90;" color="#888888"></font></div><div><div><div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Thanks <br></div>- Eshan <br></div></div></div></div></div></div>