cross-compiling

Soeren Mindorf soeren at mindorf.org
Mon Mar 8 04:03:41 PST 2004


Hi all,

I have a litte problem.

I try to compile the world and the kernel for my sparc64 on a Athlon
700MHz.

The buildmachine is FreeBSD 5.1-RELEASE ant the Sparc sould be
5.2.1-RELEASE.

I cvsup the source into /usr/5.2.

I change to 5.2/src and start the build:

make -DNO_KERBEROS TARGET_ARCH="sparc64" buildworld

But I read that I should use ARCH="sparc64". But all my buildings
doesnt work. So I use the next:

make -DNO_KERBEROS TARGET_ARCH="sparc64" CPUTYPE="sparc64"
buildwold

All the same.

I mounted /usr/5.2 to /usr/5.2 on the Sparc64 and do a

make -DNO_KERBEROS installworld

I also try:

make -DNO_KERBEROS TARGET_ARCH="sparc64" installworld

On every install I become the following error:

----- cut -----

bash-2.05b# make -DNO_KERBEROS installworld
mkdir -p /tmp/install.i17oPcSk
for prog in [ awk cap_mkdb cat chflags chmod chown  date echo egrep
find grep  ln make mkdir mtree mv pwd_mkdb rm sed sh sysctl  test
true uname wc zic; do  cp `which $prog` /tmp/install.i17oPcSk;  done
cd /usr/5.2/src; MAKEOBJDIRPREFIX=/usr/obj  MACHINE_ARCH=sparc64
MACHINE=sparc64  CPUTYPE=
GROFF_BIN_PATH=/usr/obj/usr/5.2/src/sparc64/legacy/usr/bin
GROFF_FONT_PATH=/usr/obj/usr/5.2/src/sparc64/legacy/usr/share/groff_font
GROFF_TMAC_PATH=/usr/obj/usr/5.2/src/sparc64/legacy/usr/share/tmac
PATH=/usr/obj/usr/5.2/src/sparc64/legacy/usr/sbin:/usr/obj/usr/5.2/src/sparc64/legacy/usr/bin:/usr/obj/usr/5.2/src/sparc64/legacy/usr/games:/usr/obj/usr/5.2/src/sparc64/usr/sbin:/usr/obj/usr/5.2/src/sparc64/usr/bin:/usr/obj/usr/5.2/src/sparc64/usr/games:/tmp/install.i17oPcSk
make -f Makefile.inc1 reinstall
--------------------------------------------------------------
>>> Making hierarchy
--------------------------------------------------------------
cd /usr/5.2/src; make -f Makefile.inc1 hierarchy
cd /usr/5.2/src/etc;            make distrib-dirs
mtree -deU  -f /usr/5.2/src/etc/mtree/BSD.root.dist -p /
mtree -deU  -f /usr/5.2/src/etc/mtree/BSD.var.dist -p /var
mtree -deU  -f /usr/5.2/src/etc/mtree/BSD.usr.dist -p /usr
mtree -deU  -f /usr/5.2/src/etc/mtree/BSD.include.dist  -p
/usr/include
mtree -deU  -f /usr/5.2/src/etc/mtree/BSD.sendmail.dist -p /
cd /; rm -f /sys; ln -s usr/src/sys sys
cd /usr/share/man/en.ISO8859-1; ln -sf ../man* .
cd /usr/share/man;  set - `grep "^[a-zA-Z]"
/usr/5.2/src/etc/man.alias`;  while [ $# -gt 0 ] ;  do  rm -rf "$1";
ln -s "$2" "$1";  shift; shift;  done
cd /usr/share/openssl/man;  set - `grep "^[a-zA-Z]"
/usr/5.2/src/etc/man.alias`;  while [ $# -gt 0 ] ;  do  rm -rf "$1";
ln -s "$2" "$1";  shift; shift;  done
cd /usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* .
cd /usr/share/nls;  set - `grep "^[a-zA-Z]"
/usr/5.2/src/etc/nls.alias`;  while [ $# -gt 0 ] ;  do  rm -rf "$1";
ln -s "$2" "$1";  shift; shift;  done

--------------------------------------------------------------
>>> Installing everything..
--------------------------------------------------------------
cd /usr/5.2/src; make -f Makefile.inc1 install
===> share/info
===> include
creating osreldate.h from newvers.sh
touch: not found
*** Error code 127

Stop in /usr/5.2/src/include.
*** Error code 1

Stop in /usr/5.2/src.
*** Error code 1

Stop in /usr/5.2/src.
*** Error code 1

Stop in /usr/5.2/src.
*** Error code 1

Stop in /usr/5.2/src.
bash-2.05b#

----- cut -----

What is the problem or what I doesnt understand?

Regards, 
Soeren


More information about the freebsd-questions mailing list