Project

General

Profile

Actions

Emulator Issues #9008

closed

Dolphin fails to build on GCC with -msse4.2

Added by Shadows_Friend almost 9 years ago. Updated almost 9 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

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

build_error_disabled_pch.log (2.99 KB) build_error_disabled_pch.log Shadows_Friend, 10/04/2015 08:05 AM
Actions #1

Updated by Shadows_Friend almost 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.

Actions #2

Updated by pauldacheez almost 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.

Actions #3

Updated by Shadows_Friend almost 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.

Actions #4

Updated by Shadows_Friend almost 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.

Actions #5

Updated by pauldacheez almost 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.

Actions #7

Updated by pauldacheez almost 9 years ago

  • Status changed from Accepted to Fixed

Well, if it's fixed for the issue filer, I'm fine with that.

Actions

Also available in: Atom PDF