Current-Users archive

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

Re: make depend - error.



On 06.03.2014 23:38, Martin Husemann wrote:
> On Thu, Mar 06, 2014 at 10:38:47PM +0400, Ilya Zykov wrote:
>> In current tree( 6.99.34 ) for build kernel using "config" without 
>> "build.sh",
>> outside "/usr/src" need "NETBSDSRCDIR" or "BSDSRCDIR" environment variables 
>> stated.
>> Without this "make depend" in build folder give out error.
> 
> Did you specify the -s option to config?

Yes.

config -s /home/ilya/ws/work/src/sys -b obj/GENKERN conf/GENERIC

pwd
/home/ilya/ws/work

> Like:
> 
>   config -b ./build -s /nbsd/src/sys /nbsd/src/sys/arch/amd64/conf/GENERIC
> 
> This seems to work for me.
> What error do you get exactly?
> 
> Martin
> 
> 

I installed system from 6.99.33 CD, and rebuild and reinstall all from source 
yesterday "build.sh".

/////////////////////////////////////////////////////////////////////
Without MAKEVERBOSE=4:

make depend
depending the kern library objects
#    create  kern/__main.d
mkdep -f __main.d.tmp  --      
-I/home/ilya/ws/work/src/sys/lib/libkern/arch/x86_64 -Damd64 -Dx86_64 -I../../. 
-I/home/ilya/ws/work/src/sys/../common/include 
-I/home/ilya/ws/work/src/sys/arch -I/home/ilya/ws/work/src/sys -nostdinc 
-DDIAGNOSTIC -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -std=gnu99 
-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/quad 
-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/string 
-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string
 -D_FORTIFY_SOURCE=2 -I/home/ilya/ws/work/src/sys/external/bsd/ipf 
-I/home/ilya/ws/work/src/sys/external/isc/atheros_hal/dist 
-I/home/ilya/ws/work/src/sys/external/isc/atheros_hal/ic 
-I/home/ilya/ws/work/src/sys/external/bsd/drm/dist/bsd-core 
-I/home/ilya/ws/work/src/sys/external/bsd/drm/dist/shared-core 
-I/home/ilya/ws/work/src/sys/../common/include 
-I/home/ilya/ws/work/src/sys/external/bsd/acpica/dist/include  
-I/home/ilya/ws/work/src/sys/lib/libkern/../../../com
 mon/lib
/libc/quad 
-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/string 
-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string
 -I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/include      
/home/ilya/ws/work/src/sys/lib/libkern/__main.c &&  mv __main.d.tmp __main.d
make[1]: don't know how to make absvdi2.c. Stop

make[1]: stopped in /home/ilya/ws/work/obj/GENKERN/lib/kern
*** Error code 2

Stop.
make: stopped in /home/ilya/ws/work/obj/GENKERN
//////////////////////////////////////////////////////////////////////
With MAKEVERBOSE=4:

make depend
(mkdir -p /home/ilya/ws/work/obj/GENKERN/lib/kern)
+ '[' -f /etc/shrc ']'
+ '.' /etc/shrc
+ mkdir -p /home/ilya/ws/work/obj/GENKERN/lib/kern
echo depending the kern library objects
depending the kern library objects
cd /home/ilya/ws/work/obj/GENKERN/lib/kern && make -f 
/home/ilya/ws/work/src/sys/lib/libkern/Makefile  
KERNDIR=/home/ilya/ws/work/src/sys/lib/libkern  CC=gcc CFLAGS=\ 
-mcmodel=kernel\ -mno-red-zone\ -mno-mmx\ -mno-sse\ -mno-avx\ -msoft-float\ 
-ffreestanding\ -fno-zero-initialized-in-bss\ \ -O2\ -fno-omit-frame-pointer\ 
-fstack-protector\ -Wstack-protector\ \ \ --param\ ssp-buffer-size=1\ \ 
-fno-strict-aliasing\ -fno-common\ \ \ -std=gnu99\ -Werror\ -Wall\ -Wno-main\ 
-Wno-format-zero-length\ -Wpointer-arith\ -Wmissing-prototypes\ 
-Wstrict-prototypes\ -Wold-style-definition\ -Wswitch\ -Wshadow\ -Wcast-qual\ 
-Wwrite-strings\ -Wno-unreachable-code\ -Wno-pointer-sign\ -Wno-attributes\ 
-Wextra\ -Wno-unused-parameter\ -Wold-style-definition\ -Wno-sign-compare\ \ \  
CPUFLAGS=  AS=as AFLAGS=\ -D_LOCORE\ -Wa,--fatal-warnings\ \   LORDER=lorder  
TSORT=tsort\ -q  LD=ld STRIP=strip  AR=ar NM=nm  RANLIB=ranlib SIZE=size  
MACHINE=amd64 MACHINE_ARCH=x86_64  KERNCPPFLAGS=-Damd64\ -Dx86_64\ -I
 ../../.
\ -I/home/ilya/ws/work/src/sys/../common/include\ 
-I/home/ilya/ws/work/src/sys/arch\ -I/home/ilya/ws/work/src/sys\ -nostdinc\ 
-DDIAGNOSTIC\ -DMAXUSERS=64\ -D_KERNEL\ -D_KERNEL_OPT\ -std=gnu99\ 
-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/quad\ 
-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/string\ 
-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string\
 -D_FORTIFY_SOURCE=2\ -I/home/ilya/ws/work/src/sys/external/bsd/ipf\ 
-I/home/ilya/ws/work/src/sys/external/isc/atheros_hal/dist\ 
-I/home/ilya/ws/work/src/sys/external/isc/atheros_hal/ic\ 
-I/home/ilya/ws/work/src/sys/external/bsd/drm/dist/bsd-core\ 
-I/home/ilya/ws/work/src/sys/external/bsd/drm/dist/shared-core\ 
-I/home/ilya/ws/work/src/sys/../common/include\ 
-I/home/ilya/ws/work/src/sys/external/bsd/acpica/dist/include  
KERNMISCCPPFLAGS=  LINTFLAGS=-bcehnxzFS  LIBKERN_ARCH=  COMMON_MACHINE_ARCH=   
depend
+ '[' -f /etc/shrc ']'
+ '.' /etc/shrc
+ cd /home/ilya/ws/work/obj/GENKERN/lib/kern
+ make -f /home/ilya/ws/work/src/sys/lib/libkern/Makefile 
KERNDIR=/home/ilya/ws/work/src/sys/lib/libkern CC=gcc 'CFLAGS= -mcmodel=kernel 
-mno-red-zone -mno-mmx -mno-sse -mno-avx -msoft-float -ffreestanding 
-fno-zero-initialized-in-bss  -O2 -fno-omit-frame-pointer -fstack-protector 
-Wstack-protector   --param ssp-buffer-size=1  -fno-strict-aliasing -fno-common 
  -std=gnu99 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith 
-Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wswitch 
-Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign 
-Wno-attributes -Wextra -Wno-unused-parameter -Wold-style-definition 
-Wno-sign-compare   ' CPUFLAGS= AS=as 'AFLAGS= -D_LOCORE -Wa,--fatal-warnings  
' LORDER=lorder 'TSORT=tsort -q' LD=ld STRIP=strip AR=ar NM=nm RANLIB=ranlib 
SIZE=size MACHINE=amd64 'MACHINE_ARCH=x86_64' 'KERNCPPFLAGS=-Damd64 -Dx86_64 
-I../../. -I/home/ilya/ws/work/src/sys/../common/include 
-I/home/ilya/ws/work/src/sys/arch -I/home/
 ilya/ws
/work/src/sys -nostdinc -DDIAGNOSTIC -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT 
-std=gnu99 
-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/quad 
-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/string 
-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string
 -D_FORTIFY_SOURCE=2 -I/home/ilya/ws/work/src/sys/external/bsd/ipf 
-I/home/ilya/ws/work/src/sys/external/isc/atheros_hal/dist 
-I/home/ilya/ws/work/src/sys/external/isc/atheros_hal/ic 
-I/home/ilya/ws/work/src/sys/external/bsd/drm/dist/bsd-core 
-I/home/ilya/ws/work/src/sys/external/bsd/drm/dist/shared-core 
-I/home/ilya/ws/work/src/sys/../common/include 
-I/home/ilya/ws/work/src/sys/external/bsd/acpica/dist/include' 
KERNMISCCPPFLAGS= LINTFLAGS=-bcehnxzFS 'LIBKERN_ARCH=' 'COMMON_MACHINE_ARCH=' 
depend
echo '#  ' " create " kern/__main.d
+ '[' -f /etc/shrc ']'
+ '.' /etc/shrc
+ echo '#  ' ' create ' 'kern/__main.d'
#    create  kern/__main.d
mkdep -f __main.d.tmp  --      
-I/home/ilya/ws/work/src/sys/lib/libkern/arch/x86_64 -Damd64 -Dx86_64 -I../../. 
-I/home/ilya/ws/work/src/sys/../common/include 
-I/home/ilya/ws/work/src/sys/arch -I/home/ilya/ws/work/src/sys -nostdinc 
-DDIAGNOSTIC -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -std=gnu99 
-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/quad 
-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/string 
-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string
 -D_FORTIFY_SOURCE=2 -I/home/ilya/ws/work/src/sys/external/bsd/ipf 
-I/home/ilya/ws/work/src/sys/external/isc/atheros_hal/dist 
-I/home/ilya/ws/work/src/sys/external/isc/atheros_hal/ic 
-I/home/ilya/ws/work/src/sys/external/bsd/drm/dist/bsd-core 
-I/home/ilya/ws/work/src/sys/external/bsd/drm/dist/shared-core 
-I/home/ilya/ws/work/src/sys/../common/include 
-I/home/ilya/ws/work/src/sys/external/bsd/acpica/dist/include  
-I/home/ilya/ws/work/src/sys/lib/libkern/../../../com
 mon/lib
/libc/quad 
-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/string 
-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string
 -I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/include      
/home/ilya/ws/work/src/sys/lib/libkern/__main.c &&  mv __main.d.tmp __main.d
+ '[' -f /etc/shrc ']'
+ '.' /etc/shrc
+ mkdep -f '__main.d.tmp' -- 
'-I/home/ilya/ws/work/src/sys/lib/libkern/arch/x86_64' -Damd64 '-Dx86_64' 
'-I../../.' '-I/home/ilya/ws/work/src/sys/../common/include' 
-I/home/ilya/ws/work/src/sys/arch -I/home/ilya/ws/work/src/sys -nostdinc 
-DDIAGNOSTIC -DMAXUSERS=64 '-D_KERNEL' '-D_KERNEL_OPT' -std=gnu99 
'-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/quad' 
'-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/string' 
'-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string'
 '-D_FORTIFY_SOURCE=2' -I/home/ilya/ws/work/src/sys/external/bsd/ipf 
'-I/home/ilya/ws/work/src/sys/external/isc/atheros_hal/dist' 
'-I/home/ilya/ws/work/src/sys/external/isc/atheros_hal/ic' 
-I/home/ilya/ws/work/src/sys/external/bsd/drm/dist/bsd-core 
-I/home/ilya/ws/work/src/sys/external/bsd/drm/dist/shared-core 
'-I/home/ilya/ws/work/src/sys/../common/include' 
-I/home/ilya/ws/work/src/sys/external/bsd/acpica/dist/include 
'-I/home/ilya/ws/work/src/sys/
 lib/lib
kern/../../../common/lib/libc/quad' 
'-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/string' 
'-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string'
 '-I/home/ilya/ws/work/src/sys/lib/libkern/../../../common/include' 
'/home/ilya/ws/work/src/sys/lib/libkern/__main.c'
+ mv '__main.d.tmp' '__main.d'
make[1]: don't know how to make absvdi2.c. Stop

make[1]: stopped in /home/ilya/ws/work/obj/GENKERN/lib/kern
*** Error code 2

Stop.
make: stopped in /home/ilya/ws/work/obj/GENKERN



Home | Main Index | Thread Index | Old Index