Build FreeBSD: PASSED 4.10/rtems-nios2.bset on x86_64-freebsd11.1

Chris Johns chrisj at rtems.org
Fri Apr 13 01:44:26 UTC 2018



Host: FreeBSD-11.1-RELEASE-p4-amd64-64bit-ELF
       FreeBSD hihi 11.1-RELEASE-p4 FreeBSD 11.1-RELEASE-p4 #0: Tue Nov 14
       06:12:40 UTC 2017
       root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
       amd64

Build Time: 0:17:48.957958

Output
======



Report
======

==============================================================================
RTEMS Tools Project <users at rtems.org> Fri Apr 13 11:26:52 2018
==============================================================================
Report: devel/expat-2.1.0-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
   1: origin: git://git.rtems.org/rtems-source-builder.git
 Status:
  Clean
 Head:
  Commit: 9f4ed7e316e9803bd39c474012dc7914ef339fdd
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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-freebsd11.1-1
 Config: devel/expat-2.1.0-1.cfg
 Summary:
  Expat XML Parser v2.1.0 for target nios2-rtems4.10 on host x86_64-freebsd11.1
 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-freebsd11.1" != "x86_64-freebsd11.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd11.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd11.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    # 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}"
    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 "/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}"
    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
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_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-freebsd11.1 --host=x86_64-freebsd11.1 \
  --verbose \
  --prefix=/build/rtems/tools/4.10 --bindir=/build/rtems/tools/4.10/bin \
  --exec-prefix=/build/rtems/tools/4.10 \
  --includedir=/build/rtems/tools/4.10/include --libdir=/build/rtems/tools/4.10/lib \
  --mandir=/build/rtems/tools/4.10/share/man --infodir=/build/rtems/tools/4.10/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> Fri Apr 13 11:26:53 2018
==============================================================================
Report: devel/expat-2.1.0-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
   1: origin: git://git.rtems.org/rtems-source-builder.git
 Status:
  Clean
 Head:
  Commit: 9f4ed7e316e9803bd39c474012dc7914ef339fdd
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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-freebsd11.1-1
 Config: devel/expat-2.1.0-1.cfg
 Summary:
  Expat XML Parser v2.1.0 for target nios2-rtems4.10 on host x86_64-freebsd11.1
 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-freebsd11.1" != "x86_64-freebsd11.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd11.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd11.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    # 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}"
    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 "/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}"
    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
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_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-freebsd11.1 --host=x86_64-freebsd11.1 \
  --verbose \
  --prefix=/build/rtems/tools/4.10 --bindir=/build/rtems/tools/4.10/bin \
  --exec-prefix=/build/rtems/tools/4.10 \
  --includedir=/build/rtems/tools/4.10/include --libdir=/build/rtems/tools/4.10/lib \
  --mandir=/build/rtems/tools/4.10/share/man --infodir=/build/rtems/tools/4.10/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> Fri Apr 13 11:27:44 2018
==============================================================================
Report: tools/rtems-nios2-binutils-2.20-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
   1: origin: git://git.rtems.org/rtems-source-builder.git
 Status:
  Clean
 Head:
  Commit: 9f4ed7e316e9803bd39c474012dc7914ef339fdd
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-nios2-binutils-2.20-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-nios2-binutils-2.20-1.cfg
------------------------------------------------------------------------------
Package: nios2-rtems4.10-binutils-2.20-x86_64-freebsd11.1-1
 Config: tools/rtems-nios2-binutils-2.20-1.cfg
 Summary:
  Binutils v2.20 for target nios2-rtems4.10 on host x86_64-freebsd11.1
 URL:
  http://sources.redhat.com/binutils
 Version:
  2.20
 Release:
  1
  Sources: 1
    1: http://ftp.rtems.org/pub/rtems/people/chrisj/nios/nios2-binutils-2.20.tar.bz2
       md5: 42ce11b421a1d35fc7b17ee051ccf92a
  Patches: 1
    1: https://git.rtems.org/rtems-tools/plain/tools/4.10/binutils/nios2/nios2-binutils-2.20-rtems-20110703.diff
       md5: edaa78cdf7b87866c976232ccb1704ac
 Preparation:
  build_top=$(pwd)
  binutils_source="binutils-2.20"
  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-freebsd11.1" != "x86_64-freebsd11.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 "nios2-rtems4.10" -o "x86_64-freebsd11.1" == "nios2-rtems4.10" ; 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-freebsd11.1" != "x86_64-freebsd11.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd11.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd11.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    # 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}"
    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 "/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}"
    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
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_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-freebsd11.1 --host=x86_64-freebsd11.1 \
  --target=nios2-rtems4.10 \
  --verbose --disable-nls \
  --enable-deterministic-archives \
  --without-included-gettext \
  --disable-win32-registry \
  --disable-werror \
  --prefix=/build/rtems/tools/4.10 --bindir=/build/rtems/tools/4.10/bin \
  --exec-prefix=/build/rtems/tools/4.10 \
  --includedir=/build/rtems/tools/4.10/include --libdir=/build/rtems/tools/4.10/lib \
  --mandir=/build/rtems/tools/4.10/share/man --infodir=/build/rtems/tools/4.10/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/4.10/share/info/configure.info*
  /bin/rm -f $SB_BUILD_ROOT/build/rtems/tools/4.10/share/info/dir
  touch $SB_BUILD_ROOT/build/rtems/tools/4.10/share/info/dir
  mkdir -p $SB_BUILD_ROOT/build/rtems/tools/4.10/share/locale
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/4.10/lib/libiberty*
  if test ! -f ${SB_BUILD_ROOT}/build/rtems/tools/4.10/bin/nios2-rtems4.10-dlltool; then
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/4.10/share/man/man1/nios2-rtems4.10-dlltool*
  fi
  if test ! -f ${SB_BUILD_ROOT}/build/rtems/tools/4.10/bin/nios2-rtems4.10-nlmconv; then
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/4.10/share/man/man1/nios2-rtems4.10-nlmconv*
  fi
  if test ! -f ${SB_BUILD_ROOT}/build/rtems/tools/4.10/bin/nios2-rtems4.10-windres; then
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/4.10/share/man/man1/nios2-rtems4.10-windres*
  fi
  if test ! -f ${SB_BUILD_ROOT}/build/rtems/tools/4.10/bin/nios2-rtems4.10-windmc; then
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/4.10/share/man/man1/nios2-rtems4.10-windmc*
  fi
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Fri Apr 13 11:27:44 2018
==============================================================================
Report: tools/rtems-nios2-binutils-2.20-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
   1: origin: git://git.rtems.org/rtems-source-builder.git
 Status:
  Clean
 Head:
  Commit: 9f4ed7e316e9803bd39c474012dc7914ef339fdd
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-nios2-binutils-2.20-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-nios2-binutils-2.20-1.cfg
------------------------------------------------------------------------------
Package: nios2-rtems4.10-binutils-2.20-x86_64-freebsd11.1-1
 Config: tools/rtems-nios2-binutils-2.20-1.cfg
 Summary:
  Binutils v2.20 for target nios2-rtems4.10 on host x86_64-freebsd11.1
 URL:
  http://sources.redhat.com/binutils
 Version:
  2.20
 Release:
  1
  Sources: 1
    1: http://ftp.rtems.org/pub/rtems/people/chrisj/nios/nios2-binutils-2.20.tar.bz2
       md5: 42ce11b421a1d35fc7b17ee051ccf92a
  Patches: 1
    1: https://git.rtems.org/rtems-tools/plain/tools/4.10/binutils/nios2/nios2-binutils-2.20-rtems-20110703.diff
       md5: edaa78cdf7b87866c976232ccb1704ac
 Preparation:
  build_top=$(pwd)
  binutils_source="binutils-2.20"
  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-freebsd11.1" != "x86_64-freebsd11.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 "nios2-rtems4.10" -o "x86_64-freebsd11.1" == "nios2-rtems4.10" ; 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-freebsd11.1" != "x86_64-freebsd11.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd11.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd11.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    # 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}"
    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 "/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}"
    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
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_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-freebsd11.1 --host=x86_64-freebsd11.1 \
  --target=nios2-rtems4.10 \
  --verbose --disable-nls \
  --enable-deterministic-archives \
  --without-included-gettext \
  --disable-win32-registry \
  --disable-werror \
  --prefix=/build/rtems/tools/4.10 --bindir=/build/rtems/tools/4.10/bin \
  --exec-prefix=/build/rtems/tools/4.10 \
  --includedir=/build/rtems/tools/4.10/include --libdir=/build/rtems/tools/4.10/lib \
  --mandir=/build/rtems/tools/4.10/share/man --infodir=/build/rtems/tools/4.10/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/4.10/share/info/configure.info*
  /bin/rm -f $SB_BUILD_ROOT/build/rtems/tools/4.10/share/info/dir
  touch $SB_BUILD_ROOT/build/rtems/tools/4.10/share/info/dir
  mkdir -p $SB_BUILD_ROOT/build/rtems/tools/4.10/share/locale
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/4.10/lib/libiberty*
  if test ! -f ${SB_BUILD_ROOT}/build/rtems/tools/4.10/bin/nios2-rtems4.10-dlltool; then
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/4.10/share/man/man1/nios2-rtems4.10-dlltool*
  fi
  if test ! -f ${SB_BUILD_ROOT}/build/rtems/tools/4.10/bin/nios2-rtems4.10-nlmconv; then
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/4.10/share/man/man1/nios2-rtems4.10-nlmconv*
  fi
  if test ! -f ${SB_BUILD_ROOT}/build/rtems/tools/4.10/bin/nios2-rtems4.10-windres; then
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/4.10/share/man/man1/nios2-rtems4.10-windres*
  fi
  if test ! -f ${SB_BUILD_ROOT}/build/rtems/tools/4.10/bin/nios2-rtems4.10-windmc; then
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/4.10/share/man/man1/nios2-rtems4.10-windmc*
  fi
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Fri Apr 13 11:43:10 2018
==============================================================================
Report: tools/rtems-nios2-gcc-4.1-newlib-1.19.0-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
   1: origin: git://git.rtems.org/rtems-source-builder.git
 Status:
  Clean
 Head:
  Commit: 9f4ed7e316e9803bd39c474012dc7914ef339fdd
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-nios2-gcc-4.1-newlib-1.19.0-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-nios2-gcc-4.1-newlib-1.19.0-1.cfg
------------------------------------------------------------------------------
Package: nios2-rtems4.10-gcc-4.1-newlib-1.19.0-1
 Config: tools/rtems-nios2-gcc-4.1-newlib-1.19.0-1.cfg
 Summary:
  GCC v4.1 and Newlib v1.19.0 for target nios2-rtems4.10 on host x86_64-freebsd11.1
 URL:
  http://gcc.gnu.org/
 Version:
  4.1
 Release:
  1
  Sources: 2
    1: ftp://sourceware.org/pub/newlib/newlib-1.19.0.tar.gz
       md5: 0966e19f03217db9e9076894b47e6601
    2: http://ftp.rtems.org/pub/rtems/people/chrisj/nios/nios2-gcc-4.1.tar.bz2
       md5: 717e5a25fda68d96d09353bcfa149cff
  Patches: 2
    1: https://git.rtems.org/rtems-tools/plain/tools/4.10/newlib/nios2/nios2-newlib-1.19.0-rtems-20110720.diff
       md5: 1994da6f6eeb8dd510dc1856466fbdbd
    2: https://git.rtems.org/rtems-tools/plain/tools/4.10/gcc/nios2/nios2-gcc-4.1-rtems-20110818.diff
       md5: 1b5ffb73dacc04eb886de0b6f0506462
 Preparation:
  build_top=$(pwd)
  source_dir_gcc="gcc-4.1"
  %setup source gcc -q -b -n gcc-4.1
  %setup patch gcc -p1
  cd ${build_top}
  source_dir_newlib="newlib-1.19.0"
  %setup source newlib -q -b -n newlib-1.19.0
  %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
  echo "RTEMS 4.10, RSB 9f4ed7e316e9803bd39c474012dc7914ef339fdd, Newlib 1.19.0" > gcc-4.1/gcc/DEV-PHASE
  cd ${source_dir_gcc}
  contrib/gcc_update --touch
  cd ${build_top}
 Build:
  if test "x86_64-freebsd11.1" != "x86_64-freebsd11.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 "nios2-rtems4.10" -o "x86_64-freebsd11.1" == "nios2-rtems4.10" ; 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-freebsd11.1" != "x86_64-freebsd11.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd11.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd11.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    # 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}"
    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 "/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}"
    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
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_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
  CC="${CC} -std=gnu89" \
  ../${source_dir_gcc}/configure \
  --prefix=/build/rtems/tools/4.10 \
  --bindir=/build/rtems/tools/4.10/bin \
  --exec_prefix=/build/rtems/tools/4.10 \
  --includedir=/build/rtems/tools/4.10/include \
  --libdir=/build/rtems/tools/4.10/lib \
  --libexecdir=/build/rtems/tools/4.10/libexec \
  --mandir=/build/rtems/tools/4.10/share/man \
  --infodir=/build/rtems/tools/4.10/share/info \
  --datadir=/build/rtems/tools/4.10/share \
  --build=x86_64-freebsd11.1 --host=x86_64-freebsd11.1 \
  --target=nios2-rtems4.10 \
  --disable-libstdcxx-pch \
  --with-gnu-as --with-gnu-ld --verbose \
  --with-newlib \
  --with-system-zlib \
  --disable-nls --without-included-gettext \
  --disable-win32-registry \
  --enable-version-specific-runtime-libs \
  --disable-lto \
  --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
  gmake -w N2GNU_BUILD_NEWLIB="normalc" all
  cd ..
 Install:
  /bin/rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  for m in $(find . -name Makefile)
  do
  mv $m $m.orig
  echo "Doc filteirng $m.orig -> $m"
  cat $m.orig | sed -e 's/ pdf / /g' \
  -e 's/ pdf$/ /g' \
  -e 's/ install-pdf / /g' \
  -e 's/ install-pdf$/ /g' \
  -e 's/ install-html / /g' \
  -e 's/ install-html$/ /g' \
  -e 's/ html / /g' \
  -e 's/ html$/ /g' > $m
  done
  gmake -w DESTDIR=$SB_BUILD_ROOT N2GNU_BUILD_NEWLIB="normalc" install
  cd ..
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/4.10/lib/libiberty.a
  /bin/rm -f $SB_BUILD_ROOT/build/rtems/tools/4.10/bin/nios2-rtems4.10-c++filt
  /bin/rm -f $SB_BUILD_ROOT/build/rtems/tools/4.10/share/info/dir
  /bin/rm -f $SB_BUILD_ROOT/build/rtems/tools/4.10/share/man/man3/*ffi*
  /bin/rm -f ${source_dir_gcc}/newlib
==============================================================================
RTEMS Tools Project <users at rtems.org> Fri Apr 13 11:43:10 2018
==============================================================================
Report: tools/rtems-nios2-gcc-4.1-newlib-1.19.0-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
   1: origin: git://git.rtems.org/rtems-source-builder.git
 Status:
  Clean
 Head:
  Commit: 9f4ed7e316e9803bd39c474012dc7914ef339fdd
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-nios2-gcc-4.1-newlib-1.19.0-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-nios2-gcc-4.1-newlib-1.19.0-1.cfg
------------------------------------------------------------------------------
Package: nios2-rtems4.10-gcc-4.1-newlib-1.19.0-1
 Config: tools/rtems-nios2-gcc-4.1-newlib-1.19.0-1.cfg
 Summary:
  GCC v4.1 and Newlib v1.19.0 for target nios2-rtems4.10 on host x86_64-freebsd11.1
 URL:
  http://gcc.gnu.org/
 Version:
  4.1
 Release:
  1
  Sources: 2
    1: ftp://sourceware.org/pub/newlib/newlib-1.19.0.tar.gz
       md5: 0966e19f03217db9e9076894b47e6601
    2: http://ftp.rtems.org/pub/rtems/people/chrisj/nios/nios2-gcc-4.1.tar.bz2
       md5: 717e5a25fda68d96d09353bcfa149cff
  Patches: 2
    1: https://git.rtems.org/rtems-tools/plain/tools/4.10/newlib/nios2/nios2-newlib-1.19.0-rtems-20110720.diff
       md5: 1994da6f6eeb8dd510dc1856466fbdbd
    2: https://git.rtems.org/rtems-tools/plain/tools/4.10/gcc/nios2/nios2-gcc-4.1-rtems-20110818.diff
       md5: 1b5ffb73dacc04eb886de0b6f0506462
 Preparation:
  build_top=$(pwd)
  source_dir_gcc="gcc-4.1"
  %setup source gcc -q -b -n gcc-4.1
  %setup patch gcc -p1
  cd ${build_top}
  source_dir_newlib="newlib-1.19.0"
  %setup source newlib -q -b -n newlib-1.19.0
  %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
  echo "RTEMS 4.10, RSB 9f4ed7e316e9803bd39c474012dc7914ef339fdd, Newlib 1.19.0" > gcc-4.1/gcc/DEV-PHASE
  cd ${source_dir_gcc}
  contrib/gcc_update --touch
  cd ${build_top}
 Build:
  if test "x86_64-freebsd11.1" != "x86_64-freebsd11.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 "nios2-rtems4.10" -o "x86_64-freebsd11.1" == "nios2-rtems4.10" ; 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-freebsd11.1" != "x86_64-freebsd11.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd11.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd11.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    # 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}"
    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 "/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}"
    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
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_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
  CC="${CC} -std=gnu89" \
  ../${source_dir_gcc}/configure \
  --prefix=/build/rtems/tools/4.10 \
  --bindir=/build/rtems/tools/4.10/bin \
  --exec_prefix=/build/rtems/tools/4.10 \
  --includedir=/build/rtems/tools/4.10/include \
  --libdir=/build/rtems/tools/4.10/lib \
  --libexecdir=/build/rtems/tools/4.10/libexec \
  --mandir=/build/rtems/tools/4.10/share/man \
  --infodir=/build/rtems/tools/4.10/share/info \
  --datadir=/build/rtems/tools/4.10/share \
  --build=x86_64-freebsd11.1 --host=x86_64-freebsd11.1 \
  --target=nios2-rtems4.10 \
  --disable-libstdcxx-pch \
  --with-gnu-as --with-gnu-ld --verbose \
  --with-newlib \
  --with-system-zlib \
  --disable-nls --without-included-gettext \
  --disable-win32-registry \
  --enable-version-specific-runtime-libs \
  --disable-lto \
  --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
  gmake -w N2GNU_BUILD_NEWLIB="normalc" all
  cd ..
 Install:
  /bin/rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  for m in $(find . -name Makefile)
  do
  mv $m $m.orig
  echo "Doc filteirng $m.orig -> $m"
  cat $m.orig | sed -e 's/ pdf / /g' \
  -e 's/ pdf$/ /g' \
  -e 's/ install-pdf / /g' \
  -e 's/ install-pdf$/ /g' \
  -e 's/ install-html / /g' \
  -e 's/ install-html$/ /g' \
  -e 's/ html / /g' \
  -e 's/ html$/ /g' > $m
  done
  gmake -w DESTDIR=$SB_BUILD_ROOT N2GNU_BUILD_NEWLIB="normalc" install
  cd ..
  /bin/rm -f ${SB_BUILD_ROOT}/build/rtems/tools/4.10/lib/libiberty.a
  /bin/rm -f $SB_BUILD_ROOT/build/rtems/tools/4.10/bin/nios2-rtems4.10-c++filt
  /bin/rm -f $SB_BUILD_ROOT/build/rtems/tools/4.10/share/info/dir
  /bin/rm -f $SB_BUILD_ROOT/build/rtems/tools/4.10/share/man/man3/*ffi*
  /bin/rm -f ${source_dir_gcc}/newlib
==============================================================================
RTEMS Tools Project <users at rtems.org> Fri Apr 13 11:44:17 2018
==============================================================================
Report: tools/rtems-gdb-7.11-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
   1: origin: git://git.rtems.org/rtems-source-builder.git
 Status:
  Clean
 Head:
  Commit: 9f4ed7e316e9803bd39c474012dc7914ef339fdd
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-gdb-7.11-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-gdb-7.11-1.cfg
------------------------------------------------------------------------------
Package: nios2-rtems4.10-gdb-7.11-x86_64-freebsd11.1-1
 Config: tools/rtems-gdb-7.11-1.cfg
 Summary:
  GDB v7.11 for target nios2-rtems4.10 on host x86_64-freebsd11.1
 URL:
  http://www.gnu.org/software/gdb/
 Version:
  7.11
 Release:
  1
  Sources: 1
    1: http://ftp.gnu.org/gnu/gdb/gdb-7.11.tar.xz
       md5: b5c784685e1cde65ba135feea86b6d75
  Patches: 1
    1: https://git.rtems.org/rtems-tools/plain/tools/4.10/gdb/gdb-7.11-erc32-endian-fix.diff
       md5: d0cd4207f0c7d04cb9bc9b918eebfdc6
    2: https://git.rtems.org/rtems-tools/plain/tools/4.10/gdb/gdb-7.11-erc32-printf_filtered.diff
       md5: 1e03d4c90c0cb4ded7c08963210f7127
    3: https://git.rtems.org/rtems-tools/plain/tools/4.10/gdb/gdb-7.11-erc32-common-run.diff
       md5: e986ce115b81f7dd45f36d6f257af541
    4: https://git.rtems.org/rtems-tools/plain/tools/4.10/gdb/patch-gdb-python-python-config.py
       md5: c0260fcca4c1a5509635049c0094eee3
 Preparation:
  build_top=$(pwd)
  gdb_source="gdb-7.11"
  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-freebsd11.1" != "x86_64-freebsd11.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 "nios2-rtems4.10" -o "x86_64-freebsd11.1" == "nios2-rtems4.10" ; 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-freebsd11.1" != "x86_64-freebsd11.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd11.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd11.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    # 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}"
    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 "/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}"
    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
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_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-freebsd11.1" != "x86_64-freebsd11.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-freebsd11.1 --host=x86_64-freebsd11.1 \
  --target=nios2-rtems4.10 \
  --verbose --disable-nls \
  \
  --without-included-gettext \
  --disable-win32-registry \
  --disable-werror \
  --enable-sim \
  \
  --without-zlib \
  --with-expat \
  --with-python \
  --prefix=/build/rtems/tools/4.10 --bindir=/build/rtems/tools/4.10/bin \
  --exec-prefix=/build/rtems/tools/4.10 \
  --includedir=/build/rtems/tools/4.10/include --libdir=/build/rtems/tools/4.10/lib \
  --mandir=/build/rtems/tools/4.10/share/man --infodir=/build/rtems/tools/4.10/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/4.10/share/info/configure.info*
  /bin/rm -f $SB_BUILD_ROOT/build/rtems/tools/4.10/share/info/dir
  touch $SB_BUILD_ROOT/build/rtems/tools/4.10/share/info/dir
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Fri Apr 13 11:44:17 2018
==============================================================================
Report: tools/rtems-gdb-7.11-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
   1: origin: git://git.rtems.org/rtems-source-builder.git
 Status:
  Clean
 Head:
  Commit: 9f4ed7e316e9803bd39c474012dc7914ef339fdd
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-gdb-7.11-1.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-gdb-7.11-1.cfg
------------------------------------------------------------------------------
Package: nios2-rtems4.10-gdb-7.11-x86_64-freebsd11.1-1
 Config: tools/rtems-gdb-7.11-1.cfg
 Summary:
  GDB v7.11 for target nios2-rtems4.10 on host x86_64-freebsd11.1
 URL:
  http://www.gnu.org/software/gdb/
 Version:
  7.11
 Release:
  1
  Sources: 1
    1: http://ftp.gnu.org/gnu/gdb/gdb-7.11.tar.xz
       md5: b5c784685e1cde65ba135feea86b6d75
  Patches: 1
    1: https://git.rtems.org/rtems-tools/plain/tools/4.10/gdb/gdb-7.11-erc32-endian-fix.diff
       md5: d0cd4207f0c7d04cb9bc9b918eebfdc6
    2: https://git.rtems.org/rtems-tools/plain/tools/4.10/gdb/gdb-7.11-erc32-printf_filtered.diff
       md5: 1e03d4c90c0cb4ded7c08963210f7127
    3: https://git.rtems.org/rtems-tools/plain/tools/4.10/gdb/gdb-7.11-erc32-common-run.diff
       md5: e986ce115b81f7dd45f36d6f257af541
    4: https://git.rtems.org/rtems-tools/plain/tools/4.10/gdb/patch-gdb-python-python-config.py
       md5: c0260fcca4c1a5509635049c0094eee3
 Preparation:
  build_top=$(pwd)
  gdb_source="gdb-7.11"
  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-freebsd11.1" != "x86_64-freebsd11.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 "nios2-rtems4.10" -o "x86_64-freebsd11.1" == "nios2-rtems4.10" ; 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-freebsd11.1" != "x86_64-freebsd11.1" ; then
    # Cross build
    CC=$(echo "x86_64-freebsd11.1-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-freebsd11.1-g++" | sed -e 's,-std=gnu99 ,,')
    CPPFLAGS="${SB_HOST_CPPFLAGS}"
    CFLAGS="${SB_HOST_CFLAGS}"
    CXXFLAGS="${SB_HOST_CXXFLAGS}"
    LDFLAGS="${SB_HOST_LDFLAGS}"
    # 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}"
    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 "/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}"
    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
  export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_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-freebsd11.1" != "x86_64-freebsd11.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-freebsd11.1 --host=x86_64-freebsd11.1 \
  --target=nios2-rtems4.10 \
  --verbose --disable-nls \
  \
  --without-included-gettext \
  --disable-win32-registry \
  --disable-werror \
  --enable-sim \
  \
  --without-zlib \
  --with-expat \
  --with-python \
  --prefix=/build/rtems/tools/4.10 --bindir=/build/rtems/tools/4.10/bin \
  --exec-prefix=/build/rtems/tools/4.10 \
  --includedir=/build/rtems/tools/4.10/include --libdir=/build/rtems/tools/4.10/lib \
  --mandir=/build/rtems/tools/4.10/share/man --infodir=/build/rtems/tools/4.10/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/4.10/share/info/configure.info*
  /bin/rm -f $SB_BUILD_ROOT/build/rtems/tools/4.10/share/info/dir
  touch $SB_BUILD_ROOT/build/rtems/tools/4.10/share/info/dir
  cd ${build_top}


More information about the build mailing list