Opened 4 months ago

Closed 4 months ago

#70442 closed defect (invalid)

Followup to #70440: libkml @1.3.0_4+debug+tests: error: C++ versions less than C++14 are not supported

Reported by: TheLastLovemark Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: libkml

Description (last modified by TheLastLovemark)

As you suggested in #70440

I made sure gcc14 was installed and set to the default as so:

sh-3.2# hash -r
sh-3.2# gcc --version
gcc (MacPorts gcc14 14.1.0_1+stdlib_flag) 14.1.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

sh-3.2# type -a gcc
gcc is /opt/local/bin/gcc
gcc is /usr/bin/gcc
sh-3.2# port install opencv3 +avx2 +contrib +debug +eigen +gdal +nonfree +opencl +openni +qt5 +tbb +tests +vtk
--->  Computing dependencies for opencv3
The following dependencies will be installed: 
 SuiteSparse_AMD
 SuiteSparse_CAMD
 SuiteSparse_CCOLAMD
 SuiteSparse_CHOLMOD
 SuiteSparse_COLAMD
 SuiteSparse_SPQR
 SuiteSparse_config
 ceres-solver
 freexl
 gdal
 geos
 gklib
 libkml
 librttopo
 metis
 postgresql16
 postgresql_select
 spatialite
Continue? [Y/n]: y
--->  Fetching archive for libkml
--->  Attempting to fetch libkml-1.3.0_4+debug+tests.darwin_17.x86_64.tbz2 from http://packages.macports.org/libkml
--->  Attempting to fetch libkml-1.3.0_4+debug+tests.darwin_17.x86_64.tbz2 from https://mirrors.mit.edu/macports/packages/libkml
--->  Attempting to fetch libkml-1.3.0_4+debug+tests.darwin_17.x86_64.tbz2 from http://bos.us.packages.macports.org/libkml
--->  Fetching distfiles for libkml
--->  Verifying checksums for libkml
--->  Extracting libkml
--->  Applying patches to libkml
--->  Configuring libkml
--->  Building libkml                                    
Error: Failed to build libkml: command execution failed  
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_libkml/libkml/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port opencv3 failed

still failed

Attachments (1)

libkml-gcc14-main.log (202.6 KB) - added by TheLastLovemark 4 months ago.
libkml main.log post gcc14

Download all attachments as: .zip

Change History (3)

Changed 4 months ago by TheLastLovemark

Attachment: libkml-gcc14-main.log added

libkml main.log post gcc14

comment:1 Changed 4 months ago by TheLastLovemark

Description: modified (diff)

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

Resolution: invalid
Status: newclosed

What you select as gcc on the command line is irrelevant to MacPorts. MacPorts will use the compiler it has chosen for a port. I fixed the problem by using compiler.cxx_standard 2014 which tells MacPorts to pick a C++14-supporting compiler. Wait two hours, then sudo port selfupdate and try again.

Note: See TracTickets for help on using tickets.