[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:31:47 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
Resolution:                |   Keywords:
      Port:  draco         |
---------------------------+----------------------

Old description:

> {{{
> 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....
> }}}
>
> https://github.com/google/draco/issues/1088

New description:

 {{{
 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....
 }}}

--

Comment (by barracuda156):

 Also this:
 {{{
 [ 46%] Building CXX object
 CMakeFiles/draco_io.dir/src/draco/io/gltf_utils.cc.o
 /opt/local/bin/ccache /opt/local/bin/g++-mp-14 -DDRACO_CMAKE=1
 -DDRACO_FLAGS_SRCDIR=\"/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_archivers_draco/draco/work/draco-1.5.7\"
 -DDRACO_FLAGS_TMPDIR=\"/tmp\"
 -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_archivers_draco/draco/work/draco-1.5.7
 -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_archivers_draco/draco/work/draco-1.5.7/src
 -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_archivers_draco/draco/work/build
 -I/opt/local/include/eigen3 -I/opt/local/include/ghc -I/opt/local/include
 -pipe -Os -fpermissive -DNDEBUG -isystem/opt/local/include/LegacySupport
 -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++17 -arch ppc
 -mmacosx-version-min=10.6 -fPIC -Wno-deprecated-declarations -MD -MT
 CMakeFiles/draco_io.dir/src/draco/io/gltf_utils.cc.o -MF
 CMakeFiles/draco_io.dir/src/draco/io/gltf_utils.cc.o.d -o
 CMakeFiles/draco_io.dir/src/draco/io/gltf_utils.cc.o -c
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_archivers_draco/draco/work/draco-1.5.7/src/draco/io/gltf_utils.cc
 In file included from
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_archivers_draco/draco/work/draco-1.5.7/src/draco/io/gltf_utils.cc:15:
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_archivers_draco/draco/work/draco-1.5.7/src/draco/io/gltf_utils.h:35:29:
 error: expected ')' before 'value'
    35 |   explicit GltfValue(uint8_t value)
       |                     ~       ^~~~~~
       |                             )
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_archivers_draco/draco/work/draco-1.5.7/src/draco/io/gltf_utils.h:41:30:
 error: expected ')' before 'value'
    41 |   explicit GltfValue(uint16_t value)
       |                     ~        ^~~~~~
       |                              )
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_archivers_draco/draco/work/draco-1.5.7/src/draco/io/gltf_utils.h:44:30:
 error: expected ')' before 'value'
    44 |   explicit GltfValue(uint32_t value)
       |                     ~        ^~~~~~
       |                              )
 make[2]: *** [CMakeFiles/draco_io.dir/src/draco/io/gltf_utils.cc.o] Error
 1
 }}}

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


More information about the macports-tickets mailing list