-
Notifications
You must be signed in to change notification settings - Fork 97
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
GCC 10 can't compile __isSimicsRunning #205
Comments
A proposed fix. Note that __isMultiprocSupported doesn't follow the pattern of the first two.
|
Similar to the gcc9 issue, we plan on digging into an upgraded compiler later this year most likely. Any improvements will be done as time allows. I'd probably pull in a patch if someone threw one up. Also, which branch are you attempting this on, master or master-p10? |
op-jenkins
pushed a commit
that referenced
this issue
Apr 29, 2022
From when this was introduced (2737de7) it wasn't commented why it was done this way. Clean it up. utilmisc.C:31:6: error: ‘bool Util::isSimics()’ specifies less restrictive attribute than its target ‘bool Util::__isSimicsRunning()’: ‘nothrow’ [-Werror=missing-attributes] 31 | bool isSimics() __attribute__((alias("__isSimicsRunning"))); | ^~~~~~~~ utilmisc.C:34:6: note: ‘bool Util::isSimics()’ target declared here 34 | bool __isSimicsRunning() | ^~~~~~~~~~~~~~~~~ utilmisc.C:48:6: error: ‘bool Util::isQmeModelEnabled()’ specifies less restrictive attribute than its target ‘bool Util::__isQmeEnabled()’: ‘nothrow’ [-Werror=missing-attributes] 48 | bool isQmeModelEnabled() __attribute__((alias("__isQmeEnabled"))); | ^~~~~~~~~~~~~~~~~ utilmisc.C:51:6: note: ‘bool Util::isQmeModelEnabled()’ target declared here 51 | bool __isQmeEnabled() | ^~~~~~~~~~~~~~ Fixes: #205 Change-Id: Id5291022b09dca6789175d69e54a30d55f1bde13 Signed-off-by: Joel Stanley <joel@linux.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/128902 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins Combined Simics CI <combined-simics-ci+hostboot@us.ibm.com> Reviewed-by: Zachary Clark <zach@ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com> Reviewed-by: Nick Bofferding <bofferdn@us.ibm.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is some funky code that doesn't build:
The text was updated successfully, but these errors were encountered: