Current-Users archive

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

Re: earmv7: building release failed



Hei Matthew,

On Mon, Aug 19, 2019 at 04:36:06PM +1000, matthew green wrote:
> 
> > /u/NetBSD/ks-src/sys/sys/kernhist.h:226:14: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
> 
> sorry, i just commited the fix for this.
thanks for the quick fix, but there are still some places left where compiling
some armv7-kernels fails (s.b.)

FWIW: The 4 ARMAD* kernels compile fine...

Kurt


    compile  BCM5301X/usbnet.o
In file included from /u/NetBSD/nb-src/sys/dev/usb/usbhist.h:45:0,
                 from /u/NetBSD/nb-src/sys/dev/usb/usbnet.c:44:
/u/NetBSD/nb-src/sys/dev/usb/usbnet.c: In function 'usbnet_input':
/u/NetBSD/nb-src/sys/dev/usb/usbnet.c:280:6: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
      (uintmax_t)un, (uintmax_t)buf, buflen, 0);
      ^
/u/NetBSD/nb-src/sys/sys/kernhist.h:226:26: note: in definition of macro 'KERNHIST_LOG'
  _e_->v[0] = (uintmax_t)(A); \
                          ^
/u/NetBSD/nb-src/sys/dev/usb/usbnet.c:134:33: note: in expansion of macro 'USBHIST_LOGN'
 #define DPRINTFN(N,FMT,A,B,C,D) USBHIST_LOGN(usbnetdebug,N,FMT,A,B,C,D)
                                 ^~~~~~~~~~~~
/u/NetBSD/nb-src/sys/dev/usb/usbnet.c:279:2: note: in expansion of macro 'DPRINTFN'
  DPRINTFN(0, "called! un %jx buf %jx len %ju",
  ^~~~~~~~
/u/NetBSD/nb-src/sys/dev/usb/usbnet.c:280:21: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
      (uintmax_t)un, (uintmax_t)buf, buflen, 0);
                     ^
/u/NetBSD/nb-src/sys/sys/kernhist.h:227:26: note: in definition of macro 'KERNHIST_LOG'
  _e_->v[1] = (uintmax_t)(B); \
                          ^
/u/NetBSD/nb-src/sys/dev/usb/usbnet.c:134:33: note: in expansion of macro 'USBHIST_LOGN'
 #define DPRINTFN(N,FMT,A,B,C,D) USBHIST_LOGN(usbnetdebug,N,FMT,A,B,C,D)
                                 ^~~~~~~~~~~~
/u/NetBSD/nb-src/sys/dev/usb/usbnet.c:279:2: note: in expansion of macro 'DPRINTFN'
  DPRINTFN(0, "called! un %jx buf %jx len %ju",
  ^~~~~~~~
cc1: all warnings being treated as errors

*** Failed target:  usbnet.o
*** Failed command: echo ' ' "compile BCM5301X/usbnet.o" && : echo /u/NetBSD/arch/evbearmv7hf-el/TOOLS/bin/armv7--netbsdelf-eabihf-gcc -pipe -mfloat-abi=soft -ffreestanding -fno-zero-initialized-in-bss -fno-delete-null-pointer-checks -g -O2 -fno-strict-aliasing -fno-common -std=gnu99 -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=/u/NetBSD/arch/evbearmv7hf-el/dest -mcpu=cortex-a9 -mfpu=neon -DKERNEL_BASES_EQUAL -DKERNEL_BASE_VOFFSET=0 -I. -I/u/NetBSD/nb-src/sys/external/bsd/libnv/dist -I/u/NetBSD/nb-src/sys/../common/lib/libx86emu -I/u/NetBSD/nb-src/sys/../common/lib/libc/misc -I/u/NetBSD/nb-src/sys/../common/include -I/u/NetBSD/nb-src/sys/arch -I/u/NetBSD/nb-src/sys -nostdinc -DCOMPAT_UTILS -DARM_GENERIC_TODR -D__HAVE_CPU_COUNTER -D__HAVE_CPU_UAREA_ALLOC_IDLELWP -D__HAVE_FAST_SOFTINTS -D__HAVE_MM_MD_CACHE_ALIASING -D__HAVE_MM_MD_DIRECT_MAPPED_PHYS -D__HAVE_PCI_CONF_HOOK -DCOMPAT_44 -DRNDVERBOSE -DDIAGNOSTIC -DDEBUG -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/u/NetBSD/nb-src/sys/lib/libkern/../../../common/lib/libc/quad -I/u/NetBSD/nb-src/sys/lib/libkern/../../../common/lib/libc/string -I/u/NetBSD/nb-src/sys/lib/libkern/../../../common/lib/libc/arch/arm/string -c /u/NetBSD/nb-src/sys/dev/usb/usbnet.c -o usbnet.o && /u/NetBSD/arch/evbearmv7hf-el/TOOLS/bin/armv7--netbsdelf-eabihf-gcc -pipe -mfloat-abi=soft -ffreestanding -fno-zero-initialized-in-bss -fno-delete-null-pointer-checks -g -O2 -fno-strict-aliasing -fno-common -std=gnu99 -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=/u/NetBSD/arch/evbearmv7hf-el/dest -mcpu=cortex-a9 -mfpu=neon -DKERNEL_BASES_EQUAL -DKERNEL_BASE_VOFFSET=0 -I. -I/u/NetBSD/nb-src/sys/external/bsd/libnv/dist -I/u/NetBSD/nb-src/sys/../common/lib/libx86emu -I/u/NetBSD/nb-src/sys/../common/lib/libc/misc -I/u/NetBSD/nb-src/sys/../common/include -I/u/NetBSD/nb-src/sys/arch -I/u/NetBSD/nb-src/sys -nostdinc -DCOMPAT_UTILS -DARM_GENERIC_TODR -D__HAVE_CPU_COUNTER -D__HAVE_CPU_UAREA_ALLOC_IDLELWP -D__HAVE_FAST_SOFTINTS -D__HAVE_MM_MD_CACHE_ALIASING -D__HAVE_MM_MD_DIRECT_MAPPED_PHYS -D__HAVE_PCI_CONF_HOOK -DCOMPAT_44 -DRNDVERBOSE -DDIAGNOSTIC -DDEBUG -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/u/NetBSD/nb-src/sys/lib/libkern/../../../common/lib/libc/quad -I/u/NetBSD/nb-src/sys/lib/libkern/../../../common/lib/libc/string -I/u/NetBSD/nb-src/sys/lib/libkern/../../../common/lib/libc/arch/arm/string -c /u/NetBSD/nb-src/sys/dev/usb/usbnet.c -o usbnet.o && : echo /u/NetBSD/arch/evbearmv7hf-el/TOOLS/bin/nbctfconvert -g -L VERSION -g usbnet.o && /u/NetBSD/arch/evbearmv7hf-el/TOOLS/bin/nbctfconvert -g -L VERSION -g usbnet.o
*** Error code 1

Stop.
nbmake[2]: stopped in /u/NetBSD/arch/evbearmv7hf-el/obj/sys/arch/evbarm/compile/BCM5301X



Home | Main Index | Thread Index | Old Index