Opened 4 weeks ago

Closed 4 weeks ago

#69615 closed defect (duplicate)

viking @1.7: error: initializing 'time_t' (aka 'long') with an expression of incompatible type 'timespec_t' (aka 'struct timespec')

Reported by: nevisnoel Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: ventura Cc:
Port: viking

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I attempted to install viking on my Mac Mini M2 Pro running Ventura using Macports (2.9.1-13), but it failed with this message:

Error: Failed to build viking: command execution failed.

The full error details are shown in the attached text file.

Attachments (2)

Viking fail.txt (2.1 KB) - added by nevisnoel 4 weeks ago.
Error log from failed viking install
main.log (650.6 KB) - added by nevisnoel 4 weeks ago.
Viking install log file

Download all attachments as: .zip

Change History (4)

Changed 4 weeks ago by nevisnoel

Attachment: Viking fail.txt added

Error log from failed viking install

comment:1 Changed 4 weeks ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: ventura added; viking install removed
Port: viking added

As it says in the file you attached:

Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_viking/viking/main.log for details.

That's the file we need to see to be able to diagnose it.

Changed 4 weeks ago by nevisnoel

Attachment: main.log added

Viking install log file

comment:2 Changed 4 weeks ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed
Summary: viking fails to build on Ventura (Mac Mini M2)viking @1.7: error: initializing 'time_t' (aka 'long') with an expression of incompatible type 'timespec_t' (aka 'struct timespec')

Ok, that log says the problem is:

vikgpslayer.c:1717:12: error: initializing 'time_t' (aka 'long') with an expression of incompatible type 'timespec_t' (aka 'struct timespec')
    time_t cur_timestamp = vgl->realtime_fix.fix.time;
           ^               ~~~~~~~~~~~~~~~~~~~~~~~~~~
vikgpslayer.c:1718:12: error: initializing 'time_t' (aka 'long') with an expression of incompatible type 'timespec_t' (aka 'struct timespec')
    time_t last_timestamp = vgl->last_fix.fix.time;
           ^                ~~~~~~~~~~~~~~~~~~~~~~
vikgpslayer.c:1748:23: error: assigning to 'time_t' (aka 'long') from incompatible type 'timespec_t' (aka 'struct timespec')
        tp->timestamp = vgl->realtime_fix.fix.time;
                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~

Which was already filed as #60085.

Note: See TracTickets for help on using tickets.