fix build error with two patches:
put rtems-tools-5.1-fix-std-c++14.diff into rsb/rtems/patches/
patch rsb/rtems/config/tools/rtems-tools-5-1.cfg with
rtems-tools-5-1-cfg-fix-std14-patch.diff
then run ../source-builder/sb-set-builder --prefix=${YOUR_PREFIX}
5/rtems-tools
--- rtems/config/tools/rtems-tools-5-1.cfg.orig 2022-07-03 16:23:16.383059499 +0800
+++ rtems/config/tools/rtems-tools-5-1.cfg 2022-07-03 16:21:53.490953841 +0800
@@ -19,6 +19,8 @@
%hash sha512 rtems-tools-%{rtems_tools_version}.tar.bz2 \
SghIAD1vYsYaYjXjI8jLAkccrqEVkVBygMnoGfp3TGlZUT6Ajlr7wVhRXU2iUrJe+iFWEG6eZTm1ccA4QWbzKg==
+%patch add rtems-tools -p0 file://rtems-tools-5.1-fix-std-c++14.diff
+%hash sha256 rtems-tools-5.1-fix-std-c++14.diff c44e28365ba5207433ca9df5aa3cba362094596a4bad3b105022a0ee0d5427c5
#
# Optionally enable/disable building the RTEMS Tools via the command line.
#
--- trace/wscript.orig 2022-07-03 16:20:17.814837721 +0800
+++ trace/wscript 2022-07-03 16:20:25.990847371 +0800
@@ -60,7 +60,7 @@
conf['warningflags'] = ['-Wall', '-Wextra', '-pedantic']
conf['optflags'] = bld.env.C_OPTS
conf['cflags'] = ['-pipe', '-g'] + conf['optflags']
- conf['cxxflags'] = ['-std=c++11'] + conf['cflags']
+ conf['cxxflags'] = ['-std=c++14'] + conf['cflags']
conf['linkflags'] = ['-g']
conf['lib'] = []
if bld.env.LIB_WS2_32:
_______________________________________________
users mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/users