make installworld DESTDIR=/mnt failes

From: Matthias Apitz <guru_at_unixarea.de>
Date: Sun, 2 Aug 2015 11:29:32 +0200
Hello,

I have a CURRENT r285885 in /usr/home/guru/r285885/src and /usr/home/guru/r285885/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=/usr/home/guru/r285885/obj export MAKEOBJDIRPREFIX

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

but this time the installworld failes after some time with:

...
install -s -o root -g wheel -m 555   primes /mnt/usr/bin/primes
===> 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
===> games/tests (install)
install -o root  -g wheel -m 444  /usr/home/guru/r285885/src/tests/Kyuafile  /mnt/usr/tests/games/Kyuafile
===> cddl (install)
===> cddl/lib (install)
===> 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/guru/r285885/src/tmp/usr/include/unistd.h
...

cc  -O2 -pipe   -I/usr/home/guru/r285885/src/cddl/lib/drti/../../../sys/cddl/compat/opensolaris  -I/usr/home/guru/r285885/src/cddl/lib/drti/../../../cddl/compat/opensolaris/include  -I/usr/home/guru/r285885/src/cddl/lib/drti/../../../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/libdtrace/common  -I/usr/home/guru/r285885/src/cddl/lib/drti/../../../sys/cddl/contrib/opensolaris/uts/common  -DPIC -fpic -DNEED_SOLARIS_BOOLEAN -std=gnu99 -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-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -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/src/cddl/lib/drti/../../../cddl/contrib/opensolaris/lib/libdtrace/common/drti.c -o drti.o
In file included from /usr/home/guru/r285885/src/cddl/lib/drti/../../../cddl/contrib/opensolaris/lib/libdtrace/common/drti.c:27:
/usr/home/guru/r285885/src/cddl/lib/drti/../../../cddl/compat/opensolaris/include/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/usr/home/guru/r285885/src/tmp/usr/include/unistd.h

date
Sun Aug  2 09:12:01 UTC 2015

Thanks

	matthias

-- 
Matthias Apitz, ✉ guru_at_unixarea.de, http://www.unixarea.de/  ☎ +49-176-38902045
No! Nein! ¡No! Όχι! -- Ευχαριστούμε!
Received on Sun Aug 02 2015 - 07:29:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:59 UTC