Date: Thu, 5 Jan 2017 17:19:42 +0900 (JST) From: Mori Hiroki <yamori813@yahoo.co.jp> To: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> Subject: build error at db_trace.c Message-ID: <486688.73503.qm@web101714.mail.ssk.yahoo.co.jp>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?486688.73503.qm>
