Pushed this fix (and one other, though it was harmless), tested (with
USE_SIMD=0, as I should have originally), and re-tagged. Sorry for the trouble.
-- lg
On Mar 11, 2015, at 11:20 PM, Larry Gritz <[email protected]> wrote:
> My bad. Try replacing the definition of function xyz0 with this:
>
> /// Return xyz components, plus 0 for w
> float4 xyz0 () const {
> #if defined(OIIO_SIMD_SSE) && OIIO_SIMD_SSE >= 4
> return _mm_insert_ps (m_vec, _mm_set_ss(0.0f), 3<<4);
> #elif defined(OIIO_SIMD_SSE) /* SSE2 */
> float4 tmp = m_vec;
> tmp[3] = 0.0f;
> return tmp;
> #else
> return float4 (m_val[0], m_val[1], m_val[2], 0.0f);
> #endif
> }
>
> If that works, let me know, and I'll merge it.
>
>
> On Mar 11, 2015, at 7:22 PM, Richard Shaw <[email protected]> wrote:
>
>> I'm getting a build error on Fedora rawhide (with gcc 5.0.x)
>>
>> Building CXX object
>> src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/imagebuf.cpp.o
>> cd /builddir/build/BUILD/oiio-Release-1.5.13/build/linux/src/libOpenImageIO
>> && /usr/bin/c++ -DBOOST_TEST_DYN_LINK -DEMBED_PLUGINS=1 -DNDEBUG
>> -DOpenImageIO_EXPORTS -DPTEX_EXPORTS -DUSE_BOOST_ASIO=1
>> -DUSE_EXTERNAL_PUGIXML=1 -DUSE_FIELD3D=1 -DUSE_FREETYPE -DUSE_GIF
>> -DUSE_OCIO=1 -DUSE_OPENCV -DUSE_OPENEXR_VERSION2=1 -DUSE_OPENJPEG
>> -DUSE_WEBP=1 -D__STDC_LIMIT_MACROS -O2 -g -pipe -Wall
>> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
>> -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
>> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom
>> -fasynchronous-unwind-tables -O2 -g -DNDEBUG -fPIC -I/usr/include/OpenEXR
>> -I/builddir/build/BUILD/oiio-Release-1.5.13/src/include
>> -I/builddir/build/BUILD/oiio-Release-1.5.13/build/linux/include/OpenImageIO
>> -I/builddir/build/BUILD/oiio-Release-1.5.13/build/linux/src/libOpenImageIO
>> -I/usr/include/openjpeg-1.5 -I/usr/include/freetype2
>> -I/usr/include/freetype2/freetype2
>> -I/usr/include/freetype2/freetype2/freetype -Wall -Werror -fno-math-errno
>> -Wno-error=unused-local-typedefs -Wno-unused-local-typedefs -o
>> CMakeFiles/OpenImageIO.dir/imagebuf.cpp.o -c
>> /builddir/build/BUILD/oiio-Release-1.5.13/src/libOpenImageIO/imagebuf.cpp
>> In file included from
>> /builddir/build/BUILD/oiio-Release-1.5.13/src/libOpenImageIO/imagebuf.cpp:52:0:
>> /builddir/build/BUILD/oiio-Release-1.5.13/src/include/OpenImageIO/simd.h: In
>> member function 'OpenImageIO::v1_5::simd::float4
>> OpenImageIO::v1_5::simd::float4::xyz0() const':
>> /builddir/build/BUILD/oiio-Release-1.5.13/src/include/OpenImageIO/simd.h:1651:22:
>> error: 'm_vec' was not declared in this scope
>> float4 tmp = m_vec;
>> ^
>>
>> Ideas?
>>
>> Thanks,
>>
>> Richard
>> _______________________________________________
>> Oiio-dev mailing list
>> [email protected]
>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>
> --
> Larry Gritz
> [email protected]
>
>
>
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
--
Larry Gritz
[email protected]
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org