Re: make installworld DESTDIR=/mnt failes

2015-08-02 Thread Matthias Apitz
El día Sunday, August 02, 2015 a las 03:47:53PM +0200, Matthias Apitz escribió:

> El día Sunday, August 02, 2015 a las 11:29:32AM +0200, Matthias Apitz 
> escribió:
> 
> ># make installworld  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
> > ...
> 
> I found the problem: The system where the 'make installworld' was
> running, have had no sym link from /home --> usr/home and that's why the
> file /home/guru/r285885/obj/usr/home/guru/r285885/src/tmp/usr/include/unistd.h
> from .depend could not be checked. A big pitfall :-(

I was asking me, why that happened (for the 1st time) and investigated
one of the older boot keys which I always produce nearly the same way to
pollute other hardware with new systems/kernels... 

I always compile/install world and kernel into some DESTDIR and make from that a
bootable USB key with the script /usr/src/release/amd64/make-memstick.sh

The fundamental mistake I did this time was having the src and obj below
/usr/home/guru/r285885/[src|obj] and not below /usr/local//[src|obj]. This 
way
the .depend files contain references to /usr/home/... and to /home/...
files, which will not work if /home does not exist as a sym link to
usr/home

Lesion learned.

matthias

-- 
Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/  ☎ +49-176-38902045
No! Nein! ¡No! Όχι! -- Ευχαριστούμε!
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: make installworld DESTDIR=/mnt failes

2015-08-02 Thread Matthias Apitz
El día Sunday, August 02, 2015 a las 11:29:32AM +0200, Matthias Apitz escribió:

># make installworld  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
> ...

I found the problem: The system where the 'make installworld' was
running, have had no sym link from /home --> usr/home and that's why the
file /home/guru/r285885/obj/usr/home/guru/r285885/src/tmp/usr/include/unistd.h
from .depend could not be checked. A big pitfall :-(

matthias
-- 
Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/  ☎ +49-176-38902045
No! Nein! ¡No! Όχι! -- Ευχαριστούμε!
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

make installworld DESTDIR=/mnt failes

2015-08-02 Thread Matthias Apitz

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 
  ^
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, ✉ g...@unixarea.de, http://www.unixarea.de/  ☎ +49-176-38902045
No! Nein! ¡No! Όχι! -- Ευχαριστούμε!
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"