Bug 266194

Summary: math/ised: vm.h:78:3: error: 'clock_t' does not name a type
Product: Ports & Packages Reporter: Lorenzo Salvadore <salvadore>
Component: Individual Port(s)Assignee: Lorenzo Salvadore <salvadore>
Status: Closed FIXED    
Severity: Affects Some People CC: fernape
Priority: --- Keywords: needs-patch
Version: Latest   
Hardware: Any   
OS: Any   
URL: http://package18.nyi.freebsd.org/data/123amd64-default-foo/2022-08-30_18h10m18s/logs/errors/ised-2.7.1_7.log
Bug Depends on:    
Bug Blocks: 265948    

Description Lorenzo Salvadore freebsd_committer freebsd_triage 2022-09-03 09:27:54 UTC
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 .
Comment 1 Fernando ApesteguĂ­a freebsd_committer freebsd_triage 2022-09-03 17:23:07 UTC
^Triage: Reporter is committer, assign accordingly.
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-09-03 20:16:11 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=85bb25bf0b5468a44b483108898afbb857d895d6

commit 85bb25bf0b5468a44b483108898afbb857d895d6
Author:     Lorenzo Salvadore <salvadore@FreeBSD.org>
AuthorDate: 2022-09-03 19:44:39 +0000
Commit:     Lorenzo Salvadore <salvadore@FreeBSD.org>
CommitDate: 2022-09-03 20:15:13 +0000

    math/ised: Drop USE_GCC

    Moreover,

    - Fix build with GCC 12 [1].
    - Take maintainership.

    PR:             266194 [1]
    Reported by:    exp-run (antoine)

 math/ised/Makefile                   |  6 ++----
 math/ised/files/patch-src_vm.h (new) | 10 ++++++++++
 2 files changed, 12 insertions(+), 4 deletions(-)
Comment 3 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-09-03 20:18:32 UTC
Fixed.