Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Apr 2016 11:41:34 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Russell Haley <russ.haley@gmail.com>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: Installworld failed
Message-ID:  <CANCZdfoRgxNbT-OnCxDQ2kT7DNmS6C7J2jEQVwhM22bZBAe3HQ@mail.gmail.com>
In-Reply-To: <CABx9NuR_ykXYnwtiamdBij%2B2wwKcXW1VJndEsX=iae%2B4ji4udw@mail.gmail.com>
References:  <CABx9NuR_ykXYnwtiamdBij%2B2wwKcXW1VJndEsX=iae%2B4ji4udw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Apr 3, 2016 at 2:44 AM, Russell Haley <russ.haley@gmail.com> wrote:

> Hello,
>
> I'm trying out the cross build instructions on the arm page and my
> installworld fails:
>
> Just had a successful buildworld and buildkernel
> Then, tried to run installworld:
>
> russellh@prescott:~/Projects/hummingboard/src% sudo make installworld
> TARGET_ARCH=3Darmv6 DESTDIR=3D${PWD}/nfsroot
> mkdir -p /tmp/install.mYvcGRG7
> progs=3D$(for prog in [ awk cap_mkdb cat chflags chmod chown cmp cp
> date echo egrep find grep id install   ln make mkdir mtree mv pwd_mkdb
>  rm sed services_mkdb sh strip sysctl test true uname wc zic tzsetup
> makewhatis; do  if progpath=3D`which $prog`; then  echo $progpath;  else
>  echo "Required tool $prog not found in PATH." >&2;  exit 1;  fi;
> done);  libs=3D$(ldd -f "%o %p\n" -f "%o %p\n" $progs 2>/dev/null | sort
> -u |  while read line; do  set -- $line;  if [ "$2 $3" !=3D "not found"
> ]; then  echo $2;  else  echo "Required library $1 not found." >&2;
> exit 1;  fi;  done);  cp $libs $progs /tmp/install.mYvcGRG7
> cp -R ${PATH_LOCALE:-"/usr/share/locale"} /tmp/install.mYvcGRG7/locale
> cd /usr/home/russellh/Projects/hummingboard/src;
> MAKEOBJDIRPREFIX=3D/usr/obj/arm.armv6 MACHINE_ARCH=3Darmv6 MACHINE=3Darm
> CPUTYPE=3D
> GROFF_BIN_PATH=3D/usr/obj/arm.armv6/usr/home/russellh/Projects/hummingboa=
rd/src/tmp/legacy/usr/bin
>
> GROFF_FONT_PATH=3D/usr/obj/arm.armv6/usr/home/russellh/Projects/hummingbo=
ard/src/tmp/legacy/usr/share/groff_font
>
> GROFF_TMAC_PATH=3D/usr/obj/arm.armv6/usr/home/russellh/Projects/hummingbo=
ard/src/tmp/legacy/usr/share/tmac
> CC=3D"cc " CXX=3D"c++  " CPP=3D"cpp " AS=3D"as" AR=3D"ar" LD=3D"ld" NM=3D=
nm
> OBJDUMP=3Dobjdump OBJCOPY=3D"objcopy" RANLIB=3Dranlib STRINGS=3D SIZE=3D"=
size"
>
> PATH=3D/usr/obj/arm.armv6/usr/home/russellh/Projects/hummingboard/src/tmp=
/legacy/usr/sbin:/usr/obj/arm.armv6/usr/home/russellh/Projects/hummingboard=
/src/tmp/legacy/usr/bin:/usr/obj/arm.armv6/usr/home/russellh/Projects/hummi=
ngboard/src/tmp/legacy/bin:/usr/obj/arm.armv6/usr/home/russellh/Projects/hu=
mmingboard/src/tmp/usr/sbin:/usr/obj/arm.armv6/usr/home/russellh/Projects/h=
ummingboard/src/tmp/usr/bin:/tmp/install.mYvcGRG7
>  LD_LIBRARY_PATH=3D/tmp/install.mYvcGRG7
> PATH_LOCALE=3D/tmp/install.mYvcGRG7/locale
> /usr/obj/usr/home/russellh/Projects/hummingboard/src/make.amd64/bmake
> -f Makefile.inc1    __MAKE_SHELL=3D/tmp/install.mYvcGRG7/sh reinstall;
> MAKEOBJDIRPREFIX=3D/usr/obj/arm.armv6 MACHINE_ARCH=3Darmv6 MACHINE=3Darm
> CPUTYPE=3D
> GROFF_BIN_PATH=3D/usr/obj/arm.armv6/usr/home/russellh/Projects/hummingboa=
rd/src/tmp/legacy/usr/bin
>
> GROFF_FONT_PATH=3D/usr/obj/arm.armv6/usr/home/russellh/Projects/hummingbo=
ard/src/tmp/legacy/usr/share/groff_font
>
> GROFF_TMAC_PATH=3D/usr/obj/arm.armv6/usr/home/russellh/Projects/hummingbo=
ard/src/tmp/legacy/usr/share/tmac
> CC=3D"cc " CXX=3D"c++  " CPP=3D"cpp " AS=3D"as" AR=3D"ar" LD=3D"ld" NM=3D=
nm
> OBJDUMP=3Dobjdump OBJCOPY=3D"objcopy" RANLIB=3Dranlib STRINGS=3D SIZE=3D"=
size"
>
> PATH=3D/usr/obj/arm.armv6/usr/home/russellh/Projects/hummingboard/src/tmp=
/legacy/usr/sbin:/usr/obj/arm.armv6/usr/home/russellh/Projects/hummingboard=
/src/tmp/legacy/usr/bin:/usr/obj/arm.armv6/usr/home/russellh/Projects/hummi=
ngboard/src/tmp/legacy/bin:/usr/obj/arm.armv6/usr/home/russellh/Projects/hu=
mmingboard/src/tmp/usr/sbin:/usr/obj/arm.armv6/usr/home/russellh/Projects/h=
ummingboard/src/tmp/usr/bin:/tmp/install.mYvcGRG7
>  LD_LIBRARY_PATH=3D/tmp/install.mYvcGRG7
> PATH_LOCALE=3D/tmp/install.mYvcGRG7/locale rm -rf /tmp/install.mYvcGRG7
> cc: not found
> bmake[2]: "/usr/home/russellh/Projects/hummingboard/src/share/mk/
> bsd.compiler.mk"
> line 141: Unable to determine compiler type for cc .  Consider setting
> COMPILER_TYPE.
> *** Error code 1
>
> Stop.
> bmake[1]: stopped in /usr/home/russellh/Projects/hummingboard/src
> *** Error code 1
>
> Stop.
> make: stopped in /usr/home/russellh/Projects/hummingboard/src
> russellh@prescott:~/Projects/hummingboard/src% svn info
> Path: .
> Working Copy Root Path: /usr/home/russellh/Projects/hummingboard/src
> URL: https://svn0.us-west.freebsd.org/base/head
> Relative URL: ^/head
> Repository Root: https://svn0.us-west.freebsd.org/base
> Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
> Revision: 297517
> Node Kind: directory
> Schedule: normal
> Last Changed Author: jmcneill
> Last Changed Rev: 297514
> Last Changed Date: 2016-04-02 09:53:12 -0700 (Sat, 02 Apr 2016)
>
> russellh@prescott:~/Projects/hummingboard/src%
>
> Any input welcome.
>

This usually is because MAKEOBJDIRPREFIX isn't set anymore
now that you are root.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfoRgxNbT-OnCxDQ2kT7DNmS6C7J2jEQVwhM22bZBAe3HQ>