Build FreeBSD: PASSED 5/rtems-sparc on x86_64-freebsd12.1

chrisj at rtems.org chrisj at rtems.org
Thu May 7 00:03:28 UTC 2020


RTEMS Source Builder - Set Builder, 5 (0affb6647dd4)

Host: FreeBSD-12.1-RELEASE-p2-amd64-64bit-ELF
       FreeBSD hihi 12.1-RELEASE-p2 FreeBSD 12.1-RELEASE-p2 GENERIC amd64 amd64

Build Time: 0:17:47.837740

Sizes
=====

Maximum build usage: 5.638GB
Total size: 3.106GB
Installed : 988.943MB
Sources: 2.134GB
Patches: 6.681MB

Output
======

Build Set: 5/rtems-sparc
Build Set: 5/rtems-autotools.bset
Build Set: 5/rtems-autotools-internal.bset
config: tools/rtems-autoconf-2.69-1.cfg
package: autoconf-2.69-x86_64-freebsd12.1-1
building: autoconf-2.69-x86_64-freebsd12.1-1
sizes: autoconf-2.69-x86_64-freebsd12.1-1: 7.504MB (installed: 0.000B)
cleaning: autoconf-2.69-x86_64-freebsd12.1-1
config: tools/rtems-automake-1.12.6-1.cfg
package: automake-1.12.6-x86_64-freebsd12.1-1
building: automake-1.12.6-x86_64-freebsd12.1-1
sizes: automake-1.12.6-x86_64-freebsd12.1-1: 8.326MB (installed: 0.000B)
cleaning: automake-1.12.6-x86_64-freebsd12.1-1
cleaning: autoconf-2.69-x86_64-freebsd12.1-1
cleaning: automake-1.12.6-x86_64-freebsd12.1-1
Build Sizes: usage: 8.326MB total: 2.141GB (sources: 2.134GB, patches: 6.681MB, installed 0.000B)
Build Set: Time 0:00:04.848878
Build Set: 5/rtems-autotools-base.bset
config: tools/rtems-autoconf-2.69-1.cfg
package: autoconf-2.69-x86_64-freebsd12.1-1
building: autoconf-2.69-x86_64-freebsd12.1-1
sizes: autoconf-2.69-x86_64-freebsd12.1-1: 10.535MB (installed: 3.033MB)
cleaning: autoconf-2.69-x86_64-freebsd12.1-1
reporting: tools/rtems-autoconf-2.69-1.cfg -> autoconf-2.69-x86_64-freebsd12.1-1.txt
reporting: tools/rtems-autoconf-2.69-1.cfg -> autoconf-2.69-x86_64-freebsd12.1-1.xml
config: tools/rtems-automake-1.12.6-1.cfg
package: automake-1.12.6-x86_64-freebsd12.1-1
building: automake-1.12.6-x86_64-freebsd12.1-1
sizes: automake-1.12.6-x86_64-freebsd12.1-1: 10.589MB (installed: 2.264MB)
cleaning: automake-1.12.6-x86_64-freebsd12.1-1
reporting: tools/rtems-automake-1.12.6-1.cfg -> automake-1.12.6-x86_64-freebsd12.1-1.txt
reporting: tools/rtems-automake-1.12.6-1.cfg -> automake-1.12.6-x86_64-freebsd12.1-1.xml
staging: autoconf-2.69-x86_64-freebsd12.1-1 -> /build/rtems/tools/rtems-source-builder.git/rtems/build/tmp/sb-500-staging
staging: automake-1.12.6-x86_64-freebsd12.1-1 -> /build/rtems/tools/rtems-source-builder.git/rtems/build/tmp/sb-500-staging
cleaning: autoconf-2.69-x86_64-freebsd12.1-1
cleaning: automake-1.12.6-x86_64-freebsd12.1-1
Build Sizes: usage: 15.887MB total: 2.146GB (sources: 2.134GB, patches: 6.681MB, installed 5.298MB)
Build Set: Time 0:00:07.317647
Build Set: Time 0:00:12.169560
config: devel/expat-2.1.0-1.cfg
package: expat-2.1.0-x86_64-freebsd12.1-1
building: expat-2.1.0-x86_64-freebsd12.1-1
sizes: expat-2.1.0-x86_64-freebsd12.1-1: 4.777MB (installed: 620.074KB)
cleaning: expat-2.1.0-x86_64-freebsd12.1-1
reporting: devel/expat-2.1.0-1.cfg -> expat-2.1.0-x86_64-freebsd12.1-1.txt
reporting: devel/expat-2.1.0-1.cfg -> expat-2.1.0-x86_64-freebsd12.1-1.xml
config: tools/rtems-gdb-9.1-1.cfg
package: sparc-rtems5-gdb-9.1-x86_64-freebsd12.1-1
building: sparc-rtems5-gdb-9.1-x86_64-freebsd12.1-1
sizes: sparc-rtems5-gdb-9.1-x86_64-freebsd12.1-1: 249.001MB (installed: 11.898MB)
cleaning: sparc-rtems5-gdb-9.1-x86_64-freebsd12.1-1
reporting: tools/rtems-gdb-9.1-1.cfg -> sparc-rtems5-gdb-9.1-x86_64-freebsd12.1-1.txt
reporting: tools/rtems-gdb-9.1-1.cfg -> sparc-rtems5-gdb-9.1-x86_64-freebsd12.1-1.xml
config: tools/rtems-binutils-2.34.cfg
package: sparc-rtems5-binutils-2.34-x86_64-freebsd12.1-1
building: sparc-rtems5-binutils-2.34-x86_64-freebsd12.1-1
sizes: sparc-rtems5-binutils-2.34-x86_64-freebsd12.1-1: 305.777MB (installed: 29.966MB)
cleaning: sparc-rtems5-binutils-2.34-x86_64-freebsd12.1-1
reporting: tools/rtems-binutils-2.34.cfg -> sparc-rtems5-binutils-2.34-x86_64-freebsd12.1-1.txt
reporting: tools/rtems-binutils-2.34.cfg -> sparc-rtems5-binutils-2.34-x86_64-freebsd12.1-1.xml
config: tools/rtems-gcc-7.5.0-newlib-7947581.cfg
package: sparc-rtems5-gcc-7.5.0-newlib-7947581-x86_64-freebsd12.1-1
building: sparc-rtems5-gcc-7.5.0-newlib-7947581-x86_64-freebsd12.1-1
sizes: sparc-rtems5-gcc-7.5.0-newlib-7947581-x86_64-freebsd12.1-1: 4.672GB (installed: 882.510MB)
cleaning: sparc-rtems5-gcc-7.5.0-newlib-7947581-x86_64-freebsd12.1-1
reporting: tools/rtems-gcc-7.5.0-newlib-7947581.cfg -> sparc-rtems5-gcc-7.5.0-newlib-7947581-x86_64-freebsd12.1-1.txt
reporting: tools/rtems-gcc-7.5.0-newlib-7947581.cfg -> sparc-rtems5-gcc-7.5.0-newlib-7947581-x86_64-freebsd12.1-1.xml
config: tools/rtems-tools-5-1.cfg
package: rtems-tools-6de89d9268f3019f2eb9cf7e1ad8102792d6a428-1
building: rtems-tools-6de89d9268f3019f2eb9cf7e1ad8102792d6a428-1
sizes: rtems-tools-6de89d9268f3019f2eb9cf7e1ad8102792d6a428-1: 252.008MB (installed: 63.742MB)
cleaning: rtems-tools-6de89d9268f3019f2eb9cf7e1ad8102792d6a428-1
reporting: tools/rtems-tools-5-1.cfg -> rtems-tools-6de89d9268f3019f2eb9cf7e1ad8102792d6a428-1.txt
reporting: tools/rtems-tools-5-1.cfg -> rtems-tools-6de89d9268f3019f2eb9cf7e1ad8102792d6a428-1.xml
config: devel/sis-2-1.cfg
package: sis-2.21-x86_64-freebsd12.1-1
building: sis-2.21-x86_64-freebsd12.1-1
sizes: sis-2.21-x86_64-freebsd12.1-1: 2.144MB (installed: 226.492KB)
cleaning: sis-2.21-x86_64-freebsd12.1-1
reporting: devel/sis-2-1.cfg -> sis-2.21-x86_64-freebsd12.1-1.txt
reporting: devel/sis-2-1.cfg -> sis-2.21-x86_64-freebsd12.1-1.xml
installing: expat-2.1.0-x86_64-freebsd12.1-1 -> /build/rtems/tools/5
installing: sparc-rtems5-gdb-9.1-x86_64-freebsd12.1-1 -> /build/rtems/tools/5
installing: sparc-rtems5-binutils-2.34-x86_64-freebsd12.1-1 -> /build/rtems/tools/5
installing: sparc-rtems5-gcc-7.5.0-newlib-7947581-x86_64-freebsd12.1-1 -> /build/rtems/tools/5
installing: rtems-tools-6de89d9268f3019f2eb9cf7e1ad8102792d6a428-1 -> /build/rtems/tools/5
installing: sis-2.21-x86_64-freebsd12.1-1 -> /build/rtems/tools/5
cleaning: expat-2.1.0-x86_64-freebsd12.1-1
cleaning: sparc-rtems5-gdb-9.1-x86_64-freebsd12.1-1
cleaning: sparc-rtems5-binutils-2.34-x86_64-freebsd12.1-1
cleaning: sparc-rtems5-gcc-7.5.0-newlib-7947581-x86_64-freebsd12.1-1
cleaning: rtems-tools-6de89d9268f3019f2eb9cf7e1ad8102792d6a428-1
cleaning: sis-2.21-x86_64-freebsd12.1-1
Build Sizes: usage: 5.638GB total: 3.106GB (sources: 2.134GB, patches: 6.681MB, installed 988.943MB)
installing: 5/rtems-sparc -> /build/rtems/tools/5
clean staging: 5/rtems-sparc
Staging Size: 5.304MB
Mailing report: build at rtems.org

Report
======

==============================================================================
RTEMS Tools Project <users at rtems.org> Thu May  7 09:45:55 2020
==============================================================================
Report: devel/expat-2.1.0-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
[ remotes removed, contact sender for details ]
 Status:
  Clean
 Head:
  Commit: 0affb6647dd4ece5774fa0c3d1563119591261cf
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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-freebsd12.1-1
 Config: devel/expat-2.1.0-1.cfg
 Summary:
  Expat XML Parser v2.1.0 for target sparc-rtems5 on host x86_64-freebsd12.1
 URL:
  http://expat.sourceforge.net/
 Version:
  2.1.0
 Release:
  1
  Sources: 1
    1: https://github.com/libexpat/libexpat/releases/download/R_2_1_0/expat-2.1.0.tar.gz
       sha256: 823705472f816df21c8f6aa026dd162b280806838bb55b3432b0fb1fcca7eb86
  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-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd12.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd12.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    LDLIBS="${SB_HOST_LIBS}"
    LIBS="${SB_HOST_LIBS}"
    # Host
    CPPFLAGS_FOR_HOST="${SB_HOST_CPPFLAGS}"
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    LDLIBS_FOR_HOST="${SB_HOST_LIBS}"
    LIBS_FOR_HOST="${SB_HOST_LIBS}"
    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}"
    LDLIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    LIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    LDLIBS="${SB_BUILD_LIBS}"
    LIBS="${SB_BUILD_LIBS}"
    CC=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS LIBS LDLIBS
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST LDLIBS_FOR_HOST LIBS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD LDLIBS_FOR_BUILS LIBS_FOR_BUILS
  ./configure  --build=x86_64-freebsd12.1 --host=x86_64-freebsd12.1  --verbose  --prefix=/build/rtems/tools/5 --bindir=/build/rtems/tools/5/bin  --exec-prefix=/build/rtems/tools/5  --includedir=/build/rtems/tools/5/include --libdir=/build/rtems/tools/5/lib  --mandir=/build/rtems/tools/5/share/man --infodir=/build/rtems/tools/5/share/info
  gmake -j 16 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  rm -rf $SB_BUILD_ROOT
  cd expat-2.1.0
  gmake DESTDIR=$SB_BUILD_ROOT install
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Thu May  7 09:45:55 2020
==============================================================================
Report: devel/expat-2.1.0-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
[ remotes removed, contact sender for details ]
 Status:
  Clean
 Head:
  Commit: 0affb6647dd4ece5774fa0c3d1563119591261cf
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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-freebsd12.1-1
 Config: devel/expat-2.1.0-1.cfg
 Summary:
  Expat XML Parser v2.1.0 for target sparc-rtems5 on host x86_64-freebsd12.1
 URL:
  http://expat.sourceforge.net/
 Version:
  2.1.0
 Release:
  1
  Sources: 1
    1: https://github.com/libexpat/libexpat/releases/download/R_2_1_0/expat-2.1.0.tar.gz
       sha256: 823705472f816df21c8f6aa026dd162b280806838bb55b3432b0fb1fcca7eb86
  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-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd12.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd12.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    LDLIBS="${SB_HOST_LIBS}"
    LIBS="${SB_HOST_LIBS}"
    # Host
    CPPFLAGS_FOR_HOST="${SB_HOST_CPPFLAGS}"
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    LDLIBS_FOR_HOST="${SB_HOST_LIBS}"
    LIBS_FOR_HOST="${SB_HOST_LIBS}"
    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}"
    LDLIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    LIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    LDLIBS="${SB_BUILD_LIBS}"
    LIBS="${SB_BUILD_LIBS}"
    CC=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS LIBS LDLIBS
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST LDLIBS_FOR_HOST LIBS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD LDLIBS_FOR_BUILS LIBS_FOR_BUILS
  ./configure  --build=x86_64-freebsd12.1 --host=x86_64-freebsd12.1  --verbose  --prefix=/build/rtems/tools/5 --bindir=/build/rtems/tools/5/bin  --exec-prefix=/build/rtems/tools/5  --includedir=/build/rtems/tools/5/include --libdir=/build/rtems/tools/5/lib  --mandir=/build/rtems/tools/5/share/man --infodir=/build/rtems/tools/5/share/info
  gmake -j 16 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  rm -rf $SB_BUILD_ROOT
  cd expat-2.1.0
  gmake DESTDIR=$SB_BUILD_ROOT install
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Thu May  7 09:47:00 2020
==============================================================================
Report: tools/rtems-gdb-9.1-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
[ remotes removed, contact sender for details ]
 Status:
  Clean
 Head:
  Commit: 0affb6647dd4ece5774fa0c3d1563119591261cf
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-gdb-9.1-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-gdb-9.1-1.cfg
------------------------------------------------------------------------------
Package: sparc-rtems5-gdb-9.1-x86_64-freebsd12.1-1
 Config: tools/rtems-gdb-9.1-1.cfg
 Summary:
  GDB v9.1 for target sparc-rtems5 on host x86_64-freebsd12.1
 URL:
  http://www.gnu.org/software/gdb/
 Version:
  9.1
 Release:
  1
  Sources: 1
    1: http://ftp.gnu.org/gnu/gdb/gdb-9.1.tar.xz
       sha512: hM3UCNgKP8V3neRZxbJhVNMbMp695+OqeHmfseskXYtkuMjuckI4Kh29lbTm+dhP70HRKgZGqnXT3uRwnqH25w==
  Patches: 0
 Preparation:
  build_top=$(pwd)
  gdb_source="gdb-9.1"
  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-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross-build (Xc) if no target or the host and target match.
    # Canadian-cross (Cxc) if build, host and target are all different.
    if test -z "sparc-rtems5" -o "x86_64-freebsd12.1" == "sparc-rtems5" ; 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-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd12.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd12.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    LDLIBS="${SB_HOST_LIBS}"
    LIBS="${SB_HOST_LIBS}"
    # Host
    CPPFLAGS_FOR_HOST="${SB_HOST_CPPFLAGS}"
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    LDLIBS_FOR_HOST="${SB_HOST_LIBS}"
    LIBS_FOR_HOST="${SB_HOST_LIBS}"
    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}"
    LDLIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    LIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    LDLIBS="${SB_BUILD_LIBS}"
    LIBS="${SB_BUILD_LIBS}"
    CC=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS LIBS LDLIBS
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST LDLIBS_FOR_HOST LIBS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD LDLIBS_FOR_BUILS LIBS_FOR_BUILS
  if test "x86_64-freebsd12.1" != "x86_64-freebsd12.1" ; 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-freebsd12.1 --host=x86_64-freebsd12.1  --target=sparc-rtems5  --verbose --disable-nls  --disable-gas --disable-binutils --disable-ld --disable-gold --disable-gprof    --without-included-gettext  --disable-win32-registry  --disable-werror  --disable-sim    --without-zlib  --with-expat  --with-guile=no  --with-libiconv-prefix=/usr/local  --with-python=/usr/local/bin/python2  --prefix=/build/rtems/tools/5 --bindir=/build/rtems/tools/5/bin  --exec-prefix=/build/rtems/tools/5  --includedir=/build/rtems/tools/5/include --libdir=/build/rtems/tools/5/lib  --mandir=/build/rtems/tools/5/share/man --infodir=/build/rtems/tools/5/share/info
  gmake -j 16 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  /bin/rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  gmake DESTDIR=$SB_BUILD_ROOT install
  /bin/rm -rf $SB_BUILD_ROOT/build/rtems/tools/5/share/info/configure.info*
  /bin/rm -f $SB_BUILD_ROOT/build/rtems/tools/5/share/info/dir
  touch $SB_BUILD_ROOT/build/rtems/tools/5/share/info/dir
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Thu May  7 09:47:00 2020
==============================================================================
Report: tools/rtems-gdb-9.1-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
[ remotes removed, contact sender for details ]
 Status:
  Clean
 Head:
  Commit: 0affb6647dd4ece5774fa0c3d1563119591261cf
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-gdb-9.1-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-gdb-9.1-1.cfg
------------------------------------------------------------------------------
Package: sparc-rtems5-gdb-9.1-x86_64-freebsd12.1-1
 Config: tools/rtems-gdb-9.1-1.cfg
 Summary:
  GDB v9.1 for target sparc-rtems5 on host x86_64-freebsd12.1
 URL:
  http://www.gnu.org/software/gdb/
 Version:
  9.1
 Release:
  1
  Sources: 1
    1: http://ftp.gnu.org/gnu/gdb/gdb-9.1.tar.xz
       sha512: hM3UCNgKP8V3neRZxbJhVNMbMp695+OqeHmfseskXYtkuMjuckI4Kh29lbTm+dhP70HRKgZGqnXT3uRwnqH25w==
  Patches: 0
 Preparation:
  build_top=$(pwd)
  gdb_source="gdb-9.1"
  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-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross-build (Xc) if no target or the host and target match.
    # Canadian-cross (Cxc) if build, host and target are all different.
    if test -z "sparc-rtems5" -o "x86_64-freebsd12.1" == "sparc-rtems5" ; 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-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd12.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd12.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    LDLIBS="${SB_HOST_LIBS}"
    LIBS="${SB_HOST_LIBS}"
    # Host
    CPPFLAGS_FOR_HOST="${SB_HOST_CPPFLAGS}"
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    LDLIBS_FOR_HOST="${SB_HOST_LIBS}"
    LIBS_FOR_HOST="${SB_HOST_LIBS}"
    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}"
    LDLIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    LIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    LDLIBS="${SB_BUILD_LIBS}"
    LIBS="${SB_BUILD_LIBS}"
    CC=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS LIBS LDLIBS
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST LDLIBS_FOR_HOST LIBS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD LDLIBS_FOR_BUILS LIBS_FOR_BUILS
  if test "x86_64-freebsd12.1" != "x86_64-freebsd12.1" ; 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-freebsd12.1 --host=x86_64-freebsd12.1  --target=sparc-rtems5  --verbose --disable-nls  --disable-gas --disable-binutils --disable-ld --disable-gold --disable-gprof    --without-included-gettext  --disable-win32-registry  --disable-werror  --disable-sim    --without-zlib  --with-expat  --with-guile=no  --with-libiconv-prefix=/usr/local  --with-python=/usr/local/bin/python2  --prefix=/build/rtems/tools/5 --bindir=/build/rtems/tools/5/bin  --exec-prefix=/build/rtems/tools/5  --includedir=/build/rtems/tools/5/include --libdir=/build/rtems/tools/5/lib  --mandir=/build/rtems/tools/5/share/man --infodir=/build/rtems/tools/5/share/info
  gmake -j 16 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  /bin/rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  gmake DESTDIR=$SB_BUILD_ROOT install
  /bin/rm -rf $SB_BUILD_ROOT/build/rtems/tools/5/share/info/configure.info*
  /bin/rm -f $SB_BUILD_ROOT/build/rtems/tools/5/share/info/dir
  touch $SB_BUILD_ROOT/build/rtems/tools/5/share/info/dir
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Thu May  7 09:47:29 2020
==============================================================================
Report: tools/rtems-binutils-2.34.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
[ remotes removed, contact sender for details ]
 Status:
  Clean
 Head:
  Commit: 0affb6647dd4ece5774fa0c3d1563119591261cf
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-binutils-2.34.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-binutils-2.34.cfg
------------------------------------------------------------------------------
Package: sparc-rtems5-binutils-2.34-x86_64-freebsd12.1-1
 Config: tools/rtems-binutils-2.34.cfg
 Summary:
  Binutils v2.34 for target sparc-rtems5 on host x86_64-freebsd12.1
 URL:
  http://sources.redhat.com/binutils
 Version:
  2.34
 Release:
  1
  Sources: 1
    1: https://ftp.gnu.org/gnu/binutils/binutils-2.34.tar.bz2
       sha512: f47e7304e102c7bbc97958a08093e27796b9051d1567ce4fbb723d39ef3e29efa325ee14a1bdcc462a925a7f9bbbc9aee28294c6dc23850f371030f3835a8067
  Patches: 0
 Preparation:
  build_top=$(pwd)
  binutils_source="binutils-2.34"
  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-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross-build (Xc) if no target or the host and target match.
    # Canadian-cross (Cxc) if build, host and target are all different.
    if test -z "sparc-rtems5" -o "x86_64-freebsd12.1" == "sparc-rtems5" ; 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-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd12.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd12.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    LDLIBS="${SB_HOST_LIBS}"
    LIBS="${SB_HOST_LIBS}"
    # Host
    CPPFLAGS_FOR_HOST="${SB_HOST_CPPFLAGS}"
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    LDLIBS_FOR_HOST="${SB_HOST_LIBS}"
    LIBS_FOR_HOST="${SB_HOST_LIBS}"
    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}"
    LDLIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    LIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    LDLIBS="${SB_BUILD_LIBS}"
    LIBS="${SB_BUILD_LIBS}"
    CC=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS LIBS LDLIBS
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST LDLIBS_FOR_HOST LIBS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD LDLIBS_FOR_BUILS LIBS_FOR_BUILS
  ../${source_dir_binutils}/configure  --build=x86_64-freebsd12.1 --host=x86_64-freebsd12.1  --target=sparc-rtems5  --verbose --disable-nls  --disable-gdb --disable-libdecnumber --disable-readline --disable-sim  --enable-deterministic-archives  --enable-64-bit-bfd    --disable-lto  --without-included-gettext  --disable-win32-registry  --disable-werror  --prefix=/build/rtems/tools/5 --bindir=/build/rtems/tools/5/bin  --exec-prefix=/build/rtems/tools/5  --includedir=/build/rtems/tools/5/include --libdir=/build/rtems/tools/5/lib  --mandir=/build/rtems/tools/5/share/man --infodir=/build/rtems/tools/5/share/info
  gmake -j 16 all
  cd ${build_top}
 Install:
  cd ${build_top}
  /bin/rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  gmake DESTDIR=$SB_BUILD_ROOT install
  /bin/rm -rf $SB_BUILD_ROOT/build/rtems/tools/5/share/info/configure.info*
  /bin/rm -f $SB_BUILD_ROOT/build/rtems/tools/5/share/info/dir
  touch $SB_BUILD_ROOT/build/rtems/tools/5/share/info/dir
  mkdir -p $SB_BUILD_ROOT/build/rtems/tools/5/share/locale
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/5/lib/libiberty*
  if test ! -f ${SB_BUILD_ROOT}/build/rtems/tools/5/bin/sparc-rtems5-dlltool; then
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/5/share/man/man1/sparc-rtems5-dlltool*
  fi
  if test ! -f ${SB_BUILD_ROOT}/build/rtems/tools/5/bin/sparc-rtems5-nlmconv; then
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/5/share/man/man1/sparc-rtems5-nlmconv*
  fi
  if test ! -f ${SB_BUILD_ROOT}/build/rtems/tools/5/bin/sparc-rtems5-windres; then
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/5/share/man/man1/sparc-rtems5-windres*
  fi
  if test ! -f ${SB_BUILD_ROOT}/build/rtems/tools/5/bin/sparc-rtems5-windmc; then
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/5/share/man/man1/sparc-rtems5-windmc*
  fi
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Thu May  7 09:47:29 2020
==============================================================================
Report: tools/rtems-binutils-2.34.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
[ remotes removed, contact sender for details ]
 Status:
  Clean
 Head:
  Commit: 0affb6647dd4ece5774fa0c3d1563119591261cf
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-binutils-2.34.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-binutils-2.34.cfg
------------------------------------------------------------------------------
Package: sparc-rtems5-binutils-2.34-x86_64-freebsd12.1-1
 Config: tools/rtems-binutils-2.34.cfg
 Summary:
  Binutils v2.34 for target sparc-rtems5 on host x86_64-freebsd12.1
 URL:
  http://sources.redhat.com/binutils
 Version:
  2.34
 Release:
  1
  Sources: 1
    1: https://ftp.gnu.org/gnu/binutils/binutils-2.34.tar.bz2
       sha512: f47e7304e102c7bbc97958a08093e27796b9051d1567ce4fbb723d39ef3e29efa325ee14a1bdcc462a925a7f9bbbc9aee28294c6dc23850f371030f3835a8067
  Patches: 0
 Preparation:
  build_top=$(pwd)
  binutils_source="binutils-2.34"
  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-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross-build (Xc) if no target or the host and target match.
    # Canadian-cross (Cxc) if build, host and target are all different.
    if test -z "sparc-rtems5" -o "x86_64-freebsd12.1" == "sparc-rtems5" ; 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-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd12.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd12.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    LDLIBS="${SB_HOST_LIBS}"
    LIBS="${SB_HOST_LIBS}"
    # Host
    CPPFLAGS_FOR_HOST="${SB_HOST_CPPFLAGS}"
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    LDLIBS_FOR_HOST="${SB_HOST_LIBS}"
    LIBS_FOR_HOST="${SB_HOST_LIBS}"
    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}"
    LDLIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    LIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    LDLIBS="${SB_BUILD_LIBS}"
    LIBS="${SB_BUILD_LIBS}"
    CC=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS LIBS LDLIBS
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST LDLIBS_FOR_HOST LIBS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD LDLIBS_FOR_BUILS LIBS_FOR_BUILS
  ../${source_dir_binutils}/configure  --build=x86_64-freebsd12.1 --host=x86_64-freebsd12.1  --target=sparc-rtems5  --verbose --disable-nls  --disable-gdb --disable-libdecnumber --disable-readline --disable-sim  --enable-deterministic-archives  --enable-64-bit-bfd    --disable-lto  --without-included-gettext  --disable-win32-registry  --disable-werror  --prefix=/build/rtems/tools/5 --bindir=/build/rtems/tools/5/bin  --exec-prefix=/build/rtems/tools/5  --includedir=/build/rtems/tools/5/include --libdir=/build/rtems/tools/5/lib  --mandir=/build/rtems/tools/5/share/man --infodir=/build/rtems/tools/5/share/info
  gmake -j 16 all
  cd ${build_top}
 Install:
  cd ${build_top}
  /bin/rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  gmake DESTDIR=$SB_BUILD_ROOT install
  /bin/rm -rf $SB_BUILD_ROOT/build/rtems/tools/5/share/info/configure.info*
  /bin/rm -f $SB_BUILD_ROOT/build/rtems/tools/5/share/info/dir
  touch $SB_BUILD_ROOT/build/rtems/tools/5/share/info/dir
  mkdir -p $SB_BUILD_ROOT/build/rtems/tools/5/share/locale
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/5/lib/libiberty*
  if test ! -f ${SB_BUILD_ROOT}/build/rtems/tools/5/bin/sparc-rtems5-dlltool; then
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/5/share/man/man1/sparc-rtems5-dlltool*
  fi
  if test ! -f ${SB_BUILD_ROOT}/build/rtems/tools/5/bin/sparc-rtems5-nlmconv; then
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/5/share/man/man1/sparc-rtems5-nlmconv*
  fi
  if test ! -f ${SB_BUILD_ROOT}/build/rtems/tools/5/bin/sparc-rtems5-windres; then
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/5/share/man/man1/sparc-rtems5-windres*
  fi
  if test ! -f ${SB_BUILD_ROOT}/build/rtems/tools/5/bin/sparc-rtems5-windmc; then
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/5/share/man/man1/sparc-rtems5-windmc*
  fi
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Thu May  7 10:02:45 2020
==============================================================================
Report: tools/rtems-gcc-7.5.0-newlib-7947581.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
[ remotes removed, contact sender for details ]
 Status:
  Clean
 Head:
  Commit: 0affb6647dd4ece5774fa0c3d1563119591261cf
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-gcc-7.5.0-newlib-7947581.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-gcc-7.5.0-newlib-7947581.cfg
------------------------------------------------------------------------------
Package: sparc-rtems5-gcc-7.5.0-newlib-7947581-x86_64-freebsd12.1-1
 Config: tools/rtems-gcc-7.5.0-newlib-7947581.cfg
 Summary:
  GCC v7.5.0 and Newlib v7947581 for target sparc-rtems5 on host x86_64-freebsd12.1
 URL:
  http://gcc.gnu.org/
 Version:
  7.5.0
 Release:
  1
  Sources: 6
    1: https://ftp.gnu.org/gnu/gcc/gcc-7.5.0/gcc-7.5.0.tar.xz
       sha512: fe716cc19f2e3255d3a8b1b8290777bf769c6d98e6e0b07b81a3d6ad43f8af74cb170dfa18b1555dbfcd3f55ae582b91a286ccef496b9b65c1579902f96a1f60
    2: https://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz
       sha512: 0028b76df130720c1fad7de937a0d041224806ce5ef76589f19c7b49d956071a683e2f20d154c192a231e69756b19e48208f2889b0c13950ceb7b3cfaf059a43
    3: --rsb-file=newlib-7947581.tar.gz https://codeload.github.com/RTEMS/sourceware-mirror-newlib-cygwin/tar.gz/7947581
       No checksum
    4: https://gcc.gnu.org/pub/gcc/infrastructure/isl-0.16.1.tar.bz2
       sha512: c188667a84dc5bdddb4ab7c35f89c91bf15a8171f4fcaf41301cf285fb7328846d9a367c096012fec4cc69d244f0bc9e95d84c09ec097394cd4093076f2a041b
    5: https://ftp.gnu.org/gnu/gmp/gmp-6.1.0.tar.bz2
       sha512: 3c82aeab9c1596d4da8afac2eec38e429e84f3211e1a572cf8fd2b546493c44c039b922a1133eaaa48bd7f3e11dbe795a384e21ed95cbe3ecc58d7ac02246117
    6: https://ftp.gnu.org/gnu/mpfr/mpfr-3.1.4.tar.bz2
       sha512: 51066066ff2c12ed2198605ecf68846b0c96b548adafa5b80e0c786d0df488411a5e8973358fce7192dc977ad4e68414cf14500e3c39746de62465eb145bb819
  Patches: 1
    1: https://gcc.gnu.org/bugzilla/attachment.cgi?id=41380
       No checksum
 Preparation:
  build_top=$(pwd)
  gcc_source="gcc-7.5.0"
  source_dir_gcc=${gcc_source}
  %setup source gcc -q -n ${gcc_source}
  %setup patch gcc -p1
  cd ${build_top}
  source_dir_newlib=sourceware-mirror-newlib-cygwin-7947581
  %setup source newlib -q -D -n ${source_dir_newlib}
  %setup patch newlib -p1
  cd ${build_top}
  /bin/rm -f ${source_dir_gcc}/newlib
  ln -s $PWD/${source_dir_newlib}/newlib ${source_dir_gcc}/newlib
  source_dir_isl="isl-0.16.1"
  %setup source isl -q -D -n isl-0.16.1
  %setup patch isl -p1
  cd ${build_top}
  /bin/rm -f ${source_dir_gcc}/isl
  ln -s $PWD/${source_dir_isl} ${source_dir_gcc}/isl
  source_dir_mpfr="mpfr-3.1.4"
  %setup source mpfr -q -D -n mpfr-3.1.4
  %setup patch mpfr -p1
  cd ${build_top}
  /bin/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}
  /bin/rm -f ${source_dir_gcc}/mpc
  ln -s $PWD/${source_dir_mpc} ${source_dir_gcc}/mpc
  source_dir_gmp="gmp-6.1.0"
  %setup source gmp -q -D -n gmp-6.1.0
  %setup patch gmp -p1
  cd ${build_top}
  /bin/rm -f ${source_dir_gcc}/gmp
  ln -s $PWD/${source_dir_gmp} ${source_dir_gcc}/gmp
  echo "RTEMS 5, RSB 5 (0affb6647dd4), Newlib 7947581" > ${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-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross-build (Xc) if no target or the host and target match.
    # Canadian-cross (Cxc) if build, host and target are all different.
    if test -z "sparc-rtems5" -o "x86_64-freebsd12.1" == "sparc-rtems5" ; 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++"
  # 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-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd12.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd12.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    LDLIBS="${SB_HOST_LIBS}"
    LIBS="${SB_HOST_LIBS}"
    # Host
    CPPFLAGS_FOR_HOST="${SB_HOST_CPPFLAGS}"
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    LDLIBS_FOR_HOST="${SB_HOST_LIBS}"
    LIBS_FOR_HOST="${SB_HOST_LIBS}"
    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}"
    LDLIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    LIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    LDLIBS="${SB_BUILD_LIBS}"
    LIBS="${SB_BUILD_LIBS}"
    CC=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS LIBS LDLIBS
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST LDLIBS_FOR_HOST LIBS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD LDLIBS_FOR_BUILS LIBS_FOR_BUILS
  ../${source_dir_gcc}/configure  --prefix=/build/rtems/tools/5  --bindir=/build/rtems/tools/5/bin  --exec_prefix=/build/rtems/tools/5  --includedir=/build/rtems/tools/5/include  --libdir=/build/rtems/tools/5/lib  --libexecdir=/build/rtems/tools/5/libexec  --mandir=/build/rtems/tools/5/share/man  --infodir=/build/rtems/tools/5/share/info  --datadir=/build/rtems/tools/5/share  --build=x86_64-freebsd12.1 --host=x86_64-freebsd12.1  --target=sparc-rtems5  --disable-libstdcxx-pch  --with-gnu-as --with-gnu-ld --verbose  --with-newlib  --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-libgomp    --enable-languages="$languages"
  if test "%_host" != "%_build" ; then
  mkdir -p gcc/include
  cp ../${source_dir_gcc}/gcc/gsyslimits.h gcc/include/syslimits.h
  fi
  gmake -j 16 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  /bin/rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  gmake DESTDIR=$SB_BUILD_ROOT install
  cd ${build_top}
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/5/lib/libiberty.a
  /bin/rm -f $SB_BUILD_ROOT/build/rtems/tools/5/bin/sparc-rtems5-c++filt
  /bin/rm -f $SB_BUILD_ROOT/build/rtems/tools/5/share/info/dir
  /bin/rm -f $SB_BUILD_ROOT/build/rtems/tools/5/share/man/man3/*ffi*
  /bin/rm -rf ${source_dir_gcc}/newlib
  /bin/rm -rf ${source_dir_gcc}/mpfr
  /bin/rm -rf ${source_dir_gcc}/mpc
  /bin/rm -rf ${source_dir_gcc}/gmp
==============================================================================
RTEMS Tools Project <users at rtems.org> Thu May  7 10:02:45 2020
==============================================================================
Report: tools/rtems-gcc-7.5.0-newlib-7947581.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
[ remotes removed, contact sender for details ]
 Status:
  Clean
 Head:
  Commit: 0affb6647dd4ece5774fa0c3d1563119591261cf
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-gcc-7.5.0-newlib-7947581.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-gcc-7.5.0-newlib-7947581.cfg
------------------------------------------------------------------------------
Package: sparc-rtems5-gcc-7.5.0-newlib-7947581-x86_64-freebsd12.1-1
 Config: tools/rtems-gcc-7.5.0-newlib-7947581.cfg
 Summary:
  GCC v7.5.0 and Newlib v7947581 for target sparc-rtems5 on host x86_64-freebsd12.1
 URL:
  http://gcc.gnu.org/
 Version:
  7.5.0
 Release:
  1
  Sources: 6
    1: https://ftp.gnu.org/gnu/gcc/gcc-7.5.0/gcc-7.5.0.tar.xz
       sha512: fe716cc19f2e3255d3a8b1b8290777bf769c6d98e6e0b07b81a3d6ad43f8af74cb170dfa18b1555dbfcd3f55ae582b91a286ccef496b9b65c1579902f96a1f60
    2: https://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz
       sha512: 0028b76df130720c1fad7de937a0d041224806ce5ef76589f19c7b49d956071a683e2f20d154c192a231e69756b19e48208f2889b0c13950ceb7b3cfaf059a43
    3: --rsb-file=newlib-7947581.tar.gz https://codeload.github.com/RTEMS/sourceware-mirror-newlib-cygwin/tar.gz/7947581
       No checksum
    4: https://gcc.gnu.org/pub/gcc/infrastructure/isl-0.16.1.tar.bz2
       sha512: c188667a84dc5bdddb4ab7c35f89c91bf15a8171f4fcaf41301cf285fb7328846d9a367c096012fec4cc69d244f0bc9e95d84c09ec097394cd4093076f2a041b
    5: https://ftp.gnu.org/gnu/gmp/gmp-6.1.0.tar.bz2
       sha512: 3c82aeab9c1596d4da8afac2eec38e429e84f3211e1a572cf8fd2b546493c44c039b922a1133eaaa48bd7f3e11dbe795a384e21ed95cbe3ecc58d7ac02246117
    6: https://ftp.gnu.org/gnu/mpfr/mpfr-3.1.4.tar.bz2
       sha512: 51066066ff2c12ed2198605ecf68846b0c96b548adafa5b80e0c786d0df488411a5e8973358fce7192dc977ad4e68414cf14500e3c39746de62465eb145bb819
  Patches: 1
    1: https://gcc.gnu.org/bugzilla/attachment.cgi?id=41380
       No checksum
 Preparation:
  build_top=$(pwd)
  gcc_source="gcc-7.5.0"
  source_dir_gcc=${gcc_source}
  %setup source gcc -q -n ${gcc_source}
  %setup patch gcc -p1
  cd ${build_top}
  source_dir_newlib=sourceware-mirror-newlib-cygwin-7947581
  %setup source newlib -q -D -n ${source_dir_newlib}
  %setup patch newlib -p1
  cd ${build_top}
  /bin/rm -f ${source_dir_gcc}/newlib
  ln -s $PWD/${source_dir_newlib}/newlib ${source_dir_gcc}/newlib
  source_dir_isl="isl-0.16.1"
  %setup source isl -q -D -n isl-0.16.1
  %setup patch isl -p1
  cd ${build_top}
  /bin/rm -f ${source_dir_gcc}/isl
  ln -s $PWD/${source_dir_isl} ${source_dir_gcc}/isl
  source_dir_mpfr="mpfr-3.1.4"
  %setup source mpfr -q -D -n mpfr-3.1.4
  %setup patch mpfr -p1
  cd ${build_top}
  /bin/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}
  /bin/rm -f ${source_dir_gcc}/mpc
  ln -s $PWD/${source_dir_mpc} ${source_dir_gcc}/mpc
  source_dir_gmp="gmp-6.1.0"
  %setup source gmp -q -D -n gmp-6.1.0
  %setup patch gmp -p1
  cd ${build_top}
  /bin/rm -f ${source_dir_gcc}/gmp
  ln -s $PWD/${source_dir_gmp} ${source_dir_gcc}/gmp
  echo "RTEMS 5, RSB 5 (0affb6647dd4), Newlib 7947581" > ${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-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross-build (Xc) if no target or the host and target match.
    # Canadian-cross (Cxc) if build, host and target are all different.
    if test -z "sparc-rtems5" -o "x86_64-freebsd12.1" == "sparc-rtems5" ; 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++"
  # 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-freebsd12.1" != "x86_64-freebsd12.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd12.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd12.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    LDLIBS="${SB_HOST_LIBS}"
    LIBS="${SB_HOST_LIBS}"
    # Host
    CPPFLAGS_FOR_HOST="${SB_HOST_CPPFLAGS}"
    CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"
    CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"
    LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"
    LDLIBS_FOR_HOST="${SB_HOST_LIBS}"
    LIBS_FOR_HOST="${SB_HOST_LIBS}"
    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}"
    LDLIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    LIBS_FOR_BUILD="${SB_BUILD_LIBS}"
    CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"
    CC_FOR_BUILD=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    LDLIBS="${SB_BUILD_LIBS}"
    LIBS="${SB_BUILD_LIBS}"
    CC=$(echo "/usr/bin/cc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/c++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CC_FOR_BUILD=${CC}
    CXX_FOR_BUILD=${CXX}
  fi
  export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS LIBS LDLIBS
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST LDLIBS_FOR_HOST LIBS_FOR_HOST
  export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD LDLIBS_FOR_BUILS LIBS_FOR_BUILS
  ../${source_dir_gcc}/configure  --prefix=/build/rtems/tools/5  --bindir=/build/rtems/tools/5/bin  --exec_prefix=/build/rtems/tools/5  --includedir=/build/rtems/tools/5/include  --libdir=/build/rtems/tools/5/lib  --libexecdir=/build/rtems/tools/5/libexec  --mandir=/build/rtems/tools/5/share/man  --infodir=/build/rtems/tools/5/share/info  --datadir=/build/rtems/tools/5/share  --build=x86_64-freebsd12.1 --host=x86_64-freebsd12.1  --target=sparc-rtems5  --disable-libstdcxx-pch  --with-gnu-as --with-gnu-ld --verbose  --with-newlib  --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-libgomp    --enable-languages="$languages"
  if test "%_host" != "%_build" ; then
  mkdir -p gcc/include
  cp ../${source_dir_gcc}/gcc/gsyslimits.h gcc/include/syslimits.h
  fi
  gmake -j 16 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  /bin/rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  gmake DESTDIR=$SB_BUILD_ROOT install
  cd ${build_top}
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/5/lib/libiberty.a
  /bin/rm -f $SB_BUILD_ROOT/build/rtems/tools/5/bin/sparc-rtems5-c++filt
  /bin/rm -f $SB_BUILD_ROOT/build/rtems/tools/5/share/info/dir
  /bin/rm -f $SB_BUILD_ROOT/build/rtems/tools/5/share/man/man3/*ffi*
  /bin/rm -rf ${source_dir_gcc}/newlib
  /bin/rm -rf ${source_dir_gcc}/mpfr
  /bin/rm -rf ${source_dir_gcc}/mpc
  /bin/rm -rf ${source_dir_gcc}/gmp
==============================================================================
RTEMS Tools Project <users at rtems.org> Thu May  7 10:02:57 2020
==============================================================================
Report: tools/rtems-tools-5-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
[ remotes removed, contact sender for details ]
 Status:
  Clean
 Head:
  Commit: 0affb6647dd4ece5774fa0c3d1563119591261cf
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-tools-5-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-tools-5-1.cfg
------------------------------------------------------------------------------
Package: rtems-tools-6de89d9268f3019f2eb9cf7e1ad8102792d6a428-1
 Config: tools/rtems-tools-5-1.cfg
 Summary:
  RTEMS Tools 6de89d9268f3019f2eb9cf7e1ad8102792d6a428 for host x86_64-freebsd12.1
 URL:
  http://www.rtems.org/
 Version:
  6de89d9268f3019f2eb9cf7e1ad8102792d6a428
 Release:
  1
  Sources: 1
    1: https://git.rtems.org/rtems-tools/snapshot/rtems-tools-6de89d9268f3019f2eb9cf7e1ad8102792d6a428.tar.bz2
       sha512: xygT4/Q1nw/q61ZGi0ICbte0ypbDx8vlws/XmWTwDJ5Udjr9zitGzqMthT1mrc/cEI7o3Dr4D8dzOwz05E2AGA==
  Patches: 0
 Preparation:
  build_top=$(pwd)
  rtems_tools_source=rtems-tools-6de89d9268f3019f2eb9cf7e1ad8102792d6a428
  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-freebsd12.1" != "x86_64-freebsd12.1" ; then
  RT_HOST="--host=x86_64-freebsd12.1"
  else
  RT_HOST=
  fi
  cd ${source_dir_rtems_tools}
  ./waf distclean configure ${RT_HOST} --prefix=/build/rtems/tools/5
  ./waf
  cd ${build_top}
 Install:
  build_top=$(pwd)
  /bin/rm -rf $SB_BUILD_ROOT
  cd ${source_dir_rtems_tools}
  ./waf --destdir=$SB_BUILD_ROOT install
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Thu May  7 10:02:57 2020
==============================================================================
Report: tools/rtems-tools-5-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
[ remotes removed, contact sender for details ]
 Status:
  Clean
 Head:
  Commit: 0affb6647dd4ece5774fa0c3d1563119591261cf
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-tools-5-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-tools-5-1.cfg
------------------------------------------------------------------------------
Package: rtems-tools-6de89d9268f3019f2eb9cf7e1ad8102792d6a428-1
 Config: tools/rtems-tools-5-1.cfg
 Summary:
  RTEMS Tools 6de89d9268f3019f2eb9cf7e1ad8102792d6a428 for host x86_64-freebsd12.1
 URL:
  http://www.rtems.org/
 Version:
  6de89d9268f3019f2eb9cf7e1ad8102792d6a428
 Release:
  1
  Sources: 1
    1: https://git.rtems.org/rtems-tools/snapshot/rtems-tools-6de89d9268f3019f2eb9cf7e1ad8102792d6a428.tar.bz2
       sha512: xygT4/Q1nw/q61ZGi0ICbte0ypbDx8vlws/XmWTwDJ5Udjr9zitGzqMthT1mrc/cEI7o3Dr4D8dzOwz05E2AGA==
  Patches: 0
 Preparation:
  build_top=$(pwd)
  rtems_tools_source=rtems-tools-6de89d9268f3019f2eb9cf7e1ad8102792d6a428
  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-freebsd12.1" != "x86_64-freebsd12.1" ; then
  RT_HOST="--host=x86_64-freebsd12.1"
  else
  RT_HOST=
  fi
  cd ${source_dir_rtems_tools}
  ./waf distclean configure ${RT_HOST} --prefix=/build/rtems/tools/5
  ./waf
  cd ${build_top}
 Install:
  build_top=$(pwd)
  /bin/rm -rf $SB_BUILD_ROOT
  cd ${source_dir_rtems_tools}
  ./waf --destdir=$SB_BUILD_ROOT install
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Thu May  7 10:02:59 2020
==============================================================================
Report: devel/sis-2-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
[ remotes removed, contact sender for details ]
 Status:
  Clean
 Head:
  Commit: 0affb6647dd4ece5774fa0c3d1563119591261cf
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) devel/sis-2-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) devel/sis-2-1.cfg
------------------------------------------------------------------------------
Package: sis-2.21-x86_64-freebsd12.1-1
 Config: devel/sis-2-1.cfg
 Summary:
  Sis v2.21 for host x86_64-freebsd12.1
 Version:
  2.21
 Release:
  1
  Sources: 1
    1: https://git.rtems.org/sis/snapshot/sis-2.21.tar.bz2
       sha256: 5274139971a7b4de0b27c7c5909c053a4b7d3959924cc16b3879abfbe9639656
  Patches: 0
 Preparation:
  build_top=$(pwd)
  %setup source sis -q -n sis-2.21
  cd ${build_top}
 Build:
  build_top=$(pwd)
  cd sis-2.21
  ac_prefix=/build/rtems/tools/5
  if test "x86_64-freebsd12.1" != "x86_64-freebsd12.1" ; then
  CFLAGS_FOR_BUILD="-g -O2 -Wall"
  fi
  export CFLAGS CFLAGS_FOR_BUILD CC
  if test "sparc-rtems5" != "" ; then
  SIS_PREFIX="sparc-rtems5-"
  fi
  CFLAGS="$SB_CFLAGS"  ./configure  --build=x86_64-freebsd12.1 --host=x86_64-freebsd12.1  --program-prefix="$SIS_PREFIX"  --prefix=${ac_prefix}
  gmake -j 16 all
  unset CFLAGS_FOR_BUILD
  cd ${build_top}
 Install:
  build_top=$(pwd)
  export PATH="/build/rtems/tools/5/bin:${PATH}"
  /bin/rm -rf $SB_BUILD_ROOT
  cd sis-2.21
  gmake DESTDIR=$SB_BUILD_ROOT install
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Thu May  7 10:02:59 2020
==============================================================================
Report: devel/sis-2-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
[ remotes removed, contact sender for details ]
 Status:
  Clean
 Head:
  Commit: 0affb6647dd4ece5774fa0c3d1563119591261cf
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) devel/sis-2-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) devel/sis-2-1.cfg
------------------------------------------------------------------------------
Package: sis-2.21-x86_64-freebsd12.1-1
 Config: devel/sis-2-1.cfg
 Summary:
  Sis v2.21 for host x86_64-freebsd12.1
 Version:
  2.21
 Release:
  1
  Sources: 1
    1: https://git.rtems.org/sis/snapshot/sis-2.21.tar.bz2
       sha256: 5274139971a7b4de0b27c7c5909c053a4b7d3959924cc16b3879abfbe9639656
  Patches: 0
 Preparation:
  build_top=$(pwd)
  %setup source sis -q -n sis-2.21
  cd ${build_top}
 Build:
  build_top=$(pwd)
  cd sis-2.21
  ac_prefix=/build/rtems/tools/5
  if test "x86_64-freebsd12.1" != "x86_64-freebsd12.1" ; then
  CFLAGS_FOR_BUILD="-g -O2 -Wall"
  fi
  export CFLAGS CFLAGS_FOR_BUILD CC
  if test "sparc-rtems5" != "" ; then
  SIS_PREFIX="sparc-rtems5-"
  fi
  CFLAGS="$SB_CFLAGS"  ./configure  --build=x86_64-freebsd12.1 --host=x86_64-freebsd12.1  --program-prefix="$SIS_PREFIX"  --prefix=${ac_prefix}
  gmake -j 16 all
  unset CFLAGS_FOR_BUILD
  cd ${build_top}
 Install:
  build_top=$(pwd)
  export PATH="/build/rtems/tools/5/bin:${PATH}"
  /bin/rm -rf $SB_BUILD_ROOT
  cd sis-2.21
  gmake DESTDIR=$SB_BUILD_ROOT install
  cd ${build_top}


More information about the build mailing list