tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Building in a read only repository



On Wed, 04 Jun 2014 04:43:12 +1000
matthew green <mrg%eterna.com.au@localhost> wrote:
> > WRKDIRPREFIX = /usr/obj
> > BUILDIR = /usr/obj/build
> > WRKOBJDIR = /usr/obj
> > TOOLDIR = /usr/obj/tools
> > BSDOBJDIR = /usr/obj
> > RELEASEDIR = /usr/obj/release   
> > DESTDIR = /usr/obj/destdir      
> > 
> > I then go into /usr/src and build everything.  The following two
> > commands work fine:
> > 
> > # ./build.sh -M /usr/obj tools
> > # ./build.sh -M /usr/obj kernel=GENERIC
> 
> setting -M to the same base-dir as all of the base seems like
> it might be causing your problem.
> 
> perhaps try removing BSDOBJDIR.

I did that and it does get further but now I get this error.

#    create  getaddrinfo/h_gai.d
CC=/usr/obj/tools/bin/x86_64--netbsd-gcc /usr/obj/tools/bin/nbmkdep -f 
h_gai.d.tmp  --      --sysroot=/usr/obj/destdir      
/usr/src/tests/lib/libc/net/getaddrinfo/h_gai.c &&  mv h_gai.d.tmp h_gai.d
#    create  getaddrinfo/.depend
rm -f .depend
CC=/usr/obj/tools/bin/x86_64--netbsd-gcc /usr/obj/tools/bin/nbmkdep -s .o\ .ln 
-d -f .depend h_gai.d
#    create  getaddrinfo/Atffile
rm -f .gdbinit
echo "set solib-absolute-prefix /usr/obj/destdir" > .gdbinit
#   compile  getaddrinfo/h_gai.o
/usr/obj/tools/bin/x86_64--netbsd-gcc -O2   -std=gnu99    -Wall 
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  
-Wno-traditional  -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow 
-Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare 
-Wsign-compare -Wformat=2  -Wno-format-zero-length  -Werror 
-Wno-missing-noreturn     --sysroot=/usr/obj/destdir  -c    
/usr/src/tests/lib/libc/net/getaddrinfo/h_gai.c
: ctfconvert -g -L VERSION h_gai.o
#      link  getaddrinfo/h_gai
/usr/obj/tools/bin/x86_64--netbsd-gcc    --sysroot=/usr/obj/destdir     -o 
h_gai  h_gai.o  -Wl,-rpath-link,/usr/obj/destdir/lib  -L=/lib
: ctfmerge -S 1 -g -t -L VERSION -o h_gai h_gai.o
#     build  getaddrinfo/t_getaddrinfo
echo '#! /usr/bin/atf-sh' >t_getaddrinfo.tmp
cat /usr/src/tests/lib/libc/net/getaddrinfo/t_getaddrinfo.sh >>t_getaddrinfo.tmp
chmod +x t_getaddrinfo.tmp
mv t_getaddrinfo.tmp t_getaddrinfo
nbmake[9]: don't know how to make h_gai.1. Stop

nbmake[9]: stopped in /usr/src/tests/lib/libc/net/getaddrinfo

It doesn't seem to be related to a permissions problem as far as I can
tell.  Is there a build problem with current these days?

> more recently, i've changed my MAKEOBJDIRPREFIX (same as the
> -M option to build.sh) to be like this:
> 
>    '/var/obj/${MACHINE}${MACHINE_ARCH:N${MACHINE}:C/(.)/-\1/}'
> 
> which gives me different objdirs for *every* platform and its
> various target types.  m68k and powerpc usually end up longer,
> but most others are now properly separated..

I assume that that doesn't matter if I am only building for my own
system.
\
-- 
D'Arcy J.M. Cain <darcy%NetBSD.org@localhost>
http://www.NetBSD.org/ IM:darcy%Vex.Net@localhost


Home | Main Index | Thread Index | Old Index