Build Windows: FAILED 4.11/rtems-moxie.bset on x86_64-w64-mingw32 (dtc-1.4.1-x86_64-w64-mingw32-1)

chrisj at rtems.org chrisj at rtems.org
Mon Feb 12 19:35:16 UTC 2018



Host: Windows-10-10.0.16299-SP0
       Windows weng 10 10.0.16299 AMD64 Intel64 Family 6 Model 42 Stepping 7,
       GenuineIntel


Build Time: 0:25:09.115435

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
Build FAILED: dtc-1.4.1-x86_64-w64-mingw32-1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
x -rw-rw-r--  0 root   root      108 Nov 12  2014 dtc-1.4.1/tests/open_pack.supp
x -rw-rw-r--  0 root   root     2572 Nov 12  2014 dtc-1.4.1/tests/parent_offset.c
x -rw-rw-r--  0 root   root     2793 Nov 12  2014 dtc-1.4.1/tests/path-references.c
x -rw-rw-r--  0 root   root      254 Nov 12  2014 dtc-1.4.1/tests/path-references.dts
x -rw-rw-r--  0 root   root     3890 Nov 12  2014 dtc-1.4.1/tests/path_offset.c
x -rw-rw-r--  0 root   root     1933 Nov 12  2014 dtc-1.4.1/tests/path_offset_aliases.c
x -rw-rw-r--  0 root   root     2231 Nov 12  2014 dtc-1.4.1/tests/phandle_format.c
x -rw-rw-r--  0 root   root       51 Nov 12  2014 dtc-1.4.1/tests/prop-after-subnode.dts
x -rw-rw-r--  0 root   root     1271 Nov 12  2014 dtc-1.4.1/tests/propname_escapes.c
x -rw-rw-r--  0 root   root       62 Nov 12  2014 dtc-1.4.1/tests/propname_escapes.dts
x -rw-rw-r--  0 root   root     3720 Nov 12  2014 dtc-1.4.1/tests/references.c
x -rw-rw-r--  0 root   root      781 Nov 12  2014 dtc-1.4.1/tests/references.dts
x -rw-rw-r--  0 root   root      117 Nov 12  2014 dtc-1.4.1/tests/reg-ranges-root.dts
x -rw-rw-r--  0 root   root      163 Nov 12  2014 dtc-1.4.1/tests/reuse-label.dts
x -rw-rw-r--  0 root   root       90 Nov 12  2014 dtc-1.4.1/tests/reuse-label1.dts
x -rw-rw-r--  0 root   root       72 Nov 12  2014 dtc-1.4.1/tests/reuse-label2.dts
x -rw-rw-r--  0 root   root       84 Nov 12  2014 dtc-1.4.1/tests/reuse-label3.dts
x -rw-rw-r--  0 root   root       51 Nov 12  2014 dtc-1.4.1/tests/reuse-label4.dts
x -rw-rw-r--  0 root   root       64 Nov 12  2014 dtc-1.4.1/tests/reuse-label5.dts
x -rw-rw-r--  0 root   root       64 Nov 12  2014 dtc-1.4.1/tests/reuse-label6.dts
x -rw-rw-r--  0 root   root     1457 Nov 12  2014 dtc-1.4.1/tests/root_node.c
x -rwxrwxr-x  0 root   root    23684 Nov 12  2014 dtc-1.4.1/tests/run_tests.sh
x -rw-rw-r--  0 root   root     2917 Nov 12  2014 dtc-1.4.1/tests/rw_tree1.c
x drwxrwxr-x  0 root   root        0 Nov 12  2014 dtc-1.4.1/tests/search_dir/
x -rw-rw-r--  0 root   root       38 Nov 12  2014 dtc-1.4.1/tests/search_dir/search_test.dtsi
x -rw-rw-r--  0 root   root        8 Nov 12  2014 dtc-1.4.1/tests/search_dir/search_test2.dtsi
x drwxrwxr-x  0 root   root        0 Nov 12  2014 dtc-1.4.1/tests/search_dir_b/
x -rw-rw-r--  0 root   root       50 Nov 12  2014 dtc-1.4.1/tests/search_dir_b/search_paths_subdir.dts
x -rw-rw-r--  0 root   root       40 Nov 12  2014 dtc-1.4.1/tests/search_dir_b/search_test_b.dtsi
x -rw-rw-r--  0 root   root       38 Nov 12  2014 dtc-1.4.1/tests/search_dir_b/search_test_b2.dtsi
x -rw-rw-r--  0 root   root        7 Nov 12  2014 dtc-1.4.1/tests/search_dir_b/search_test_c.dtsi
x -rw-rw-r--  0 root   root       48 Nov 12  2014 dtc-1.4.1/tests/search_paths.dts
x -rw-rw-r--  0 root   root       50 Nov 12  2014 dtc-1.4.1/tests/search_paths_b.dts
x -rw-rw-r--  0 root   root     2622 Nov 12  2014 dtc-1.4.1/tests/set_name.c
x -rw-rw-r--  0 root   root     2816 Nov 12  2014 dtc-1.4.1/tests/setprop.c
x -rw-rw-r--  0 root   root     2754 Nov 12  2014 dtc-1.4.1/tests/setprop_inplace.c
x -rw-rw-r--  0 root   root     2451 Nov 12  2014 dtc-1.4.1/tests/sized_cells.c
x -rw-rw-r--  0 root   root      364 Nov 12  2014 dtc-1.4.1/tests/sized_cells.dts
x -rw-rw-r--  0 root   root      404 Nov 12  2014 dtc-1.4.1/tests/sourceoutput.dts
x -rw-rw-r--  0 root   root     1314 Nov 12  2014 dtc-1.4.1/tests/string_escapes.c
x -rw-rw-r--  0 root   root     2351 Nov 12  2014 dtc-1.4.1/tests/subnode_iterate.c
x -rw-rw-r--  0 root   root      761 Nov 12  2014 dtc-1.4.1/tests/subnode_iterate.dts
x -rw-rw-r--  0 root   root     3328 Nov 12  2014 dtc-1.4.1/tests/subnode_offset.c
x -rw-rw-r--  0 root   root     3837 Nov 12  2014 dtc-1.4.1/tests/supernode_atdepth_offset.c
x -rw-rw-r--  0 root   root     4499 Nov 12  2014 dtc-1.4.1/tests/sw_tree1.c
x -rw-rw-r--  0 root   root      358 Nov 12  2014 dtc-1.4.1/tests/sw_tree1.supp
x -rw-rw-r--  0 root   root     4884 Nov 12  2014 dtc-1.4.1/tests/test01.asm
x -rw-rw-r--  0 root   root     1184 Nov 12  2014 dtc-1.4.1/tests/test01.dts
x -rw-rw-r--  0 root   root      220 Nov 12  2014 dtc-1.4.1/tests/test01.stderr
x -rwxrwxr-x  0 root   root     2056 Nov 12  2014 dtc-1.4.1/tests/test_kernel_dts
x -rw-rw-r--  0 root   root       44 Nov 12  2014 dtc-1.4.1/tests/test_tree1.dts
x -rw-rw-r--  0 root   root      725 Nov 12  2014 dtc-1.4.1/tests/test_tree1_body.dtsi
x -rw-rw-r--  0 root   root      738 Nov 12  2014 dtc-1.4.1/tests/test_tree1_delete.dts
x -rw-rw-r--  0 root   root      798 Nov 12  2014 dtc-1.4.1/tests/test_tree1_merge.dts
x -rw-rw-r--  0 root   root      767 Nov 12  2014 dtc-1.4.1/tests/test_tree1_merge_labelled.dts
x -rw-rw-r--  0 root   root      788 Nov 12  2014 dtc-1.4.1/tests/test_tree1_merge_path.dts
x -rw-rw-r--  0 root   root      642 Nov 12  2014 dtc-1.4.1/tests/test_tree1_wrong1.dts
x -rw-rw-r--  0 root   root      658 Nov 12  2014 dtc-1.4.1/tests/test_tree1_wrong2.dts
x -rw-rw-r--  0 root   root      659 Nov 12  2014 dtc-1.4.1/tests/test_tree1_wrong3.dts
x -rw-rw-r--  0 root   root      670 Nov 12  2014 dtc-1.4.1/tests/test_tree1_wrong4.dts
x -rw-rw-r--  0 root   root      684 Nov 12  2014 dtc-1.4.1/tests/test_tree1_wrong5.dts
x -rw-rw-r--  0 root   root      699 Nov 12  2014 dtc-1.4.1/tests/test_tree1_wrong6.dts
x -rw-rw-r--  0 root   root      705 Nov 12  2014 dtc-1.4.1/tests/test_tree1_wrong7.dts
x -rw-rw-r--  0 root   root      684 Nov 12  2014 dtc-1.4.1/tests/test_tree1_wrong8.dts
x -rw-rw-r--  0 root   root      702 Nov 12  2014 dtc-1.4.1/tests/test_tree1_wrong9.dts
x -rw-rw-r--  0 root   root      961 Nov 12  2014 dtc-1.4.1/tests/testdata.h
x -rw-rw-r--  0 root   root     3597 Nov 12  2014 dtc-1.4.1/tests/tests.h
x -rw-rw-r--  0 root   root      899 Nov 12  2014 dtc-1.4.1/tests/tests.sh
x -rw-rw-r--  0 root   root     5141 Nov 12  2014 dtc-1.4.1/tests/testutils.c
x -rw-rw-r--  0 root   root     4662 Nov 12  2014 dtc-1.4.1/tests/trees.S
x -rw-rw-r--  0 root   root     1450 Nov 12  2014 dtc-1.4.1/tests/truncated_property.c
x -rw-rw-r--  0 root   root     3153 Nov 12  2014 dtc-1.4.1/tests/utilfdt_test.c
x -rw-rw-r--  0 root   root     3088 Nov 12  2014 dtc-1.4.1/tests/value-labels.c
x -rw-rw-r--  0 root   root      233 Nov 12  2014 dtc-1.4.1/tests/value-labels.dts
x -rw-rw-r--  0 root   root       53 Nov 12  2014 dtc-1.4.1/tests/zero-phandle.dts
x -rw-rw-r--  0 root   root     6165 Nov 12  2014 dtc-1.4.1/treesource.c
x -rw-rw-r--  0 root   root     8885 Nov 12  2014 dtc-1.4.1/util.c
x -rw-rw-r--  0 root   root     7604 Nov 12  2014 dtc-1.4.1/util.h
+ cd dtc-1.4.1
+ chmod -R a+rX,g-w,o-w .
+ cd /D/opt/rtems/rsb-4.11.3-rc1/rtems/build/d1xwm1
+ SB_CXC=no
==> clean %{buildroot}: /D/opt/rtems/rsb-4.11.3-rc1/rtems/build/tmp/dtc-1.4.1-x86_64-w64-mingw32-1-root-chris
+ echo '==> clean %{buildroot}: /D/opt/rtems/rsb-4.11.3-rc1/rtems/build/tmp/dtc-1.4.1-x86_64-w64-mingw32-1-root-chris'
+ rm -rf /D/opt/rtems/rsb-4.11.3-rc1/rtems/build/tmp/dtc-1.4.1-x86_64-w64-mingw32-1-root-chris
+ /bin/mkdir -p /D/opt/rtems/rsb-4.11.3-rc1/rtems/build/tmp/dtc-1.4.1-x86_64-w64-mingw32-1-root-chris
+ echo '==> %build:'
==> %build:
++ pwd
+ build_top=/D/opt/rtems/rsb-4.11.3-rc1/rtems/build/d1xwm1
+ cd dtc-1.4.1
+ LDFLAGS=-L/D/opt/rtems/rsb-4.11.3-rc1/rtems/build/tmp/sb-chris/4.11/rtems-moxie.bset/D/opt/rtems/4.11/lib
++ echo 'x86_64-w64-mingw32-gcc -O2 -pipe -I/D/opt/rtems/rsb-4.11.3-rc1/rtems/build/tmp/sb-chris/4.11/rtems-moxie.bset/D/opt/rtems/4.11/include '
++ sed -e 's,-std=gnu99 ,,'
+ CC='x86_64-w64-mingw32-gcc -O2 -pipe -I/D/opt/rtems/rsb-4.11.3-rc1/rtems/build/tmp/sb-chris/4.11/rtems-moxie.bset/D/opt/rtems/4.11/include '
++ echo 'x86_64-w64-mingw32-g++ -O2 -pipe -I/D/opt/rtems/rsb-4.11.3-rc1/rtems/build/tmp/sb-chris/4.11/rtems-moxie.bset/D/opt/rtems/4.11/include '
++ sed -e 's,-std=gnu99 ,,'
+ CXX='x86_64-w64-mingw32-g++ -O2 -pipe -I/D/opt/rtems/rsb-4.11.3-rc1/rtems/build/tmp/sb-chris/4.11/rtems-moxie.bset/D/opt/rtems/4.11/include '
+ CC_FOR_BUILD='x86_64-w64-mingw32-gcc -O2 -pipe -I/D/opt/rtems/rsb-4.11.3-rc1/rtems/build/tmp/sb-chris/4.11/rtems-moxie.bset/D/opt/rtems/4.11/include '
+ CXX_FOR_BUILD='x86_64-w64-mingw32-g++ -O2 -pipe -I/D/opt/rtems/rsb-4.11.3-rc1/rtems/build/tmp/sb-chris/4.11/rtems-moxie.bset/D/opt/rtems/4.11/include '
+ export CC CXX CC_FOR_BUILD CXX_FOR_BUILD CFLAGS LDFLAGS
+ make PREFIX=/D/opt/rtems/4.11
	 DEP tests/dumptrees.c
	 DEP tests/trees.S
	 DEP tests/testutils.c
	 DEP tests/value-labels.c
	 DEP tests/asm_tree_dump.c
	 DEP tests/truncated_property.c
	 DEP tests/subnode_iterate.c
	 DEP tests/integer-expressions.c
	 DEP tests/utilfdt_test.c
	 DEP tests/path_offset_aliases.c
	 DEP tests/add_subnode_with_nops.c
	 DEP tests/dtbs_equal_unordered.c
	 DEP tests/dtb_reverse.c
	 DEP tests/dtbs_equal_ordered.c
	 DEP tests/extra-terminating-null.c
	 DEP tests/incbin.c
	 DEP tests/boot-cpuid.c
	 DEP tests/phandle_format.c
	 DEP tests/path-references.c
	 DEP tests/references.c
	 DEP tests/string_escapes.c
	 DEP tests/propname_escapes.c
	 DEP tests/appendprop2.c
	 DEP tests/appendprop1.c
	 DEP tests/del_node.c
	 DEP tests/del_property.c
	 DEP tests/setprop.c
	 DEP tests/set_name.c
	 DEP tests/rw_tree1.c
	 DEP tests/open_pack.c
	 DEP tests/nopulate.c
	 DEP tests/mangle-layout.c
	 DEP tests/move_and_save.c
	 DEP tests/sw_tree1.c
	 DEP tests/nop_node.c
	 DEP tests/nop_property.c
	 DEP tests/setprop_inplace.c
	 DEP tests/addr_size_cells.c
	 DEP tests/notfound.c
	 DEP tests/sized_cells.c
	 DEP tests/char_literal.c
	 DEP tests/get_alias.c
	 DEP tests/node_offset_by_compatible.c
	 DEP tests/node_check_compatible.c
	 DEP tests/node_offset_by_phandle.c
	 DEP tests/node_offset_by_prop_value.c
	 DEP tests/parent_offset.c
	 DEP tests/supernode_atdepth_offset.c
	 DEP tests/get_path.c
	 DEP tests/get_phandle.c
	 DEP tests/getprop.c
	 DEP tests/get_name.c
	 DEP tests/path_offset.c
	 DEP tests/subnode_offset.c
	 DEP tests/find_property.c
	 DEP tests/root_node.c
	 DEP tests/get_mem_rsv.c
	 DEP libfdt/fdt_addresses.c
	 DEP libfdt/fdt_empty_tree.c
	 DEP libfdt/fdt_strerror.c
	 DEP libfdt/fdt_rw.c
	 DEP libfdt/fdt_sw.c
	 DEP libfdt/fdt_wip.c
	 DEP libfdt/fdt_ro.c
	 DEP libfdt/fdt.c
	 DEP util.c
	 DEP fdtput.c
	 DEP fdtget.c
	 DEP fdtdump.c
	 LEX convert-dtsv0-lexer.lex.c
	 DEP convert-dtsv0-lexer.lex.c
	 DEP srcpos.c
	 BISON dtc-parser.tab.c
	 DEP dtc-parser.tab.c
	 LEX dtc-lexer.lex.c
	 DEP dtc-lexer.lex.c
	 DEP treesource.c
	 DEP livetree.c
	 DEP fstree.c
	 DEP flattree.c
	 DEP dtc.c
	 DEP data.c
	 DEP checks.c
	CHK version_gen.h
	UPD version_gen.h
	 DEP util.c
	CHK version_gen.h
	 CC srcpos.o
	 CC util.o
	 CC convert-dtsv0-lexer.lex.o
convert-dtsv0-lexer.l:41:10: fatal error: fnmatch.h: No such file or directory
 #include <fnmatch.h>
          ^~~~~~~~~~~
compilation terminated.
make: *** [Makefile:240: convert-dtsv0-lexer.lex.o] Error 1
shell cmd failed: sh -ex  /D/opt/rtems/rsb-4.11.3-rc1/rtems/build/d1xwm1/doit
error: building d1xwm1
  See error report: rsb-report-dtc-1.4.1-x86_64-w64-mingw32-1.txt
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

Output
======



Report
======

==============================================================================
RTEMS Tools Project <users at rtems.org> Tue Feb 13 06:11:19 2018
==============================================================================
Report: devel/expat-2.1.0-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Release
 Version: 4.11.3-rc1
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) devel/expat-2.1.0-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) devel/expat-2.1.0-1.cfg
------------------------------------------------------------------------------
Package: expat-2.1.0-x86_64-w64-mingw32-1
 Config: devel/expat-2.1.0-1.cfg
 Summary:
  Expat XML Parser v2.1.0 for target moxie-rtems4.11 on host x86_64-w64-mingw32
 URL:
  http://expat.sourceforge.net/
 Version:
  2.1.0
 Release:
  1
  Sources: 1
    1: http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
       md5: dd7dab7a5fea97d2a6a43f511449b7cd
  Patches: 0
 Preparation:
  build_top=$(pwd)
  %setup source expat -q -n expat-2.1.0
  %setup patch expat -p1
  cd ${build_top}
 Build:
  build_top=$(pwd)
  cd expat-2.1.0
  # Host and build flags, Cross build if host and build are different and
  # Cxc build if target is deifned and also different.
  # Note, gcc is not ready to be compiled with -std=gnu99 (this needs to be checked).
  if test "x86_64-w64-mingw32" != "x86_64-w64-mingw32" ; then
    # Cross build
    CC=$(echo "x86_64-w64-mingw32-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-w64-mingw32-g++" | sed -e 's,-std=gnu99 ,,')
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    # Host
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CC_FOR_HOST=$(echo "gcc ${SB_HOST_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_HOST=$(echo "g++ ${SB_HOST_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    # Build
    CFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CXXFLAGS}"
    LDFLAGS_FOR_BUILD="${SB_BUILD_LDFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "x86_64-w64-mingw32-gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "x86_64-w64-mingw32-g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    CC=$(echo "x86_64-w64-mingw32-gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-w64-mingw32-g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CFLAGS CXXFLAGS LDFLAGS
  export CC_FOR_HOST CXX_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD
  ./configure \
  --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 \
  --verbose \
  --prefix=/D/opt/rtems/4.11 --bindir=/D/opt/rtems/4.11/bin \
  --exec-prefix=/D/opt/rtems/4.11 \
  --includedir=/D/opt/rtems/4.11/include --libdir=/D/opt/rtems/4.11/lib \
  --mandir=/D/opt/rtems/4.11/share/man --infodir=/D/opt/rtems/4.11/share/info
  make -j 8 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  rm -rf $SB_BUILD_ROOT
  cd expat-2.1.0
  make DESTDIR=$SB_BUILD_ROOT install
  cd ${build_top}

==============================================================================
RTEMS Tools Project <users at rtems.org> Tue Feb 13 06:11:19 2018
==============================================================================
Report: devel/expat-2.1.0-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Release
 Version: 4.11.3-rc1
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) devel/expat-2.1.0-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) devel/expat-2.1.0-1.cfg
------------------------------------------------------------------------------
Package: expat-2.1.0-x86_64-w64-mingw32-1
 Config: devel/expat-2.1.0-1.cfg
 Summary:
  Expat XML Parser v2.1.0 for target moxie-rtems4.11 on host x86_64-w64-mingw32
 URL:
  http://expat.sourceforge.net/
 Version:
  2.1.0
 Release:
  1
  Sources: 1
    1: http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
       md5: dd7dab7a5fea97d2a6a43f511449b7cd
  Patches: 0
 Preparation:
  build_top=$(pwd)
  %setup source expat -q -n expat-2.1.0
  %setup patch expat -p1
  cd ${build_top}
 Build:
  build_top=$(pwd)
  cd expat-2.1.0
  # Host and build flags, Cross build if host and build are different and
  # Cxc build if target is deifned and also different.
  # Note, gcc is not ready to be compiled with -std=gnu99 (this needs to be checked).
  if test "x86_64-w64-mingw32" != "x86_64-w64-mingw32" ; then
    # Cross build
    CC=$(echo "x86_64-w64-mingw32-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-w64-mingw32-g++" | sed -e 's,-std=gnu99 ,,')
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    # Host
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CC_FOR_HOST=$(echo "gcc ${SB_HOST_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_HOST=$(echo "g++ ${SB_HOST_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    # Build
    CFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CXXFLAGS}"
    LDFLAGS_FOR_BUILD="${SB_BUILD_LDFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "x86_64-w64-mingw32-gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "x86_64-w64-mingw32-g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    CC=$(echo "x86_64-w64-mingw32-gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-w64-mingw32-g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CFLAGS CXXFLAGS LDFLAGS
  export CC_FOR_HOST CXX_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD
  ./configure \
  --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 \
  --verbose \
  --prefix=/D/opt/rtems/4.11 --bindir=/D/opt/rtems/4.11/bin \
  --exec-prefix=/D/opt/rtems/4.11 \
  --includedir=/D/opt/rtems/4.11/include --libdir=/D/opt/rtems/4.11/lib \
  --mandir=/D/opt/rtems/4.11/share/man --infodir=/D/opt/rtems/4.11/share/info
  make -j 8 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  rm -rf $SB_BUILD_ROOT
  cd expat-2.1.0
  make DESTDIR=$SB_BUILD_ROOT install
  cd ${build_top}

==============================================================================
RTEMS Tools Project <users at rtems.org> Tue Feb 13 06:13:41 2018
==============================================================================
Report: tools/rtems-binutils-2.25-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Release
 Version: 4.11.3-rc1
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-binutils-2.25-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-binutils-2.25-1.cfg
------------------------------------------------------------------------------
Package: moxie-rtems4.11-binutils-2.25-x86_64-w64-mingw32-1
 Config: tools/rtems-binutils-2.25-1.cfg
 Summary:
  Binutils v2.25 for target moxie-rtems4.11 on host x86_64-w64-mingw32
 URL:
  http://sources.redhat.com/binutils
 Version:
  2.25
 Release:
  1
  Sources: 1
    1: ftp://ftp.gnu.org/gnu/binutils/binutils-2.25.tar.bz2
       md5: d9f3303f802a5b6b0bb73a335ab89d66
  Patches: 0
 Preparation:
  build_top=$(pwd)
  binutils_source="binutils-2.25"
  source_dir_binutils=${binutils_source}
  %setup source binutils -q -n ${binutils_source}
  %setup patch binutils -p1
  cd ${build_top}
 Build:
  build_top=$(pwd)
  if test "x86_64-w64-mingw32" != "x86_64-w64-mingw32" ; then
    if test -z "moxie-rtems4.11" ; then
      build_dir="build-xc"
    else
      build_dir="build-cxc"
    fi
  else
    build_dir="build"
  fi
  mkdir -p ${build_dir}
  cd ${build_dir}
  # Host and build flags, Cross build if host and build are different and
  # Cxc build if target is deifned and also different.
  # Note, gcc is not ready to be compiled with -std=gnu99 (this needs to be checked).
  if test "x86_64-w64-mingw32" != "x86_64-w64-mingw32" ; then
    # Cross build
    CC=$(echo "x86_64-w64-mingw32-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-w64-mingw32-g++" | sed -e 's,-std=gnu99 ,,')
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    # Host
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CC_FOR_HOST=$(echo "gcc ${SB_HOST_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_HOST=$(echo "g++ ${SB_HOST_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    # Build
    CFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CXXFLAGS}"
    LDFLAGS_FOR_BUILD="${SB_BUILD_LDFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "x86_64-w64-mingw32-gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "x86_64-w64-mingw32-g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    CC=$(echo "x86_64-w64-mingw32-gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-w64-mingw32-g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CFLAGS CXXFLAGS LDFLAGS
  export CC_FOR_HOST CXX_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD
  ../${source_dir_binutils}/configure \
  --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 \
  --target=moxie-rtems4.11 \
  --verbose --disable-nls \
  --enable-deterministic-archives \
  --without-included-gettext \
  --disable-win32-registry \
  --disable-werror \
  --prefix=/D/opt/rtems/4.11 --bindir=/D/opt/rtems/4.11/bin \
  --exec-prefix=/D/opt/rtems/4.11 \
  --includedir=/D/opt/rtems/4.11/include --libdir=/D/opt/rtems/4.11/lib \
  --mandir=/D/opt/rtems/4.11/share/man --infodir=/D/opt/rtems/4.11/share/info
  make -j 8 all
  cd ${build_top}
 Install:
  cd ${build_top}
  rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  make DESTDIR=$SB_BUILD_ROOT install
  rm -rf $SB_BUILD_ROOT/D/opt/rtems/4.11/share/info/configure.info*
  rm -f $SB_BUILD_ROOT/D/opt/rtems/4.11/share/info/dir
  touch $SB_BUILD_ROOT/D/opt/rtems/4.11/share/info/dir
  mkdir -p $SB_BUILD_ROOT/D/opt/rtems/4.11/share/locale
  rm -f ${SB_BUILD_ROOT}/D/opt/rtems/4.11/lib/libiberty*
  if test ! -f ${SB_BUILD_ROOT}/D/opt/rtems/4.11/bin/moxie-rtems4.11-dlltool; then
  rm -f ${SB_BUILD_ROOT}/D/opt/rtems/4.11/share/man/man1/moxie-rtems4.11-dlltool*
  fi
  if test ! -f ${SB_BUILD_ROOT}/D/opt/rtems/4.11/bin/moxie-rtems4.11-nlmconv; then
  rm -f ${SB_BUILD_ROOT}/D/opt/rtems/4.11/share/man/man1/moxie-rtems4.11-nlmconv*
  fi
  if test ! -f ${SB_BUILD_ROOT}/D/opt/rtems/4.11/bin/moxie-rtems4.11-windres; then
  rm -f ${SB_BUILD_ROOT}/D/opt/rtems/4.11/share/man/man1/moxie-rtems4.11-windres*
  fi
  if test ! -f ${SB_BUILD_ROOT}/D/opt/rtems/4.11/bin/moxie-rtems4.11-windmc; then
  rm -f ${SB_BUILD_ROOT}/D/opt/rtems/4.11/share/man/man1/moxie-rtems4.11-windmc*
  fi
  cd ${build_top}

==============================================================================
RTEMS Tools Project <users at rtems.org> Tue Feb 13 06:13:42 2018
==============================================================================
Report: tools/rtems-binutils-2.25-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Release
 Version: 4.11.3-rc1
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-binutils-2.25-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-binutils-2.25-1.cfg
------------------------------------------------------------------------------
Package: moxie-rtems4.11-binutils-2.25-x86_64-w64-mingw32-1
 Config: tools/rtems-binutils-2.25-1.cfg
 Summary:
  Binutils v2.25 for target moxie-rtems4.11 on host x86_64-w64-mingw32
 URL:
  http://sources.redhat.com/binutils
 Version:
  2.25
 Release:
  1
  Sources: 1
    1: ftp://ftp.gnu.org/gnu/binutils/binutils-2.25.tar.bz2
       md5: d9f3303f802a5b6b0bb73a335ab89d66
  Patches: 0
 Preparation:
  build_top=$(pwd)
  binutils_source="binutils-2.25"
  source_dir_binutils=${binutils_source}
  %setup source binutils -q -n ${binutils_source}
  %setup patch binutils -p1
  cd ${build_top}
 Build:
  build_top=$(pwd)
  if test "x86_64-w64-mingw32" != "x86_64-w64-mingw32" ; then
    if test -z "moxie-rtems4.11" ; then
      build_dir="build-xc"
    else
      build_dir="build-cxc"
    fi
  else
    build_dir="build"
  fi
  mkdir -p ${build_dir}
  cd ${build_dir}
  # Host and build flags, Cross build if host and build are different and
  # Cxc build if target is deifned and also different.
  # Note, gcc is not ready to be compiled with -std=gnu99 (this needs to be checked).
  if test "x86_64-w64-mingw32" != "x86_64-w64-mingw32" ; then
    # Cross build
    CC=$(echo "x86_64-w64-mingw32-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-w64-mingw32-g++" | sed -e 's,-std=gnu99 ,,')
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    # Host
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CC_FOR_HOST=$(echo "gcc ${SB_HOST_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_HOST=$(echo "g++ ${SB_HOST_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    # Build
    CFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CXXFLAGS}"
    LDFLAGS_FOR_BUILD="${SB_BUILD_LDFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "x86_64-w64-mingw32-gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "x86_64-w64-mingw32-g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    CC=$(echo "x86_64-w64-mingw32-gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-w64-mingw32-g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CFLAGS CXXFLAGS LDFLAGS
  export CC_FOR_HOST CXX_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD
  ../${source_dir_binutils}/configure \
  --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 \
  --target=moxie-rtems4.11 \
  --verbose --disable-nls \
  --enable-deterministic-archives \
  --without-included-gettext \
  --disable-win32-registry \
  --disable-werror \
  --prefix=/D/opt/rtems/4.11 --bindir=/D/opt/rtems/4.11/bin \
  --exec-prefix=/D/opt/rtems/4.11 \
  --includedir=/D/opt/rtems/4.11/include --libdir=/D/opt/rtems/4.11/lib \
  --mandir=/D/opt/rtems/4.11/share/man --infodir=/D/opt/rtems/4.11/share/info
  make -j 8 all
  cd ${build_top}
 Install:
  cd ${build_top}
  rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  make DESTDIR=$SB_BUILD_ROOT install
  rm -rf $SB_BUILD_ROOT/D/opt/rtems/4.11/share/info/configure.info*
  rm -f $SB_BUILD_ROOT/D/opt/rtems/4.11/share/info/dir
  touch $SB_BUILD_ROOT/D/opt/rtems/4.11/share/info/dir
  mkdir -p $SB_BUILD_ROOT/D/opt/rtems/4.11/share/locale
  rm -f ${SB_BUILD_ROOT}/D/opt/rtems/4.11/lib/libiberty*
  if test ! -f ${SB_BUILD_ROOT}/D/opt/rtems/4.11/bin/moxie-rtems4.11-dlltool; then
  rm -f ${SB_BUILD_ROOT}/D/opt/rtems/4.11/share/man/man1/moxie-rtems4.11-dlltool*
  fi
  if test ! -f ${SB_BUILD_ROOT}/D/opt/rtems/4.11/bin/moxie-rtems4.11-nlmconv; then
  rm -f ${SB_BUILD_ROOT}/D/opt/rtems/4.11/share/man/man1/moxie-rtems4.11-nlmconv*
  fi
  if test ! -f ${SB_BUILD_ROOT}/D/opt/rtems/4.11/bin/moxie-rtems4.11-windres; then
  rm -f ${SB_BUILD_ROOT}/D/opt/rtems/4.11/share/man/man1/moxie-rtems4.11-windres*
  fi
  if test ! -f ${SB_BUILD_ROOT}/D/opt/rtems/4.11/bin/moxie-rtems4.11-windmc; then
  rm -f ${SB_BUILD_ROOT}/D/opt/rtems/4.11/share/man/man1/moxie-rtems4.11-windmc*
  fi
  cd ${build_top}

==============================================================================
RTEMS Tools Project <users at rtems.org> Tue Feb 13 06:29:27 2018
==============================================================================
Report: tools/rtems-gcc-4.9.3-newlib-2.2.0-20150423-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Release
 Version: 4.11.3-rc1
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-gcc-4.9.3-newlib-2.2.0-20150423-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-gcc-4.9.3-newlib-2.2.0-20150423-1.cfg
------------------------------------------------------------------------------
Package: moxie-rtems4.11-gcc-4.9.3-newlib-2.2.0.20150423-x86_64-w64-mingw32-1
 Config: tools/rtems-gcc-4.9.3-newlib-2.2.0-20150423-1.cfg
 Summary:
  GCC v4.9.3 and Newlib v2.2.0.20150423 for target moxie-rtems4.11 on host x86_64-w64-mingw32
 URL:
  http://gcc.gnu.org/
 Version:
  4.9.3
 Release:
  1
  Sources: 5
    1: ftp://sourceware.org/pub/newlib/newlib-2.2.0.20150423.tar.gz
       md5: c819de85d4cb4be540ebf6d405f42296
    2: ftp://ftp.gnu.org/gnu/gcc/gcc-4.9.3/gcc-4.9.3.tar.bz2
       md5: 6f831b4d251872736e8e9cc09746f327
    3: https://ftp.gnu.org/gnu/gmp/gmp-5.0.5.tar.bz2
       md5: 041487d25e9c230b0c42b106361055fe
    4: https://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz
       md5: d6a1d5f8ddea3abd2cc3e98f58352d26
    5: https://ftp.gnu.org/gnu/mpfr/mpfr-3.0.1.tar.bz2
       md5: bfbecb2eacb6d48432ead5cfc3f7390a
  Patches: 1
    1: https://devel.rtems.org/raw-attachment/ticket/2990/gcc-4.9.3-20170404-1.patch
       sha512: c6402e578793e39869d0f3ba021922794e8ea30595286f63cbc9d32c5cb9ef1d9bb3be28f2a9127077d62a44f425f9c0685e3c22596aed67837fe2fcf8a09e71
 Preparation:
  build_top=$(pwd)
  gcc_source="gcc-4.9.3"
  source_dir_gcc=${gcc_source}
  %setup source gcc -q -n ${gcc_source}
  %setup patch gcc -p1
  cd ${build_top}
  source_dir_newlib="newlib-2.2.0.20150423"
  %setup source newlib -q -D -n newlib-2.2.0.20150423
  %setup patch newlib -p1
  cd ${build_top}
  rm -f ${source_dir_gcc}/newlib
  ln -s $PWD/${source_dir_newlib}/newlib ${source_dir_gcc}/newlib
  source_dir_mpfr="mpfr-3.0.1"
  %setup source mpfr -q -D -n mpfr-3.0.1
  %setup patch mpfr -p1
  cd ${build_top}
  rm -f ${source_dir_gcc}/mpfr
  ln -s $PWD/${source_dir_mpfr} ${source_dir_gcc}/mpfr
  source_dir_mpc="mpc-1.0.3"
  %setup source mpc -q -D -n mpc-1.0.3
  %setup patch mpc -p1
  cd ${build_top}
  rm -f ${source_dir_gcc}/mpc
  ln -s $PWD/${source_dir_mpc} ${source_dir_gcc}/mpc
  source_dir_gmp="gmp-5.0.5"
  %setup source gmp -q -D -n gmp-5.0.5
  %setup patch gmp -p1
  cd ${build_top}
  rm -f ${source_dir_gcc}/gmp
  ln -s $PWD/${source_dir_gmp} ${source_dir_gcc}/gmp
  echo "RTEMS 4.11.3-rc1, RSB no-repo, Newlib 2.2.0.20150423" > ${source_dir_gcc}/gcc/DEV-PHASE
  cd ${source_dir_gcc}
  contrib/gcc_update --touch
  cd ${build_top}
 Build:
  build_top=$(pwd)
  if test "x86_64-w64-mingw32" != "x86_64-w64-mingw32" ; then
    if test -z "moxie-rtems4.11" ; then
      build_dir="build-xc"
    else
      build_dir="build-cxc"
    fi
  else
    build_dir="build"
  fi
  mkdir -p ${build_dir}
  cd ${build_dir}
  languages="c"
  languages="$languages,c++"
  zlib_option="--with-system-zlib"
  # Host and build flags, Cross build if host and build are different and
  # Cxc build if target is deifned and also different.
  # Note, gcc is not ready to be compiled with -std=gnu99 (this needs to be checked).
  if test "x86_64-w64-mingw32" != "x86_64-w64-mingw32" ; then
    # Cross build
    CC=$(echo "x86_64-w64-mingw32-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-w64-mingw32-g++" | sed -e 's,-std=gnu99 ,,')
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    # Host
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CC_FOR_HOST=$(echo "gcc ${SB_HOST_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_HOST=$(echo "g++ ${SB_HOST_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    # Build
    CFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CXXFLAGS}"
    LDFLAGS_FOR_BUILD="${SB_BUILD_LDFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "x86_64-w64-mingw32-gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "x86_64-w64-mingw32-g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    CC=$(echo "x86_64-w64-mingw32-gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-w64-mingw32-g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CFLAGS CXXFLAGS LDFLAGS
  export CC_FOR_HOST CXX_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD
  ../${source_dir_gcc}/configure \
  --prefix=/D/opt/rtems/4.11 \
  --bindir=/D/opt/rtems/4.11/bin \
  --exec_prefix=/D/opt/rtems/4.11 \
  --includedir=/D/opt/rtems/4.11/include \
  --libdir=/D/opt/rtems/4.11/lib \
  --libexecdir=/D/opt/rtems/4.11/libexec \
  --mandir=/D/opt/rtems/4.11/share/man \
  --infodir=/D/opt/rtems/4.11/share/info \
  --datadir=/D/opt/rtems/4.11/share \
  --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 \
  --target=moxie-rtems4.11 \
  --disable-libstdcxx-pch \
  --with-gnu-as --with-gnu-ld --verbose \
  --with-newlib \
  "$zlib_option" \
  --disable-nls --without-included-gettext \
  --disable-win32-registry \
  --enable-version-specific-runtime-libs \
  --disable-lto \
  --enable-newlib-io-c99-formats \
  \
  --enable-newlib-iconv \
  --enable-newlib-iconv-encodings=big5,cp775,cp850,cp852,cp855,\
  cp866,euc_jp,euc_kr,euc_tw,iso_8859_1,iso_8859_10,iso_8859_11,\
  iso_8859_13,iso_8859_14,iso_8859_15,iso_8859_2,iso_8859_3,\
  iso_8859_4,iso_8859_5,iso_8859_6,iso_8859_7,iso_8859_8,iso_8859_9,\
  iso_ir_111,koi8_r,koi8_ru,koi8_u,koi8_uni,ucs_2,ucs_2_internal,\
  ucs_2be,ucs_2le,ucs_4,ucs_4_internal,ucs_4be,ucs_4le,us_ascii,\
  utf_16,utf_16be,utf_16le,utf_8,win_1250,win_1251,win_1252,\
  win_1253,win_1254,win_1255,win_1256,win_1257,win_1258 \
  --enable-threads \
  --disable-plugin \
  \
  \
  \
  --enable-languages="$languages"
  if test "%_host" != "%_build" ; then
  mkdir -p gcc/include
  cp ../${source_dir_gcc}/gcc/gsyslimits.h gcc/include/syslimits.h
  fi
  make -j 8 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  make DESTDIR=$SB_BUILD_ROOT install
  cd ${build_top}
  rm -f ${SB_BUILD_ROOT}/D/opt/rtems/4.11/lib/libiberty.a
  rm -f $SB_BUILD_ROOT/D/opt/rtems/4.11/bin/moxie-rtems4.11-c++filt
  rm -f $SB_BUILD_ROOT/D/opt/rtems/4.11/share/info/dir
  rm -f $SB_BUILD_ROOT/D/opt/rtems/4.11/share/man/man3/*ffi*
  rm -rf ${source_dir_gcc}/newlib
  rm -rf ${source_dir_gcc}/mpfr
  rm -rf ${source_dir_gcc}/mpc
  rm -rf ${source_dir_gcc}/gmp

==============================================================================
RTEMS Tools Project <users at rtems.org> Tue Feb 13 06:29:28 2018
==============================================================================
Report: tools/rtems-gcc-4.9.3-newlib-2.2.0-20150423-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Release
 Version: 4.11.3-rc1
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-gcc-4.9.3-newlib-2.2.0-20150423-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-gcc-4.9.3-newlib-2.2.0-20150423-1.cfg
------------------------------------------------------------------------------
Package: moxie-rtems4.11-gcc-4.9.3-newlib-2.2.0.20150423-x86_64-w64-mingw32-1
 Config: tools/rtems-gcc-4.9.3-newlib-2.2.0-20150423-1.cfg
 Summary:
  GCC v4.9.3 and Newlib v2.2.0.20150423 for target moxie-rtems4.11 on host x86_64-w64-mingw32
 URL:
  http://gcc.gnu.org/
 Version:
  4.9.3
 Release:
  1
  Sources: 5
    1: ftp://sourceware.org/pub/newlib/newlib-2.2.0.20150423.tar.gz
       md5: c819de85d4cb4be540ebf6d405f42296
    2: ftp://ftp.gnu.org/gnu/gcc/gcc-4.9.3/gcc-4.9.3.tar.bz2
       md5: 6f831b4d251872736e8e9cc09746f327
    3: https://ftp.gnu.org/gnu/gmp/gmp-5.0.5.tar.bz2
       md5: 041487d25e9c230b0c42b106361055fe
    4: https://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz
       md5: d6a1d5f8ddea3abd2cc3e98f58352d26
    5: https://ftp.gnu.org/gnu/mpfr/mpfr-3.0.1.tar.bz2
       md5: bfbecb2eacb6d48432ead5cfc3f7390a
  Patches: 1
    1: https://devel.rtems.org/raw-attachment/ticket/2990/gcc-4.9.3-20170404-1.patch
       sha512: c6402e578793e39869d0f3ba021922794e8ea30595286f63cbc9d32c5cb9ef1d9bb3be28f2a9127077d62a44f425f9c0685e3c22596aed67837fe2fcf8a09e71
 Preparation:
  build_top=$(pwd)
  gcc_source="gcc-4.9.3"
  source_dir_gcc=${gcc_source}
  %setup source gcc -q -n ${gcc_source}
  %setup patch gcc -p1
  cd ${build_top}
  source_dir_newlib="newlib-2.2.0.20150423"
  %setup source newlib -q -D -n newlib-2.2.0.20150423
  %setup patch newlib -p1
  cd ${build_top}
  rm -f ${source_dir_gcc}/newlib
  ln -s $PWD/${source_dir_newlib}/newlib ${source_dir_gcc}/newlib
  source_dir_mpfr="mpfr-3.0.1"
  %setup source mpfr -q -D -n mpfr-3.0.1
  %setup patch mpfr -p1
  cd ${build_top}
  rm -f ${source_dir_gcc}/mpfr
  ln -s $PWD/${source_dir_mpfr} ${source_dir_gcc}/mpfr
  source_dir_mpc="mpc-1.0.3"
  %setup source mpc -q -D -n mpc-1.0.3
  %setup patch mpc -p1
  cd ${build_top}
  rm -f ${source_dir_gcc}/mpc
  ln -s $PWD/${source_dir_mpc} ${source_dir_gcc}/mpc
  source_dir_gmp="gmp-5.0.5"
  %setup source gmp -q -D -n gmp-5.0.5
  %setup patch gmp -p1
  cd ${build_top}
  rm -f ${source_dir_gcc}/gmp
  ln -s $PWD/${source_dir_gmp} ${source_dir_gcc}/gmp
  echo "RTEMS 4.11.3-rc1, RSB no-repo, Newlib 2.2.0.20150423" > ${source_dir_gcc}/gcc/DEV-PHASE
  cd ${source_dir_gcc}
  contrib/gcc_update --touch
  cd ${build_top}
 Build:
  build_top=$(pwd)
  if test "x86_64-w64-mingw32" != "x86_64-w64-mingw32" ; then
    if test -z "moxie-rtems4.11" ; then
      build_dir="build-xc"
    else
      build_dir="build-cxc"
    fi
  else
    build_dir="build"
  fi
  mkdir -p ${build_dir}
  cd ${build_dir}
  languages="c"
  languages="$languages,c++"
  zlib_option="--with-system-zlib"
  # Host and build flags, Cross build if host and build are different and
  # Cxc build if target is deifned and also different.
  # Note, gcc is not ready to be compiled with -std=gnu99 (this needs to be checked).
  if test "x86_64-w64-mingw32" != "x86_64-w64-mingw32" ; then
    # Cross build
    CC=$(echo "x86_64-w64-mingw32-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-w64-mingw32-g++" | sed -e 's,-std=gnu99 ,,')
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    # Host
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CC_FOR_HOST=$(echo "gcc ${SB_HOST_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_HOST=$(echo "g++ ${SB_HOST_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    # Build
    CFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CXXFLAGS}"
    LDFLAGS_FOR_BUILD="${SB_BUILD_LDFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "x86_64-w64-mingw32-gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "x86_64-w64-mingw32-g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    CC=$(echo "x86_64-w64-mingw32-gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-w64-mingw32-g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CFLAGS CXXFLAGS LDFLAGS
  export CC_FOR_HOST CXX_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD
  ../${source_dir_gcc}/configure \
  --prefix=/D/opt/rtems/4.11 \
  --bindir=/D/opt/rtems/4.11/bin \
  --exec_prefix=/D/opt/rtems/4.11 \
  --includedir=/D/opt/rtems/4.11/include \
  --libdir=/D/opt/rtems/4.11/lib \
  --libexecdir=/D/opt/rtems/4.11/libexec \
  --mandir=/D/opt/rtems/4.11/share/man \
  --infodir=/D/opt/rtems/4.11/share/info \
  --datadir=/D/opt/rtems/4.11/share \
  --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 \
  --target=moxie-rtems4.11 \
  --disable-libstdcxx-pch \
  --with-gnu-as --with-gnu-ld --verbose \
  --with-newlib \
  "$zlib_option" \
  --disable-nls --without-included-gettext \
  --disable-win32-registry \
  --enable-version-specific-runtime-libs \
  --disable-lto \
  --enable-newlib-io-c99-formats \
  \
  --enable-newlib-iconv \
  --enable-newlib-iconv-encodings=big5,cp775,cp850,cp852,cp855,\
  cp866,euc_jp,euc_kr,euc_tw,iso_8859_1,iso_8859_10,iso_8859_11,\
  iso_8859_13,iso_8859_14,iso_8859_15,iso_8859_2,iso_8859_3,\
  iso_8859_4,iso_8859_5,iso_8859_6,iso_8859_7,iso_8859_8,iso_8859_9,\
  iso_ir_111,koi8_r,koi8_ru,koi8_u,koi8_uni,ucs_2,ucs_2_internal,\
  ucs_2be,ucs_2le,ucs_4,ucs_4_internal,ucs_4be,ucs_4le,us_ascii,\
  utf_16,utf_16be,utf_16le,utf_8,win_1250,win_1251,win_1252,\
  win_1253,win_1254,win_1255,win_1256,win_1257,win_1258 \
  --enable-threads \
  --disable-plugin \
  \
  \
  \
  --enable-languages="$languages"
  if test "%_host" != "%_build" ; then
  mkdir -p gcc/include
  cp ../${source_dir_gcc}/gcc/gsyslimits.h gcc/include/syslimits.h
  fi
  make -j 8 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  make DESTDIR=$SB_BUILD_ROOT install
  cd ${build_top}
  rm -f ${SB_BUILD_ROOT}/D/opt/rtems/4.11/lib/libiberty.a
  rm -f $SB_BUILD_ROOT/D/opt/rtems/4.11/bin/moxie-rtems4.11-c++filt
  rm -f $SB_BUILD_ROOT/D/opt/rtems/4.11/share/info/dir
  rm -f $SB_BUILD_ROOT/D/opt/rtems/4.11/share/man/man3/*ffi*
  rm -rf ${source_dir_gcc}/newlib
  rm -rf ${source_dir_gcc}/mpfr
  rm -rf ${source_dir_gcc}/mpc
  rm -rf ${source_dir_gcc}/gmp

==============================================================================
RTEMS Tools Project <users at rtems.org> Tue Feb 13 06:33:44 2018
==============================================================================
Report: tools/rtems-gdb-7.9-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Release
 Version: 4.11.3-rc1
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-gdb-7.9-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-gdb-7.9-1.cfg
------------------------------------------------------------------------------
Package: moxie-rtems4.11-gdb-7.9-x86_64-w64-mingw32-1
 Config: tools/rtems-gdb-7.9-1.cfg
 Summary:
  GDB v7.9 for target moxie-rtems4.11 on host x86_64-w64-mingw32
 URL:
  http://www.gnu.org/software/gdb/
 Version:
  7.9
 Release:
  1
  Sources: 1
    1: http://ftp.gnu.org/gnu/gdb/gdb-7.9.tar.xz
       md5: e6279f26559d839f0b4218a482bcb43e
  Patches: 1
    1: https://git.rtems.org/rtems-tools/plain/tools/4.11/gdb/gdb-sim-arange-inline.diff
       md5: 11bb2936ea29afeaa023077191fd4705
    2: https://git.rtems.org/rtems-tools/plain/tools/4.11/gdb/gdb-sim-cgen-inline.diff
       md5: e6f7d6d7295cdba99f51aab514ea9778
 Preparation:
  build_top=$(pwd)
  gdb_source="gdb-7.9"
  source_dir_gdb=${gdb_source}
  %setup source gdb -q -n ${gdb_source}
  %setup patch gdb -p1
  cd ${build_top}
 Build:
  build_top=$(pwd)
  if test "x86_64-w64-mingw32" != "x86_64-w64-mingw32" ; then
    if test -z "moxie-rtems4.11" ; then
      build_dir="build-xc"
    else
      build_dir="build-cxc"
    fi
  else
    build_dir="build"
  fi
  mkdir -p ${build_dir}
  cd ${build_dir}
  # Host and build flags, Cross build if host and build are different and
  # Cxc build if target is deifned and also different.
  # Note, gcc is not ready to be compiled with -std=gnu99 (this needs to be checked).
  if test "x86_64-w64-mingw32" != "x86_64-w64-mingw32" ; then
    # Cross build
    CC=$(echo "x86_64-w64-mingw32-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-w64-mingw32-g++" | sed -e 's,-std=gnu99 ,,')
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    # Host
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CC_FOR_HOST=$(echo "gcc ${SB_HOST_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_HOST=$(echo "g++ ${SB_HOST_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    # Build
    CFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CXXFLAGS}"
    LDFLAGS_FOR_BUILD="${SB_BUILD_LDFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "x86_64-w64-mingw32-gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "x86_64-w64-mingw32-g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    CC=$(echo "x86_64-w64-mingw32-gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-w64-mingw32-g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CFLAGS CXXFLAGS LDFLAGS
  export CC_FOR_HOST CXX_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD
  if test "x86_64-w64-mingw32" != "x86_64-w64-mingw32" ; then
  GDB_LIBS_STATIC="-lexpat"
  else
  GDB_LIBS_STATIC="-lexpat"
  GDB_LIBS="-Xlinker -Bstatic ${LIBS_STATIC} -Xlinker -Bdynamic"
  fi
  LIBS_STATIC=${GDB_LIBS_STATIC} \
  LIBS=${GDB_LIBS} \
  ../${source_dir_gdb}/configure \
  --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 \
  --target=moxie-rtems4.11 \
  --verbose --disable-nls \
  --with-system-readline \
  --without-included-gettext \
  --disable-win32-registry \
  --disable-werror \
  --disable-sim \
  \
  --without-zlib \
  --with-expat \
  --with-python \
  --prefix=/D/opt/rtems/4.11 --bindir=/D/opt/rtems/4.11/bin \
  --exec-prefix=/D/opt/rtems/4.11 \
  --includedir=/D/opt/rtems/4.11/include --libdir=/D/opt/rtems/4.11/lib \
  --mandir=/D/opt/rtems/4.11/share/man --infodir=/D/opt/rtems/4.11/share/info
  make -j 8 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  make DESTDIR=$SB_BUILD_ROOT install
  rm -rf $SB_BUILD_ROOT/D/opt/rtems/4.11/share/info/configure.info*
  rm -f $SB_BUILD_ROOT/D/opt/rtems/4.11/share/info/dir
  touch $SB_BUILD_ROOT/D/opt/rtems/4.11/share/info/dir
  cd ${build_top}

==============================================================================
RTEMS Tools Project <users at rtems.org> Tue Feb 13 06:33:44 2018
==============================================================================
Report: tools/rtems-gdb-7.9-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Release
 Version: 4.11.3-rc1
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-gdb-7.9-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-gdb-7.9-1.cfg
------------------------------------------------------------------------------
Package: moxie-rtems4.11-gdb-7.9-x86_64-w64-mingw32-1
 Config: tools/rtems-gdb-7.9-1.cfg
 Summary:
  GDB v7.9 for target moxie-rtems4.11 on host x86_64-w64-mingw32
 URL:
  http://www.gnu.org/software/gdb/
 Version:
  7.9
 Release:
  1
  Sources: 1
    1: http://ftp.gnu.org/gnu/gdb/gdb-7.9.tar.xz
       md5: e6279f26559d839f0b4218a482bcb43e
  Patches: 1
    1: https://git.rtems.org/rtems-tools/plain/tools/4.11/gdb/gdb-sim-arange-inline.diff
       md5: 11bb2936ea29afeaa023077191fd4705
    2: https://git.rtems.org/rtems-tools/plain/tools/4.11/gdb/gdb-sim-cgen-inline.diff
       md5: e6f7d6d7295cdba99f51aab514ea9778
 Preparation:
  build_top=$(pwd)
  gdb_source="gdb-7.9"
  source_dir_gdb=${gdb_source}
  %setup source gdb -q -n ${gdb_source}
  %setup patch gdb -p1
  cd ${build_top}
 Build:
  build_top=$(pwd)
  if test "x86_64-w64-mingw32" != "x86_64-w64-mingw32" ; then
    if test -z "moxie-rtems4.11" ; then
      build_dir="build-xc"
    else
      build_dir="build-cxc"
    fi
  else
    build_dir="build"
  fi
  mkdir -p ${build_dir}
  cd ${build_dir}
  # Host and build flags, Cross build if host and build are different and
  # Cxc build if target is deifned and also different.
  # Note, gcc is not ready to be compiled with -std=gnu99 (this needs to be checked).
  if test "x86_64-w64-mingw32" != "x86_64-w64-mingw32" ; then
    # Cross build
    CC=$(echo "x86_64-w64-mingw32-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-w64-mingw32-g++" | sed -e 's,-std=gnu99 ,,')
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    # Host
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CC_FOR_HOST=$(echo "gcc ${SB_HOST_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_HOST=$(echo "g++ ${SB_HOST_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    # Build
    CFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CXXFLAGS}"
    LDFLAGS_FOR_BUILD="${SB_BUILD_LDFLAGS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "x86_64-w64-mingw32-gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "x86_64-w64-mingw32-g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    CC=$(echo "x86_64-w64-mingw32-gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-w64-mingw32-g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CFLAGS CXXFLAGS LDFLAGS
  export CC_FOR_HOST CXX_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD
  if test "x86_64-w64-mingw32" != "x86_64-w64-mingw32" ; then
  GDB_LIBS_STATIC="-lexpat"
  else
  GDB_LIBS_STATIC="-lexpat"
  GDB_LIBS="-Xlinker -Bstatic ${LIBS_STATIC} -Xlinker -Bdynamic"
  fi
  LIBS_STATIC=${GDB_LIBS_STATIC} \
  LIBS=${GDB_LIBS} \
  ../${source_dir_gdb}/configure \
  --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 \
  --target=moxie-rtems4.11 \
  --verbose --disable-nls \
  --with-system-readline \
  --without-included-gettext \
  --disable-win32-registry \
  --disable-werror \
  --disable-sim \
  \
  --without-zlib \
  --with-expat \
  --with-python \
  --prefix=/D/opt/rtems/4.11 --bindir=/D/opt/rtems/4.11/bin \
  --exec-prefix=/D/opt/rtems/4.11 \
  --includedir=/D/opt/rtems/4.11/include --libdir=/D/opt/rtems/4.11/lib \
  --mandir=/D/opt/rtems/4.11/share/man --infodir=/D/opt/rtems/4.11/share/info
  make -j 8 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  make DESTDIR=$SB_BUILD_ROOT install
  rm -rf $SB_BUILD_ROOT/D/opt/rtems/4.11/share/info/configure.info*
  rm -f $SB_BUILD_ROOT/D/opt/rtems/4.11/share/info/dir
  touch $SB_BUILD_ROOT/D/opt/rtems/4.11/share/info/dir
  cd ${build_top}

==============================================================================
RTEMS Tools Project <users at rtems.org> Tue Feb 13 06:34:45 2018
==============================================================================
Report: tools/rtems-tools-4.11-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Release
 Version: 4.11.3-rc1
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-tools-4.11-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-tools-4.11-1.cfg
------------------------------------------------------------------------------
Package: rtems-tools-4.11.3-rc1-1
 Config: tools/rtems-tools-4.11-1.cfg
 Summary:
  RTEMS Tools 4.11.3-rc1 for host x86_64-w64-mingw32
 URL:
  http://www.rtems.org/
 Version:
  4.11.3-rc1
 Release:
  1
  Sources: 1
    1: ftp://ftp.rtems.org/pub/rtems/releases/4.11/4.11.3-rc1/rtems-tools-4.11.3-rc1.tar.xz
       sha512: a3f1510435404aea2e544a5837c78960c813b495cb05aa167e8f0913d7b7e36eef947bf53b91377a7048bbfd5efd458eb1642de214780c768adda62bc7ae04b7
  Patches: 0
 Preparation:
  build_top=$(pwd)
  rtems_tools_source="rtems-tools-4.11.3-rc1"
  source_dir_rtems_tools=${rtems_tools_source}
  %setup source rtems-tools -q -n ${rtems_tools_source}
  %setup patch rtems-tools -p1
  cd ${build_top}
 Build:
  build_top=$(pwd)
  if test "x86_64-w64-mingw32" != "x86_64-w64-mingw32" ; then
  RT_HOST="-host=x86_64-w64-mingw32"
  else
  RT_HOST=
  fi
  cd ${source_dir_rtems_tools}
  ./waf configure ${RT_HOST} --prefix=/D/opt/rtems/4.11
  ./waf
  cd ${build_top}
 Install:
  build_top=$(pwd)
  rm -rf $SB_BUILD_ROOT
  SB_BUILD_ROOT_WAF=$SB_BUILD_ROOT$(echo /D/opt/rtems/4.11 | cut -c 1-2)
  cd ${source_dir_rtems_tools}
  ./waf --destdir=$SB_BUILD_ROOT_WAF install
  cd ${build_top}

==============================================================================
RTEMS Tools Project <users at rtems.org> Tue Feb 13 06:34:46 2018
==============================================================================
Report: tools/rtems-tools-4.11-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Release
 Version: 4.11.3-rc1
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-tools-4.11-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-tools-4.11-1.cfg
------------------------------------------------------------------------------
Package: rtems-tools-4.11.3-rc1-1
 Config: tools/rtems-tools-4.11-1.cfg
 Summary:
  RTEMS Tools 4.11.3-rc1 for host x86_64-w64-mingw32
 URL:
  http://www.rtems.org/
 Version:
  4.11.3-rc1
 Release:
  1
  Sources: 1
    1: ftp://ftp.rtems.org/pub/rtems/releases/4.11/4.11.3-rc1/rtems-tools-4.11.3-rc1.tar.xz
       sha512: a3f1510435404aea2e544a5837c78960c813b495cb05aa167e8f0913d7b7e36eef947bf53b91377a7048bbfd5efd458eb1642de214780c768adda62bc7ae04b7
  Patches: 0
 Preparation:
  build_top=$(pwd)
  rtems_tools_source="rtems-tools-4.11.3-rc1"
  source_dir_rtems_tools=${rtems_tools_source}
  %setup source rtems-tools -q -n ${rtems_tools_source}
  %setup patch rtems-tools -p1
  cd ${build_top}
 Build:
  build_top=$(pwd)
  if test "x86_64-w64-mingw32" != "x86_64-w64-mingw32" ; then
  RT_HOST="-host=x86_64-w64-mingw32"
  else
  RT_HOST=
  fi
  cd ${source_dir_rtems_tools}
  ./waf configure ${RT_HOST} --prefix=/D/opt/rtems/4.11
  ./waf
  cd ${build_top}
 Install:
  build_top=$(pwd)
  rm -rf $SB_BUILD_ROOT
  SB_BUILD_ROOT_WAF=$SB_BUILD_ROOT$(echo /D/opt/rtems/4.11 | cut -c 1-2)
  cd ${source_dir_rtems_tools}
  ./waf --destdir=$SB_BUILD_ROOT_WAF install
  cd ${build_top}

==============================================================================
RTEMS Tools Project <users at rtems.org> Tue Feb 13 06:34:46 2018
==============================================================================
Report: tools/rtems-kernel-4.11.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Release
 Version: 4.11.3-rc1
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-kernel-4.11.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-kernel-4.11.cfg
------------------------------------------------------------------------------
Package: moxie-rtems4.11-kernel-4.11.3-rc1-1
 Config: tools/rtems-kernel-4.11.cfg
 Summary:
  RTEMS v4.11.3-rc1 for target moxie-rtems4.11 on host x86_64-w64-mingw32
 URL:
  http://www.rtems.org/
 Version:
  4.11.3-rc1
 Release:
  1
  Sources: 0
  Patches: 0

==============================================================================
RTEMS Tools Project <users at rtems.org> Tue Feb 13 06:34:46 2018
==============================================================================
Report: tools/rtems-kernel-4.11.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Release
 Version: 4.11.3-rc1
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-kernel-4.11.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-kernel-4.11.cfg
------------------------------------------------------------------------------
Package: moxie-rtems4.11-kernel-4.11.3-rc1-1
 Config: tools/rtems-kernel-4.11.cfg
 Summary:
  RTEMS v4.11.3-rc1 for target moxie-rtems4.11 on host x86_64-w64-mingw32
 URL:
  http://www.rtems.org/
 Version:
  4.11.3-rc1
 Release:
  1
  Sources: 0
  Patches: 0



More information about the build mailing list