Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'CpuId' was not declared in this scope #240

Closed
Partha1b opened this issue Aug 9, 2017 · 1 comment
Closed

'CpuId' was not declared in this scope #240

Partha1b opened this issue Aug 9, 2017 · 1 comment
Labels
Build A problem with building or installing the library.

Comments

@Partha1b
Copy link

Partha1b commented Aug 9, 2017

In addition to getting a whole bunch of warnings such as

Z:/opts/opt64-posix/include/OpenEXR/ImathMatrix.h:646:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
                         throw (IEX_NAMESPACE::MathExc);
                         ^~~~~
Z:/opts/opt64-posix/include/OpenEXR/ImathMatrix.h:649:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
                         throw (IEX_NAMESPACE::MathExc);
                         ^~~~~

openexr does not compile due to:

z:/src/graphics/openexr/OpenEXR/IlmImf/ImfDwaCompressor.cpp: In static member function 'static void Imf_2_2::DwaCompressor::initializeFuncs()':
z:/src/graphics/openexr/OpenEXR/IlmImf/ImfDwaCompressor.cpp:2898:5: error: 'CpuId' was not declared in this scope
     CpuId cpuId;
     ^~~~~
z:/src/graphics/openexr/OpenEXR/IlmImf/ImfDwaCompressor.cpp:2898:5: note: suggested alternative: 'cpuid'
     CpuId cpuId;
     ^~~~~
     cpuid
z:/src/graphics/openexr/OpenEXR/IlmImf/ImfDwaCompressor.cpp:2904:9: error: 'cpuId' was not declared in this scope
     if (cpuId.avx && cpuId.f16c)
         ^~~~~
z:/src/graphics/openexr/OpenEXR/IlmImf/ImfDwaCompressor.cpp:2904:9: note: suggested alternative: 'cpuid'
     if (cpuId.avx && cpuId.f16c)
         ^~~~~
         cpuid
z:/src/graphics/openexr/OpenEXR/IlmImf/ImfDwaCompressor.cpp:2923:9: error: 'cpuId' was not declared in this scope
     if (cpuId.avx)
         ^~~~~
z:/src/graphics/openexr/OpenEXR/IlmImf/ImfDwaCompressor.cpp:2923:9: note: suggested alternative: 'cpuid'
     if (cpuId.avx)
         ^~~~~
         cpuid
IlmImf/CMakeFiles/IlmImf.dir/build.make:748: recipe for target `IlmImf/CMakeFiles/IlmImf.dir/ImfDwaCompressor.cpp.obj' failed
make[2]: *** [IlmImf/CMakeFiles/IlmImf.dir/ImfDwaCompressor.cpp.obj] Error 1
CMakeFiles/Makefile2:164: recipe for target `IlmImf/CMakeFiles/IlmImf.dir/all' failed
make[1]: *** [IlmImf/CMakeFiles/IlmImf.dir/all] Error 2
Makefile:162: recipe for target `all' failed
make: *** [all] Error 2

I am using the gcc 7.1 on Windows 10 64-bit through a Msys shell.

Thanks.

@cary-ilm cary-ilm added Build A problem with building or installing the library. Windows labels Jun 13, 2019
@cary-ilm cary-ilm added this to the Needs Attention milestone Jun 29, 2019
@cary-ilm
Copy link
Member

cary-ilm commented Jul 4, 2019

Looking into the backlog of open OpenEXR issues. Is this still a problem? This is not something that others have reported. Closing the issue for now, feel free to re-open or file another issue if you still need help.

@cary-ilm cary-ilm closed this as completed Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build A problem with building or installing the library.
Projects
None yet
Development

No branches or pull requests

2 participants