Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
build failure (shadowing declaration .../compat/.../linux32_dirent)
# create compat_linux32/linux32_wait.d
CC=/usr/src/obj/tooldir.NetBSD-7.99.59-amd64/bin/x86_64--netbsd-gcc
/usr/src/obj/tooldir.NetBSD-7.99.59-amd64/bin/nbmkdep -f
linux32_wait.d.tmp -- -std=gnu99 -I/usr/src/common/include
--sysroot=/usr/src/obj/destdir.amd64 -DSYSVSHM -DSYSVSEM -DSYSVMSG
-DCOMPAT_LINUX -DCOMPAT_LINUX32 -DCOMPAT_NETBSD32 -DEXEC_ELF32
-DLINUX32_DEBUGLINK_SIGNATURE -I/usr/src/common/include -nostdinc -I.
-I/usr/src/sys/modules/compat_linux32 -isystem /usr/src/sys -isystem
/usr/src/sys/arch -isystem /usr/src/sys/../common/include -D_KERNEL
-D_LKM -D_MODULE -DSYSCTL_INCLUDE_DESCR
/usr/src/sys/compat/linux32/common/linux32_wait.c && mv
linux32_wait.d.tmp linux32_wait.d
# create compat_linux32/linux_exec_elf32.d
CC=/usr/src/obj/tooldir.NetBSD-7.99.59-amd64/bin/x86_64--netbsd-gcc
/usr/src/obj/tooldir.NetBSD-7.99.59-amd64/bin/nbmkdep -f
linux_exec_elf32.d.tmp -- -std=gnu99 -I/usr/src/common/include
--sysroot=/usr/src/obj/destdir.amd64 -DSYSVSHM -DSYSVSEM -DSYSVMSG
-DCOMPAT_LINUX -DCOMPAT_LINUX32 -DCOMPAT_NETBSD32 -DEXEC_ELF32
-DLINUX32_DEBUGLINK_SIGNATURE -I/usr/src/common/include -nostdinc -I.
-I/usr/src/sys/modules/compat_linux32 -isystem /usr/src/sys -isystem
/usr/src/sys/arch -isystem /usr/src/sys/../common/include -D_KERNEL
-D_LKM -D_MODULE -DSYSCTL_INCLUDE_DESCR
/usr/src/sys/compat/linux/common/linux_exec_elf32.c && mv
linux_exec_elf32.d.tmp linux_exec_elf32.d
# create compat_linux32/linux_oldmmap.d
CC=/usr/src/obj/tooldir.NetBSD-7.99.59-amd64/bin/x86_64--netbsd-gcc
/usr/src/obj/tooldir.NetBSD-7.99.59-amd64/bin/nbmkdep -f
linux_oldmmap.d.tmp -- -std=gnu99 -I/usr/src/common/include
--sysroot=/usr/src/obj/destdir.amd64 -DSYSVSHM -DSYSVSEM -DSYSVMSG
-DCOMPAT_LINUX -DCOMPAT_LINUX32 -DCOMPAT_NETBSD32 -DEXEC_ELF32
-DLINUX32_DEBUGLINK_SIGNATURE -I/usr/src/common/include -nostdinc -I.
-I/usr/src/sys/modules/compat_linux32 -isystem /usr/src/sys -isystem
/usr/src/sys/arch -isystem /usr/src/sys/../common/include -D_KERNEL
-D_LKM -D_MODULE -DSYSCTL_INCLUDE_DESCR
/usr/src/sys/compat/linux/common/linux_oldmmap.c && mv
linux_oldmmap.d.tmp linux_oldmmap.d
# create compat_linux32/.depend
rm -f .depend
CC=/usr/src/obj/tooldir.NetBSD-7.99.59-amd64/bin/x86_64--netbsd-gcc
/usr/src/obj/tooldir.NetBSD-7.99.59-amd64/bin/nbmkdep -s .o\ .d -d -f
.depend linux32_dirent.d linux32_exec.d linux32_exec_elf32.d
linux32_fcntl.d linux32_ioctl.d linux32_ipccall.d linux32_machdep.d
linux32_misc.d linux32_missing.d linux32_mman.d linux32_mod.d
linux32_resource.d linux32_sched.d linux32_sigcode.d linux32_signal.d
linux32_socket.d linux32_socketcall.d linux32_stat.d linux32_syscall.d
linux32_syscalls.d linux32_sysctl.d linux32_sysent.d linux32_sysinfo.d
linux32_termios.d linux32_time.d linux32_uid16.d linux32_unistd.d
linux32_utsname.d linux32_wait.d linux_exec_elf32.d linux_oldmmap.d
# compile compat_linux32/linux32_dirent.o
/usr/src/obj/tooldir.NetBSD-7.99.59-amd64/bin/x86_64--netbsd-gcc -O2
-g -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wno-sign-compare -Wsystem-headers -Wno-traditional
-Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual
-Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare
-Werror -ffreestanding -fno-strict-aliasing -Wno-pointer-sign
-mno-red-zone -mno-mmx -mno-sse -mno-avx -msoft-float -mcmodel=kernel
-fno-omit-frame-pointer -I/usr/src/common/include
--sysroot=/usr/src/obj/destdir.amd64 -DSYSVSHM -DSYSVSEM -DSYSVMSG
-DCOMPAT_LINUX -DCOMPAT_LINUX32 -DCOMPAT_NETBSD32 -DEXEC_ELF32
-DLINUX32_DEBUGLINK_SIGNATURE -I/usr/src/common/include -nostdinc -I.
-I/usr/src/sys/modules/compat_linux32 -isystem /usr/src/sys -isystem
/usr/src/sys/arch -isystem /usr/src/sys/../common/include -D_KERNEL
-D_LKM -D_MODULE -DSYSCTL_INCLUDE_DESCR -c
/usr/src/sys/compat/linux32/common/linux32_dirent.c
/usr/src/sys/compat/linux32/common/linux32_dirent.c: In function
'linux32_sys_getdents':
/usr/src/sys/compat/linux32/common/linux32_dirent.c:218:10: error:
declaration of 'l' shadows a parameter [-Werror=shadow]
size_t l = MIN(sizeof(idb.d_name) - 1, bdp->d_namlen + 1);
^
/usr/src/sys/compat/linux32/common/linux32_dirent.c:95:34: note:
shadowed declaration is here
linux32_sys_getdents(struct lwp *l, const struct
linux32_sys_getdents_args *uap, register_t *retval)
^
cc1: all warnings being treated as errors
*** Failed target: linux32_dirent.o
*** Failed command:
/usr/src/obj/tooldir.NetBSD-7.99.59-amd64/bin/x86_64--netbsd-gcc -O2
-g -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wno-sign-compare -Wsystem-headers -Wno-traditional
-Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual
-Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare
-Werror -ffreestanding -fno-strict-aliasing -Wno-pointer-sign
-mno-red-zone -mno-mmx -mno-sse -mno-avx -msoft-float -mcmodel=kernel
-fno-omit-frame-pointer -I/usr/src/common/include
--sysroot=/usr/src/obj/destdir.amd64 -DSYSVSHM -DSYSVSEM -DSYSVMSG
-DCOMPAT_LINUX -DCOMPAT_LINUX32 -DCOMPAT_NETBSD32 -DEXEC_ELF32
-DLINUX32_DEBUGLINK_SIGNATURE -I/usr/src/common/include -nostdinc -I.
-I/usr/src/sys/modules/compat_linux32 -isystem /usr/src/sys -isystem
/usr/src/sys/arch -isystem /usr/src/sys/../common/include -D_KERNEL
-D_LKM -D_MODULE -DSYSCTL_INCLUDE_DESCR -c
/usr/src/sys/compat/linux32/common/linux32_dirent.c
*** Error code 1
Stop.
Home |
Main Index |
Thread Index |
Old Index