Skip to content

Comments

Fix compilation error on newer ubuntu releases#3

Open
tc-imba wants to merge 1 commit intoFPSG-UIUC:masterfrom
tc-imba:master
Open

Fix compilation error on newer ubuntu releases#3
tc-imba wants to merge 1 commit intoFPSG-UIUC:masterfrom
tc-imba:master

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 gabe.black@gmail.com
Maintainer: Gabe Black gabe.black@gmail.com
Tested-by: kokoro noreply+kokoro@google.com
(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 <gabe.black@gmail.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
(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