[PATCH v2] port ndbm

Vaibhav Gupta vaibhavgupta40 at gmail.com
Wed Jun 26 15:05:41 UTC 2019


Hello,

Newlib is compiling successfully.
But when i applied patch to RSB. It is not generating     ndbm.h     inside
  rtems/5/sparc-rtem5/include     this time.

I am following same steps again which I followed that day when ndbm.h was
successfully generated.
Below are the log files generated by rsb build.

On Wed, Jun 26, 2019 at 8:32 PM Vaibhav Gupta <vaibhavgupta40 at gmail.com>
wrote:

> ---
>  newlib/libc/include/ndbm.h     |  84 +++++++++++++
>  newlib/libc/search/Makefile.am |   1 +
>  newlib/libc/search/ndbm.c      | 215 +++++++++++++++++++++++++++++++++
>  3 files changed, 300 insertions(+)
>  create mode 100644 newlib/libc/include/ndbm.h
>  create mode 100644 newlib/libc/search/ndbm.c
>
> diff --git a/newlib/libc/include/ndbm.h b/newlib/libc/include/ndbm.h
> new file mode 100644
> index 000000000..3b42c60b0
> --- /dev/null
> +++ b/newlib/libc/include/ndbm.h
> @@ -0,0 +1,84 @@
> +/*-
> + * SPDX-License-Identifier: BSD-3-Clause
> + *
> + * Copyright (c) 1990, 1993
> + *     The Regents of the University of California.  All rights reserved.
> + *
> + * This code is derived from software contributed to Berkeley by
> + * Margo Seltzer.
> + *
> + * Redistribution and use in source and binary forms, with or without
> + * modification, are permitted provided that the following conditions
> + * are met:
> + * 1. Redistributions of source code must retain the above copyright
> + *    notice, this list of conditions and the following disclaimer.
> + * 2. Redistributions in binary form must reproduce the above copyright
> + *    notice, this list of conditions and the following disclaimer in the
> + *    documentation and/or other materials provided with the distribution.
> + * 3. Neither the name of the University nor the names of its contributors
> + *    may be used to endorse or promote products derived from this
> software
> + *    without specific prior written permission.
> + *
> + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
> + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
> + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
> PURPOSE
> + * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
> LIABLE
> + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
> CONSEQUENTIAL
> + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
> + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
> + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
> STRICT
> + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
> WAY
> + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
> + * SUCH DAMAGE.
> + *
> + *     @(#)ndbm.h      8.1 (Berkeley) 6/2/93
> + * $FreeBSD$
> + */
> +
> +#ifndef _NDBM_H_
> +#define        _NDBM_H_
> +
> +#define __DBINTERFACE_PRIVATE
> +
> +/* Map dbm interface onto db(3). */
> +#define DBM_RDONLY     O_RDONLY
> +
> +/* Flags to dbm_store(). */
> +#define DBM_INSERT      0
> +#define DBM_REPLACE     1
> +
> +/*
> + * The db(3) support for ndbm always appends this suffix to the
> + * file name to avoid overwriting the user's original database.
> + */
> +#define        DBM_SUFFIX      ".db"
> +
> +typedef struct {
> +       void *dptr;
> +       int dsize;      /* XXX Should be size_t according to 1003.1-2008.
> */
> +} datum;
> +
> +struct __db;
> +typedef struct __db DB;
> +typedef DB DBM;
> +#define        dbm_pagfno(a)   DBM_PAGFNO_NOT_AVAILABLE
> +
> +__BEGIN_DECLS
> +int     dbm_clearerr(DBM *);
> +void    dbm_close(DBM *);
> +int     dbm_delete(DBM *, datum);
> +int     dbm_error(DBM *);
> +datum   dbm_fetch(DBM *, datum);
> +datum   dbm_firstkey(DBM *);
> +#if __BSD_VISIBLE
> +long    dbm_forder(DBM *, datum);
> +#endif
> +datum   dbm_nextkey(DBM *);
> +DBM    *dbm_open(const char *, int, mode_t);
> +int     dbm_store(DBM *, datum, datum, int);
> +#if __BSD_VISIBLE
> +int     dbm_dirfno(DBM *);
> +#endif
> +__END_DECLS
> +
> +#endif /* !_NDBM_H_ */
> diff --git a/newlib/libc/search/Makefile.am
> b/newlib/libc/search/Makefile.am
> index 98920c3f4..a61107fb9 100644
> --- a/newlib/libc/search/Makefile.am
> +++ b/newlib/libc/search/Makefile.am
> @@ -9,6 +9,7 @@ GENERAL_SOURCES = \
>         db_local.h \
>         extern.h \
>         hash.h \
> +       ndbm.c \
>         page.h \
>         qsort.c
>
> diff --git a/newlib/libc/search/ndbm.c b/newlib/libc/search/ndbm.c
> new file mode 100644
> index 000000000..8ac6d1f40
> --- /dev/null
> +++ b/newlib/libc/search/ndbm.c
> @@ -0,0 +1,215 @@
> +/*-
> + * SPDX-License-Identifier: BSD-3-Clause
> + *
> + * Copyright (c) 1990, 1993
> + *     The Regents of the University of California.  All rights reserved.
> + *
> + * This code is derived from software contributed to Berkeley by
> + * Margo Seltzer.
> + *
> + * Redistribution and use in source and binary forms, with or without
> + * modification, are permitted provided that the following conditions
> + * are met:
> + * 1. Redistributions of source code must retain the above copyright
> + *    notice, this list of conditions and the following disclaimer.
> + * 2. Redistributions in binary form must reproduce the above copyright
> + *    notice, this list of conditions and the following disclaimer in the
> + *    documentation and/or other materials provided with the distribution.
> + * 3. Neither the name of the University nor the names of its contributors
> + *    may be used to endorse or promote products derived from this
> software
> + *    without specific prior written permission.
> + *
> + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
> + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
> + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
> PURPOSE
> + * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
> LIABLE
> + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
> CONSEQUENTIAL
> + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
> + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
> + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
> STRICT
> + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
> WAY
> + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
> + * SUCH DAMAGE.
> + */
> +
> +#if defined(LIBC_SCCS) && !defined(lint)
> +static char sccsid[] = "@(#)ndbm.c     8.4 (Berkeley) 7/21/94";
> +#endif /* LIBC_SCCS and not lint */
> +#include <sys/cdefs.h>
> +__FBSDID("$FreeBSD$");
> +
> +/*
> + * This package provides a dbm compatible interface to the new hashing
> + * package described in db(3).
> + */
> +
> +#include <sys/param.h>
> +
> +#include <stdio.h>
> +#include <string.h>
> +#include <errno.h>
> +
> +#include <ndbm.h>
> +#include "db_local.h"
> +#include "hash.h"
> +
> +/*
> + * Returns:
> + *     *DBM on success
> + *      NULL on failure
> + */
> +extern DBM *
> +dbm_open(const char *file, int flags, mode_t mode)
> +{
> +       HASHINFO info;
> +       char path[MAXPATHLEN];
> +
> +       info.bsize = 4096;
> +       info.ffactor = 40;
> +       info.nelem = 1;
> +       info.cachesize = 0;
> +       info.hash = NULL;
> +       info.lorder = 0;
> +
> +       if( strlen(file) >= sizeof(path) - strlen(DBM_SUFFIX)) {
> +               errno = ENAMETOOLONG;
> +               return(NULL);
> +       }
> +       (void)strcpy(path, file);
> +       (void)strcat(path, DBM_SUFFIX);
> +       return ((DBM *)__hash_open(path, flags, mode, 0, &info));
> +}
> +
> +extern void
> +dbm_close(DBM *db)
> +{
> +       (void)(db->close)(db);
> +}
> +
> +/*
> + * Returns:
> + *     DATUM on success
> + *     NULL on failure
> + */
> +extern datum
> +dbm_fetch(DBM *db, datum key)
> +{
> +       datum retdata;
> +       int status;
> +       DBT dbtkey, dbtretdata;
> +
> +       dbtkey.data = key.dptr;
> +       dbtkey.size = key.dsize;
> +       status = (db->get)(db, &dbtkey, &dbtretdata, 0);
> +       if (status) {
> +               dbtretdata.data = NULL;
> +               dbtretdata.size = 0;
> +       }
> +       retdata.dptr = dbtretdata.data;
> +       retdata.dsize = dbtretdata.size;
> +       return (retdata);
> +}
> +
> +/*
> + * Returns:
> + *     DATUM on success
> + *     NULL on failure
> + */
> +extern datum
> +dbm_firstkey(DBM *db)
> +{
> +       int status;
> +       datum retkey;
> +       DBT dbtretkey, dbtretdata;
> +
> +       status = (db->seq)(db, &dbtretkey, &dbtretdata, R_FIRST);
> +       if (status)
> +               dbtretkey.data = NULL;
> +       retkey.dptr = dbtretkey.data;
> +       retkey.dsize = dbtretkey.size;
> +       return (retkey);
> +}
> +
> +/*
> + * Returns:
> + *     DATUM on success
> + *     NULL on failure
> + */
> +extern datum
> +dbm_nextkey(DBM *db)
> +{
> +       int status;
> +       datum retkey;
> +       DBT dbtretkey, dbtretdata;
> +
> +       status = (db->seq)(db, &dbtretkey, &dbtretdata, R_NEXT);
> +       if (status)
> +               dbtretkey.data = NULL;
> +       retkey.dptr = dbtretkey.data;
> +       retkey.dsize = dbtretkey.size;
> +       return (retkey);
> +}
> +
> +/*
> + * Returns:
> + *      0 on success
> + *     <0 failure
> + */
> +extern int
> +dbm_delete(DBM *db, datum key)
> +{
> +       int status;
> +       DBT dbtkey;
> +
> +       dbtkey.data = key.dptr;
> +       dbtkey.size = key.dsize;
> +       status = (db->del)(db, &dbtkey, 0);
> +       if (status)
> +               return (-1);
> +       else
> +               return (0);
> +}
> +
> +/*
> + * Returns:
> + *      0 on success
> + *     <0 failure
> + *      1 if DBM_INSERT and entry exists
> + */
> +extern int
> +dbm_store(DBM *db, datum key, datum data, int flags)
> +{
> +       DBT dbtkey, dbtdata;
> +
> +       dbtkey.data = key.dptr;
> +       dbtkey.size = key.dsize;
> +       dbtdata.data = data.dptr;
> +       dbtdata.size = data.dsize;
> +       return ((db->put)(db, &dbtkey, &dbtdata,
> +           (flags == DBM_INSERT) ? R_NOOVERWRITE : 0));
> +}
> +
> +extern int
> +dbm_error(DBM *db)
> +{
> +       HTAB *hp;
> +
> +       hp = (HTAB *)db->internal;
> +       return (hp->error);
> +}
> +
> +extern int
> +dbm_clearerr(DBM *db)
> +{
> +       HTAB *hp;
> +
> +       hp = (HTAB *)db->internal;
> +       hp->error = 0;
> +       return (0);
> +}
> +
> +extern int
> +dbm_dirfno(DBM *db)
> +{
> +       return(((HTAB *)db->internal)->fp);
> +}
> --
> 2.21.0
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190626/472925ec/attachment-0002.html>
-------------- next part --------------
==============================================================================
RTEMS Tools Project <users at rtems.org> Wed Jun 26 20:11:20 2019
==============================================================================
Report: tools/rtems-gcc-fb371a33fa6-newlib-5c2a3661c.cfg
------------------------------------------------------------------------------
RTEMS Source Builder Repository Status
 Remotes:
   1: origin: git://git.rtems.org/rtems-source-builder.git
 Status:
  Clean
 Head:
  Commit: 4bb33d3f4b2da33e3eb80ae2af5c6a48794d104b
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (1) tools/rtems-gcc-fb371a33fa6-newlib-5c2a3661c.cfg
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Build Set: (2) tools/rtems-gcc-fb371a33fa6-newlib-5c2a3661c.cfg
------------------------------------------------------------------------------
Package: sparc-rtems5-gcc-fb371a33fa6-newlib-5c2a3661c-x86_64-linux-gnu-1
 Config: tools/rtems-gcc-fb371a33fa6-newlib-5c2a3661c.cfg
 Summary:
  GCC vfb371a33fa6 and Newlib v5c2a3661c for target sparc-rtems5 on host x86_64-linux-gnu
 URL:
  http://gcc.gnu.org/
 Version:
  fb371a33fa6
 Release:
  1
  Sources: 6
    1: --rsb-file=gnu-mirror-gcc-fb371a33fa6.tar.gz https://codeload.github.com/RTEMS/gnu-mirror-gcc/tar.gz/fb371a33fa6
       No checksum
    2: https://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz
       sha512: 0028b76df130720c1fad7de937a0d041224806ce5ef76589f19c7b49d956071a683e2f20d154c192a231e69756b19e48208f2889b0c13950ceb7b3cfaf059a43
    3: --rsb-file=newlib-5c2a3661c.tar.gz https://codeload.github.com/RTEMS/sourceware-mirror-newlib-cygwin/tar.gz/5c2a3661c
       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: file://0001-port-ndbm.patch
       sha512: 56df8c044da87ba8b4c7bcaeb4fba6db8f09b356c24e324d353d643d68bb02ad65dacf938e6fb3579bd746e2c762465ca3c55f8cfcf8c301734bfb6ee5d85fb0
 Preparation:
  build_top=$(pwd)
  gcc_source=gnu-mirror-gcc-fb371a33fa6
  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-5c2a3661c
  %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 4bb33d3f4b2da33e3eb80ae2af5c6a48794d104b, Newlib 5c2a3661c" > ${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-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 "sparc-rtems5" -o "x86_64-linux-gnu" == "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-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 "gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX_FOR_BUILD=$(echo "g++ ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')
  else
    LDFLAGS="${SB_BUILD_LDFLAGS}"
    CC=$(echo "gcc ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')
    CXX=$(echo "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/varodek/development/rtems/5 \
  --bindir=/home/varodek/development/rtems/5/bin \
  --exec_prefix=/home/varodek/development/rtems/5 \
  --includedir=/home/varodek/development/rtems/5/include \
  --libdir=/home/varodek/development/rtems/5/lib \
  --libexecdir=/home/varodek/development/rtems/5/libexec \
  --mandir=/home/varodek/development/rtems/5/share/man \
  --infodir=/home/varodek/development/rtems/5/share/info \
  --datadir=/home/varodek/development/rtems/5/share \
  --build=x86_64-linux-gnu --host=x86_64-linux-gnu \
  --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
  make -j 4 all
  cd ${build_top}
 Install:
  build_top=$(pwd)
  /bin/rm -rf $SB_BUILD_ROOT
  cd ${build_dir}
  make DESTDIR=$SB_BUILD_ROOT install
  cd ${build_top}
  /bin/rm -f ${SB_BUILD_ROOT}/home/varodek/development/rtems/5/lib/libiberty.a
  /bin/rm -f $SB_BUILD_ROOT/home/varodek/development/rtems/5/bin/sparc-rtems5-c++filt
  /bin/rm -f $SB_BUILD_ROOT/home/varodek/development/rtems/5/share/info/dir
  /bin/rm -f $SB_BUILD_ROOT/home/varodek/development/rtems/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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sparc-rtems5-gcc-fb371a33fa6-newlib-5c2a3661c-x86_64-linux-gnu-1.xml
Type: text/xml
Size: 7734 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190626/472925ec/attachment-0002.xml>


More information about the devel mailing list