-
-
Notifications
You must be signed in to change notification settings - Fork 841
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
[APP BUG]: Build broken on gcc due to issues in some of the amdgpu files #1994
Comments
I modified the PKGBUILD to build shadPS4 with Clang instead of GCC, and it builds (and runs well). Here is the diff for the PKGBUILD: diff --git a/PKGBUILD b/PKGBUILD
index c4687d7..f12e71a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -19,7 +19,7 @@ depends=(
makedepends=(
'boost>=1.84'
'cmake>=3.16.3'
- 'cubeb'
+ 'clang'
'ffmpeg>=2:5.1.2'
'fmt>=10.2'
'git'
@@ -87,6 +87,8 @@ build() {
cmake -B build -S $_pkgname \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
+ -DCMAKE_CXX_COMPILER=clang++ \
+ -DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_INSTALL_RPATH=ON \
@@ -102,7 +104,6 @@ package() {
'libavcodec.so'
'libavformat.so'
'libavutil.so'
- 'libcubeb.so'
'libfmt.so'
'libpng16.so'
'libswresample.so' Therefore, I think the title should be renamed to reference that it is a GCC vs Clang problem. |
@abouvier You maintain the shadps4-git PKGBUILD, so you should look into replacing the default compiler with Clang as outlined above. It would be good practice as well as it is recommended over GCC. |
I think an actual solution would be to have a CI job that compiles with GCC, to catch these before they're merged. This isn't the first time this has happened - #1729 Unless shad wants to explicitly drop gcc support, it's good that the environments vary, more testing happens that way. |
Since PR #2000 got merged this should be fixed. I've taken the idea of a GCC CI job into consideration and will open a PR for it later. |
Can you try @C0rn3j ? Thanks you :) |
Compiles, thanks! |
Checklist
Describe the Bug
I am guessing this was introduced by #1869
Reproduction Steps
Attempt to build AUR/shadps4-git -> this error
Judging by the Ubuntu CI passing on this, I am guessing something here on Arch is more strict. Seems to be clang vs gccI could not spot anything off about the recent changes vs the PKGBUILD other than having an extra cubeb dependency, which should be completely irrelevant to this issue.
Expected Behavior
No response
Specify OS Version
Arch Linux
The text was updated successfully, but these errors were encountered: