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
  • scripts
  • Makefile.host
Find file BlameHistoryPermalink
  • Miguel Ojeda's avatar
    kbuild: rust: avoid creating temporary files · df01b7cf
    Miguel Ojeda authored Jul 23, 2023
    
    
    `rustc` outputs by default the temporary files (i.e. the ones saved
    by `-Csave-temps`, such as `*.rcgu*` files) in the current working
    directory when `-o` and `--out-dir` are not given (even if
    `--emit=x=path` is given, i.e. it does not use those for temporaries).
    
    Since out-of-tree modules are compiled from the `linux` tree,
    `rustc` then tries to create them there, which may not be accessible.
    
    Thus pass `--out-dir` explicitly, even if it is just for the temporary
    files.
    
    Similarly, do so for Rust host programs too.
    
    Reported-by: default avatarRaphael Nestler <raphael.nestler@gmail.com>
    Closes: https://github.com/Rust-for-Linux/linux/issues/1015
    
    
    Reported-by: default avatarAndrea Righi <andrea.righi@canonical.com>
    Tested-by: Raphael Nestler <raphael.nestler@gmail.com> # non-hostprogs
    Tested-by: Andrea Righi <andrea.righi@canonical.com> # non-hostprogs
    Fixes: 295d8398
    
     ("kbuild: specify output names separately for each emission type from rustc")
    Cc: stable@vger.kernel.org
    Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
    Tested-by: default avatarMartin Rodriguez Reboredo <yakoyoku@gmail.com>
    Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
    df01b7cf
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7