Bug #6246
debug build failed after integration #4185
Status:
Feedback
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2015-09-19
Due date:
% Done:
0%
Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
Description
/usr/gcc/4.8/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -fdiagnostics-show-option -nodefaultlibs -D__sun -m64 -mtune=opteron -Ui386 -U__i386 -fno-strict-aliasing -fno-unit-at-a-time -fno-optimize-sibling-calls -O2 -D_ASM_INLINES -ffreestanding -mno-red-zone -mno-mmx -mno-sse -msave-args -Wall -Wextra -gdwarf-2 -std=gnu99 -msave-args -Werror -Wno-missing-braces -Wno-sign-compare -Wno-unknown-pragmas -Wno-unused-parameter -Wno-missing-field-initializers -Wno-type-limits -fno-inline-small-functions -fno-inline-functions-called-once -fno-ipa-cp -fstack-protector -D_KERNEL -ffreestanding -D_SYSCALL32 -D_SYSCALL32_IMPL -D_ELF64 -D_DDI_STRICT -Dsun -D__sun -D__SVR4 -DDEBUG -I../../intel -I../../common/fs/zfs -I/myshare/builds/ssd02/builds/dilos-illumos.lx/usr/src/common -I../../../common/zfs -nostdinc -I../../common -c -o debug64/edonr_zfs.o ../../common/fs/zfs/edonr_zfs.c -mcmodel=kernel In file included from ../../common/sys/model.h:37:0, from ../../common/sys/resource.h:223, from ../../common/sys/user.h:73, from ../../common/sys/proc.h:36, from ../../common/sys/systm.h:35, from ../../common/fs/zfs/sys/zfs_context.h:50, from ../../common/fs/zfs/edonr_zfs.c:25: ../../common/fs/zfs/edonr_zfs.c: In function 'zio_checksum_edonr_tmpl_init': ../../common/sys/debug.h:134:15: error: typedef '__compile_time_assertion__79' locally defined but not used [-Werror=unused-local-typedefs] typedef char __compile_time_assertion__ ## y [(x) ? 1 : -1] ^ ../../common/sys/debug.h:132:26: note: in expansion of macro '__CTASSERT' #define _CTASSERT(x, y) __CTASSERT(x, y) ^ ../../common/sys/debug.h:131:22: note: in expansion of macro '_CTASSERT' #define CTASSERT(x) _CTASSERT(x, __LINE__) ^ ../../common/fs/zfs/edonr_zfs.c:79:2: note: in expansion of macro 'CTASSERT' CTASSERT(EDONR_BLOCK_SIZE == 2 * (EDONR_MODE / 8)); ^ cc1: all warnings being treated as errors *** Error code 1 dmake: Fatal error: Command failed for target `debug64/edonr_zfs.o' Current working directory /myshare/builds/ssd02/builds/dilos-illumos.lx/usr/src/uts/intel/zfs
Updated by Igor Kozhukhov over 5 years ago
problem appeared after integration:
https://github.com/illumos/illumos-gate/commit/45818ee124adeaaf947698996b4f4c722afc6d1f
Updated by Igor Kozhukhov over 5 years ago
- Subject changed from debug build failed to debug build failed after integration #4185
Updated by Igor Kozhukhov over 5 years ago
easy fix by:
igor@infra-99-018:/myshare/builds/ssd02/builds/dilos-illumos.lx$ g diff diff --git a/usr/src/uts/common/sys/debug.h b/usr/src/uts/common/sys/debug.h index 8efc895..97fabd4 100644 --- a/usr/src/uts/common/sys/debug.h +++ b/usr/src/uts/common/sys/debug.h @@ -131,7 +131,7 @@ _NOTE(CONSTCOND) } while (0) #define CTASSERT(x) _CTASSERT(x, __LINE__) #define _CTASSERT(x, y) __CTASSERT(x, y) #define __CTASSERT(x, y) \ - typedef char __compile_time_assertion__ ## y [(x) ? 1 : -1] + typedef char __compile_time_assertion__ ## y [(x) ? 1 : -1] __GNU_UNUSED #ifdef _KERNEL
Updated by Igor Kozhukhov over 3 years ago
Yuri Pankov wrote:
is this still actual?
using gcc5 and gcc6 now without problems, but probably it was fixed on my tree and i have no ideas about others checks