Date: Sat, 21 Dec 2013 19:25:17 +0100 From: Yury Tsybizov <yuriy.tsibizov@gmail.com> To: freebsd-stable@FreeBSD.org Subject: unable to build 10.0-RC2/i386 GENERIC kernel with gcc (stop at hyperv module) Message-ID: <E44BE8D9-C0BA-4B05-B5CC-20855E66760C@gmail.com>
next in thread | raw e-mail | index | archive | help
Hi! I am trying to update (clean) install of 9.2 to releng/10.0 svn on i386. It did not work with freebsd-update or usual build = world/buildkernel/installworld/reboot/ etc procedure - looks like 9.2 = gcc world is unable to run =93make installworld" under 10.0 clang = kernel. As recommended by UPDATING, I am trying to build it with gcc = instead of clang. Everything builds well, but hyperv module has some problems: make -DWITHOUT_CLANG -DWITHOUT_CLANG_IS_CC -DWITH_GCC -DWITH_GNUCXX = -DNO_CLEAN MODULES_OVERRIDE=3Dhyperv buildkernel -------------------------------------------------------------- >>> Kernel build for GENERIC started on Sat Dec 21 18:59:21 CET 2013 -------------------------------------------------------------- =3D=3D=3D> GENERIC mkdir -p /usr/obj/usr/src/sys -------------------------------------------------------------- >>> stage 1: configuring the kernel -------------------------------------------------------------- cd /usr/src/sys/i386/conf; = PATH=3D/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/us= r/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/legacy/bi= n:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/= src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin config -d = /usr/obj/usr/src/sys/GENERIC /usr/src/sys/i386/conf/GENERIC Kernel build directory is /usr/obj/usr/src/sys/GENERIC Don't forget to do ``make cleandepend && make depend'' -------------------------------------------------------------- >>> stage 2.2: rebuilding the object tree -------------------------------------------------------------- cd /usr/obj/usr/src/sys/GENERIC; MAKEOBJDIRPREFIX=3D/usr/obj = MACHINE_ARCH=3Di386 MACHINE=3Di386 CPUTYPE=3D = GROFF_BIN_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/bin = GROFF_FONT_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/share/groff_font = GROFF_TMAC_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/share/tmac = _SHLIBDIRPREFIX=3D/usr/obj/usr/src/tmp _LDSCRIPTROOT=3D = VERSION=3D"FreeBSD 10.0-RC2 i386 1000510" INSTALL=3D"sh = /usr/src/tools/install.sh" = PATH=3D/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/us= r/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/legacy/bi= n:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/= src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin CC=3D"cc " CXX=3D"c++ " = CPP=3D"cpp " AS=3D"as" AR=3D"ar" LD=3D"ld" NM=3Dnm OBJDUMP=3D = RANLIB=3Dranlib STRINGS=3D COMPILER_TYPE=3Dgcc = /usr/obj/usr/src/make.i386/bmake -D WITHOUT_CLANG -D = WITHOUT_CLANG_IS_CC -D WITH_GCC -D WITH_GNUCXX -D NO_CLEAN -m = /usr/src/share/mk KERNEL=3Dkernel obj cd /usr/src/sys/modules; = MAKEOBJDIRPREFIX=3D/usr/obj/usr/src/sys/GENERIC/modules = KMODDIR=3D/boot/kernel MACHINE_CPUARCH=3Di386 MODULES_OVERRIDE=3D"hyperv" = DEBUG_FLAGS=3D"-g" MACHINE=3Di386 = KERNBUILDDIR=3D"/usr/obj/usr/src/sys/GENERIC" SYSDIR=3D"/usr/src/sys" = WITH_CTF=3D"1" /usr/obj/usr/src/make.i386/bmake obj =3D=3D=3D> hyperv (obj) =3D=3D=3D> hyperv/vmbus (obj) =3D=3D=3D> hyperv/netvsc (obj) =3D=3D=3D> hyperv/stordisengage (obj) =3D=3D=3D> hyperv/storvsc (obj) =3D=3D=3D> hyperv/utilities (obj) -------------------------------------------------------------- >>> stage 2.3: build tools -------------------------------------------------------------- cd /usr/obj/usr/src/sys/GENERIC; = PATH=3D/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/us= r/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/legacy/bi= n:/sbin:/bin:/usr/sbin:/usr/bin = MAKESRCPATH=3D/usr/src/sys/dev/aic7xxx/aicasm = /usr/obj/usr/src/make.i386/bmake SSP_CFLAGS=3D -DNO_CPU_CFLAGS -DNO_CTF = -DEARLY_BUILD -f /usr/src/sys/dev/aic7xxx/aicasm/Makefile Warning: Object directory not changed from original = /usr/obj/usr/src/sys/GENERIC cd /usr/src/sys/modules/aic7xxx/aicasm; = PATH=3D/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/us= r/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/legacy/bi= n:/sbin:/bin:/usr/sbin:/usr/bin = MAKEOBJDIRPREFIX=3D/usr/obj/usr/src/sys/GENERIC/modules = /usr/obj/usr/src/make.i386/bmake SSP_CFLAGS=3D -DNO_CPU_CFLAGS -DNO_CTF = -DEARLY_BUILD obj cd /usr/src/sys/modules/aic7xxx/aicasm; = PATH=3D/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/us= r/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/legacy/bi= n:/sbin:/bin:/usr/sbin:/usr/bin = MAKEOBJDIRPREFIX=3D/usr/obj/usr/src/sys/GENERIC/modules = /usr/obj/usr/src/make.i386/bmake SSP_CFLAGS=3D -DNO_CPU_CFLAGS -DNO_CTF = -DEARLY_BUILD depend cd /usr/src/sys/modules/aic7xxx/aicasm; = PATH=3D/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/us= r/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/legacy/bi= n:/sbin:/bin:/usr/sbin:/usr/bin = MAKEOBJDIRPREFIX=3D/usr/obj/usr/src/sys/GENERIC/modules = /usr/obj/usr/src/make.i386/bmake SSP_CFLAGS=3D -DNO_CPU_CFLAGS -DNO_CTF = -DEARLY_BUILD all -------------------------------------------------------------- >>> stage 3.1: making dependencies -------------------------------------------------------------- cd /usr/obj/usr/src/sys/GENERIC; MAKEOBJDIRPREFIX=3D/usr/obj = MACHINE_ARCH=3Di386 MACHINE=3Di386 CPUTYPE=3D = GROFF_BIN_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/bin = GROFF_FONT_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/share/groff_font = GROFF_TMAC_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/share/tmac = _SHLIBDIRPREFIX=3D/usr/obj/usr/src/tmp _LDSCRIPTROOT=3D = VERSION=3D"FreeBSD 10.0-RC2 i386 1000510" INSTALL=3D"sh = /usr/src/tools/install.sh" = PATH=3D/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/us= r/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/legacy/bi= n:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/= src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin CC=3D"cc " CXX=3D"c++ " = CPP=3D"cpp " AS=3D"as" AR=3D"ar" LD=3D"ld" NM=3Dnm OBJDUMP=3D = RANLIB=3Dranlib STRINGS=3D COMPILER_TYPE=3Dgcc = /usr/obj/usr/src/make.i386/bmake -D WITHOUT_CLANG -D = WITHOUT_CLANG_IS_CC -D WITH_GCC -D WITH_GNUCXX -D NO_CLEAN -m = /usr/src/share/mk KERNEL=3Dkernel depend -DNO_MODULES_OBJ cd /usr/src/sys/modules; = MAKEOBJDIRPREFIX=3D/usr/obj/usr/src/sys/GENERIC/modules = KMODDIR=3D/boot/kernel MACHINE_CPUARCH=3Di386 MODULES_OVERRIDE=3D"hyperv" = DEBUG_FLAGS=3D"-g" MACHINE=3Di386 = KERNBUILDDIR=3D"/usr/obj/usr/src/sys/GENERIC" SYSDIR=3D"/usr/src/sys" = WITH_CTF=3D"1" /usr/obj/usr/src/make.i386/bmake depend =3D=3D=3D> hyperv (depend) =3D=3D=3D> hyperv/vmbus (depend) =3D=3D=3D> hyperv/netvsc (depend) =3D=3D=3D> hyperv/stordisengage (depend) =3D=3D=3D> hyperv/storvsc (depend) =3D=3D=3D> hyperv/utilities (depend) -------------------------------------------------------------- >>> stage 3.2: building everything -------------------------------------------------------------- cd /usr/obj/usr/src/sys/GENERIC; MAKEOBJDIRPREFIX=3D/usr/obj = MACHINE_ARCH=3Di386 MACHINE=3Di386 CPUTYPE=3D = GROFF_BIN_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/bin = GROFF_FONT_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/share/groff_font = GROFF_TMAC_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/share/tmac = _SHLIBDIRPREFIX=3D/usr/obj/usr/src/tmp _LDSCRIPTROOT=3D = VERSION=3D"FreeBSD 10.0-RC2 i386 1000510" INSTALL=3D"sh = /usr/src/tools/install.sh" = PATH=3D/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/us= r/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/legacy/bi= n:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/= src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin CC=3D"cc " CXX=3D"c++ " = CPP=3D"cpp " AS=3D"as" AR=3D"ar" LD=3D"ld" NM=3Dnm OBJDUMP=3D = RANLIB=3Dranlib STRINGS=3D COMPILER_TYPE=3Dgcc = /usr/obj/usr/src/make.i386/bmake -D WITHOUT_CLANG -D = WITHOUT_CLANG_IS_CC -D WITH_GCC -D WITH_GNUCXX -D NO_CLEAN -m = /usr/src/share/mk KERNEL=3Dkernel all -DNO_MODULES_OBJ cd /usr/src/sys/modules; = MAKEOBJDIRPREFIX=3D/usr/obj/usr/src/sys/GENERIC/modules = KMODDIR=3D/boot/kernel MACHINE_CPUARCH=3Di386 MODULES_OVERRIDE=3D"hyperv" = DEBUG_FLAGS=3D"-g" MACHINE=3Di386 = KERNBUILDDIR=3D"/usr/obj/usr/src/sys/GENERIC" SYSDIR=3D"/usr/src/sys" = WITH_CTF=3D"1" /usr/obj/usr/src/make.i386/bmake all =3D=3D=3D> hyperv (all) =3D=3D=3D> hyperv/vmbus (all) =3D=3D=3D> hyperv/netvsc (all) cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE = -nostdinc = -I/usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc = -DHAVE_KERNEL_OPTION_HEADERS -include = /usr/obj/usr/src/sys/GENERIC/opt_global.h -I. -I@ -I@/contrib/altq = -finline-limit=3D8000 --param inline-unit-growth=3D100 --param = large-function-growth=3D1000 -fno-common -g = -I/usr/obj/usr/src/sys/GENERIC -mno-align-long-strings = -mpreferred-stack-boundary=3D2 -mno-mmx -mno-sse -msoft-float = -ffreestanding -fstack-protector -std=3Diso9899:1999 -fstack-protector = -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes = -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef = -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs = -fdiagnostics-show-option -c = /usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= cc1: warnings being treated as errors = /usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= : In function 'hv_nv_init_rx_buffer_with_net_vsp': = /usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= :182: warning: cast from pointer to integer of different size = [-Wpointer-to-int-cast] = /usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= : In function 'hv_nv_init_send_buffer_with_net_vsp': = /usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= :280: warning: cast from pointer to integer of different size = [-Wpointer-to-int-cast] = /usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= : In function 'hv_nv_destroy_rx_buffer': = /usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= :334: warning: cast from pointer to integer of different size = [-Wpointer-to-int-cast] = /usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= : In function 'hv_nv_destroy_send_buffer': = /usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= :402: warning: cast from pointer to integer of different size = [-Wpointer-to-int-cast] = /usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= : In function 'hv_nv_negotiate_nvsp_protocol': = /usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= :464: warning: cast from pointer to integer of different size = [-Wpointer-to-int-cast] = /usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= : In function 'hv_nv_send_ndis_config': = /usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= :508: warning: cast from pointer to integer of different size = [-Wpointer-to-int-cast] = /usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= : In function 'hv_nv_connect_to_vsp': = /usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= :580: warning: cast from pointer to integer of different size = [-Wpointer-to-int-cast] = /usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= : In function 'hv_nv_on_send': = /usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= :830: warning: cast from pointer to integer of different size = [-Wpointer-to-int-cast] = /usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= :833: warning: cast from pointer to integer of different size = [-Wpointer-to-int-cast] *** Error code 1 Stop. bmake[4]: stopped in /usr/src/sys/modules/hyperv/netvsc *** Error code 1 Stop. bmake[3]: stopped in /usr/src/sys/modules/hyperv *** Error code 1 Stop. bmake[2]: stopped in /usr/src/sys/modules *** Error code 1 Stop. bmake[1]: stopped in /usr/obj/usr/src/sys/GENERIC *** Error code 1 Stop. bmake: stopped in /usr/src *** [buildkernel] Error code 1 Stop in /usr/src. I was able to build GENERIC with clang from the same sources. Best, Yuriy.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E44BE8D9-C0BA-4B05-B5CC-20855E66760C>