Skip to contentSkip to conversation

Netbsd-related build errors

DISCUSSION Jared Rhine 2 participants 4 messages Jan 26, 2005

lore
Share & tools
lore
#0 lore raw

Some very recent (today) change to the BK repository has broken the build. The error is in the Netbsd areas and enclosed below.

I switched to the testing branch and was surprised the same build error exists as in the unstable tree.

-- begin --

     create  kern/ulmin.d 
     create  kern/umoddi3.d 
     create  kern/xlat_mbr_fstype.d 
     create  kern/xordi3.d 
     create  kern/.depend 
depending the compat library objects 
     create  compat/compat_exec.d 
In file included from ../../machine/hypervisor.h:62, 
                 from ../../machine/xenfunc.h:39, 
                 from ../../machine/pmap.h:52, 
                 from /usr/local/src/xen/netbsd-2.0-xenU/sys/uvm/uvm_pmap.h:86, 
                 from /usr/local/src/xen/netbsd-2.0-xenU/sys/uvm/uvm_extern.h:451, 
                 from /usr/local/src/xen/netbsd-2.0-xenU/sys/sys/vnode.h:45, 
                 from /usr/local/src/xen/netbsd-2.0-xenU/sys/compat/common/compat_exec.c:39: 

../../machine/xen-public/io/blkif.h:12:40:
asm-xen/xen-public/io/ring.h: No such file or directory
nbmkdep: compile failed.

*** Failed target: compat_exec.d
*** Failed command:

    CC=/usr/local/src/xen/netbsd-2.0-xenU/../netbsd-2.0-tools/linux-i386/bin/i386--netbsdelf-gcc /usr/local/src/xen/netbsd-2.0-xenU/../netbsd-2.0-tools/linux-i386/b\in/nbmkdep -f compat_exec.d -- -Di386 -I../../. -I/usr/local/src/xen/netbsd-2.0-xenU/compile/XEN/xen-ma -I/usr/local/src/xen/netbsd-2.0-xenU/sys/arch -I/usr/local/src/xen/netbsd-2.\0-xenU/sys -nostdinc -DLKM -DDIAGNOSTIC -DDEBUG -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -nostdinc -isystem /usr/local/src/xen/netbsd-2.0-xenU/root/usr/include /usr/local/src/xen/netb\sd-2.0-xenU/sys/compat/common/compat_exec.c 

*** Error code 1

Stop.
nbmake: stopped in /usr/local/src/xen/netbsd-2.0-xenU/compile/XEN/lib/compat

*** Failed target: dependcompatlib
*** Failed command: cd

    /usr/local/src/xen/netbsd-2.0-xenU/compile/XEN/lib/compat &&
    /usr/local/src/xen/netbsd-2.0-xenU/../netbsd-2.0-tools/linux-i386/bin/nbmake -f /usr/local/src/x\en/netbsd-2.0-xenU/sys/compat/common/Makefile COMPATDIR=/usr/local/src/xen/netbsd-2.0-xenU/sys/compat/common CC=/usr/local/src/xen/netbsd-2.0-xenU/../netbsd-2.0-tools/linux-i386/bi\n/i386--netbsdelf-gcc CFLAGS=\ \ \ \ \ -ffreestanding\ \ -g\ -O2\ -Werror\ -Wall\ -Wno-main\ -Wno-format-zero-length\ -Wpointer-arith\ -Wmissing-prototypes\ -Wstrict-prototypes\ -W\no-sign-compare\ -fno-zero-initialized-in-bss AS=/usr/local/src/xen/netbsd-2.0-xenU/../netbsd-2.0-tools/linux-i386/bin/i386--netbsdelf-as AFLAGS=\ -x\ assembler-with-cpp\ -traditio\nal-cpp\ \ \ -D_LOCORE AR=/usr/local/src/xen/netbsd-2.0-xenU/../netbsd-2.0-tools/linux-i386/bin/i386--netbsdelf-ar NM=/usr/local/src/xen/netbsd-2.0-xenU/../netbsd-2.0-tools/linux-i\386/bin/i386--netbsdelf-nm LORDER=NM=/usr/local/src/xen/netbsd-2.0-xenU/../

netbsd-2.0-tools/linux-i386/bin/i386--netbsdelf-nm\ MKTEMP=/usr/local/src/xen/netbsd-2.0-!
xenU/../netbsd-2\.0-tools/linux-i386/bin/nbmktemp\ /usr/local/src/xen/netbsd-2.0-xenU/../netbsd-2.0-tools/linux-i386/bin/nblorder TSORT=/usr/local/src/xen/netbsd-2.0-xenU/../netbsd-2.0-tools/linux-\i386/bin/nbtsort\ -q RANLIB=/usr/local/src/xen/netbsd-2.0-xenU/../netbsd-2.0-tools/linux-i386/bin/i386--netbsdelf-ranlib LD=/usr/local/src/xen/netbsd-2.0-xenU/../netbsd-2.0-tools/l\inux-i386/bin/i386--netbsdelf-ld STRIP=/usr/local/src/xen/netbsd-2.0-xenU/../netbsd-2.0-tools/linux-i386/bin/i386--netbsdelf-strip MACHINE=xen MACHINE_ARCH=i386 COMPATCPPFLAGS=-Di3\86\ -I../../.\ -I/usr/local/src/xen/netbsd-2.0-xenU/compile/XEN/xen-ma\ -I/usr/local/src/xen/netbsd-2.0-xenU/sys/arch\ -I/usr/local/src/xen/netbsd-2.0-xenU/sys\ -nostdinc\ -DLKM\ -\DDIAGNOSTIC\ -DDEBUG\ -DMAXUSERS=32\ -D_KERNEL\ -D_KERNEL_OPT LINTFLAGS=-bcehnxzFS depend *** Error code 1

Stop.
nbmake: stopped in /usr/local/src/xen/netbsd-2.0-xenU/compile/XEN make[4]: *** [netbsd] Error 1
make[4]: Leaving directory `/usr/local/src/xen/netbsd-2.0-xenU' make[3]: *** [netbsd-xenU] Error 2

-- end --

-- [email protected]

"Better to be of a rare breed than a long line." -- TDK

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl

#1 lore raw
Quoted 2 lines · Jared Rhine

Some very recent (today) change to the BK repository has broken the build. The error is in the Netbsd areas and enclosed below.

Ok, maybe not in the repository itself, as I still get the errors I sent after a bk unpull. Did something change today in netbsd-2.0-tools.tar.bz2 or the netbsd kernel?

In any case, I build Xen at least a few times every day, and as of a couple hours ago, I can't build anymore. It's possible it's in my environment, but the build environment itself is autobuilt from a script so the build process is very repeatable.

Similar to my request to be able to easily avoid an ioemu build, it'd be nice to be able to skip netbsd as well as linux 2.4 builds for those who don't care for their application.

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl

#2 lore raw
Quoted 8 lines · Jared Rhine
Quoted 2 lines · Jared Rhine

Some very recent (today) change to the BK repository has broken the build. The error is in the Netbsd areas and enclosed below.

Ok, maybe not in the repository itself, as I still get the errors I sent after a bk unpull. Did something change today in netbsd-2.0-tools.tar.bz2 or the netbsd kernel?

Quoted 8 lines

In any case, I build Xen at least a few times every day, and as of a couple hours ago, I can't build anymore. It's possible it's in my environment, but the build environment itself is autobuilt from a script so the build process is very repeatable.

Similar to my request to be able to easily avoid an ioemu build, it'd be nice to be able to skip netbsd as well as linux 2.4 builds for those who don't care for their application.

Take a look at the top level Makefile and the following line:

KERNELS ?= linux-2.6-xen0 linux-2.6-xenU linux-2.4-xen0 linux-2.4-xenU netbsd-2.0-xenU

It's telling it to build just about everything. This line was changed when I pulled the testing and the unstable trees today. I think the 2.4 and netbsd items are supposed to be commented out, like the line below it.

Just get rid of of the kernels you *don't* want to build on this line and you'll probably be able to build again.

Thanks,

Dan

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl

#3 lore raw
Quoted 8 lines
Quoted 3 lines
Quoted 2 lines

Some very recent (today) change to the BK repository has broken the build. The error is in the Netbsd areas and enclosed below.

Take a look at the top level Makefile and the following line:

KERNELS ?= linux-2.6-xen0 linux-2.6-xenU linux-2.4-xen0 linux-2.4-xenU netbsd-2.0-xenU

Yes, thanks for responding with your observation. I can usually work around these build issues (I found the KERNELS line as well after I reported the breakage), but I'm sure it's helpful to the developers to get feedback on these changes.

Quoted 2 lines

Just get rid of of the kernels you *don't* want to build on this line and you'll probably be able to build again.

What I actually did was change a 'make world' to 'KERNELS="*2.6*" make world', which allows a successful build in my environment again without patching the distribution. This supports skipping the Netbsd and Linux 2.4 builds per my request, so that's closed for me.

Signature · 9 lines
Jared Rhine <[email protected]>



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl