build error at db_trace.c

Mori Hiroki yamori813 at yahoo.co.jp
Thu Jan 5 08:22:39 UTC 2017


Hi

I have build error on mips today. I think db_printsym() change side efect. I think the cause
by gcc and clang difference.

cc -isystem /storage/home/hiroki/obj//storage/home/hiroki/zrouter/tmp//mips.mips
/storage/home/hiroki/freebsd/tmp/usr/include -L/storage/home/hiroki/obj//storage
/home/hiroki/zrouter/tmp//mips.mips/storage/home/hiroki/freebsd/tmp/usr/lib -B/s
torage/home/hiroki/obj//storage/home/hiroki/zrouter/tmp//mips.mips/storage/home/
hiroki/freebsd/tmp/usr/lib --sysroot=/storage/home/hiroki/obj//storage/home/hiro
ki/zrouter/tmp//mips.mips/storage/home/hiroki/freebsd/tmp -B/storage/home/hiroki
/obj//storage/home/hiroki/zrouter/tmp//mips.mips/storage/home/hiroki/freebsd/tmp
/usr/bin -c -O2 -pipe -fno-strict-aliasing   -nostdinc  -I. -I/storage/home/hiro
ki/freebsd/sys -I/storage/home/hiroki/freebsd/sys/contrib/libfdt -D_KERNEL -DHAV
E_KERNEL_OPTION_HEADERS -include opt_global.h  -fno-pic -mno-abicalls -G0 -DKERN
LOADADDR=0x80050000 -march=mips32 -MD  -MF.depend.db_trace.o -MTdb_trace.o -msof
t-float -ffreestanding -fwrapv -Wall -Wredundant-decls -Wnested-externs -Wstrict
-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -W
no-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-op
tion -Wno-unknown-pragmas -Wno-uninitialized  -fno-common -fms-extensions -finli
ne-limit=768 --param inline-unit-growth=100 --param large-function-growth=1000 -
-param max-inline-insns-single=1000 -DMACHINE_ARCH='"mips"'  -std=iso9899:1999 -
Werror  /storage/home/hiroki/freebsd/sys/mips/mips/db_trace.c
cc1: warnings being treated as errors
/storage/home/hiroki/freebsd/sys/mips/mips/db_trace.c: In function 'stacktrace_s
ubr':
/storage/home/hiroki/freebsd/sys/mips/mips/db_trace.c:120: warning: format '%jx'
 expects type 'uintmax_t', but argument 2 has type 'register_t' [-Wformat]
/storage/home/hiroki/freebsd/sys/mips/mips/db_trace.c:165: warning: format '%jx'
 expects type 'uintmax_t', but argument 2 has type 'register_t' [-Wformat]
*** Error code 1

Hiroki Mori


More information about the freebsd-mips mailing list