Skip to content

Generated code seems to depend on the CPU on which it was built #51

Description

@KritonK

This issue is unique.

  • I have used the search tool and did not find an issue describing my bug.

Operating System

Linux

Architecture

x86_64

Package Type

rpm

Version information

git commit 16d1a01

Expected Behavior

I built Euro-Office from source under OpenSUSE Tumbleweed, using build.sh on a computer with an "Intel(R) Core(TM) i7 CPU 960 @ 3.20GHz" according to /proc/cpuinfo. The resulting code runs fine on this computer.

The expected behavior is that the code should also run on my home computer, which has an older "Intel(R) Core(TM)2 Duo CPU E8600 @ 3.33GHz".

Actual Behavior

On my home computer, Euro-Office aborts, with the following error:

Incompatible processor. This Qt build requires the following features:
    sse4.2 popcnt

Reproduction Steps

  1. Build Euro-Office on a computer whose CPU supports the sse4_2 popcnt instruction set.
  2. Install and run it on a computer which does not.

Additional information

I'm a bit hazy on dates, but I think that a build that I made about two weeks ago ran fine on my home computer, in which case this is a recent regression. ONLYOFFICE does not have this problem, so this is not something that has been inherited from there.

I suspect that Qt and perhaps other code as well are compiled using "-march=native", instead of requiring a more generic architecture.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions