[Bug 266194] math/ised: vm.h:78:3: error: 'clock_t' does not name a type

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 03 Sep 2022 09:27:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266194

            Bug ID: 266194
           Summary: math/ised: vm.h:78:3: error: 'clock_t' does not name a
                    type
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: http://package18.nyi.freebsd.org/data/123amd64-default
                    -foo/2022-08-30_18h10m18s/logs/errors/ised-2.7.1_7.log
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: salvadore@freebsd.org
            Blocks: 265948

Updating GCC_DEFAULT from GCC 11 to GCC 12 is blocked by the fact that building
this port with GCC 12 on i386 and amd64 fails.

The error message is the following:



g++12 -DHAVE_CONFIG_H -I. -I..  -DVALUE=DOUBLE -DIVALUE=ILONG -DTRAPOVERFLOWS=1
-DTOGGLESYSCALL=1 -DUSE_UTF8=1 -isystem /usr/local/include -O3 -pipe -O2 -pipe 
-fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc12 
-Wl,-rpath=/usr/local/lib/gcc12 -isystem /usr/local/include -MT ised-ised.o -MD
-MP -MF .deps/ised-ised.Tpo -c -o ised-ised.o `test -f 'ised.cpp' || echo
'./'`ised.cpp
In file included from ised.cpp:20:
vm.h:78:3: error: 'clock_t' does not name a type
   78 |   clock_t start_time;
      |   ^~~~~~~
vm.h:24:1: note: 'clock_t' is defined in header '<ctime>'; did you forget to
'#include <ctime>'?
   23 | #include "unroll.h"
  +++ |+#include <ctime>
   24 | 
*** [ised-ised.o] Error code 1


Please see also the log in the URL field. This URL might be useful to solve the
issue: http://gcc.gnu.org/gcc-12/porting_to.html .


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265948
[Bug 265948] [exp-run] Update GCC_DEFAULT from 11 to 12
-- 
You are receiving this mail because:
You are the assignee for the bug.