This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Build newlib


Hi,

I am trying to compile newlib for host netbsd-i386 and target mips-elf,
an embedded chip. I downloaded their cross-mipseb-netbsd package which
is the cross gcc and the cross binutils and I am compiling newlib using
them. I followed the instructions and I am getting an error message. The
exact message and the command that I used, are attached. Please let me
know what I am doing wrong. I appreciate your help in advance.

Thank you,
Bharani.
%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=$egcc AS_FOR_TARGET=$eas AR_FOR_TARGET=$ear LD_FOR_TARGET=$eld RANLIB_FOR_TARGET=$eranlib NM_FOR_TARGET=$enm OBJDUMP_FOR_TARGET=$eobj
make "AR_FLAGS=rc"  "CC_FOR_BUILD=gcc"  "CFLAGS=-g -O2 -W -Wall -mapollo -fno-delayed-branch -mno-abi-calls -msoft-float -Wa,-g2"  "CFLAGS_FOR_BUILD="  "CFLAGS_FOR_TARGET=-g -O2 -W -Wall -mapollo -fno-delayed-branch -mno-abi-calls -msoft-float -Wa,-g2"  "INSTALL=/bin/sh /usr/tar_files/newlib-1.8.2/install-sh -c"  "INSTALL_DATA=/bin/sh /usr/tar_files/newlib-1.8.2/install-sh -c -m 644"  "INSTALL_PROGRAM=/bin/sh /usr/tar_files/newlib-1.8.2/install-sh -c "  "INSTALL_SCRIPT=/bin/sh /usr/tar_files/newlib-1.8.2/install-sh -c"  "LDFLAGS="  "LIBCFLAGS=-g -O2 -W -Wall -mapollo -fno-delayed-branch -mno-abi-calls -msoft-float -Wa,-g2"  "LIBCFLAGS_FOR_TARGET=-g -O2 -W -Wall -mapollo -fno-delayed-branch -mno-abi-calls -msoft-float -Wa,-g2"  "MAKE=make"  "MAKEINFO=makeinfo  "  "PICFLAG="  "PICFLAG_FOR_TARGET="  "SHELL=/bin/sh"  "EXPECT=expect"  "RUNTEST=runtest"  "RUNTESTFLAGS="  "exec_prefix=/usr/pkg/cross"  "infodir=/usr/pkg/cross/info"  "libdir=/usr/pkg/cross/lib"  "prefix=/usr/pkg/cross"  "tooldir=/usr/pkg/cross/mips-mips-elf"  "AR=/usr/pkg/cross/bin/mipseb-netbsd-ar"  "AS=/usr/pkg/cross/bin/mipseb-netbsd-as"  "CC=/usr/pkg/cross/bin/mipseb-netbsd-gcc"  "LD=/usr/pkg/cross/bin/mipseb-netbsd-ld"  "LIBCFLAGS=-g -O2 -W -Wall -mapollo -fno-delayed-branch -mno-abi-calls -msoft-float -Wa,-g2"  "NM=/usr/pkg/cross/bin/mipseb-netbsd-nm"  "PICFLAG="  "RANLIB=/usr/pkg/cross/bin/mipseb-netbsd-ranlib"  "DESTDIR=" DO=all multi-do
if [ -z "" ]; then  true;  else  rootpre=`pwd`/; export rootpre;  srcrootpre=`cd ../../../newlib-1.8.2/newlib; pwd`/; export srcrootpre;  lib=`echo ${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`;  compiler="/usr/pkg/cross/bin/mipseb-netbsd-gcc";  for i in `${compiler} --print-multi-lib 2>/dev/null`; do  dir=`echo $i | sed -e 's/;.*$//'`;  if [ "${dir}" = "." ]; then  true;  else  if [ -d ../${dir}/${lib} ]; then  flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`;  if (cd ../${dir}/${lib}; make   CFLAGS="-g -O2 -W -Wall -mapollo -fno-delayed-branch -mno-abi-calls -msoft-float -Wa,-g2 ${flags}"  CXXFLAGS="-g -O2 ${flags}"  LIBCFLAGS="-g -O2 -W -Wall -mapollo -fno-delayed-branch -mno-abi-calls -msoft-float -Wa,-g2 ${flags}"  LIBCXXFLAGS="-g -O2 -fno-implicit-templates -fexceptions ${flags}"  LDFLAGS=" ${flags}"  all); then  true;  else  exit 1;  fi;  else true;  fi;  fi;  done;  fi
Making all in libc
Making all in stdlib
/usr/pkg/cross/bin/mipseb-netbsd-gcc -DPACKAGE=\"newlib\" -DVERSION=\"1.8.2\"  -I. -I../../../../../newlib-1.8.2/newlib/libc/stdlib -O2 -DMISSING_SYSCALL_NAMES -I../../targ-include -I../../../../../newlib-1.8.2/newlib/libc/../libc/include -fno-builtin      -g -O2 -W -Wall -mapollo -fno-delayed-branch -mno-abi-calls -msoft-float -Wa,-g2 -c ../../../../../newlib-1.8.2/newlib/libc/stdlib/__adjust.c
In file included from ../../../../../newlib-1.8.2/newlib/libc/../libc/include/time.h:30,
                 from ../../../../../newlib-1.8.2/newlib/libc/../libc/include/sys/reent.h:14,
                 from ../../../../../newlib-1.8.2/newlib/libc/../libc/include/reent.h:48,
                 from ../../../../../newlib-1.8.2/newlib/libc/stdlib/__adjust.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/include/reent.h:53,
                 from ../../../../../newlib-1.8.2/newlib/libc/stdlib/__adjust.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/include/stdlib.h:17,
                 from ../../../../../newlib-1.8.2/newlib/libc/stdlib/std.h:1,
                 from ../../../../../newlib-1.8.2/newlib/libc/stdlib/__adjust.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/include/stdio.h:37,
                 from ../../../../../newlib-1.8.2/newlib/libc/stdlib/std.h:2,
                 from ../../../../../newlib-1.8.2/newlib/libc/stdlib/__adjust.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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]