OpenImageIO icon indicating copy to clipboard operation
OpenImageIO copied to clipboard

[BUILD]

Open jiapei-nexera opened this issue 2 years ago • 4 comments

  1. The entire make VERBOSE=1 > build.log is attached as follows:
/usr/bin/cmake -S....../oiio -B....../oiio/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start ....../oiio/build/CMakeFiles ....../oiio/build//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory '....../oiio/build'
make  -f CMakeFiles/CopyFiles.dir/build.make CMakeFiles/CopyFiles.dir/depend
make[2]: Entering directory '....../oiio/build'
cd ....../oiio/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" ....../oiio ....../oiio ....../oiio/build ....../oiio/build ....../oiio/build/CMakeFiles/CopyFiles.dir/DependInfo.cmake --color=
make[2]: Leaving directory '....../oiio/build'
make  -f CMakeFiles/CopyFiles.dir/build.make CMakeFiles/CopyFiles.dir/build
make[2]: Entering directory '....../oiio/build'
[  0%] Generating testsuite/runtest.py
/usr/bin/cmake -E copy_if_different ....../oiio/testsuite/runtest.py ....../oiio/build/testsuite/runtest.py
make[2]: Leaving directory '....../oiio/build'
[  0%] Built target CopyFiles
make  -f src/libutil/CMakeFiles/OpenImageIO_Util.dir/build.make src/libutil/CMakeFiles/OpenImageIO_Util.dir/depend
make[2]: Entering directory '....../oiio/build'
cd ....../oiio/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" ....../oiio ....../oiio/src/libutil ....../oiio/build ....../oiio/build/src/libutil ....../oiio/build/src/libutil/CMakeFiles/OpenImageIO_Util.dir/DependInfo.cmake --color=
make[2]: Leaving directory '....../oiio/build'
make  -f src/libutil/CMakeFiles/OpenImageIO_Util.dir/build.make src/libutil/CMakeFiles/OpenImageIO_Util.dir/build
make[2]: Entering directory '....../oiio/build'
[  0%] Building CXX object src/libutil/CMakeFiles/OpenImageIO_Util.dir/argparse.cpp.o
cd ....../oiio/build/src/libutil && /usr/bin/cmake -E __run_co_compile --tidy="/usr/bin/clang-tidy;-checks=\"-*\";--extra-arg-before=--driver-mode=g++" --source=....../oiio/src/libutil/argparse.cpp -- /usr/bin/c++ -DIMATH_USE_DEFAULT_VISIBILITY -DOIIO_INTERNAL=1 -DOpenImageIO_EXPORTS -DOpenImageIO_Util_EXPORTS -DUSE_FREETYPE=1 -DUSE_JPEG_TURBO=1 -DUSE_OCIO=1 -DUSE_OPENCOLORIO=1 -DUSE_OPENCV=1 -DUSE_TBB=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I....../oiio/build/include/OpenImageIO -I....../oiio/build/include -I....../oiio/build/src/include -I....../oiio/src/include -isystem /usr/local/include/Imath -isystem /usr/include/OpenEXR -O3 -DNDEBUG -fPIC -Wall -Werror -Wno-unused-local-typedefs -Wno-unused-result -Wno-aligned-new -Wno-noexcept-type -ffast-math -fno-math-errno -std=c++14 -MD -MT src/libutil/CMakeFiles/OpenImageIO_Util.dir/argparse.cpp.o -MF CMakeFiles/OpenImageIO_Util.dir/argparse.cpp.o.d -o CMakeFiles/OpenImageIO_Util.dir/argparse.cpp.o -c ....../oiio/src/libutil/argparse.cpp
make[2]: Leaving directory '....../oiio/build'
make[1]: Leaving directory '....../oiio/build'
  1. CMakeCache.txt is at here https://pastebin.com/gJDgfL9n

jiapei-nexera avatar Jun 16 '22 01:06 jiapei-nexera

I don't even see an error message?

lgritz avatar Jun 16 '22 04:06 lgritz

@lgritz

Sorry, my bad... Here we go, take a look at this:

[ 12%] Building CXX object src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/imagebufalgo.cpp.o
cd ....../oiio/build/src/libOpenImageIO && /usr/bin/c++ -DEMBED_PLUGINS=1 -DIMATH_USE_DEFAULT_VISIBILITY -DOIIO_FFMPEG_VERSION=\"4.4\" -DOIIO_INTERNAL=1 -DOpenImageIO_EXPORTS -DUSE_BOOST_ASIO=1 -DUSE_DCMTK=1 -DUSE_FFMPEG -DUSE_FREETYPE=1 -DUSE_GIF -DUSE_HEIF=1 -DUSE_JPEG_TURBO=1 -DUSE_LIBRAW=1 -DUSE_OCIO=1 -DUSE_OPENCOLORIO=1 -DUSE_OPENCV=1 -DUSE_OPENJPEG -DUSE_PTEX -DUSE_TBB=1 -DUSE_WEBP=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I....../oiio/build/include/OpenImageIO -I....../oiio/build/include -I....../oiio/build/src/include -I....../oiio/src/include -I/usr/local/include/openjpeg -I/OpenEXR -I/usr/include/freetype2 -isystem /usr/local/include/opencv4 -isystem /usr/local/include/Imath -isystem /usr/include/OpenEXR -isystem /usr/local/cuda/include -O3 -DNDEBUG -fPIC -Wall -Werror -Wno-unused-local-typedefs -Wno-unused-result -Wno-aligned-new -Wno-noexcept-type -ffast-math -fno-math-errno -std=c++14 -MD -MT src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/imagebufalgo.cpp.o -MF CMakeFiles/OpenImageIO.dir/imagebufalgo.cpp.o.d -o CMakeFiles/OpenImageIO.dir/imagebufalgo.cpp.o -c ....../oiio/src/libOpenImageIO/imagebufalgo.cpp
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:91:7: error: using typedef-name ‘using half = class Imath_3_2::half’ after ‘class’
   91 | class half
      |       ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:983:7: note: ‘using half = class Imath_3_2::half’ has a previous declaration here
  983 | using half = IMATH_INTERNAL_NAMESPACE::half;
      |       ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:429:1: error: redefinition of ‘Imath_3_2::half::half(float)’
  429 | half::half (float f)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:646:8: note: ‘Imath_3_2::half::half(float)’ previously defined here
  646 | inline half::half (float f) IMATH_NOEXCEPT : _h (imath_float_to_half (f))
      |        ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:493:1: error: redefinition of ‘Imath_3_2::half::operator float() const’
  493 | half::operator float () const
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:661:8: note: ‘Imath_3_2::half::operator float() const’ previously defined here
  661 | inline half::operator float () const IMATH_NOEXCEPT
      |        ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:504:1: error: redefinition of ‘half Imath_3_2::half::round(unsigned int) const’
  504 | half::round (unsigned int n) const
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:671:1: note: ‘constexpr Imath_3_2::half Imath_3_2::half::round(unsigned int) const’ previously defined here
  671 | half::round (unsigned int n) const IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:563:1: error: redefinition of ‘half Imath_3_2::half::operator-() const’
  563 | half::operator - () const
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:727:1: note: ‘constexpr Imath_3_2::half Imath_3_2::half::operator-() const’ previously defined here
  727 | half::operator- () const IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:572:1: error: redefinition of ‘half& Imath_3_2::half::operator=(float)’
  572 | half::operator = (float f)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:733:1: note: ‘Imath_3_2::half& Imath_3_2::half::operator=(float)’ previously defined here
  733 | half::operator= (float f) IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:580:1: error: redefinition of ‘half& Imath_3_2::half::operator+=(Imath_3_2::half)’
  580 | half::operator += (half h)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:740:1: note: ‘Imath_3_2::half& Imath_3_2::half::operator+=(Imath_3_2::half)’ previously defined here
  740 | half::operator+= (half h) IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:588:1: error: redefinition of ‘half& Imath_3_2::half::operator+=(float)’
  588 | half::operator += (float f)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:747:1: note: ‘Imath_3_2::half& Imath_3_2::half::operator+=(float)’ previously defined here
  747 | half::operator+= (float f) IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:596:1: error: redefinition of ‘half& Imath_3_2::half::operator-=(Imath_3_2::half)’
  596 | half::operator -= (half h)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:754:1: note: ‘Imath_3_2::half& Imath_3_2::half::operator-=(Imath_3_2::half)’ previously defined here
  754 | half::operator-= (half h) IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:604:1: error: redefinition of ‘half& Imath_3_2::half::operator-=(float)’
  604 | half::operator -= (float f)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:761:1: note: ‘Imath_3_2::half& Imath_3_2::half::operator-=(float)’ previously defined here
  761 | half::operator-= (float f) IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:612:1: error: redefinition of ‘half& Imath_3_2::half::operator*=(Imath_3_2::half)’
  612 | half::operator *= (half h)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:768:1: note: ‘Imath_3_2::half& Imath_3_2::half::operator*=(Imath_3_2::half)’ previously defined here
  768 | half::operator*= (half h) IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:620:1: error: redefinition of ‘half& Imath_3_2::half::operator*=(float)’
  620 | half::operator *= (float f)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:775:1: note: ‘Imath_3_2::half& Imath_3_2::half::operator*=(float)’ previously defined here
  775 | half::operator*= (float f) IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:628:1: error: redefinition of ‘half& Imath_3_2::half::operator/=(Imath_3_2::half)’
  628 | half::operator /= (half h)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:782:1: note: ‘Imath_3_2::half& Imath_3_2::half::operator/=(Imath_3_2::half)’ previously defined here
  782 | half::operator/= (half h) IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:636:1: error: redefinition of ‘half& Imath_3_2::half::operator/=(float)’
  636 | half::operator /= (float f)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:789:1: note: ‘Imath_3_2::half& Imath_3_2::half::operator/=(float)’ previously defined here
  789 | half::operator/= (float f) IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:644:1: error: redefinition of ‘bool Imath_3_2::half::isFinite() const’
  644 | half::isFinite () const
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:808:1: note: ‘constexpr bool Imath_3_2::half::isFinite() const’ previously defined here
  808 | half::isFinite () const IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:652:1: error: redefinition of ‘bool Imath_3_2::half::isNormalized() const’
  652 | half::isNormalized () const
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:814:1: note: ‘constexpr bool Imath_3_2::half::isNormalized() const’ previously defined here
  814 | half::isNormalized () const IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:660:1: error: redefinition of ‘bool Imath_3_2::half::isDenormalized() const’
  660 | half::isDenormalized () const
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:820:1: note: ‘constexpr bool Imath_3_2::half::isDenormalized() const’ previously defined here
  820 | half::isDenormalized () const IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:669:1: error: redefinition of ‘bool Imath_3_2::half::isZero() const’
  669 | half::isZero () const
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:826:1: note: ‘constexpr bool Imath_3_2::half::isZero() const’ previously defined here
  826 | half::isZero () const IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:676:1: error: redefinition of ‘bool Imath_3_2::half::isNan() const’
  676 | half::isNan () const
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:832:1: note: ‘constexpr bool Imath_3_2::half::isNan() const’ previously defined here
  832 | half::isNan () const IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:685:1: error: redefinition of ‘bool Imath_3_2::half::isInfinity() const’
  685 | half::isInfinity () const
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:838:1: note: ‘constexpr bool Imath_3_2::half::isInfinity() const’ previously defined here
  838 | half::isInfinity () const IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:694:1: error: redefinition of ‘bool Imath_3_2::half::isNegative() const’
  694 | half::isNegative () const
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:844:1: note: ‘constexpr bool Imath_3_2::half::isNegative() const’ previously defined here
  844 | half::isNegative () const IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:701:1: error: redefinition of ‘static half Imath_3_2::half::posInf()’
  701 | half::posInf ()
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:850:1: note: ‘static constexpr Imath_3_2::half Imath_3_2::half::posInf()’ previously defined here
  850 | half::posInf () IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:710:1: error: redefinition of ‘static half Imath_3_2::half::negInf()’
  710 | half::negInf ()
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:856:1: note: ‘static constexpr Imath_3_2::half Imath_3_2::half::negInf()’ previously defined here
  856 | half::negInf () IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:719:1: error: redefinition of ‘static half Imath_3_2::half::qNan()’
  719 | half::qNan ()
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:862:1: note: ‘static constexpr Imath_3_2::half Imath_3_2::half::qNan()’ previously defined here
  862 | half::qNan () IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:728:1: error: redefinition of ‘static half Imath_3_2::half::sNan()’
  728 | half::sNan ()
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:868:1: note: ‘static constexpr Imath_3_2::half Imath_3_2::half::sNan()’ previously defined here
  868 | half::sNan () IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:737:1: error: redefinition of ‘short unsigned int Imath_3_2::half::bits() const’
  737 | half::bits () const
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:874:1: note: ‘constexpr uint16_t Imath_3_2::half::bits() const’ previously defined here
  874 | half::bits () const IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/half.h:744:1: error: redefinition of ‘void Imath_3_2::half::setBits(short unsigned int)’
  744 | half::setBits (unsigned short bits)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/local/include/Imath/half.h:880:1: note: ‘constexpr void Imath_3_2::half::setBits(uint16_t)’ previously defined here
  880 | half::setBits (uint16_t bits) IMATH_NOEXCEPT
      | ^~~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:34:36: error: ‘V2f’ is not a member of ‘Imath’; did you mean ‘Imath_2_5::V2f’?
   34 | template<> struct formatter<Imath::V2f>
      |                                    ^~~
In file included from /usr/include/OpenEXR/ImathColor.h:46,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/ImathVec.h:704:23: note: ‘Imath_2_5::V2f’ declared here
  704 | typedef Vec2 <float>  V2f;
      |                       ^~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:34:36: error: ‘V2f’ is not a member of ‘Imath’; did you mean ‘Imath_2_5::V2f’?
   34 | template<> struct formatter<Imath::V2f>
      |                                    ^~~
In file included from /usr/include/OpenEXR/ImathColor.h:46,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/ImathVec.h:704:23: note: ‘Imath_2_5::V2f’ declared here
  704 | typedef Vec2 <float>  V2f;
      |                       ^~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:34:39: error: template argument 1 is invalid
   34 | template<> struct formatter<Imath::V2f>
      |                                       ^
....../oiio/build/include/OpenImageIO/Imath.h:35:41: error: ‘V2f’ is not a member of ‘Imath’; did you mean ‘Imath_2_5::V2f’?
   35 |     : OIIO::pvt::array_formatter<Imath::V2f, float, 2> {};
      |                                         ^~~
In file included from /usr/include/OpenEXR/ImathColor.h:46,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/ImathVec.h:704:23: note: ‘Imath_2_5::V2f’ declared here
  704 | typedef Vec2 <float>  V2f;
      |                       ^~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:35:41: error: ‘V2f’ is not a member of ‘Imath’; did you mean ‘Imath_2_5::V2f’?
   35 |     : OIIO::pvt::array_formatter<Imath::V2f, float, 2> {};
      |                                         ^~~
In file included from /usr/include/OpenEXR/ImathColor.h:46,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/ImathVec.h:704:23: note: ‘Imath_2_5::V2f’ declared here
  704 | typedef Vec2 <float>  V2f;
      |                       ^~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:35:54: error: template argument 1 is invalid
   35 |     : OIIO::pvt::array_formatter<Imath::V2f, float, 2> {};
      |                                                      ^
....../oiio/build/include/OpenImageIO/Imath.h:36:36: error: ‘V3f’ is not a member of ‘Imath’; did you mean ‘Imath_2_5::V3f’?
   36 | template<> struct formatter<Imath::V3f>
      |                                    ^~~
In file included from /usr/include/OpenEXR/ImathColor.h:46,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/ImathVec.h:708:23: note: ‘Imath_2_5::V3f’ declared here
  708 | typedef Vec3 <float>  V3f;
      |                       ^~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:36:36: error: ‘V3f’ is not a member of ‘Imath’; did you mean ‘Imath_2_5::V3f’?
   36 | template<> struct formatter<Imath::V3f>
      |                                    ^~~
In file included from /usr/include/OpenEXR/ImathColor.h:46,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/ImathVec.h:708:23: note: ‘Imath_2_5::V3f’ declared here
  708 | typedef Vec3 <float>  V3f;
      |                       ^~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:36:39: error: template argument 1 is invalid
   36 | template<> struct formatter<Imath::V3f>
      |                                       ^
....../oiio/build/include/OpenImageIO/Imath.h:37:41: error: ‘V3f’ is not a member of ‘Imath’; did you mean ‘Imath_2_5::V3f’?
   37 |     : OIIO::pvt::array_formatter<Imath::V3f, float, 3> {};
      |                                         ^~~
In file included from /usr/include/OpenEXR/ImathColor.h:46,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/ImathVec.h:708:23: note: ‘Imath_2_5::V3f’ declared here
  708 | typedef Vec3 <float>  V3f;
      |                       ^~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:37:41: error: ‘V3f’ is not a member of ‘Imath’; did you mean ‘Imath_2_5::V3f’?
   37 |     : OIIO::pvt::array_formatter<Imath::V3f, float, 3> {};
      |                                         ^~~
In file included from /usr/include/OpenEXR/ImathColor.h:46,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/ImathVec.h:708:23: note: ‘Imath_2_5::V3f’ declared here
  708 | typedef Vec3 <float>  V3f;
      |                       ^~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:37:54: error: template argument 1 is invalid
   37 |     : OIIO::pvt::array_formatter<Imath::V3f, float, 3> {};
      |                                                      ^
....../oiio/build/include/OpenImageIO/Imath.h:38:36: error: ‘V4f’ is not a member of ‘Imath’; did you mean ‘Imath_2_5::V4f’?
   38 | template<> struct formatter<Imath::V4f>
      |                                    ^~~
In file included from /usr/include/OpenEXR/ImathColor.h:46,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/ImathVec.h:712:23: note: ‘Imath_2_5::V4f’ declared here
  712 | typedef Vec4 <float>  V4f;
      |                       ^~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:38:36: error: ‘V4f’ is not a member of ‘Imath’; did you mean ‘Imath_2_5::V4f’?
   38 | template<> struct formatter<Imath::V4f>
      |                                    ^~~
In file included from /usr/include/OpenEXR/ImathColor.h:46,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/ImathVec.h:712:23: note: ‘Imath_2_5::V4f’ declared here
  712 | typedef Vec4 <float>  V4f;
      |                       ^~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:38:39: error: template argument 1 is invalid
   38 | template<> struct formatter<Imath::V4f>
      |                                       ^
....../oiio/build/include/OpenImageIO/Imath.h:39:41: error: ‘V4f’ is not a member of ‘Imath’; did you mean ‘Imath_2_5::V4f’?
   39 |     : OIIO::pvt::array_formatter<Imath::V4f, float, 4> {};
      |                                         ^~~
In file included from /usr/include/OpenEXR/ImathColor.h:46,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/ImathVec.h:712:23: note: ‘Imath_2_5::V4f’ declared here
  712 | typedef Vec4 <float>  V4f;
      |                       ^~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:39:41: error: ‘V4f’ is not a member of ‘Imath’; did you mean ‘Imath_2_5::V4f’?
   39 |     : OIIO::pvt::array_formatter<Imath::V4f, float, 4> {};
      |                                         ^~~
In file included from /usr/include/OpenEXR/ImathColor.h:46,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/ImathVec.h:712:23: note: ‘Imath_2_5::V4f’ declared here
  712 | typedef Vec4 <float>  V4f;
      |                       ^~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:39:54: error: template argument 1 is invalid
   39 |     : OIIO::pvt::array_formatter<Imath::V4f, float, 4> {};
      |                                                      ^
....../oiio/build/include/OpenImageIO/Imath.h:44:36: error: ‘M33f’ is not a member of ‘Imath’; did you mean ‘Imath_2_5::M33f’?
   44 | template<> struct formatter<Imath::M33f>
      |                                    ^~~~
In file included from ....../oiio/build/include/OpenImageIO/Imath.h:26,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/ImathMatrix.h:1156:27: note: ‘Imath_2_5::M33f’ declared here
 1156 | typedef Matrix33 <float>  M33f;
      |                           ^~~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:44:36: error: ‘M33f’ is not a member of ‘Imath’; did you mean ‘Imath_2_5::M33f’?
   44 | template<> struct formatter<Imath::M33f>
      |                                    ^~~~
In file included from ....../oiio/build/include/OpenImageIO/Imath.h:26,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/ImathMatrix.h:1156:27: note: ‘Imath_2_5::M33f’ declared here
 1156 | typedef Matrix33 <float>  M33f;
      |                           ^~~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:44:40: error: template argument 1 is invalid
   44 | template<> struct formatter<Imath::M33f>
      |                                        ^
....../oiio/build/include/OpenImageIO/Imath.h:45:41: error: ‘M33f’ is not a member of ‘Imath’; did you mean ‘Imath_2_5::M33f’?
   45 |     : OIIO::pvt::array_formatter<Imath::M33f, float, 9> {};
      |                                         ^~~~
In file included from ....../oiio/build/include/OpenImageIO/Imath.h:26,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/ImathMatrix.h:1156:27: note: ‘Imath_2_5::M33f’ declared here
 1156 | typedef Matrix33 <float>  M33f;
      |                           ^~~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:45:41: error: ‘M33f’ is not a member of ‘Imath’; did you mean ‘Imath_2_5::M33f’?
   45 |     : OIIO::pvt::array_formatter<Imath::M33f, float, 9> {};
      |                                         ^~~~
In file included from ....../oiio/build/include/OpenImageIO/Imath.h:26,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/ImathMatrix.h:1156:27: note: ‘Imath_2_5::M33f’ declared here
 1156 | typedef Matrix33 <float>  M33f;
      |                           ^~~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:45:55: error: template argument 1 is invalid
   45 |     : OIIO::pvt::array_formatter<Imath::M33f, float, 9> {};
      |                                                       ^
....../oiio/build/include/OpenImageIO/Imath.h:46:36: error: ‘M44f’ is not a member of ‘Imath’; did you mean ‘Imath_2_5::M44f’?
   46 | template<> struct formatter<Imath::M44f>
      |                                    ^~~~
In file included from ....../oiio/build/include/OpenImageIO/Imath.h:26,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/ImathMatrix.h:1158:27: note: ‘Imath_2_5::M44f’ declared here
 1158 | typedef Matrix44 <float>  M44f;
      |                           ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/include/OpenEXR/half.h:91:7: error: using typedef-name ‘using half = class Imath_3_2::half’ after ‘class’
   91 | class half
      |       ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/local/include/Imath/half.h:983:7: note: ‘using half = class Imath_3_2::half’ has a previous declaration here
  983 | using half = IMATH_INTERNAL_NAMESPACE::half;
      |       ^~~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:46:36: error: ‘M44f’ is not a member of ‘Imath’; did you mean ‘Imath_2_5::M44f’?
   46 | template<> struct formatter<Imath::M44f>
      |                                    ^~~~
In file included from ....../oiio/build/include/OpenImageIO/Imath.h:26,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/ImathMatrix.h:1158:27: note: ‘Imath_2_5::M44f’ declared here
 1158 | typedef Matrix44 <float>  M44f;
      |                           ^~~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:46:40: error: template argument 1 is invalid
   46 | template<> struct formatter<Imath::M44f>
      |                                        ^
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/include/OpenEXR/half.h:429:1: error: redefinition of ‘Imath_3_2::half::half(float)’
  429 | half::half (float f)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/local/include/Imath/half.h:646:8: note: ‘Imath_3_2::half::half(float)’ previously defined here
  646 | inline half::half (float f) IMATH_NOEXCEPT : _h (imath_float_to_half (f))
      |        ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/include/OpenEXR/half.h:493:1: error: redefinition of ‘Imath_3_2::half::operator float() const’
  493 | half::operator float () const
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/local/include/Imath/half.h:661:8: note: ‘Imath_3_2::half::operator float() const’ previously defined here
  661 | inline half::operator float () const IMATH_NOEXCEPT
      |        ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/include/OpenEXR/half.h:504:1: error: redefinition of ‘half Imath_3_2::half::round(unsigned int) const’
  504 | half::round (unsigned int n) const
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/local/include/Imath/half.h:671:1: note: ‘constexpr Imath_3_2::half Imath_3_2::half::round(unsigned int) const’ previously defined here
  671 | half::round (unsigned int n) const IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/include/OpenEXR/half.h:563:1: error: redefinition of ‘half Imath_3_2::half::operator-() const’
  563 | half::operator - () const
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/local/include/Imath/half.h:727:1: note: ‘constexpr Imath_3_2::half Imath_3_2::half::operator-() const’ previously defined here
  727 | half::operator- () const IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/include/OpenEXR/half.h:572:1: error: redefinition of ‘half& Imath_3_2::half::operator=(float)’
  572 | half::operator = (float f)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/local/include/Imath/half.h:733:1: note: ‘Imath_3_2::half& Imath_3_2::half::operator=(float)’ previously defined here
  733 | half::operator= (float f) IMATH_NOEXCEPT
      | ^~~~
....../oiio/build/include/OpenImageIO/Imath.h:47:41: error: ‘M44f’ is not a member of ‘Imath’; did you mean ‘Imath_2_5::M44f’?
   47 |     : OIIO::pvt::array_formatter<Imath::M44f, float, 16> {};
      |                                         ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/include/OpenEXR/half.h:580:1: error: redefinition of ‘half& Imath_3_2::half::operator+=(Imath_3_2::half)’
  580 | half::operator += (half h)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/Imath.h:26,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/ImathMatrix.h:1158:27: note: ‘Imath_2_5::M44f’ declared here
 1158 | typedef Matrix44 <float>  M44f;
      |                           ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/local/include/Imath/half.h:740:1: note: ‘Imath_3_2::half& Imath_3_2::half::operator+=(Imath_3_2::half)’ previously defined here
  740 | half::operator+= (half h) IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/include/OpenEXR/half.h:588:1: error: redefinition of ‘half& Imath_3_2::half::operator+=(float)’
  588 | half::operator += (float f)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/local/include/Imath/half.h:747:1: note: ‘Imath_3_2::half& Imath_3_2::half::operator+=(float)’ previously defined here
  747 | half::operator+= (float f) IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/include/OpenEXR/half.h:596:1: error: redefinition of ‘half& Imath_3_2::half::operator-=(Imath_3_2::half)’
  596 | half::operator -= (half h)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/local/include/Imath/half.h:754:1: note: ‘Imath_3_2::half& Imath_3_2::half::operator-=(Imath_3_2::half)’ previously defined here
  754 | half::operator-= (half h) IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/include/OpenEXR/half.h:604:1: error: redefinition of ‘half& Imath_3_2::half::operator-=(float)’
  604 | half::operator -= (float f)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/local/include/Imath/half.h:761:1: note: ‘Imath_3_2::half& Imath_3_2::half::operator-=(float)’ previously defined here
  761 | half::operator-= (float f) IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/include/OpenEXR/half.h:612:1: error: redefinition of ‘half& Imath_3_2::half::operator*=(Imath_3_2::half)’
  612 | half::operator *= (half h)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/local/include/Imath/half.h:768:1: note: ‘Imath_3_2::half& Imath_3_2::half::operator*=(Imath_3_2::half)’ previously defined here
  768 | half::operator*= (half h) IMATH_NOEXCEPT
      | ^~~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:47:41: error: ‘M44f’ is not a member of ‘Imath’; did you mean ‘Imath_2_5::M44f’?
   47 |     : OIIO::pvt::array_formatter<Imath::M44f, float, 16> {};
      |                                         ^~~~
In file included from ....../oiio/build/include/OpenImageIO/Imath.h:26,
                 from ....../oiio/src/libutil/argparse_test.cpp:7:
/usr/include/OpenEXR/ImathMatrix.h:1158:27: note: ‘Imath_2_5::M44f’ declared here
 1158 | typedef Matrix44 <float>  M44f;
      |                           ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/include/OpenEXR/half.h:620:1: error: redefinition of ‘half& Imath_3_2::half::operator*=(float)’
  620 | half::operator *= (float f)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/local/include/Imath/half.h:775:1: note: ‘Imath_3_2::half& Imath_3_2::half::operator*=(float)’ previously defined here
  775 | half::operator*= (float f) IMATH_NOEXCEPT
      | ^~~~
In file included from ....../oiio/src/libutil/argparse_test.cpp:7:
....../oiio/build/include/OpenImageIO/Imath.h:47:56: error: template argument 1 is invalid
   47 |     : OIIO::pvt::array_formatter<Imath::M44f, float, 16> {};
      |                                                        ^
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/include/OpenEXR/half.h:628:1: error: redefinition of ‘half& Imath_3_2::half::operator/=(Imath_3_2::half)’
  628 | half::operator /= (half h)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/local/include/Imath/half.h:782:1: note: ‘Imath_3_2::half& Imath_3_2::half::operator/=(Imath_3_2::half)’ previously defined here
  782 | half::operator/= (half h) IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/include/OpenEXR/half.h:636:1: error: redefinition of ‘half& Imath_3_2::half::operator/=(float)’
  636 | half::operator /= (float f)
      | ^~~~
In file included from ....../oiio/build/include/OpenImageIO/half.h:12,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:9,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/local/include/Imath/half.h:789:1: note: ‘Imath_3_2::half& Imath_3_2::half::operator/=(float)’ previously defined here
  789 | half::operator/= (float f) IMATH_NOEXCEPT
      | ^~~~
In file included from /usr/include/OpenEXR/ImathColor.h:48,
                 from ....../oiio/build/include/OpenImageIO/Imath.h:25,
                 from ....../oiio/src/libutil/fmath_test.cpp:11:
/usr/include/OpenEXR/half.h:644:1: error: redefinition of ‘bool Imath_3_2::half::isFinite() const’
  644 | half::isFinite () const
      | ^~~~

jiapei-nexera avatar Jun 16 '22 18:06 jiapei-nexera

Are you building with a cmake command, or are you using our "Makefile" wrapper?

Can you please capture the ENTIRE build process with VERBOSE=1, starting from the very first configure step? It's really hard to tell what's going on from just a clip in the middle.

Also, you edited that last comment. In the first version you wrote (that ended up in my email), the errors seemed to be about the compiler not understanding -Wno-aligned-new, but then by the time I came to the web page, you had edited and now the errors are about redefinition of the 'half' class, and those are certainly two totally separate things.

Can we take it from the top, do a full build FROM SCRATCH and using verbose, and capture the WHOLE output for us, please?

lgritz avatar Jun 16 '22 19:06 lgritz

@jiapei-nexera Any further information forthcoming on this issue?

lgritz avatar Jun 29 '22 04:06 lgritz

Closing since there was never another reply.

lgritz avatar Sep 21 '23 05:09 lgritz