Bug 266194 - math/ised: vm.h:78:3: error: 'clock_t' does not name a type
Summary: math/ised: vm.h:78:3: error: 'clock_t' does not name a type
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Lorenzo Salvadore
URL: http://package18.nyi.freebsd.org/data...
Keywords: needs-patch
Depends on:
Blocks: 265948
  Show dependency treegraph
 
Reported: 2022-09-03 09:27 UTC by Lorenzo Salvadore
Modified: 2022-09-03 20:18 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.