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

Build error #8

Closed
preda opened this issue Feb 8, 2018 · 2 comments
Closed

Build error #8

preda opened this issue Feb 8, 2018 · 2 comments

Comments

@preda
Copy link

preda commented Feb 8, 2018

I tried a build an it fails as below:

/home/preda/Common/Src/AMDTOSWrappers/src/common/osCpuid.cpp: In constructor 'osCpuid::osCpuid()':
/home/preda/Common/Src/AMDTOSWrappers/src/common/osCpuid.cpp:53:20: error: '((void)& info +12)' may be used uninitialized in this function [-Werror=maybe-uninitialized]
osCpuidParam_t info[MAX_CPUID_REGS];
^~~~
/home/preda/Common/Src/AMDTOSWrappers/src/common/osCpuid.cpp:53:20: error: '((void)& info +8)' may be used uninitialized in this function [-Werror=maybe-uninitialized]
/home/preda/Common/Src/AMDTOSWrappers/src/common/osCpuid.cpp:53:20: error: '((void)& info +4)' may be used uninitialized in this function [-Werror=maybe-uninitialized]
/home/preda/Common/Src/AMDTOSWrappers/src/common/osCpuid.cpp:70:5: error: 'info' may be used uninitialized in this function [-Werror=maybe-uninitialized]
if (info[EAX] > 0)
^~
cc1plus: all warnings being treated as errors

@acowley
Copy link

acowley commented Apr 10, 2018

Though I, too, can not build rcp, I was able to get past this by removing -Werror from Build/Linux/CXL_init.py.

@chesik-amd
Copy link
Collaborator

This should now be fixed. You should now be able to build RCP with gcc7. You'll need to make sure you have the latest sources from the common-src-AMDTOSWrappers repo as well (running Scripts/UpdateCommon.py should get the latest changes from there)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants