# make check
...
gcc -DPACKAGE_NAME=\"ptrace\ regression\ test\ suite\" 
-DPACKAGE_TARNAME=\"ptrace-tests\" -DPACKAGE_VERSION=\"0.1\" 
-DPACKAGE_STRING=\"ptrace\ regression\ test\ suite\ 0.1\" 
-DPACKAGE_BUGREPORT=\"utrace-de...@redhat.com\" -DPACKAGE=\"ptrace-tests\" 
-DVERSION=\"0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D__EXTENSIONS__=1 
-D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_TANDEM_SOURCE=1 
-I.    -std=gnu99 -Wall -Werror -g -O2 -MT step-into-handler.o -MD -MP -MF 
.deps/step-into-handler.Tpo -c -o step-into-handler.o step-into-handler.c
cc1: warnings being treated as errors
step-into-handler.c: In function ‘handler_alrm_get’:
step-into-handler.c:116: error: dereferencing type-punned pointer will break 
strict-aliasing rules
make[1]: *** [step-into-handler.o] Error 1
make[1]: Leaving directory 
`/mnt/tests/kernel/misc/ptrace-testsuite/ptrace-tests/tests'
make: *** [check] Error 2

There could be a better fix. This patch only add -fno-strict-aliasing to ignore 
the warning.
--- tests/Makefile.in.orig	2009-12-05 12:07:27.726259155 -0500
+++ tests/Makefile.in	2009-12-05 12:07:47.107196650 -0500
@@ -547,7 +547,7 @@
 	   user-area-padding			\
 	   reparent-zombie-clone
 
-AM_CFLAGS = -std=gnu99 -Wall -Werror
+AM_CFLAGS = -std=gnu99 -Wall -Werror -fno-strict-aliasing
 x86_64_ia32_gs_LDFLAGS = -lpthread
 late_ptrace_may_attach_check_LDFLAGS = -lpthread
 ppc_dabr_race_LDFLAGS = -lpthread

Reply via email to