Build Linux: PASSED 4.10/rtems-nios2.bset on x86_64-linux-gnu

joel at rtems.org joel at rtems.org
Mon Jul 9 22:51:42 UTC 2018



Host: Linux-3.10.0-862.6.3.el7.x86_64-x86_64-with-centos-7.5.1804-Core
       Linux devel.oarcorp.com 3.10.0-862.6.3.el7.x86_64 #1 SMP Tue Jun 26
       16:32:21 UTC 2018 x86_64 x86_64

Build Time: 0:19:45.161735

Output
======



Report
======

==============================================================================
RTEMS Tools Project <users at rtems.org> Mon Jul  9 17:32:16 2018
==============================================================================
Report: devel/expat-2.1.0-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
   1: origin: ssh://joel@dispatch.rtems.org/data/git/rtems-source-builder.git
 Status:
  Clean
 Head:
  Commit: 6baeb3558640d4fba1a282ef0e570066dde64bb9
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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-linux-gnu-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-linux-gnu
 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-linux-gnu" != "x86_64-linux-gnu" ; then
    # Cross build
    CC=$(echo "x86_64-linux-gnu-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-linux-gnu-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/gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    CC=$(echo "/usr/bin/gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/g++ ${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-linux-gnu --host=x86_64-linux-gnu \
  --verbose \
  --prefix=/home/joel/rtems-410-work/tools/4.10 --bindir=/home/joel/rtems-410-work/tools/4.10/bin \
  --exec-prefix=/home/joel/rtems-410-work/tools/4.10 \
  --includedir=/home/joel/rtems-410-work/tools/4.10/include --libdir=/home/joel/rtems-410-work/tools/4.10/lib \
  --mandir=/home/joel/rtems-410-work/tools/4.10/share/man --infodir=/home/joel/rtems-410-work/tools/4.10/share/info
  make -j 8 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  rm -rf $SB_BUILD_ROOT
  cd expat-2.1.0
  make DESTDIR=$SB_BUILD_ROOT install
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Mon Jul  9 17:32:16 2018
==============================================================================
Report: devel/expat-2.1.0-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
   1: origin: ssh://joel@dispatch.rtems.org/data/git/rtems-source-builder.git
 Status:
  Clean
 Head:
  Commit: 6baeb3558640d4fba1a282ef0e570066dde64bb9
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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-linux-gnu-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-linux-gnu
 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-linux-gnu" != "x86_64-linux-gnu" ; then
    # Cross build
    CC=$(echo "x86_64-linux-gnu-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-linux-gnu-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/gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    CC=$(echo "/usr/bin/gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/g++ ${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-linux-gnu --host=x86_64-linux-gnu \
  --verbose \
  --prefix=/home/joel/rtems-410-work/tools/4.10 --bindir=/home/joel/rtems-410-work/tools/4.10/bin \
  --exec-prefix=/home/joel/rtems-410-work/tools/4.10 \
  --includedir=/home/joel/rtems-410-work/tools/4.10/include --libdir=/home/joel/rtems-410-work/tools/4.10/lib \
  --mandir=/home/joel/rtems-410-work/tools/4.10/share/man --infodir=/home/joel/rtems-410-work/tools/4.10/share/info
  make -j 8 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  rm -rf $SB_BUILD_ROOT
  cd expat-2.1.0
  make DESTDIR=$SB_BUILD_ROOT install
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Mon Jul  9 17:32:42 2018
==============================================================================
Report: tools/rtems-nios2-binutils-2.20-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
   1: origin: ssh://joel@dispatch.rtems.org/data/git/rtems-source-builder.git
 Status:
  Clean
 Head:
  Commit: 6baeb3558640d4fba1a282ef0e570066dde64bb9
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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-linux-gnu-1
 Config: tools/rtems-nios2-binutils-2.20-1.cfg
 Summary:
  Binutils v2.20 for target nios2-rtems4.10 on host x86_64-linux-gnu
 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-linux-gnu" != "x86_64-linux-gnu" ; 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-linux-gnu" == "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-linux-gnu" != "x86_64-linux-gnu" ; then
    # Cross build
    CC=$(echo "x86_64-linux-gnu-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-linux-gnu-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/gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    CC=$(echo "/usr/bin/gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/g++ ${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-linux-gnu --host=x86_64-linux-gnu \
  --target=nios2-rtems4.10 \
  --verbose --disable-nls \
  --enable-deterministic-archives \
  --without-included-gettext \
  --disable-win32-registry \
  --disable-werror \
  --prefix=/home/joel/rtems-410-work/tools/4.10 --bindir=/home/joel/rtems-410-work/tools/4.10/bin \
  --exec-prefix=/home/joel/rtems-410-work/tools/4.10 \
  --includedir=/home/joel/rtems-410-work/tools/4.10/include --libdir=/home/joel/rtems-410-work/tools/4.10/lib \
  --mandir=/home/joel/rtems-410-work/tools/4.10/share/man --infodir=/home/joel/rtems-410-work/tools/4.10/share/info
  make -j 8 all
  cd ${build_top}
 Install:
  cd ${build_top}
  /bin/rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  make DESTDIR=$SB_BUILD_ROOT install
  /bin/rm -rf $SB_BUILD_ROOT/home/joel/rtems-410-work/tools/4.10/share/info/configure.info*
  /bin/rm -f $SB_BUILD_ROOT/home/joel/rtems-410-work/tools/4.10/share/info/dir
  touch $SB_BUILD_ROOT/home/joel/rtems-410-work/tools/4.10/share/info/dir
  mkdir -p $SB_BUILD_ROOT/home/joel/rtems-410-work/tools/4.10/share/locale
  /bin/rm -f ${SB_BUILD_ROOT}/home/joel/rtems-410-work/tools/4.10/lib/libiberty*
  if test ! -f ${SB_BUILD_ROOT}/home/joel/rtems-410-work/tools/4.10/bin/nios2-rtems4.10-dlltool; then
  /bin/rm -f ${SB_BUILD_ROOT}/home/joel/rtems-410-work/tools/4.10/share/man/man1/nios2-rtems4.10-dlltool*
  fi
  if test ! -f ${SB_BUILD_ROOT}/home/joel/rtems-410-work/tools/4.10/bin/nios2-rtems4.10-nlmconv; then
  /bin/rm -f ${SB_BUILD_ROOT}/home/joel/rtems-410-work/tools/4.10/share/man/man1/nios2-rtems4.10-nlmconv*
  fi
  if test ! -f ${SB_BUILD_ROOT}/home/joel/rtems-410-work/tools/4.10/bin/nios2-rtems4.10-windres; then
  /bin/rm -f ${SB_BUILD_ROOT}/home/joel/rtems-410-work/tools/4.10/share/man/man1/nios2-rtems4.10-windres*
  fi
  if test ! -f ${SB_BUILD_ROOT}/home/joel/rtems-410-work/tools/4.10/bin/nios2-rtems4.10-windmc; then
  /bin/rm -f ${SB_BUILD_ROOT}/home/joel/rtems-410-work/tools/4.10/share/man/man1/nios2-rtems4.10-windmc*
  fi
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Mon Jul  9 17:32:42 2018
==============================================================================
Report: tools/rtems-nios2-binutils-2.20-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
   1: origin: ssh://joel@dispatch.rtems.org/data/git/rtems-source-builder.git
 Status:
  Clean
 Head:
  Commit: 6baeb3558640d4fba1a282ef0e570066dde64bb9
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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-linux-gnu-1
 Config: tools/rtems-nios2-binutils-2.20-1.cfg
 Summary:
  Binutils v2.20 for target nios2-rtems4.10 on host x86_64-linux-gnu
 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-linux-gnu" != "x86_64-linux-gnu" ; 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-linux-gnu" == "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-linux-gnu" != "x86_64-linux-gnu" ; then
    # Cross build
    CC=$(echo "x86_64-linux-gnu-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-linux-gnu-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/gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    CC=$(echo "/usr/bin/gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/g++ ${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-linux-gnu --host=x86_64-linux-gnu \
  --target=nios2-rtems4.10 \
  --verbose --disable-nls \
  --enable-deterministic-archives \
  --without-included-gettext \
  --disable-win32-registry \
  --disable-werror \
  --prefix=/home/joel/rtems-410-work/tools/4.10 --bindir=/home/joel/rtems-410-work/tools/4.10/bin \
  --exec-prefix=/home/joel/rtems-410-work/tools/4.10 \
  --includedir=/home/joel/rtems-410-work/tools/4.10/include --libdir=/home/joel/rtems-410-work/tools/4.10/lib \
  --mandir=/home/joel/rtems-410-work/tools/4.10/share/man --infodir=/home/joel/rtems-410-work/tools/4.10/share/info
  make -j 8 all
  cd ${build_top}
 Install:
  cd ${build_top}
  /bin/rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  make DESTDIR=$SB_BUILD_ROOT install
  /bin/rm -rf $SB_BUILD_ROOT/home/joel/rtems-410-work/tools/4.10/share/info/configure.info*
  /bin/rm -f $SB_BUILD_ROOT/home/joel/rtems-410-work/tools/4.10/share/info/dir
  touch $SB_BUILD_ROOT/home/joel/rtems-410-work/tools/4.10/share/info/dir
  mkdir -p $SB_BUILD_ROOT/home/joel/rtems-410-work/tools/4.10/share/locale
  /bin/rm -f ${SB_BUILD_ROOT}/home/joel/rtems-410-work/tools/4.10/lib/libiberty*
  if test ! -f ${SB_BUILD_ROOT}/home/joel/rtems-410-work/tools/4.10/bin/nios2-rtems4.10-dlltool; then
  /bin/rm -f ${SB_BUILD_ROOT}/home/joel/rtems-410-work/tools/4.10/share/man/man1/nios2-rtems4.10-dlltool*
  fi
  if test ! -f ${SB_BUILD_ROOT}/home/joel/rtems-410-work/tools/4.10/bin/nios2-rtems4.10-nlmconv; then
  /bin/rm -f ${SB_BUILD_ROOT}/home/joel/rtems-410-work/tools/4.10/share/man/man1/nios2-rtems4.10-nlmconv*
  fi
  if test ! -f ${SB_BUILD_ROOT}/home/joel/rtems-410-work/tools/4.10/bin/nios2-rtems4.10-windres; then
  /bin/rm -f ${SB_BUILD_ROOT}/home/joel/rtems-410-work/tools/4.10/share/man/man1/nios2-rtems4.10-windres*
  fi
  if test ! -f ${SB_BUILD_ROOT}/home/joel/rtems-410-work/tools/4.10/bin/nios2-rtems4.10-windmc; then
  /bin/rm -f ${SB_BUILD_ROOT}/home/joel/rtems-410-work/tools/4.10/share/man/man1/nios2-rtems4.10-windmc*
  fi
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Mon Jul  9 17:50:20 2018
==============================================================================
Report: tools/rtems-nios2-gcc-4.1-newlib-1.19.0-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
   1: origin: ssh://joel@dispatch.rtems.org/data/git/rtems-source-builder.git
 Status:
  Clean
 Head:
  Commit: 6baeb3558640d4fba1a282ef0e570066dde64bb9
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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-linux-gnu
 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 6baeb3558640d4fba1a282ef0e570066dde64bb9, 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-linux-gnu" != "x86_64-linux-gnu" ; 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-linux-gnu" == "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-linux-gnu" != "x86_64-linux-gnu" ; then
    # Cross build
    CC=$(echo "x86_64-linux-gnu-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-linux-gnu-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/gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    CC=$(echo "/usr/bin/gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/g++ ${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_gcc}/configure \
  --prefix=/home/joel/rtems-410-work/tools/4.10 \
  --bindir=/home/joel/rtems-410-work/tools/4.10/bin \
  --exec_prefix=/home/joel/rtems-410-work/tools/4.10 \
  --includedir=/home/joel/rtems-410-work/tools/4.10/include \
  --libdir=/home/joel/rtems-410-work/tools/4.10/lib \
  --libexecdir=/home/joel/rtems-410-work/tools/4.10/libexec \
  --mandir=/home/joel/rtems-410-work/tools/4.10/share/man \
  --infodir=/home/joel/rtems-410-work/tools/4.10/share/info \
  --datadir=/home/joel/rtems-410-work/tools/4.10/share \
  --build=x86_64-linux-gnu --host=x86_64-linux-gnu \
  --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
  make -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
  make -w DESTDIR=$SB_BUILD_ROOT N2GNU_BUILD_NEWLIB="normalc" install
  cd ..
  /bin/rm -f ${SB_BUILD_ROOT}/home/joel/rtems-410-work/tools/4.10/lib/libiberty.a
  /bin/rm -f $SB_BUILD_ROOT/home/joel/rtems-410-work/tools/4.10/bin/nios2-rtems4.10-c++filt
  /bin/rm -f $SB_BUILD_ROOT/home/joel/rtems-410-work/tools/4.10/share/info/dir
  /bin/rm -f $SB_BUILD_ROOT/home/joel/rtems-410-work/tools/4.10/share/man/man3/*ffi*
  /bin/rm -f ${source_dir_gcc}/newlib
==============================================================================
RTEMS Tools Project <users at rtems.org> Mon Jul  9 17:50:20 2018
==============================================================================
Report: tools/rtems-nios2-gcc-4.1-newlib-1.19.0-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
   1: origin: ssh://joel@dispatch.rtems.org/data/git/rtems-source-builder.git
 Status:
  Clean
 Head:
  Commit: 6baeb3558640d4fba1a282ef0e570066dde64bb9
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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-linux-gnu
 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 6baeb3558640d4fba1a282ef0e570066dde64bb9, 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-linux-gnu" != "x86_64-linux-gnu" ; 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-linux-gnu" == "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-linux-gnu" != "x86_64-linux-gnu" ; then
    # Cross build
    CC=$(echo "x86_64-linux-gnu-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-linux-gnu-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/gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    CC=$(echo "/usr/bin/gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/g++ ${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_gcc}/configure \
  --prefix=/home/joel/rtems-410-work/tools/4.10 \
  --bindir=/home/joel/rtems-410-work/tools/4.10/bin \
  --exec_prefix=/home/joel/rtems-410-work/tools/4.10 \
  --includedir=/home/joel/rtems-410-work/tools/4.10/include \
  --libdir=/home/joel/rtems-410-work/tools/4.10/lib \
  --libexecdir=/home/joel/rtems-410-work/tools/4.10/libexec \
  --mandir=/home/joel/rtems-410-work/tools/4.10/share/man \
  --infodir=/home/joel/rtems-410-work/tools/4.10/share/info \
  --datadir=/home/joel/rtems-410-work/tools/4.10/share \
  --build=x86_64-linux-gnu --host=x86_64-linux-gnu \
  --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
  make -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
  make -w DESTDIR=$SB_BUILD_ROOT N2GNU_BUILD_NEWLIB="normalc" install
  cd ..
  /bin/rm -f ${SB_BUILD_ROOT}/home/joel/rtems-410-work/tools/4.10/lib/libiberty.a
  /bin/rm -f $SB_BUILD_ROOT/home/joel/rtems-410-work/tools/4.10/bin/nios2-rtems4.10-c++filt
  /bin/rm -f $SB_BUILD_ROOT/home/joel/rtems-410-work/tools/4.10/share/info/dir
  /bin/rm -f $SB_BUILD_ROOT/home/joel/rtems-410-work/tools/4.10/share/man/man3/*ffi*
  /bin/rm -f ${source_dir_gcc}/newlib
==============================================================================
RTEMS Tools Project <users at rtems.org> Mon Jul  9 17:51:35 2018
==============================================================================
Report: tools/rtems-gdb-7.11-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
   1: origin: ssh://joel@dispatch.rtems.org/data/git/rtems-source-builder.git
 Status:
  Clean
 Head:
  Commit: 6baeb3558640d4fba1a282ef0e570066dde64bb9
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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-linux-gnu-1
 Config: tools/rtems-gdb-7.11-1.cfg
 Summary:
  GDB v7.11 for target nios2-rtems4.10 on host x86_64-linux-gnu
 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
 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-linux-gnu" != "x86_64-linux-gnu" ; 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-linux-gnu" == "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-linux-gnu" != "x86_64-linux-gnu" ; then
    # Cross build
    CC=$(echo "x86_64-linux-gnu-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-linux-gnu-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/gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    CC=$(echo "/usr/bin/gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/g++ ${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-linux-gnu" != "x86_64-linux-gnu" ; 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-linux-gnu --host=x86_64-linux-gnu \
  --target=nios2-rtems4.10 \
  --verbose --disable-nls \
  \
  --without-included-gettext \
  --disable-win32-registry \
  --disable-werror \
  --enable-sim \
  \
  --without-zlib \
  --with-expat \
  --with-python \
  --prefix=/home/joel/rtems-410-work/tools/4.10 --bindir=/home/joel/rtems-410-work/tools/4.10/bin \
  --exec-prefix=/home/joel/rtems-410-work/tools/4.10 \
  --includedir=/home/joel/rtems-410-work/tools/4.10/include --libdir=/home/joel/rtems-410-work/tools/4.10/lib \
  --mandir=/home/joel/rtems-410-work/tools/4.10/share/man --infodir=/home/joel/rtems-410-work/tools/4.10/share/info
  make -j 8 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  /bin/rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  make DESTDIR=$SB_BUILD_ROOT install
  /bin/rm -rf $SB_BUILD_ROOT/home/joel/rtems-410-work/tools/4.10/share/info/configure.info*
  /bin/rm -f $SB_BUILD_ROOT/home/joel/rtems-410-work/tools/4.10/share/info/dir
  touch $SB_BUILD_ROOT/home/joel/rtems-410-work/tools/4.10/share/info/dir
  cd ${build_top}
==============================================================================
RTEMS Tools Project <users at rtems.org> Mon Jul  9 17:51:35 2018
==============================================================================
Report: tools/rtems-gdb-7.11-1.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
   1: origin: ssh://joel@dispatch.rtems.org/data/git/rtems-source-builder.git
 Status:
  Clean
 Head:
  Commit: 6baeb3558640d4fba1a282ef0e570066dde64bb9
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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-linux-gnu-1
 Config: tools/rtems-gdb-7.11-1.cfg
 Summary:
  GDB v7.11 for target nios2-rtems4.10 on host x86_64-linux-gnu
 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
 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-linux-gnu" != "x86_64-linux-gnu" ; 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-linux-gnu" == "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-linux-gnu" != "x86_64-linux-gnu" ; then
    # Cross build
    CC=$(echo "x86_64-linux-gnu-gcc" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "x86_64-linux-gnu-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/gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "/usr/bin/g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    CC=$(echo "/usr/bin/gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "/usr/bin/g++ ${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-linux-gnu" != "x86_64-linux-gnu" ; 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-linux-gnu --host=x86_64-linux-gnu \
  --target=nios2-rtems4.10 \
  --verbose --disable-nls \
  \
  --without-included-gettext \
  --disable-win32-registry \
  --disable-werror \
  --enable-sim \
  \
  --without-zlib \
  --with-expat \
  --with-python \
  --prefix=/home/joel/rtems-410-work/tools/4.10 --bindir=/home/joel/rtems-410-work/tools/4.10/bin \
  --exec-prefix=/home/joel/rtems-410-work/tools/4.10 \
  --includedir=/home/joel/rtems-410-work/tools/4.10/include --libdir=/home/joel/rtems-410-work/tools/4.10/lib \
  --mandir=/home/joel/rtems-410-work/tools/4.10/share/man --infodir=/home/joel/rtems-410-work/tools/4.10/share/info
  make -j 8 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  /bin/rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  make DESTDIR=$SB_BUILD_ROOT install
  /bin/rm -rf $SB_BUILD_ROOT/home/joel/rtems-410-work/tools/4.10/share/info/configure.info*
  /bin/rm -f $SB_BUILD_ROOT/home/joel/rtems-410-work/tools/4.10/share/info/dir
  touch $SB_BUILD_ROOT/home/joel/rtems-410-work/tools/4.10/share/info/dir
  cd ${build_top}



More information about the build mailing list