Bug #2062

Kernel build fails after commit c263294b570bc9641fe5184b066fd801803046a4

Added by eric.j.christeson about 3 years ago. Updated about 3 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

buildkernel gives this:

cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmi
ssing-prototypes -Wpointer-arith -Winline -Wcast-qual -std=c99 -nostdinc -I. -Ii
nclude -I/usr/src/sys -I/usr/src/sys/../include -I/usr/obj/usr/src/sys/DYN208 -I
"/usr/src/sys/dev/acpica5" -I"/usr/src/sys/contrib/dev/acpica-unix/include" -I/u
sr/src/sys/contrib/ipfilter -I/usr/src/sys/dev/netif/ath/hal -I/usr/src/sys/dev/
netif/ath/hal/ath_hal -D_KERNEL -include opt_global.h -finline-limit=8000 --para
m inline-unit-growth=100 --param large-function-growth=1000 -ffreestanding -mpre
ferred-stack-boundary=2 -fno-stack-protector -mno-mmx -mno-3dnow -mno-sse -mno-s
se2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4 -mno-sse4a -mno-sse5
-mno-abm -mno-aes -mno-avx -mno-pclmul -mno-popcnt -msoft-float -Werror /usr/sr
c/sys/platform/pc32/i386/genassym.c
/usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing pointer to
incomplete type
/usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing pointer to
incomplete type
/usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
pointer to incomplete type
/usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
pointer to incomplete type
/usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
pointer to incomplete type
/usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
pointer to incomplete type
/usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
pointer to incomplete type
/usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
pointer to incomplete type
/usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
pointer to incomplete type
/usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
pointer to incomplete type
/usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
pointer to incomplete type
/usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
pointer to incomplete type
/usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
pointer to incomplete type
*** Error code 1

which corresponds to

--- a/sys/platform/pc32/i386/genassym.c
+++ b/sys/platform/pc32/i386/genassym.c
@@ -234,6 +234,8 @@ ASSYM(KPSEL, GSEL(GPRIV_SEL, SEL_KPL));
ASSYM(BC32SEL, GSEL(GBIOSCODE32_SEL, SEL_KPL));
ASSYM(VM86_FRAMESIZE, sizeof(struct vm86frame));

+ASSYM(LA_EOI, offsetof(struct LAPIC, eoi));
+
#ifdef SMP
ASSYM(IOAPIC_IM_ADDR, offsetof(struct apic_intmapinfo, apic_address));
ASSYM(IOAPIC_IM_ENTIDX, offsetof(struct apic_intmapinfo, redirindex));

from the above commit.

Thanks,
Eric

History

#1 Updated by sepherosa about 3 years ago

On Wed, May 4, 2011 at 11:58 PM, ejc <> wrote:
> buildkernel gives this:
>
> cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmi
> ssing-prototypes -Wpointer-arith -Winline -Wcast-qual -std=c99 -nostdinc -I. -Ii
> nclude -I/usr/src/sys -I/usr/src/sys/../include -I/usr/obj/usr/src/sys/DYN208 -I
> "/usr/src/sys/dev/acpica5" -I"/usr/src/sys/contrib/dev/acpica-unix/include" -I/u
> sr/src/sys/contrib/ipfilter -I/usr/src/sys/dev/netif/ath/hal -I/usr/src/sys/dev/
> netif/ath/hal/ath_hal -D_KERNEL -include opt_global.h -finline-limit=8000 --para
> m inline-unit-growth=100 --param large-function-growth=1000 -ffreestanding -mpre
> ferred-stack-boundary=2 -fno-stack-protector -mno-mmx -mno-3dnow -mno-sse -mno-s
> se2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4 -mno-sse4a -mno-sse5
> -mno-abm -mno-aes -mno-avx -mno-pclmul -mno-popcnt -msoft-float -Werror  /usr/sr
> c/sys/platform/pc32/i386/genassym.c
> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing pointer to
> incomplete type
> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing pointer to
> incomplete type
> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
> pointer to incomplete type
> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
> pointer to incomplete type
> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
> pointer to incomplete type
> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
> pointer to incomplete type
> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
> pointer to incomplete type
> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
> pointer to incomplete type
> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
> pointer to incomplete type
> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
> pointer to incomplete type
> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
> pointer to incomplete type
> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
> pointer to incomplete type
> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
> pointer to incomplete type
> *** Error code 1
>
> which corresponds to
>
> --- a/sys/platform/pc32/i386/genassym.c
> +++ b/sys/platform/pc32/i386/genassym.c
> @@ -234,6 +234,8 @@ ASSYM(KPSEL, GSEL(GPRIV_SEL, SEL_KPL));
>  ASSYM(BC32SEL, GSEL(GBIOSCODE32_SEL, SEL_KPL));
>  ASSYM(VM86_FRAMESIZE, sizeof(struct vm86frame));
>
> +ASSYM(LA_EOI, offsetof(struct LAPIC, eoi));
> +
>  #ifdef SMP
>  ASSYM(IOAPIC_IM_ADDR, offsetof(struct apic_intmapinfo, apic_address));
>  ASSYM(IOAPIC_IM_ENTIDX, offsetof(struct apic_intmapinfo, redirindex));

Sorry for the breakage, should have been fixed in the master:
1a63cab9bddc9a1a7922b988396bd33994915d05

Best Regards,
sephe

#2 Updated by eric.j.christeson about 3 years ago

Works great!

Thanks,
Eric

On Wed, May 4, 2011 at 9:25 PM, Sepherosa Ziehau (via DragonFly issue
tracker) <> wrote:
>
> Sepherosa Ziehau <> added the comment:
>
> On Wed, May 4, 2011 at 11:58 PM, ejc <> wrote:
>> buildkernel gives this:
>>
>> cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmi
>> ssing-prototypes -Wpointer-arith -Winline -Wcast-qual -std=c99 -nostdinc -I. -Ii
>> nclude -I/usr/src/sys -I/usr/src/sys/../include -I/usr/obj/usr/src/sys/DYN208 -I
>> "/usr/src/sys/dev/acpica5" -I"/usr/src/sys/contrib/dev/acpica-unix/include" -I/u
>> sr/src/sys/contrib/ipfilter -I/usr/src/sys/dev/netif/ath/hal -I/usr/src/sys/dev/
>> netif/ath/hal/ath_hal -D_KERNEL -include opt_global.h -finline-limit=8000 --para
>> m inline-unit-growth=100 --param large-function-growth=1000 -ffreestanding -mpre
>> ferred-stack-boundary=2 -fno-stack-protector -mno-mmx -mno-3dnow -mno-sse -mno-s
>> se2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4 -mno-sse4a -mno-sse5
>> -mno-abm -mno-aes -mno-avx -mno-pclmul -mno-popcnt -msoft-float -Werror  /usr/sr
>> c/sys/platform/pc32/i386/genassym.c
>> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing pointer to
>> incomplete type
>> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing pointer to
>> incomplete type
>> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
>> pointer to incomplete type
>> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
>> pointer to incomplete type
>> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
>> pointer to incomplete type
>> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
>> pointer to incomplete type
>> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
>> pointer to incomplete type
>> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
>> pointer to incomplete type
>> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
>> pointer to incomplete type
>> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
>> pointer to incomplete type
>> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
>> pointer to incomplete type
>> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
>> pointer to incomplete type
>> /usr/src/sys/platform/pc32/i386/genassym.c:237: error: dereferencing
>> pointer to incomplete type
>> *** Error code 1
>>
>> which corresponds to
>>
>> --- a/sys/platform/pc32/i386/genassym.c
>> +++ b/sys/platform/pc32/i386/genassym.c
>> @@ -234,6 +234,8 @@ ASSYM(KPSEL, GSEL(GPRIV_SEL, SEL_KPL));
>>  ASSYM(BC32SEL, GSEL(GBIOSCODE32_SEL, SEL_KPL));
>>  ASSYM(VM86_FRAMESIZE, sizeof(struct vm86frame));
>>
>> +ASSYM(LA_EOI, offsetof(struct LAPIC, eoi));
>> +
>>  #ifdef SMP
>>  ASSYM(IOAPIC_IM_ADDR, offsetof(struct apic_intmapinfo, apic_address));
>>  ASSYM(IOAPIC_IM_ENTIDX, offsetof(struct apic_intmapinfo, redirindex));
>
> Sorry for the breakage, should have been fixed in the master:
> 1a63cab9bddc9a1a7922b988396bd33994915d05
>
> Best Regards,
> sephe
>
> ----------
> status: unread -> chatting
>
> _____________________________________________________
> DragonFly issue tracker <>
> <http://bugs.dragonflybsd.org/issue2062>
> _____________________________________________________
>

Also available in: Atom PDF