Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Dec 2013 21:36:51 +0100
From:      Yury Tsybizov <yuriy.tsibizov@gmail.com>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        freebsd-stable@FreeBSD.org
Subject:   Re: unable to build 10.0-RC2/i386 GENERIC kernel with gcc (stop at hyperv module)
Message-ID:  <C71591A2-1DA4-4C13-AA4C-FEA5B33E892E@gmail.com>
In-Reply-To: <281FAC75-F24D-4849-8BD2-4F46ED9F45DA@FreeBSD.org>
References:  <E44BE8D9-C0BA-4B05-B5CC-20855E66760C@gmail.com> <281FAC75-F24D-4849-8BD2-4F46ED9F45DA@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
oh, mistype.

it was BUILDWORLD/BUILDKERNEL/INSTALLKERNEL, of course.



On 21 Dec 2013, at 19:53, Dimitry Andric <dim@FreeBSD.org> wrote:

> On 21 Dec 2013, at 19:25, Yury Tsybizov <yuriy.tsibizov@gmail.com> =
wrote:
>>=20
>> I am trying to update (clean) install of 9.2 to releng/10.0 svn on =
i386.
>>=20
>> It did not work with freebsd-update or usual build =
world/buildkernel/installworld/reboot/ etc procedure
>=20
> You are using the incorrect order.  The correct order is:
>=20
> * make buildworld
> * make buildkernel
> * make installkernel
> * reboot to single user
> * make installworld
> * mergemaster (or etcupdate, whichever you prefer)
> * reboot
>=20
>=20
>> - looks like 9.2 gcc world is unable to run =93make installworld" =
under 10.0 clang kernel.
>=20
> No, this has nothing to do with clang or gcc.  You are attempting to
> install a 10.0 world while still running a 9.2 kernel, which is
> unsupported.  (That means, it might work if you are lucky, but it is
> more likely to break.)
>=20
>=20
>> As recommended by UPDATING, I am trying to build it with gcc instead =
of clang.
>>=20
>> Everything builds well, but hyperv module has some problems:
> ...
>> 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]
>=20
> Yes, this is a known problem in the hyperv code.  I have tried to get
> some attention for it, but apparently it is not that important to be
> able to build 10.0 with gcc anymore...
>=20
> If you do not care about hyperv, just use WERROR=3D to build your =
kernel,
> e.g.:
>=20
> make buildkernel WERROR=3D
>=20
> to disable -Werror.
>=20
> -Dimitry
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C71591A2-1DA4-4C13-AA4C-FEA5B33E892E>