Uploaded image for project: 'Snowstorm'
  1. Snowstorm
  2. STORM-366

CMake build arch detection is inaccurate and incomplete

    XMLWordPrintableJSON

Details

    • Story
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • Sprint 7, Viewer 2.4.0
    • None
    • Linux/Mac

    Description

      The current usage of uname for arch detection is prone to errors and inaccuracy and breaks in a number of common situations including

      32 bit chroots on 64bit systems

      What should happen is the build system should first check to see if the user passed a WORD_SIZE flag (from develop.py this is -m32 or -m64), if WORD_SIZE is onot set it should be auto detected from CMAKE_SIZEOF_VOID_P which is authoritive from gcc on the current build environment.

      Any other code that depends on knowing bit ness should test WORD_SIZE

      Attachments

        Activity

          People

            Unassigned Unassigned
            robin.cornelius Robin Cornelius
            Oz Linden Oz Linden
            jira-users
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: