Date: Fri, 29 Dec 2023 22:07:53 +0000 From: bugzilla-noreply@freebsd.org To: testing@FreeBSD.org Subject: [Bug 276003] tgmath regression test fails Message-ID: <bug-276003-32464@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276003 Bug ID: 276003 Summary: tgmath regression test fails Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: tests Assignee: testing@FreeBSD.org Reporter: minsoochoo0122@proton.me In tools/regression/include/tgmath, make does not work due to macro-related errors. # make Building /usr/obj/usr/src/amd64.amd64/tools/regression/include/tgmath/tgmat= h.o /usr/src/tools/regression/include/tgmath/tgmath.c:40:5: error: no previous extern declaration for non-static variable 'currtest' [-Werror,-Wmissing-variable-declarations] 40 | int currtest =3D 0; | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:40:1: note: declare 'stat= ic' if the variable is not intended to be used outside of this translation unit 40 | int currtest =3D 0; | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:76:1: error: unused param= eter 'x' [-Werror,-Wunused-parameter] 76 | TGMACRO(acos) | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:43:2: note: expanded from macro 'TGMACRO' 43 | TGMACRO_REAL(FNC)=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:47:25: note: expanded from macro 'TGMACRO_REAL' 47 | float (FNC ## f)(float x) { n_float++; }=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:76:1: error: non-void function does not return a value [-Werror,-Wreturn-type] /usr/src/tools/regression/include/tgmath/tgmath.c:43:2: note: expanded from macro 'TGMACRO' 43 | TGMACRO_REAL(FNC)=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:47:41: note: expanded from macro 'TGMACRO_REAL' 47 | float (FNC ## f)(float x) { n_float++; }=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:76:1: error: unused param= eter 'x' [-Werror,-Wunused-parameter] /usr/src/tools/regression/include/tgmath/tgmath.c:43:2: note: expanded from macro 'TGMACRO' 43 | TGMACRO_REAL(FNC)=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:48:22: note: expanded from macro 'TGMACRO_REAL' 48 | double (FNC)(double x) { n_double++; }=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:76:1: error: non-void function does not return a value [-Werror,-Wreturn-type] /usr/src/tools/regression/include/tgmath/tgmath.c:43:2: note: expanded from macro 'TGMACRO' 43 | TGMACRO_REAL(FNC)=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:48:39: note: expanded from macro 'TGMACRO_REAL' 48 | double (FNC)(double x) { n_double++; }=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:76:1: error: unused param= eter 'x' [-Werror,-Wunused-parameter] /usr/src/tools/regression/include/tgmath/tgmath.c:43:2: note: expanded from macro 'TGMACRO' 43 | TGMACRO_REAL(FNC)=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:49:37: note: expanded from macro 'TGMACRO_REAL' 49 | long double (FNC ## l)(long double x) { n_long_double++; } | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:76:1: error: non-void function does not return a value [-Werror,-Wreturn-type] /usr/src/tools/regression/include/tgmath/tgmath.c:43:2: note: expanded from macro 'TGMACRO' 43 | TGMACRO_REAL(FNC)=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:49:59: note: expanded from macro 'TGMACRO_REAL' 49 | long double (FNC ## l)(long double x) { n_long_double++; } | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:76:1: error: unused param= eter 'x' [-Werror,-Wunused-parameter] /usr/src/tools/regression/include/tgmath/tgmath.c:44:2: note: expanded from macro 'TGMACRO' 44 | TGMACRO_COMPLEX(c ## FNC) | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:63:41: note: expanded from macro 'TGMACRO_COMPLEX' 63 | float complex (FNC ## f)(float complex x) { n_float_complex= ++; }\ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:76:1: error: non-void function does not return a value [-Werror,-Wreturn-type] /usr/src/tools/regression/include/tgmath/tgmath.c:44:2: note: expanded from macro 'TGMACRO' 44 | TGMACRO_COMPLEX(c ## FNC) | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:63:65: note: expanded from macro 'TGMACRO_COMPLEX' 63 | float complex (FNC ## f)(float complex x) { n_float_complex= ++; }\ |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^ /usr/src/tools/regression/include/tgmath/tgmath.c:76:1: error: unused param= eter 'x' [-Werror,-Wunused-parameter] /usr/src/tools/regression/include/tgmath/tgmath.c:44:2: note: expanded from macro 'TGMACRO' 44 | TGMACRO_COMPLEX(c ## FNC) | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:64:38: note: expanded from macro 'TGMACRO_COMPLEX' 64 | double complex (FNC)(double complex x) { n_double_complex++= ; }=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:76:1: error: non-void function does not return a value [-Werror,-Wreturn-type] /usr/src/tools/regression/include/tgmath/tgmath.c:44:2: note: expanded from macro 'TGMACRO' 44 | TGMACRO_COMPLEX(c ## FNC) | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:64:63: note: expanded from macro 'TGMACRO_COMPLEX' 64 | double complex (FNC)(double complex x) { n_double_complex++= ; }=20 \ | = ^ /usr/src/tools/regression/include/tgmath/tgmath.c:76:1: error: unused param= eter 'x' [-Werror,-Wunused-parameter] /usr/src/tools/regression/include/tgmath/tgmath.c:44:2: note: expanded from macro 'TGMACRO' 44 | TGMACRO_COMPLEX(c ## FNC) | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:66:33: note: expanded from macro 'TGMACRO_COMPLEX' 66 | (FNC ## l)(long double complex x) { n_long_double_complex++= ; } | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:76:1: error: non-void function does not return a value [-Werror,-Wreturn-type] /usr/src/tools/regression/include/tgmath/tgmath.c:44:2: note: expanded from macro 'TGMACRO' 44 | TGMACRO_COMPLEX(c ## FNC) | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:66:63: note: expanded from macro 'TGMACRO_COMPLEX' 66 | (FNC ## l)(long double complex x) { n_long_double_complex++= ; } | = ^ /usr/src/tools/regression/include/tgmath/tgmath.c:77:1: error: unused param= eter 'x' [-Werror,-Wunused-parameter] 77 | TGMACRO(asin) | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:43:2: note: expanded from macro 'TGMACRO' 43 | TGMACRO_REAL(FNC)=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:47:25: note: expanded from macro 'TGMACRO_REAL' 47 | float (FNC ## f)(float x) { n_float++; }=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:77:1: error: non-void function does not return a value [-Werror,-Wreturn-type] /usr/src/tools/regression/include/tgmath/tgmath.c:43:2: note: expanded from macro 'TGMACRO' 43 | TGMACRO_REAL(FNC)=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:47:41: note: expanded from macro 'TGMACRO_REAL' 47 | float (FNC ## f)(float x) { n_float++; }=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:77:1: error: unused param= eter 'x' [-Werror,-Wunused-parameter] /usr/src/tools/regression/include/tgmath/tgmath.c:43:2: note: expanded from macro 'TGMACRO' 43 | TGMACRO_REAL(FNC)=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:48:22: note: expanded from macro 'TGMACRO_REAL' 48 | double (FNC)(double x) { n_double++; }=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:77:1: error: non-void function does not return a value [-Werror,-Wreturn-type] /usr/src/tools/regression/include/tgmath/tgmath.c:43:2: note: expanded from macro 'TGMACRO' 43 | TGMACRO_REAL(FNC)=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:48:39: note: expanded from macro 'TGMACRO_REAL' 48 | double (FNC)(double x) { n_double++; }=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:77:1: error: unused param= eter 'x' [-Werror,-Wunused-parameter] /usr/src/tools/regression/include/tgmath/tgmath.c:43:2: note: expanded from macro 'TGMACRO' 43 | TGMACRO_REAL(FNC)=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:49:37: note: expanded from macro 'TGMACRO_REAL' 49 | long double (FNC ## l)(long double x) { n_long_double++; } | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:77:1: error: non-void function does not return a value [-Werror,-Wreturn-type] /usr/src/tools/regression/include/tgmath/tgmath.c:43:2: note: expanded from macro 'TGMACRO' 43 | TGMACRO_REAL(FNC)=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 \ | ^ /usr/src/tools/regression/include/tgmath/tgmath.c:49:59: note: expanded from macro 'TGMACRO_REAL' 49 | long double (FNC ## l)(long double x) { n_long_double++; } | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=3D] 20 errors generated. *** Error code 1 Stop. make: stopped in /usr/src/tools/regression/include/tgmath .ERROR_TARGET=3D'tgmath.o' .ERROR_META_FILE=3D'/usr/obj/usr/src/amd64.amd64/tools/regression/include/t= gmath/tgmath.o.meta' .MAKE.LEVEL=3D'0' MAKEFILE=3D'' .MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes ve= rbose' _ERROR_CMD=3D'cc -O2 -pipe -fno-common -fno-builtin -fPIE -g -gz=3Dzlib -std=3Diso9899:1999 -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-ali= gn -Wchar-subscripts -Wnested-externs -Wold-style-definition -Wno-pointer-sign -Wdate-time -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=3Dunused-but-set-parameter -Qunused-arguments -c /usr/src/tools/regression/include/tgmath/tgmath.c -o tgmath.o; ;' .CURDIR=3D'/usr/src/tools/regression/include/tgmath' .MAKE=3D'make' .OBJDIR=3D'/usr/obj/usr/src/amd64.amd64/tools/regression/include/tgmath' .TARGETS=3D' all' CPUTYPE=3D'' DESTDIR=3D'' LD_LIBRARY_PATH=3D'' MACHINE=3D'amd64' MACHINE_ARCH=3D'amd64' MACHINE_CPUARCH=3D'amd64' MAKEOBJDIRPREFIX=3D'' MAKESYSPATH=3D'/usr/src/share/mk' MAKE_VERSION=3D'20230909' PATH=3D'/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/= minsoochoo/bin' SRCTOP=3D'/usr/src' OBJTOP=3D'/usr/obj/usr/src/amd64.amd64' --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276003-32464>