tech-embed archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Question
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.
%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.
Home |
Main Index |
Thread Index |
Old Index