Emulator Issues #9008
closedDolphin fails to build on GCC with -msse4.2
0%
Description
What's the problem? Describe what went wrong.
When compiling Dolphin on Linux (Gentoo Linux AMD64) with -DENABLE_PCH=OFF the build fails due to undeclared functions.
What steps will reproduce the problem?
Compile Dolphin on Linux with precompiled headers disabled.
Which versions of Dolphin did you test on? Does using an older version of Dolphin solve your issue? If yes, which versions of Dolphin used to work?
4.0-7933 (Commit 6d4128ddcccc0ff04ace8bc1f35f022afeae5e0b)
What are your PC specifications? (CPU, GPU, Operating System, more)
Gentoo Linux AMD64
Is there any other relevant information? (e.g. logs, screenshots,
configuration files)
Relevant part of the build log is attached.
Files
Updated by Shadows_Friend about 9 years ago
After retesting it seems that this is not Dolphin's fault which means this bug can be closed. I apologize for the premature report.
Updated by pauldacheez about 9 years ago
How did you end up fixing it? It might still be an actual issue that should be fixed on the Dolphin side of things. One of the PRs that was merged yesterday broke compilation for me solely because I don't use a separate build dir, which the guide tells you to do but hasn't actually been a requirement until now.
Updated by Shadows_Friend about 9 years ago
I did not really fix it. I found that dolphin compiles when I compile it by myself rather than using portage (the gentoo package manager). In the meantime, however, I spent some more time investigating the issue and the result is rather amusing. The error appears as soon as you add -msse4.2 to the compiler flags. I have absolutely no idea why this would cause this error. The compiler I am using is GCC 4.9.3.
Updated by Shadows_Friend about 9 years ago
I should have checked Hash.cpp before posting. This file contains checks for SSE which probably leads to this error as soon as -msse4.2 is enabled.
Updated by pauldacheez about 9 years ago
- Subject changed from Dolphin fails to build on Linux when precompiled headers are disabled to Dolphin fails to build on GCC with -msse4.2
- Status changed from New to Accepted
I actually have a patch for another SSE4-related Hash.cpp compile error lying around, though it probably doesn't fix the same error you were running into. Wasn't ever merged because the buildbots don't build with SSE4 enabled by default, but it seems that it no longer occurs on current Clang anyway (nor does an internal error that used to occur when both -flto and -msse4 were set).
Anyway, even if the buildbots don't run into this issue, I think this is still a valid issue that needs to be fixed. There's more than a handful of valid build configurations that aren't regularly tested.
Updated by Shadows_Friend about 9 years ago
This should be fixed in 4.0-7947. https://dolphin-emu.org/download/dev/1a747651460b202f6a3bb03d52e9d46a202851e7
Updated by pauldacheez about 9 years ago
- Status changed from Accepted to Fixed
Well, if it's fixed for the issue filer, I'm fine with that.