[MacPorts] #71430: draco build error: uninitialized const member in 'const class Eigen::Matrix<double, 4, 4>' [-fpermissive]

MacPorts noreply at macports.org
Sun Dec 1 00:07:12 UTC 2024


#71430: draco build error: uninitialized const member in 'const class
Eigen::Matrix<double, 4, 4>' [-fpermissive]
--------------------------+----------------------
 Reporter:  barracuda156  |      Owner:  nilason
     Type:  defect        |     Status:  assigned
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.10.5
 Keywords:                |       Port:  draco
--------------------------+----------------------
 {{{
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/compression/decode.h:21,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/io/mesh_io.h:19,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/io/mesh_io.cc:15:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/core/status_or.h:
 In instantiation of 'draco::StatusOr<T>::StatusOr(const draco::Status&)
 [with T = const Eigen::Matrix<double, 4, 4>]':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/scene/trs_matrix.h:50:14:
 required from here
    50 |       return Status(Status::DRACO_ERROR, "Matrix is not set.");
       |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/core/status_or.h:37:3:
 error: uninitialized const member in 'const class Eigen::Matrix<double, 4,
 4>' [-fpermissive]
    37 |   StatusOr(const Status &status) : status_(status) {}
       |   ^~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/core/status_or.h:57:5:
 note: 'const Eigen::Matrix<double, 4, 4> draco::StatusOr<const
 Eigen::Matrix<double, 4, 4> >::value_' should be initialized
    57 |   T value_;
       |     ^~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/core/status_or.h:
 In instantiation of 'draco::StatusOr<T>::StatusOr(const draco::Status&)
 [with T = const Eigen::Matrix<double, 3, 1>]':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/scene/trs_matrix.h:63:14:
 required from here
    63 |       return Status(Status::DRACO_ERROR, "Translation is not
 set.");
       |
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/core/status_or.h:37:3:
 error: uninitialized const member in 'const class Eigen::Matrix<double, 3,
 1>' [-fpermissive]
    37 |   StatusOr(const Status &status) : status_(status) {}
       |   ^~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/draco-1.5.7/src/draco/core/status_or.h:57:5:
 note: 'const Eigen::Matrix<double, 3, 1> draco::StatusOr<const
 Eigen::Matrix<double, 3, 1> >::value_' should be initialized
    57 |   T value_;
       |     ^~~~~~
 make[2]: *** [CMakeFiles/draco_io.dir/src/draco/io/mesh_io.cc.o] Error 1
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_draco/draco/work/build'
 make[1]: *** [CMakeFiles/draco_io.dir/all] Error 2
 make[1]: *** Waiting for unfinished jobs....
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/71430>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list