mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* /usr/bin/ld: ../lib/LLVMgold.so: cannot open shared object file: No such file or directory
@ 2024-08-16  1:08 kernel test robot
  2024-08-16  2:40 ` Philip Li
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2024-08-16  1:08 UTC (permalink / raw)
  To: Peter Foley; +Cc: llvm, oe-kbuild-all, linux-kernel, Richard Weinberger

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d7a5aa4b3c007fae50405ca75c40258d90300e96
commit: 83e913f52aba69149261742aa9ea4ceea7bf182d um: Support LTO
date:   1 year, 6 months ago
config: um-randconfig-001-20240815 (https://download.01.org/0day-ci/archive/20240816/202408160932.BvHwO6Qo-lkp@intel.com/config)
compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240816/202408160932.BvHwO6Qo-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408160932.BvHwO6Qo-lkp@intel.com/

All errors (new ones prefixed by >>):

>> /usr/bin/ld: ../lib/LLVMgold.so: cannot open shared object file: No such file or directory
   clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
--
>> llvm-objcopy: error: 'arch/x86/um/vdso/vdso.so.dbg': No such file or directory

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: /usr/bin/ld: ../lib/LLVMgold.so: cannot open shared object file: No such file or directory
  2024-08-16  1:08 /usr/bin/ld: ../lib/LLVMgold.so: cannot open shared object file: No such file or directory kernel test robot
@ 2024-08-16  2:40 ` Philip Li
  2024-08-16 20:44   ` Nathan Chancellor
  0 siblings, 1 reply; 3+ messages in thread
From: Philip Li @ 2024-08-16  2:40 UTC (permalink / raw)
  To: kernel test robot
  Cc: Peter Foley, llvm, oe-kbuild-all, linux-kernel, Richard Weinberger

On Fri, Aug 16, 2024 at 09:08:02AM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   d7a5aa4b3c007fae50405ca75c40258d90300e96
> commit: 83e913f52aba69149261742aa9ea4ceea7bf182d um: Support LTO
> date:   1 year, 6 months ago
> config: um-randconfig-001-20240815 (https://download.01.org/0day-ci/archive/20240816/202408160932.BvHwO6Qo-lkp@intel.com/config)
> compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240816/202408160932.BvHwO6Qo-lkp@intel.com/reproduce)
> 
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202408160932.BvHwO6Qo-lkp@intel.com/
> 
> All errors (new ones prefixed by >>):

kindly ignore this false report, which should be test environment issue. We will
follow up to fix this.

> 
> >> /usr/bin/ld: ../lib/LLVMgold.so: cannot open shared object file: No such file or directory
>    clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
> --
> >> llvm-objcopy: error: 'arch/x86/um/vdso/vdso.so.dbg': No such file or directory
> 
> -- 
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: /usr/bin/ld: ../lib/LLVMgold.so: cannot open shared object file: No such file or directory
  2024-08-16  2:40 ` Philip Li
@ 2024-08-16 20:44   ` Nathan Chancellor
  0 siblings, 0 replies; 3+ messages in thread
From: Nathan Chancellor @ 2024-08-16 20:44 UTC (permalink / raw)
  To: Philip Li
  Cc: kernel test robot, Peter Foley, llvm, oe-kbuild-all,
	linux-kernel, Richard Weinberger

On Fri, Aug 16, 2024 at 10:40:00AM +0800, Philip Li wrote:
> On Fri, Aug 16, 2024 at 09:08:02AM +0800, kernel test robot wrote:
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head:   d7a5aa4b3c007fae50405ca75c40258d90300e96
> > commit: 83e913f52aba69149261742aa9ea4ceea7bf182d um: Support LTO
> > date:   1 year, 6 months ago
> > config: um-randconfig-001-20240815 (https://download.01.org/0day-ci/archive/20240816/202408160932.BvHwO6Qo-lkp@intel.com/config)
> > compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240816/202408160932.BvHwO6Qo-lkp@intel.com/reproduce)
> > 
> > If you fix the issue in a separate patch/commit (i.e. not just a new version of
> > the same patch/commit), kindly add following tags
> > | Reported-by: kernel test robot <lkp@intel.com>
> > | Closes: https://lore.kernel.org/oe-kbuild-all/202408160932.BvHwO6Qo-lkp@intel.com/
> > 
> > All errors (new ones prefixed by >>):
> 
> kindly ignore this false report, which should be test environment issue. We will
> follow up to fix this.

For what it's worth, this is somewhat our bug, as ARCH=um uses $(CC) to
link, which means that ld.lld is not getting used for the final link in
the vast majority of cases (because clang defaults to just 'ld' for
Linux). This is problematic in the case of LTO because the compiler
generates LLVM bitcode that GNU ld does not understand so it needs the
LLVMgold plugin. That shouldn't be necessary but ld.lld does not worth
with ARCH=um for tangential reasons:

https://github.com/ClangBuiltLinux/linux/issues/1715

> > 
> > >> /usr/bin/ld: ../lib/LLVMgold.so: cannot open shared object file: No such file or directory
> >    clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
> > --
> > >> llvm-objcopy: error: 'arch/x86/um/vdso/vdso.so.dbg': No such file or directory
> > 
> > -- 
> > 0-DAY CI Kernel Test Service
> > https://github.com/intel/lkp-tests/wiki
> > 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-08-16 20:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-16  1:08 /usr/bin/ld: ../lib/LLVMgold.so: cannot open shared object file: No such file or directory kernel test robot
2024-08-16  2:40 ` Philip Li
2024-08-16 20:44   ` Nathan Chancellor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®