Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: evbarm default odroid C1kernel fail to compile



Hello Christof.

Changing "static void inline" with "static inline void" just leads to more errors.

Thanks,

Pietro


#   compile  ODROID-C1_current/amlogic_genfb.o
/usr/src/obj/tooldir.NetBSD-7.0.1-amd64/bin/arm--netbsdelf-eabi-gcc -mfloat-abi=soft -ffreestanding -fno-zero-initialized-in-bss -g -O2 -msoft-float -fno-strict-aliasing -fno-common -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wsign-compare -Wformat=2 -Wno-format-zero-length -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wno-sign-compare --sysroot=/usr/src/obj/destdir.evbarm -mcpu=cortex-a5 -mfpu=neon -DKERNEL_BASE_VOFFSET=(0x80100000-0x00100000) -I. -I/usr/src/sys/../common/lib/libx86emu -I/usr/src/sys/../common/include -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -D__HAVE_CPU_COUNTER -D__HAVE_FAST_SOFTINTS -D__HAVE_MM_MD_DIRECT_MAPPED_PHYS -DKERNEL_BASE_EXT=0x80000000 -DARM_GENERIC_TODR -DDIAGNOSTIC -DCONSADDR=0xc81004c0 -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad -I/usr/src/sys/lib/libkern/../../../common/lib/libc/string -I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/arm/string -I/usr/src/sys/external/bsd/common/include -I/usr/src/sys/external/bsd -I/usr/src/sys/external/bsd/dwc2/dist -c /usr/src/sys/arch/arm/amlogic/amlogic_genfb.c -o amlogic_genfb.o /usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:64:2: error: missing initializer for field 'flags' of 'const struct amlogic_genfb_vic2mode' [-Werror=missing-field-initializers]
  { 1, 640, 480 },
  ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:60:8: note: 'flags' declared here
  u_int flags;
        ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:65:2: error: missing initializer for field 'flags' of 'const struct amlogic_genfb_vic2mode' [-Werror=missing-field-initializers]
  { 2, 720, 480 },
  ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:60:8: note: 'flags' declared here
  u_int flags;
        ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:66:2: error: missing initializer for field 'flags' of 'const struct amlogic_genfb_vic2mode' [-Werror=missing-field-initializers]
  { 3, 720, 480 },
  ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:60:8: note: 'flags' declared here
  u_int flags;
        ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:67:2: error: missing initializer for field 'flags' of 'const struct amlogic_genfb_vic2mode' [-Werror=missing-field-initializers]
  { 4, 1280, 720 },
  ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:60:8: note: 'flags' declared here
  u_int flags;
        ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:73:2: error: missing initializer for field 'flags' of 'const struct amlogic_genfb_vic2mode' [-Werror=missing-field-initializers]
  { 16, 1920, 1080 },
  ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:60:8: note: 'flags' declared here
  u_int flags;
        ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:74:2: error: missing initializer for field 'flags' of 'const struct amlogic_genfb_vic2mode' [-Werror=missing-field-initializers]
  { 17, 720, 576 },
  ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:60:8: note: 'flags' declared here
  u_int flags;
        ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:75:2: error: missing initializer for field 'flags' of 'const struct amlogic_genfb_vic2mode' [-Werror=missing-field-initializers]
  { 18, 720, 576 },
  ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:60:8: note: 'flags' declared here
  u_int flags;
        ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:76:2: error: missing initializer for field 'flags' of 'const struct amlogic_genfb_vic2mode' [-Werror=missing-field-initializers]
  { 19, 1280, 720 },
  ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:60:8: note: 'flags' declared here
  u_int flags;
        ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:78:2: error: missing initializer for field 'flags' of 'const struct amlogic_genfb_vic2mode' [-Werror=missing-field-initializers]
  { 31, 1920, 1080 },
  ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:60:8: note: 'flags' declared here
  u_int flags;
        ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:79:2: error: missing initializer for field 'flags' of 'const struct amlogic_genfb_vic2mode' [-Werror=missing-field-initializers]
  { 32, 1920, 1080 },
  ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:60:8: note: 'flags' declared here
  u_int flags;
        ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:80:2: error: missing initializer for field 'flags' of 'const struct amlogic_genfb_vic2mode' [-Werror=missing-field-initializers]
  { 33, 1920, 1080 },
  ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:60:8: note: 'flags' declared here
  u_int flags;
        ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:81:2: error: missing initializer for field 'flags' of 'const struct amlogic_genfb_vic2mode' [-Werror=missing-field-initializers]
  { 34, 1920, 1080 },
  ^
/usr/src/sys/arch/arm/amlogic/amlogic_genfb.c:60:8: note: 'flags' declared here
  u_int flags;
        ^
cc1: all warnings being treated as errors

*** Failed target:  amlogic_genfb.o
*** Failed command: echo '# ' "compile ODROID-C1_current/amlogic_genfb.o" && echo /usr/src/obj/tooldir.NetBSD-7.0.1-amd64/bin/arm--netbsdelf-eabi-gcc -mfloat-abi=soft -ffreestanding -fno-zero-initialized-in-bss -g -O2 -msoft-float -fno-strict-aliasing -fno-common -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wsign-compare -Wformat=2 -Wno-format-zero-length -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wno-sign-compare --sysroot=/usr/src/obj/destdir.evbarm -mcpu=cortex-a5 -mfpu=neon -DKERNEL_BASE_VOFFSET="(0x80100000-0x00100000)" -I. -I/usr/src/sys/../common/lib/libx86emu -I/usr/src/sys/../common/include -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -D__HAVE_CPU_COUNTER -D__HAVE_FAST_SOFTINTS -D__HAVE_MM_MD_DIRECT_MAPPED_PHYS -DKERNEL_BASE_EXT="0x80000000" -DARM_GENERIC_TODR -DDIAGNOSTIC -DCONSADDR="0xc81004c0" -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad -I/usr/src/sys/lib/libkern/../../../common/lib/libc/string -I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/arm/string -I/usr/src/sys/external/bsd/common/include -I/usr/src/sys/external/bsd -I/usr/src/sys/external/bsd/dwc2/dist -c /usr/src/sys/arch/arm/amlogic/amlogic_genfb.c -o amlogic_genfb.o && /usr/src/obj/tooldir.NetBSD-7.0.1-amd64/bin/arm--netbsdelf-eabi-gcc -mfloat-abi=soft -ffreestanding -fno-zero-initialized-in-bss -g -O2 -msoft-float -fno-strict-aliasing -fno-common -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wsign-compare -Wformat=2 -Wno-format-zero-length -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wno-sign-compare --sysroot=/usr/src/obj/destdir.evbarm -mcpu=cortex-a5 -mfpu=neon -DKERNEL_BASE_VOFFSET="(0x80100000-0x00100000)" -I. -I/usr/src/sys/../common/lib/libx86emu -I/usr/src/sys/../common/include -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -D__HAVE_CPU_COUNTER -D__HAVE_FAST_SOFTINTS -D__HAVE_MM_MD_DIRECT_MAPPED_PHYS -DKERNEL_BASE_EXT="0x80000000" -DARM_GENERIC_TODR -DDIAGNOSTIC -DCONSADDR="0xc81004c0" -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad -I/usr/src/sys/lib/libkern/../../../common/lib/libc/string -I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/arm/string -I/usr/src/sys/external/bsd/common/include -I/usr/src/sys/external/bsd -I/usr/src/sys/external/bsd/dwc2/dist -c /usr/src/sys/arch/arm/amlogic/amlogic_genfb.c -o amlogic_genfb.o && echo /usr/src/obj/tooldir.NetBSD-7.0.1-amd64/bin/nbctfconvert -g -L VERSION -g amlogic_genfb.o && /usr/src/obj/tooldir.NetBSD-7.0.1-amd64/bin/nbctfconvert -g -L VERSION -g amlogic_genfb.o
*** Error code 1

Stop.
nbmake: stopped in /usr/obj/sys/arch/evbarm/compile/ODROID-C1_current

ERROR: Failed to make all in "/usr/src/sys/arch/evbarm/compile/obj/ODROID-C1_current"
*** BUILD ABORTED ***


On 7/28/2016 2:07 PM, Christof Meerwald wrote:
On Thu, Jul 28, 2016 at 12:57:19PM -0500, Pietro S. wrote:
[...]
Apparently I am also using gcc 4.8.4 which is the one that comes with NetBSD
7.0.1 RELEASE. Could it be that I am trying to build a -CURRENT kernel on
7.0.1 release?
Well, I am building a CURRENT kernel on my ODROID-C1 with a 7.0.1
userland...

BTW, the error message claims that "-Werror=old-style-declaration" has
been enabled, but it's not on the gcc command line, so am wondering if
something else in your environment might enable that option...

Have you tried changing the source code (changing "static void inline"
to "static inline void")?


Christof




Home | Main Index | Thread Index | Old Index