[MacPorts] #70612: libdynd fails to build: error: bitwise comparison always evaluates to false [-Werror=tautological-compare]

MacPorts noreply at macports.org
Sun Aug 25 01:45:45 UTC 2024


#70612: libdynd fails to build: error: bitwise comparison always evaluates to false
[-Werror=tautological-compare]
--------------------------+----------------------
 Reporter:  barracuda156  |      Owner:  stromnov
     Type:  defect        |     Status:  assigned
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.10.1
 Keywords:                |       Port:  libdynd
--------------------------+----------------------
 https://github.com/libdynd/libdynd/issues/1395

 {{{
 /opt/local/bin/ccache /opt/local/bin/g++-mp-14 -DDYNDT_EXPORT
 -Dlibdyndt_EXPORTS
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/thirdparty/utf8/source
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/build/include
 -pipe -Os -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -O3
 -fomit-frame-pointer -fstrict-aliasing -Wall -Wextra -Wno-missing-field-
 initializers -fPIC -Werror -Wno-ignored-attributes -std=c++14 -fmax-
 errors=20 -Wno-type-limits -arch ppc -mmacosx-version-min=10.6 -fPIC -MD
 -MT CMakeFiles/libdyndt.dir/src/dynd/eval/eval_context.cpp.o -MF
 CMakeFiles/libdyndt.dir/src/dynd/eval/eval_context.cpp.o.d -o
 CMakeFiles/libdyndt.dir/src/dynd/eval/eval_context.cpp.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/src/dynd/eval/eval_context.cpp
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/config.hpp:808,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/eval/eval_context.hpp:8,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/src/dynd/eval/eval_context.cpp:6:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:
 In member function 'bool dynd::float128::operator!() const':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:253:67:
 error: bitwise comparison always evaluates to false [-Werror=tautological-
 compare]
   253 |   bool operator!() const { return ((0x7fffffffffffffffULL | m_hi)
 == 0) && (m_lo == 0); }
       |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ^~ ~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:
 In member function 'dynd::float128::operator bool() const':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:255:90:
 error: bitwise comparison always evaluates to true [-Werror=tautological-
 compare]
   255 |   explicit operator bool() const { return (m_lo != 0) ||
 ((0x7fffffffffffffffULL | m_hi) != 0); }
       |
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~
 cc1plus: all warnings being treated as errors
 make[2]: *** [CMakeFiles/libdyndt.dir/src/dynd/eval/eval_context.cpp.o]
 Error 1
 make[2]: *** Waiting for unfinished jobs....
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/config.hpp:808,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/irange.hpp:10,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/types/base_type.hpp:13,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/types/base_bytes_type.hpp:8,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/src/dynd/types/base_bytes_type.cpp:6:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:
 In member function 'bool dynd::float128::operator!() const':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:253:67:
 error: bitwise comparison always evaluates to false [-Werror=tautological-
 compare]
   253 |   bool operator!() const { return ((0x7fffffffffffffffULL | m_hi)
 == 0) && (m_lo == 0); }
       |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ^~ ~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:
 In member function 'dynd::float128::operator bool() const':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:255:90:
 error: bitwise comparison always evaluates to true [-Werror=tautological-
 compare]
   255 |   explicit operator bool() const { return (m_lo != 0) ||
 ((0x7fffffffffffffffULL | m_hi) != 0); }
       |
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~
 cc1plus: all warnings being treated as errors
 make[2]: ***
 [CMakeFiles/libdyndt.dir/src/dynd/types/base_bytes_type.cpp.o] Error 1
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/config.hpp:808,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/irange.hpp:10,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/types/base_type.hpp:13,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/type.hpp:11,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/src/dynd/types/array_type.cpp:6:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:
 In member function 'bool dynd::float128::operator!() const':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:253:67:
 error: bitwise comparison always evaluates to false [-Werror=tautological-
 compare]
   253 |   bool operator!() const { return ((0x7fffffffffffffffULL | m_hi)
 == 0) && (m_lo == 0); }
       |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ^~ ~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:
 In member function 'dynd::float128::operator bool() const':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:255:90:
 error: bitwise comparison always evaluates to true [-Werror=tautological-
 compare]
   255 |   explicit operator bool() const { return (m_lo != 0) ||
 ((0x7fffffffffffffffULL | m_hi) != 0); }
       |
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~
 cc1plus: all warnings being treated as errors
 make[2]: *** [CMakeFiles/libdyndt.dir/src/dynd/types/array_type.cpp.o]
 Error 1
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/config.hpp:808,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/irange.hpp:10,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/types/base_type.hpp:13,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/type.hpp:11,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/src/dynd/types/base_dim_type.cpp:6:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:
 In member function 'bool dynd::float128::operator!() const':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:253:67:
 error: bitwise comparison always evaluates to false [-Werror=tautological-
 compare]
   253 |   bool operator!() const { return ((0x7fffffffffffffffULL | m_hi)
 == 0) && (m_lo == 0); }
       |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ^~ ~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:
 In member function 'dynd::float128::operator bool() const':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:255:90:
 error: bitwise comparison always evaluates to true [-Werror=tautological-
 compare]
   255 |   explicit operator bool() const { return (m_lo != 0) ||
 ((0x7fffffffffffffffULL | m_hi) != 0); }
       |
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~
 cc1plus: all warnings being treated as errors
 make[2]: *** [CMakeFiles/libdyndt.dir/src/dynd/types/base_dim_type.cpp.o]
 Error 1
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/config.hpp:808,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/irange.hpp:10,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/types/base_type.hpp:13,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/type.hpp:11,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/src/dynd/types/base_type.cpp:6:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:
 In member function 'bool dynd::float128::operator!() const':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:253:67:
 error: bitwise comparison always evaluates to false [-Werror=tautological-
 compare]
   253 |   bool operator!() const { return ((0x7fffffffffffffffULL | m_hi)
 == 0) && (m_lo == 0); }
       |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ^~ ~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:
 In member function 'dynd::float128::operator bool() const':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:255:90:
 error: bitwise comparison always evaluates to true [-Werror=tautological-
 compare]
   255 |   explicit operator bool() const { return (m_lo != 0) ||
 ((0x7fffffffffffffffULL | m_hi) != 0); }
       |
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~
 cc1plus: all warnings being treated as errors
 make[2]: *** [CMakeFiles/libdyndt.dir/src/dynd/types/base_type.cpp.o]
 Error 1
 In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/config.hpp:808,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/irange.hpp:10,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/types/base_type.hpp:13,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/type.hpp:11,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/types/any_kind_type.hpp:8,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/src/dynd/types/any_kind_type.cpp:6:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:
 In member function 'bool dynd::float128::operator!() const':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:253:67:
 error: bitwise comparison always evaluates to false [-Werror=tautological-
 compare]
   253 |   bool operator!() const { return ((0x7fffffffffffffffULL | m_hi)
 == 0) && (m_lo == 0); }
       |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ^~ ~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:
 In member function 'dynd::float128::operator bool() const':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/libdynd-0.7.2/include/dynd/float128.hpp:255:90:
 error: bitwise comparison always evaluates to true [-Werror=tautological-
 compare]
   255 |   explicit operator bool() const { return (m_lo != 0) ||
 ((0x7fffffffffffffffULL | m_hi) != 0); }
       |
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~
 cc1plus: all warnings being treated as errors
 make[2]: *** [CMakeFiles/libdyndt.dir/src/dynd/types/any_kind_type.cpp.o]
 Error 1
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/build'
 make[1]: *** [CMakeFiles/libdyndt.dir/all] Error 2
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libdynd/libdynd/work/build'
 make: *** [all] Error 2
 }}}

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


More information about the macports-tickets mailing list