Error while building FTW Patch

Eshan Dhawan eshandhawan51 at gmail.com
Tue Aug 25 18:58:13 UTC 2020


hello everyone,
I after building arm-rtems6 toolchain with my ftw patch
when i build rtems i receive this error
The error comes on the patches that were earlier version of the
successfully tested patch:)

Error log :
/home/eshan/development/rtems/kernel/rtems/c/src/../../testsuites/sptests/spcxx01/init.cc:
In function 'void test_future()':
/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
   64 |   std::future<int> f = std::async(std::launch::async, []{ return
12358; });
      |                    ^
/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>'
   64 | d::future<int> f = std::async(std::launch::async, []{ return 12358;
});
      |
 ^

In file included from
/home/eshan/development/rtems/kernel/rtems/c/src/../../testsuites/sptests/spcxx01/init.cc:32:
/home/eshan/development/rtems/6/lib/gcc/arm-rtems6/10.2.1/include/c++/future:125:11:
note: declaration of 'class std::future<int>'
  125 |     class future;
      |           ^~~~~~
/home/eshan/development/rtems/6/lib/gcc/arm-rtems6/10.2.1/include/c++/future:
At global scope:
/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]
  189 |     async(launch __policy, _Fn&& __fn, _Args&&... __args);
      |     ^~~~~
Makefile:12245: recipe for target 'spcxx01/spcxx01-init.o' failed
make[5]: *** [spcxx01/spcxx01-init.o] Error 1
make[5]: Leaving directory
'/home/eshan/development/rtems/kernel/xilinx_zynq_a9_qemu/arm-rtems6/c/xilinx_zynq_a9_qemu/testsuites/sptests'
Makefile:663: recipe for target 'sptests' failed
make[4]: *** [sptests] Error 2
make[4]: Leaving directory
'/home/eshan/development/rtems/kernel/xilinx_zynq_a9_qemu/arm-rtems6/c/xilinx_zynq_a9_qemu/testsuites'
Makefile:1222: recipe for target 'testsuites' failed
make[3]: *** [testsuites] Error 2
make[3]: Leaving directory
'/home/eshan/development/rtems/kernel/xilinx_zynq_a9_qemu/arm-rtems6/c/xilinx_zynq_a9_qemu'
Makefile:716: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
'/home/eshan/development/rtems/kernel/xilinx_zynq_a9_qemu/arm-rtems6/c/xilinx_zynq_a9_qemu'
Makefile:289: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
'/home/eshan/development/rtems/kernel/xilinx_zynq_a9_qemu/arm-rtems6/c'
Makefile:410: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
 ~/development/rtems/kernel/xilinx_zynq_a9_qemu              01:25:05 
eshan
 2 ❯

-- 
Thanks
- Eshan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200826/79bd9a8f/attachment.html>


More information about the devel mailing list