Bug 276003 - tgmath regression test fails
Summary: tgmath regression test fails
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: tests (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-testing (Nobody)
URL:
Keywords:
: 276004 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-12-29 22:07 UTC by Minsoo Choo
Modified: 2023-12-29 22:09 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Minsoo Choo 2023-12-29 22:07:53 UTC
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/tgmath.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 = 0;
      |     ^
/usr/src/tools/regression/include/tgmath/tgmath.c:40:1: note: declare 'static' if the variable is not intended to be used outside of this translation unit
   40 | int currtest = 0;
      | ^
/usr/src/tools/regression/include/tgmath/tgmath.c:76:1: error: unused parameter '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)                                               \
      |         ^
/usr/src/tools/regression/include/tgmath/tgmath.c:47:25: note: expanded from macro 'TGMACRO_REAL'
   47 |         float (FNC ## f)(float x) { n_float++; }                        \
      |                                ^
/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)                                               \
      |         ^
/usr/src/tools/regression/include/tgmath/tgmath.c:47:41: note: expanded from macro 'TGMACRO_REAL'
   47 |         float (FNC ## f)(float x) { n_float++; }                        \
      |                                                ^
/usr/src/tools/regression/include/tgmath/tgmath.c:76:1: error: unused parameter 'x' [-Werror,-Wunused-parameter]
/usr/src/tools/regression/include/tgmath/tgmath.c:43:2: note: expanded from macro 'TGMACRO'
   43 |         TGMACRO_REAL(FNC)                                               \
      |         ^
/usr/src/tools/regression/include/tgmath/tgmath.c:48:22: note: expanded from macro 'TGMACRO_REAL'
   48 |         double (FNC)(double x) { n_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)                                               \
      |         ^
/usr/src/tools/regression/include/tgmath/tgmath.c:48:39: note: expanded from macro 'TGMACRO_REAL'
   48 |         double (FNC)(double x) { n_double++; }                          \
      |                                              ^
/usr/src/tools/regression/include/tgmath/tgmath.c:76:1: error: unused parameter 'x' [-Werror,-Wunused-parameter]
/usr/src/tools/regression/include/tgmath/tgmath.c:43:2: note: expanded from macro 'TGMACRO'
   43 |         TGMACRO_REAL(FNC)                                               \
      |         ^
/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)                                               \
      |         ^
/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 parameter '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++; }\
      |                                                                        ^
/usr/src/tools/regression/include/tgmath/tgmath.c:76:1: error: unused parameter '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++; }  \
      |                                             ^
/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++; }  \
      |                                                                      ^
/usr/src/tools/regression/include/tgmath/tgmath.c:76:1: error: unused parameter '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 parameter '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)                                               \
      |         ^
/usr/src/tools/regression/include/tgmath/tgmath.c:47:25: note: expanded from macro 'TGMACRO_REAL'
   47 |         float (FNC ## f)(float x) { n_float++; }                        \
      |                                ^
/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)                                               \
      |         ^
/usr/src/tools/regression/include/tgmath/tgmath.c:47:41: note: expanded from macro 'TGMACRO_REAL'
   47 |         float (FNC ## f)(float x) { n_float++; }                        \
      |                                                ^
/usr/src/tools/regression/include/tgmath/tgmath.c:77:1: error: unused parameter 'x' [-Werror,-Wunused-parameter]
/usr/src/tools/regression/include/tgmath/tgmath.c:43:2: note: expanded from macro 'TGMACRO'
   43 |         TGMACRO_REAL(FNC)                                               \
      |         ^
/usr/src/tools/regression/include/tgmath/tgmath.c:48:22: note: expanded from macro 'TGMACRO_REAL'
   48 |         double (FNC)(double x) { n_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)                                               \
      |         ^
/usr/src/tools/regression/include/tgmath/tgmath.c:48:39: note: expanded from macro 'TGMACRO_REAL'
   48 |         double (FNC)(double x) { n_double++; }                          \
      |                                              ^
/usr/src/tools/regression/include/tgmath/tgmath.c:77:1: error: unused parameter 'x' [-Werror,-Wunused-parameter]
/usr/src/tools/regression/include/tgmath/tgmath.c:43:2: note: expanded from macro 'TGMACRO'
   43 |         TGMACRO_REAL(FNC)                                               \
      |         ^
/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)                                               \
      |         ^
/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=]
20 errors generated.
*** Error code 1

Stop.
make: stopped in /usr/src/tools/regression/include/tgmath
.ERROR_TARGET='tgmath.o'
.ERROR_META_FILE='/usr/obj/usr/src/amd64.amd64/tools/regression/include/tgmath/tgmath.o.meta'
.MAKE.LEVEL='0'
MAKEFILE=''
.MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose'
_ERROR_CMD='cc  -O2 -pipe -fno-common -fno-builtin   -fPIE -g -gz=zlib -std=iso9899: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-align -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=unused-but-set-parameter  -Qunused-arguments     -c /usr/src/tools/regression/include/tgmath/tgmath.c -o tgmath.o; ;'
.CURDIR='/usr/src/tools/regression/include/tgmath'
.MAKE='make'
.OBJDIR='/usr/obj/usr/src/amd64.amd64/tools/regression/include/tgmath'
.TARGETS=' all'
CPUTYPE=''
DESTDIR=''
LD_LIBRARY_PATH=''
MACHINE='amd64'
MACHINE_ARCH='amd64'
MACHINE_CPUARCH='amd64'
MAKEOBJDIRPREFIX=''
MAKESYSPATH='/usr/src/share/mk'
MAKE_VERSION='20230909'
PATH='/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/minsoochoo/bin'
SRCTOP='/usr/src'
OBJTOP='/usr/obj/usr/src/amd64.amd64'
Comment 1 Minsoo Choo 2023-12-29 22:09:56 UTC
*** Bug 276004 has been marked as a duplicate of this bug. ***