Subject: Question
To: None <tech-embed@netbsd.org>
From: Bharani Chadalavada <bharani.chadalavada@nexsi.com>
List: tech-embed
Date: 12/06/2000 20:27:13
This is a multi-part message in MIME format.
--------------6284091778E2C95AA7E56E15
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

I am new to this sort of a thing. Basically, we are trying to port
NetBSD to a mips based embedded chip. As a part of that I downloaded the
cross-mipseb-netbsd package to set-up a cross development environment.
We also decided to go with newlib from cygnus. When I try to compile the
newlib I get the following error. The exact command and the error are
attached. Can anyone help me with it. Or please suggest a better place
to discuss this, if this is not the right place.

Thank you,
Bharani.

--------------6284091778E2C95AA7E56E15
Content-Type: text/plain; charset=iso-8859-1;
 name="newfail"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline;
 filename="newfail"

%setenv egcc     /usr/pkg/cross/bin/mipseb-netbsd-gcc
%setenv eobj     /usr/pkg/cross/bin/mipseb-netbsd-objdump
%setenv enm      /usr/pkg/cross/bin/mipseb-netbsd-nm
%setenv ear      /usr/pkg/cross/bin/mipseb-netbsd-ar
%setenv eas      /usr/pkg/cross/bin/mipseb-netbsd-as
%setenv estrings /usr/pkg/cross/bin/mipseb-netbsd-strings
%setenv eld      /usr/pkg/cross/bin/mipseb-netbsd-ld
%setenv eranlib      /usr/pkg/cross/bin/mipseb-netbsd-ranlib
%
%make all install CC_FOR_TARGET=3D$egcc AS_FOR_TARGET=3D$eas AR_FOR_TARGE=
T=3D$ear LD_FOR_TARGET=3D$eld RANLIB_FOR_TARGET=3D$eranlib NM_FOR_TARGET=3D=
$enm OBJDUMP_FOR_TARGET=3D$eobj
make "AR_FLAGS=3Drc"  "CC_FOR_BUILD=3Dgcc"  "CFLAGS=3D-g -O2 -W -Wall -ma=
pollo -fno-delayed-branch -mno-abi-calls -msoft-float -Wa,-g2"  "CFLAGS_F=
OR_BUILD=3D"  "CFLAGS_FOR_TARGET=3D-g -O2 -W -Wall -mapollo -fno-delayed-=
branch -mno-abi-calls -msoft-float -Wa,-g2"  "INSTALL=3D/bin/sh /usr/tar_=
files/newlib-1.8.2/install-sh -c"  "INSTALL_DATA=3D/bin/sh /usr/tar_files=
/newlib-1.8.2/install-sh -c -m 644"  "INSTALL_PROGRAM=3D/bin/sh /usr/tar_=
files/newlib-1.8.2/install-sh -c "  "INSTALL_SCRIPT=3D/bin/sh /usr/tar_fi=
les/newlib-1.8.2/install-sh -c"  "LDFLAGS=3D"  "LIBCFLAGS=3D-g -O2 -W -Wa=
ll -mapollo -fno-delayed-branch -mno-abi-calls -msoft-float -Wa,-g2"  "LI=
BCFLAGS_FOR_TARGET=3D-g -O2 -W -Wall -mapollo -fno-delayed-branch -mno-ab=
i-calls -msoft-float -Wa,-g2"  "MAKE=3Dmake"  "MAKEINFO=3Dmakeinfo  "  "P=
ICFLAG=3D"  "PICFLAG_FOR_TARGET=3D"  "SHELL=3D/bin/sh"  "EXPECT=3Dexpect"=
  "RUNTEST=3Druntest"  "RUNTESTFLAGS=3D"  "exec_prefix=3D/usr/pkg/cross" =
 "infodir=3D/usr/pkg/cross/info"  "libdir=3D/usr/pkg/cross/lib"  "prefix=3D=
/usr/pkg/cross"  "tooldir=3D/usr/pkg/cross/mips-mips-elf"  "AR=3D/usr/pkg=
/cross/bin/mipseb-netbsd-ar"  "AS=3D/usr/pkg/cross/bin/mipseb-netbsd-as" =
 "CC=3D/usr/pkg/cross/bin/mipseb-netbsd-gcc"  "LD=3D/usr/pkg/cross/bin/mi=
pseb-netbsd-ld"  "LIBCFLAGS=3D-g -O2 -W -Wall -mapollo -fno-delayed-branc=
h -mno-abi-calls -msoft-float -Wa,-g2"  "NM=3D/usr/pkg/cross/bin/mipseb-n=
etbsd-nm"  "PICFLAG=3D"  "RANLIB=3D/usr/pkg/cross/bin/mipseb-netbsd-ranli=
b"  "DESTDIR=3D" DO=3Dall multi-do
if [ -z "" ]; then  true;  else  rootpre=3D`pwd`/; export rootpre;  srcro=
otpre=3D`cd ../../../newlib-1.8.2/newlib; pwd`/; export srcrootpre;  lib=3D=
`echo ${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`;  compiler=3D"/usr=
/pkg/cross/bin/mipseb-netbsd-gcc";  for i in `${compiler} --print-multi-l=
ib 2>/dev/null`; do  dir=3D`echo $i | sed -e 's/;.*$//'`;  if [ "${dir}" =
=3D "." ]; then  true;  else  if [ -d ../${dir}/${lib} ]; then  flags=3D`=
echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`;  if (cd ../${dir}/${lib}; =
make   CFLAGS=3D"-g -O2 -W -Wall -mapollo -fno-delayed-branch -mno-abi-ca=
lls -msoft-float -Wa,-g2 ${flags}"  CXXFLAGS=3D"-g -O2 ${flags}"  LIBCFLA=
GS=3D"-g -O2 -W -Wall -mapollo -fno-delayed-branch -mno-abi-calls -msoft-=
float -Wa,-g2 ${flags}"  LIBCXXFLAGS=3D"-g -O2 -fno-implicit-templates -f=
exceptions ${flags}"  LDFLAGS=3D" ${flags}"  all); then  true;  else  exi=
t 1;  fi;  else true;  fi;  fi;  done;  fi
Making all in libc
Making all in stdlib
/usr/pkg/cross/bin/mipseb-netbsd-gcc -DPACKAGE=3D\"newlib\" -DVERSION=3D\=
"1.8.2\"  -I. -I../../../../../newlib-1.8.2/newlib/libc/stdlib -O2 -DMISS=
ING_SYSCALL_NAMES -I../../targ-include -I../../../../../newlib-1.8.2/newl=
ib/libc/../libc/include -fno-builtin      -g -O2 -W -Wall -mapollo -fno-d=
elayed-branch -mno-abi-calls -msoft-float -Wa,-g2 -c ../../../../../newli=
b-1.8.2/newlib/libc/stdlib/__adjust.c
In file included from ../../../../../newlib-1.8.2/newlib/libc/../libc/inc=
lude/time.h:30,
                 from ../../../../../newlib-1.8.2/newlib/libc/../libc/inc=
lude/sys/reent.h:14,
                 from ../../../../../newlib-1.8.2/newlib/libc/../libc/inc=
lude/reent.h:48,
                 from ../../../../../newlib-1.8.2/newlib/libc/stdlib/__ad=
just.c:6:
/usr/pkg/cross/lib/gcc-lib/mipseb-netbsd/egcs-2.91.60/include/stddef.h:28=
: machine/ansi.h: No such file or directory
In file included from ../../../../../newlib-1.8.2/newlib/libc/../libc/inc=
lude/reent.h:53,
                 from ../../../../../newlib-1.8.2/newlib/libc/stdlib/__ad=
just.c:6:
/usr/pkg/cross/lib/gcc-lib/mipseb-netbsd/egcs-2.91.60/include/stddef.h:28=
: machine/ansi.h: No such file or directory
In file included from ../../../../../newlib-1.8.2/newlib/libc/../libc/inc=
lude/stdlib.h:17,
                 from ../../../../../newlib-1.8.2/newlib/libc/stdlib/std.=
h:1,
                 from ../../../../../newlib-1.8.2/newlib/libc/stdlib/__ad=
just.c:7:
/usr/pkg/cross/lib/gcc-lib/mipseb-netbsd/egcs-2.91.60/include/stddef.h:28=
: machine/ansi.h: No such file or directory
In file included from ../../../../../newlib-1.8.2/newlib/libc/../libc/inc=
lude/stdio.h:37,
                 from ../../../../../newlib-1.8.2/newlib/libc/stdlib/std.=
h:2,
                 from ../../../../../newlib-1.8.2/newlib/libc/stdlib/__ad=
just.c:7:
/usr/pkg/cross/lib/gcc-lib/mipseb-netbsd/egcs-2.91.60/include/stddef.h:28=
: machine/ansi.h: No such file or directory
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.


--------------6284091778E2C95AA7E56E15--