Current-Users archive

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

build error for -macppc



Hi,

when cross-building on Linux/x86_64 for macppc I get the following error:

#   compile  kdump/siginfo.o
/data/home/chris/tmp/netbsd/tools/bin/powerpc--netbsd-gcc -O2 -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 -Wold-style-definition -Wsign-compare -Wformat=2 -Wno-format-zero-length -Werror --sysroot=/data/home/c hris/tmp/netbsd/dest -I/data/home/chris/tmp/netbsd/src/usr.bin/ktrace -I/data/home/chris/tmp/netbsd/src/sys -I/data/home/chris/tmp/netbsd/dest/usr/X11R7/include/libdrm -I/data/home/chris/tmp/netbsd/dest/usr/X 11R7/include/pixman-1 -I/data/home/chris/tmp/netbsd/dest/usr/X11R7/include -D_ALTQ_ALTQ_JOBS_H_ -D_VIA_DRM_H_ -DQXL_DRM_H -D__R128_DRM_H__ -D__SIS_DRM_H__ -D__SAVAGE_DRM_H__ -D__RADEON_DRM_H__ -D__MACH64_DRM_
H__ -D__MGA_DRM_H__  -c    siginfo.c
#   compile  kdump/kdump-ioctl.o
/data/home/chris/tmp/netbsd/tools/bin/powerpc--netbsd-gcc -O2 -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 -Wold-style-definition -Wsign-compare -Wformat=2 -Wno-format-zero-length -Werror --sysroot=/data/home/c hris/tmp/netbsd/dest -I/data/home/chris/tmp/netbsd/src/usr.bin/ktrace -I/data/home/chris/tmp/netbsd/src/sys -I/data/home/chris/tmp/netbsd/dest/usr/X11R7/include/libdrm -I/data/home/chris/tmp/netbsd/dest/usr/X 11R7/include/pixman-1 -I/data/home/chris/tmp/netbsd/dest/usr/X11R7/include -D_ALTQ_ALTQ_JOBS_H_ -D_VIA_DRM_H_ -DQXL_DRM_H -D__R128_DRM_H__ -D__SIS_DRM_H__ -D__SAVAGE_DRM_H__ -D__RADEON_DRM_H__ -D__MACH64_DRM_
H__ -D__MGA_DRM_H__  -c    kdump-ioctl.c
In file included from /data/home/chris/tmp/netbsd/dest/usr/X11R7/include/xorg/xf86_OSlib.h:416:0,
                 from kdump-ioctl.c:189:
/data/home/chris/tmp/netbsd/dest/usr/X11R7/include/xorg/compiler.h: In function 'outb': /data/home/chris/tmp/netbsd/dest/usr/X11R7/include/xorg/compiler.h:953:24: error: cast discards '__attribute__((noreturn))' qualifier from pointer target type [-Werror=cast-qual]
         xf86WriteMmio8((void *)ioBase, port, value);
                        ^
/data/home/chris/tmp/netbsd/dest/usr/X11R7/include/xorg/compiler.h: In function 'outw': /data/home/chris/tmp/netbsd/dest/usr/X11R7/include/xorg/compiler.h:960:27: error: cast discards '__attribute__((noreturn))' qualifier from pointer target type [-Werror=cast-qual]
         xf86WriteMmio16Le((void *)ioBase, port, value);
                           ^
/data/home/chris/tmp/netbsd/dest/usr/X11R7/include/xorg/compiler.h: In function 'outl': /data/home/chris/tmp/netbsd/dest/usr/X11R7/include/xorg/compiler.h:967:27: error: cast discards '__attribute__((noreturn))' qualifier from pointer target type [-Werror=cast-qual]
         xf86WriteMmio32Le((void *)ioBase, port, value);
                           ^
/data/home/chris/tmp/netbsd/dest/usr/X11R7/include/xorg/compiler.h: In function 'inb': /data/home/chris/tmp/netbsd/dest/usr/X11R7/include/xorg/compiler.h:974:30: error: cast discards '__attribute__((noreturn))' qualifier from pointer target type [-Werror=cast-qual]
         return xf86ReadMmio8((void *)ioBase, port);
                              ^
/data/home/chris/tmp/netbsd/dest/usr/X11R7/include/xorg/compiler.h: In function 'inw': /data/home/chris/tmp/netbsd/dest/usr/X11R7/include/xorg/compiler.h:981:33: error: cast discards '__attribute__((noreturn))' qualifier from pointer target type [-Werror=cast-qual]
         return xf86ReadMmio16Le((void *)ioBase, port);
                                 ^
/data/home/chris/tmp/netbsd/dest/usr/X11R7/include/xorg/compiler.h: In function 'inl': /data/home/chris/tmp/netbsd/dest/usr/X11R7/include/xorg/compiler.h:988:33: error: cast discards '__attribute__((noreturn))' qualifier from pointer target type [-Werror=cast-qual]
         return xf86ReadMmio32Le((void *)ioBase, port);
                                 ^
cc1: all warnings being treated as errors

*** Failed target:  kdump-ioctl.o
*** Failed command: /data/home/chris/tmp/netbsd/tools/bin/powerpc--netbsd-gcc -O2 -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 -Wold-style-definition -Wsign-compare -Wformat=2 -Wno-format-zero-length -Werror --sysroot=/data/home/chris/tmp/netbsd/dest -I/data/home/chris/tmp/netbsd/src/usr.bin/ktrace -I/data/home/chris/tmp/netbsd/src/sys -I/data/home/chris/tmp/netbsd/dest/usr/X11R7/include/libdrm -I/data/home/chris/tmp/netbsd/dest/usr/X11R7/include/pixman-1 -I/data/home/chris/tmp/netbsd/dest/usr/X11R7/include -D_ALTQ_ALTQ_JOBS_H_ -D_VIA_DRM_H_ -DQXL_DRM_H -D__R128_DRM_H__ -D__SIS_DRM_H__ -D__SAVAGE_DRM_H__ -D__RADEON_DRM_H__ -D__MACH64_DRM_H__ -D__MGA_DRM_H__ -c kdump-ioctl.c
*** Error code 1

Stop.


regards,
chris



Home | Main Index | Thread Index | Old Index