NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: cross building NetBSD 4.0 problems
> > I'm trying to build NetBSD 4.0 from sources.
> > Compile host: FreeBSD 7.0 amd64
> >
> > Target arch Results
> >
> > amd64 "Successful make build"
> >
> > i386 nbmake: don't know how to make [...] usr/lib/crtbeginS.o. Stop
> >
> > alpha usr.bin/gdb53/opcodes/libopcodes.a(dis-buf.o): In function
> > `perror_memory':
> > : undefined reference to `dgettext'
> >
> > Are these known problems, or am I doing something wrong?
>
>
> It is hard to tell without knowing the options you used and without
> seeing the full error message.
>
> Did you clear the object directory between builds?
I set it up so all the alpha stuff is under a directory alpha,
the i386 stuff under a dir named i386, ...
I can "rm -rf i386" or not and get the same results.
My klunky build script:
# build_release_netbsd_i386
# Cross compile a NetBSD release for i386 CPU
PATH=/bin:/usr/bin:/usr/local/bin
MY_RELEASE=4.0
MY_ARCH=i386
MY_BASE_DIR=/rw/build_netbsd/4.0
MYLOGFILE=${MY_BASE_DIR}/build_release_${MY_ARCH}_out
# ------------------
if [ -s ${MYLOGFILE} ]
then
mv ${MYLOGFILE} ${MYLOGFILE}_$$
fi
echo Building NetBSD/${MY_ARCH} from release ${MY_RELEASE} sources. >
${MYLOGFILE}
echo basedir = ${MY_BASE_DIR} >>
${MYLOGFILE}
date >>
${MYLOGFILE}
#export X11SRCDIR=${MY_BASE_DIR}/xsrc
export TOOLDIR=${MY_BASE_DIR}/${MY_ARCH}/A_tools
export MAKEOBJDIRPREFIX=${MY_BASE_DIR}/${MY_ARCH}/A_obj
export DESTDIR=${MY_BASE_DIR}/${MY_ARCH}/A_dest
export RELEASEDIR=${MY_BASE_DIR}/${MY_ARCH}/A_release
export INSTALLWORLDDIR=${MY_BASE_DIR}/${MY_ARCH}/A_install
for mydir in ${MY_BASE_DIR}/${MY_ARCH} $INSTALLWORLDDIR $TOOLDIR
$MAKEOBJDIRPREFIX $DESTDIR $RELEASEDIR
do
if [ ! -e $mydir ]
then
mkdir $mydir
fi
done
export BUILDID=My_${MY_RELEASE}_${MY_ARCH}
# MAKEVERBOSE=2 is the max, and generates lots of output
export MAKEVERBOSE=1
#export NOCLEANDIR=true
export MKX11=no
export LDSTATIC=-static
export MKCATPAGES=no
export MKDOC=no
export MKINFO=no
export MKMAN=no
export MKPIC=no
export MKPROFILE=no
export MKSHARE=no
# Added 2008-09
export USETOOLS=yes
export MACHINE_ARCH=${MY_ARCH}
export MACHINE=${MY_ARCH}
export MKUNPRIVED=yes
export MKUPDATE=yes
cd ${MY_BASE_DIR}/usr/src
#sh ./build.sh tools >> ${MYLOGFILE} 2>&1
sh ./build.sh build >> ${MYLOGFILE} 2>&1
# ./build.sh distribution >> ${MYLOGFILE} 2>&1
# ./build.sh release >> ${MYLOGFILE} 2>&1
echo >> ${MYLOGFILE}
date >> ${MYLOGFILE}
=======================================================
i386 results:
[ ... ]
dependall ===> regress/usr.bin/m4
dependall ===> regress/usr.bin/make
dependall ===> regress/usr.bin/rtld
dependall ===> regress/usr.bin/rtld/dlopen
dependall ===> regress/usr.bin/rtld/testlib
nbmake: don't know how to make
/rw/build_netbsd/4.0/i386/A_dest/usr/lib/crtbeginS.o. Stop
nbmake: stopped in /rw/build_netbsd/4.0/usr/src/regress/usr.bin/rtld/testlib
*** Failed target: dependall
*** Failed command: cd
/rw/build_netbsd/4.0/usr/src/regress/usr.bin/rtld/testlib;
/rw/build_netbsd/4.0/i386/A_tools/bin/nbmake realall
*** Error code 2
Stop.
nbmake: stopped in /rw/build_netbsd/4.0/usr/src/regress/usr.bin/rtld/testlib
*** Failed target: dependall-testlib
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift;
case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)
this="regress/usr.bin/rtld/";
real="/rw/build_netbsd/4.0/usr/src/regress/usr.bin/rtld" ;; *)
this="regress/usr.bin/rtld/${dir}/";
real="/rw/build_netbsd/4.0/usr/src/regress/usr.bin/rtld/${dir}" ;; esac;
show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}"
&& /rw/build_netbsd/4.0/i386/A_tools/bin/nbmake _THISDIR_="${this}" "$@"
${target}; }; _makedirtarget testlib dependall
*** Error code 1
Stop.
nbmake: stopped in /rw/build_netbsd/4.0/usr/src/regress/usr.bin/rtld
*** Failed target: dependall-rtld
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift;
case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)
this="regress/usr.bin/"; real="/rw/build_netbsd/4.0/usr/src/regress/usr.bin" ;;
*) this="regress/usr.bin/${dir}/";
real="/rw/build_netbsd/4.0/usr/src/regress/usr.bin/${dir}" ;; esac;
show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}"
&& /rw/build_netbsd/4.0/i386/A_tools/bin/nbmake _THISDIR_="${this}" "$@"
${target}; }; _makedirtarget rtld dependall
*** Error code 1
[ ... ]
Home |
Main Index |
Thread Index |
Old Index