Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Apr 2008 08:08:00 -0700
From:      "Garrett Cooper" <yanefbsd@gmail.com>
To:        "Okalany Daniel" <daniel@one2net.co.ug>
Cc:        freebsd-current@freebsd.org
Subject:   Re: incompatible pointer type
Message-ID:  <7d6fde3d0804010808r63fad198n1db3f75ff4c3b857@mail.gmail.com>
In-Reply-To: <28f643d90803312317s4a0e690bga556b762fc78d825@mail.gmail.com>
References:  <28f643d90803312317s4a0e690bga556b762fc78d825@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 31, 2008 at 11:17 PM, Okalany Daniel <daniel@one2net.co.ug>
wrote:

> Good morning everyone,
> After making buildworld successfully,
> make buildkernel exits and the last lines are below. What could be the
> problem?
>
>
> totypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
>  -Wundef
> -Wno-pointer-sign -fformat-extensions -c
> /usr/src/sys/modules/linux/../../i386/linux/linux_machdep.c
> cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE -std=c99
> -nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include
> /usr/obj/usr/src/sys/IPFWKERNEL/opt_global.h -I. -I@ -I@/contrib/altq
> -finline-limit=8000 --param inline-unit-growth=100 --param
> large-function-growth=1000 -fno-common -g
> -I/usr/obj/usr/src/sys/IPFWKERNEL
> -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow
> -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls
> -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
> -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c
> /usr/src/sys/modules/linux/../../compat/linux/linux_mib.c
> cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE -std=c99
> -nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include
> /usr/obj/usr/src/sys/IPFWKERNEL/opt_global.h -I. -I@ -I@/contrib/altq
> -finline-limit=8000 --param inline-unit-growth=100 --param
> large-function-growth=1000 -fno-common -g
> -I/usr/obj/usr/src/sys/IPFWKERNEL
> -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow
> -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls
> -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
> -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c
> /usr/src/sys/modules/linux/../../compat/linux/linux_misc.c
> cc1: warnings being treated as errors
> /usr/src/sys/modules/linux/../../compat/linux/linux_misc.c: In function
> 'linux_sched_getaffinity':
> /usr/src/sys/modules/linux/../../compat/linux/linux_misc.c:1753: warning:
> assignment from incompatible pointer type
> /usr/src/sys/modules/linux/../../compat/linux/linux_misc.c: In function
> 'linux_sched_setaffinity':
> /usr/src/sys/modules/linux/../../compat/linux/linux_misc.c:1779: warning:
> assignment from incompatible pointer type
> *** Error code 1
>
> Stop in /usr/src/sys/modules/linux.
> *** Error code 1
>
> Stop in /usr/src/sys/modules.
> *** Error code 1
>
> Stop in /usr/obj/usr/src/sys/IPFWKERNEL.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> Stop in /usr/src.
>

The APIs that bind Linux to FreeBSD are out of date; time to email the
maintainer this info so they might look into fixing the issue :(...
-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7d6fde3d0804010808r63fad198n1db3f75ff4c3b857>