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
  • linux
  • tools
  • scripts
  • Makefile.include
Find file BlameHistoryPermalink
  • Jean-Philippe Brucker's avatar
    tools: Ignore errors from `which' when searching a GCC toolchain · b7892f7d
    Jean-Philippe Brucker authored Feb 01, 2022
    When cross-building tools with clang, we run `which $(CROSS_COMPILE)gcc`
    to detect whether a GCC toolchain provides the standard libraries. It is
    only a helper because some distros put libraries where LLVM does not
    automatically find them. On other systems, LLVM detects the libc
    automatically and does not need this. There, it is completely fine not
    to have a GCC at all, but some versions of `which' display an error when
    the command is not found:
    
      which: no aarch64-linux-gnu-gcc in ($PATH)
    
    Since the error can safely be ignored, throw it to /dev/null.
    
    Fixes: cebdb737
    
     ("tools: Help cross-building with clang")
    Reported-by: default avatarNathan Chancellor <nathan@kernel.org>
    Signed-off-by: default avatarJean-Philippe Brucker <jean-philippe@linaro.org>
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    Tested-by: default avatarNathan Chancellor <nathan@kernel.org>
    Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
    Link: https://lore.kernel.org/bpf/20220201093119.1713207-1-jean-philippe@linaro.org
    b7892f7d
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7