[MacPorts] #67346: openimageio @2.4.5.0: error: use of bitwise '&' with boolean operands (was: Build error in openimageio)

MacPorts noreply at macports.org
Tue May 2 08:57:56 UTC 2023


#67346: openimageio @2.4.5.0: error: use of bitwise '&' with boolean operands
--------------------------+---------------------------------
  Reporter:  elteck       |      Owner:  MarcusCalhoun-Lopez
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.8.1
Resolution:               |   Keywords:
      Port:  openimageio  |
--------------------------+---------------------------------
Changes (by ryandesign):

 * status:  new => assigned
 * owner:  (none) => MarcusCalhoun-Lopez


Old description:

> Build of openimageio fails on what appears to be a coding error (or
> compiler mismatch?)::info:build
>
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openimageio/openimageio/work/oiio-2.4.5.0/src/libtexture/texturesys.cpp:2307:26:
> error: use of bitwise '&' with boolean operands [-Werror,-Wbitwise-
> instead-of-logical]
> :info:build         bool t_onetile = (tile_st[T0] != tilewhmask[T0])
>
> I will attach the full build log file.

New description:

 Build of openimageio fails on what appears to be a coding error (or
 compiler mismatch?)::info:build

 {{{
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openimageio/openimageio/work/oiio-2.4.5.0/src/libtexture/texturesys.cpp:2305:26:
 error: use of bitwise '&' with boolean operands [-Werror,-Wbitwise-
 instead-of-logical]
         bool s_onetile = (tile_st[S0] != tilewhmask[S0])
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openimageio/openimageio/work/oiio-2.4.5.0/src/libtexture/texturesys.cpp:2305:26:
 note: cast one or both operands to int to silence this warning
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openimageio/openimageio/work/oiio-2.4.5.0/src/libtexture/texturesys.cpp:2307:26:
 error: use of bitwise '&' with boolean operands [-Werror,-Wbitwise-
 instead-of-logical]
         bool t_onetile = (tile_st[T0] != tilewhmask[T0])
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openimageio/openimageio/work/oiio-2.4.5.0/src/libtexture/texturesys.cpp:2307:26:
 note: cast one or both operands to int to silence this warning
 2 errors generated.
 }}}

 I will attach the full build log file.

--

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


More information about the macports-tickets mailing list