Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Aug 2015 11:29:32 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-current@freebsd.org
Subject:   make installworld DESTDIR=/mnt  failes
Message-ID:  <20150802092932.GA1659@c720-r276659>

next in thread | raw e-mail | index | archive | help

Hello,

I have a CURRENT r285885 in /usr/home/guru/r285885/src and /usr/home/guru/r=
285885/obj
ready for make install into a new target root mounted as /mnt;

the installation should (and allways) worked as

   # sh
   # cd /usr/home/guru/r285885/src
   # MAKEOBJDIRPREFIX=3D/usr/home/guru/r285885/obj export MAKEOBJDIRPREFIX

   # make installworld  DESTDIR=3D/mnt
   # make installkernel DESTDIR=3D/mnt
   # make distrib-dirs  DESTDIR=3D/mnt
   # make distribution  DESTDIR=3D/mnt

but this time the installworld failes after some time with:

=2E..
install -s -o root -g wheel -m 555   primes /mnt/usr/bin/primes
=3D=3D=3D> games/random (install)
install -s -o root -g wheel -m 555   random /mnt/usr/bin/random
install -o root -g wheel -m 444 random.6.gz  /mnt/usr/share/man/man6
=3D=3D=3D> games/tests (install)
install -o root  -g wheel -m 444  /usr/home/guru/r285885/src/tests/Kyuafile=
  /mnt/usr/tests/games/Kyuafile
=3D=3D=3D> cddl (install)
=3D=3D=3D> cddl/lib (install)
=3D=3D=3D> cddl/lib/drti (install)
make[6]: /usr/home/guru/r285885/obj/usr/home/guru/r285885/src/cddl/lib/drti=
/.depend, 79: ignoring stale .depend for /home/guru/r285885/obj/usr/home/gu=
ru/r285885/src/tmp/usr/include/unistd.h
=2E..

cc  -O2 -pipe   -I/usr/home/guru/r285885/src/cddl/lib/drti/../../../sys/cdd=
l/compat/opensolaris  -I/usr/home/guru/r285885/src/cddl/lib/drti/../../../c=
ddl/compat/opensolaris/include  -I/usr/home/guru/r285885/src/cddl/lib/drti/=
=2E./../../cddl/contrib/opensolaris/head  -I/usr/home/guru/r285885/src/cddl=
/lib/drti/../../../cddl/contrib/opensolaris/lib/libctf/common  -I/usr/home/=
guru/r285885/src/cddl/lib/drti/../../../cddl/contrib/opensolaris/lib/libdtr=
ace/common  -I/usr/home/guru/r285885/src/cddl/lib/drti/../../../sys/cddl/co=
ntrib/opensolaris/uts/common  -DPIC -fpic -DNEED_SOLARIS_BOOLEAN -std=3Dgnu=
99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno=
-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith =
-Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parame=
ter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-de=
cls -Wold-style-definition -Wno-pointer-sign -Wno-unknown-pragmas -Wmissing=
-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int=
 -Wno-unused-const-variable -Qunused-arguments -c /usr/home/guru/r285885/sr=
c/cddl/lib/drti/../../../cddl/contrib/opensolaris/lib/libdtrace/common/drti=
=2Ec -o drti.o
In file included from /usr/home/guru/r285885/src/cddl/lib/drti/../../../cdd=
l/contrib/opensolaris/lib/libdtrace/common/drti.c:27:
/usr/home/guru/r285885/src/cddl/lib/drti/../../../cddl/compat/opensolaris/i=
nclude/unistd.h:33:15: fatal error: 'unistd.h' file not found
#include_next <unistd.h>
              ^
1 error generated.
*** Error code 1

Stop.

Why it is ignoring the .depend file and tries to compile something
again?


cd /usr/home/guru/r285885/obj/usr/home/guru/r285885/src/cddl/lib/drti
la -la
total 17
drwxr-xr-x   2 root  wheel   512 Aug  2 09:01 .
drwxr-xr-x  13 root  wheel   512 Jul 26 10:11 ..
-rw-r--r--   1 root  wheel  7350 Jul 26 20:12 .depend
-rw-r--r--   1 root  wheel  6300 Jul 26 20:14 libdrti-dummy.a

ls -l /usr/home/guru/r285885/obj/usr/home/guru/r285885/src/tmp/usr/include/=
unistd.h
-rwxr-xr-x  1 root  wheel  18911 Jul 26 09:08 /usr/home/guru/r285885/obj/us=
r/home/guru/r285885/src/tmp/usr/include/unistd.h

date
Sun Aug  2 09:12:01 UTC 2015

Thanks

	matthias

--=20
Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/  =E2=98=
=8E +49-176-38902045
No! Nein! =C2=A1No! =CE=8C=CF=87=CE=B9! -- =CE=95=CF=85=CF=87=CE=B1=CF=81=
=CE=B9=CF=83=CF=84=CE=BF=CF=8D=CE=BC=CE=B5!



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