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

Fix compilation error on newer ubuntu releases #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tc-imba
Copy link

@tc-imba tc-imba commented Apr 11, 2023

The repo can not be compiled on Ubuntu 22.04 because in glibc >= 2.34, SIGSTKSZ is changed to a system call instead of a constant value. I cherry picked the commit from gem5 upstream to fix the issue. It now compiles on Ubuntu 20.04/22.04.

Not sure there is any other issue causing "Unfortunately the repo doesn't appear to run correctly when tested on Ubuntu 20.04", seems working fine now :)

Upstream commit messeage:

Since glibc >= 2.34, MINSIGSTKSZ and SIGSTKSZ are no longer constant on Linux. As a result, the definition
"fatalSigStack[2*SIGSTKSZ]" fails to be compiled.
Thus, we need to dynamically allocate it.

Change-Id: Ibccc367818483b9c94beda871d1d95367d1e8b04 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/53183
Reviewed-by: Gabe Black [email protected]
Maintainer: Gabe Black [email protected]
Tested-by: kokoro [email protected]
(cherry picked from commit 39d4cdcd6bf1966b21c0d598e529c011f551b6bb)

Since glibc >= 2.34, MINSIGSTKSZ and SIGSTKSZ are no longer
constant on Linux. As a result, the definition
"fatalSigStack[2*SIGSTKSZ]" fails to be compiled.
Thus, we need to dynamically allocate it.

Change-Id: Ibccc367818483b9c94beda871d1d95367d1e8b04
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/53183
Reviewed-by: Gabe Black <[email protected]>
Maintainer: Gabe Black <[email protected]>
Tested-by: kokoro <[email protected]>
(cherry picked from commit 39d4cdcd6bf1966b21c0d598e529c011f551b6bb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants