Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • scripts
  • subarch.include
Find file BlameHistoryPermalink
  • Masahiro Yamada's avatar
    parisc: Fix compile failure when building 64-bit kernel natively · 5f6e0fe0
    Masahiro Yamada authored Jun 10, 2021
    Commit 23243c1a ("arch: use cross_compiling to check whether it is
    a cross build or not") broke 64-bit parisc builds on 32-bit parisc
    systems.
    
    Helge mentioned:
      - 64-bit parisc userspace is not supported yet [1]
      - hppa gcc does not support "-m64" flag [2]
    
    That means, parisc developers working on a 32-bit parisc machine need
    to use hppa64-linux-gnu-gcc (cross compiler) for building the 64-bit
    parisc kernel.
    
    After the offending commit, gcc is used in such a case because
    both $(SRCARCH) and $(SUBARCH) are 'parisc', hence cross_compiling is
    unset.
    
    A correct way is to introduce ARCH=parisc64 because building the 64-bit
    parisc kernel on a 32-bit parisc system is not exactly a native build,
    but rather a semi-cross build.
    
    [1]: https://lore.kernel.org/linux-parisc/5dfd81eb-c8ca-b7f5-e80e-8632767c022d@gmx.de/#t
    [2]: https://lore.kernel.org/linux-parisc/89515325-fc21-31da-d238-6f7a9abbf9a0@gmx.de/
    
    Fixes: 23243c1a
    
     ("arch: use cross_compiling to check whether it is a cross build or not")
    Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
    Reported-by: default avatarMeelis Roos <mroos@linux.ee>
    Tested-by: default avatarMeelis Roos <mroos@linux.ee>
    Cc: <stable@vger.kernel.org> # v5.13+
    Signed-off-by: default avatarHelge Deller <deller@gmx.de>
    5f6e0fe0
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7