Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [uml:next 28/45] InstrProfilingUtil.c:(.text.lprofAtExit+0x1): undefined reference to `atexit'
@ 2024-10-25  3:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-10-25  3:30 UTC (permalink / raw)
  To: Johannes Berg; +Cc: llvm, oe-kbuild-all, David Gow

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/uml/linux next
head:   d61ac4a7496a7981947b8b894d40b0e35c316fa5
commit: 14d4a7b516e993cf3926758a7ede569d8e119855 [28/45] um: make stub_exe _start() pure inline asm
config: um-randconfig-001-20241024 (https://download.01.org/0day-ci/archive/20241025/202410251145.87HDtgK5-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 5886454669c3c9026f7f27eab13509dd0241f2d6)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241025/202410251145.87HDtgK5-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/202410251145.87HDtgK5-lkp@intel.com/

All errors (new ones prefixed by >>):

   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_orderfile_write_file+0x109): undefined reference to `fclose'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_orderfile_write_file+0x110): undefined reference to `stderr'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_orderfile_write_file+0x11b): undefined reference to `__errno_location'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_orderfile_write_file+0x122): undefined reference to `strerror'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_orderfile_write_file+0x139): undefined reference to `fprintf'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_orderfile_write_file+0x16b): undefined reference to `strtol'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_orderfile_write_file+0x17d): undefined reference to `calloc'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_orderfile_write_file+0x198): undefined reference to `stderr'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_orderfile_write_file+0x1b0): undefined reference to `fprintf'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_orderfile_write_file+0x1c7): undefined reference to `stderr'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_orderfile_write_file+0x1df): undefined reference to `fprintf'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_orderfile_write_file+0x1f2): undefined reference to `stderr'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_orderfile_write_file+0x20a): undefined reference to `fprintf'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingFile.c.o): in function `__llvm_profile_set_file_object':
   InstrProfilingFile.c:(.text.__llvm_profile_set_file_object+0x60): undefined reference to `free'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_profile_set_file_object+0x73): undefined reference to `getenv'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_profile_set_file_object+0xb0): undefined reference to `fflush'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_profile_set_file_object+0xe1): undefined reference to `fileno'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_profile_set_file_object+0xf1): undefined reference to `stderr'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_profile_set_file_object+0xfb): undefined reference to `fprintf'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_profile_set_file_object+0x12e): undefined reference to `munmap'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_profile_set_file_object+0x14b): undefined reference to `stderr'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_profile_set_file_object+0x163): undefined reference to `fprintf'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_profile_set_file_object+0x186): undefined reference to `__errno_location'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_profile_set_file_object+0x18d): undefined reference to `strerror'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_profile_set_file_object+0x198): undefined reference to `fileno'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_profile_set_file_object+0x1ab): undefined reference to `stderr'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_profile_set_file_object+0x1b5): undefined reference to `fprintf'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_profile_set_file_object+0x1cb): undefined reference to `strtol'
   /usr/bin/ld: InstrProfilingFile.c:(.text.__llvm_profile_set_file_object+0x1dd): undefined reference to `calloc'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingMerge.c.o): in function `__llvm_profile_merge_from_buffer':
   InstrProfilingMerge.c:(.text.__llvm_profile_merge_from_buffer+0x2f9): undefined reference to `stderr'
   /usr/bin/ld: InstrProfilingMerge.c:(.text.__llvm_profile_merge_from_buffer+0x311): undefined reference to `fprintf'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingWriter.c.o): in function `lprofBufferWriter':
   InstrProfilingWriter.c:(.text.lprofBufferWriter+0x49): undefined reference to `memcpy'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingWriter.c.o): in function `lprofBufferIOWrite':
   InstrProfilingWriter.c:(.text.lprofBufferIOWrite+0x9c): undefined reference to `memcpy'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingWriter.c.o): in function `writeOneValueProfData.constprop.0':
   InstrProfilingWriter.c:(.text.writeOneValueProfData.constprop.0+0x4c): undefined reference to `memset'
   /usr/bin/ld: InstrProfilingWriter.c:(.text.writeOneValueProfData.constprop.0+0x88): undefined reference to `memset'
   /usr/bin/ld: InstrProfilingWriter.c:(.text.writeOneValueProfData.constprop.0+0x157): undefined reference to `memset'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingPlatformLinux.c.o): in function `__llvm_write_binary_ids':
   InstrProfilingPlatformLinux.c:(.text.__llvm_write_binary_ids+0x5): undefined reference to `__ehdr_start'
   /usr/bin/ld: InstrProfilingPlatformLinux.c:(.text.__llvm_write_binary_ids+0x18): undefined reference to `__ehdr_start'
   /usr/bin/ld: InstrProfilingPlatformLinux.c:(.text.__llvm_write_binary_ids+0x1f): undefined reference to `__ehdr_start'
   /usr/bin/ld: InstrProfilingPlatformLinux.c:(.text.__llvm_write_binary_ids+0x11e): undefined reference to `__ehdr_start'
   /usr/bin/ld: InstrProfilingPlatformLinux.c:(.text.__llvm_write_binary_ids+0x1cb): undefined reference to `__ehdr_start'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingUtil.c.o): in function `__llvm_profile_recursive_mkdir':
   InstrProfilingUtil.c:(.text.__llvm_profile_recursive_mkdir+0x41): undefined reference to `mkdir'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingUtil.c.o): in function `lprofGetHostName':
   InstrProfilingUtil.c:(.text.lprofGetHostName+0x12): undefined reference to `uname'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofGetHostName+0x34): undefined reference to `strncpy'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingUtil.c.o): in function `lprofLockFd':
   InstrProfilingUtil.c:(.text.lprofLockFd+0x1c): undefined reference to `getpid'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofLockFd+0x31): undefined reference to `__errno_location'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofLockFd+0x49): undefined reference to `fcntl'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingUtil.c.o): in function `lprofUnlockFd':
   InstrProfilingUtil.c:(.text.lprofUnlockFd+0x1c): undefined reference to `getpid'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofUnlockFd+0x31): undefined reference to `__errno_location'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofUnlockFd+0x49): undefined reference to `fcntl'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingUtil.c.o): in function `lprofLockFileHandle':
   InstrProfilingUtil.c:(.text.lprofLockFileHandle+0x7): undefined reference to `fileno'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofLockFileHandle+0x21): undefined reference to `getpid'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofLockFileHandle+0x39): undefined reference to `__errno_location'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofLockFileHandle+0x51): undefined reference to `fcntl'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingUtil.c.o): in function `lprofUnlockFileHandle':
   InstrProfilingUtil.c:(.text.lprofUnlockFileHandle+0x7): undefined reference to `fileno'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofUnlockFileHandle+0x21): undefined reference to `getpid'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofUnlockFileHandle+0x39): undefined reference to `__errno_location'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofUnlockFileHandle+0x51): undefined reference to `fcntl'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingUtil.c.o): in function `lprofOpenFileEx':
   InstrProfilingUtil.c:(.text.lprofOpenFileEx+0x13): undefined reference to `open'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofOpenFileEx+0x35): undefined reference to `getpid'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofOpenFileEx+0x51): undefined reference to `__errno_location'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofOpenFileEx+0x69): undefined reference to `fcntl'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofOpenFileEx+0x98): undefined reference to `stderr'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofOpenFileEx+0xb0): undefined reference to `fprintf'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofOpenFileEx+0x82): undefined reference to `fdopen'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingUtil.c.o): in function `lprofGetPathPrefix':
   InstrProfilingUtil.c:(.text.lprofGetPathPrefix+0x12): undefined reference to `getenv'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofGetPathPrefix+0x21): undefined reference to `getenv'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofGetPathPrefix+0x4f): undefined reference to `strtol'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofGetPathPrefix+0x62): undefined reference to `strlen'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingUtil.c.o): in function `lprofApplyPathPrefix':
   InstrProfilingUtil.c:(.text.lprofApplyPathPrefix+0x4f): undefined reference to `memcpy'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofApplyPathPrefix+0x68): undefined reference to `strlen'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofApplyPathPrefix+0x82): undefined reference to `memcpy'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingUtil.c.o): in function `lprofFindFirstDirSeparator':
   InstrProfilingUtil.c:(.text.lprofFindFirstDirSeparator+0x6): undefined reference to `strchr'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingUtil.c.o): in function `lprofFindLastDirSeparator':
   InstrProfilingUtil.c:(.text.lprofFindLastDirSeparator+0x6): undefined reference to `strrchr'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingUtil.c.o): in function `lprofSuspendSigKill':
   InstrProfilingUtil.c:(.text.lprofSuspendSigKill+0x19): undefined reference to `prctl'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofSuspendSigKill+0x4a): undefined reference to `prctl'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingUtil.c.o): in function `lprofRestoreSigKill':
   InstrProfilingUtil.c:(.text.lprofRestoreSigKill+0xd): undefined reference to `prctl'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingUtil.c.o): in function `lprofReleaseMemoryPagesToOS':
   InstrProfilingUtil.c:(.text.lprofReleaseMemoryPagesToOS+0xd): undefined reference to `getpagesize'
   /usr/bin/ld: InstrProfilingUtil.c:(.text.lprofReleaseMemoryPagesToOS+0x4a): undefined reference to `madvise'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingUtil.c.o): in function `lprofAtExit':
>> InstrProfilingUtil.c:(.text.lprofAtExit+0x1): undefined reference to `atexit'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfiling.c.o): in function `__llvm_profile_reset_counters':
   InstrProfiling.c:(.text.__llvm_profile_reset_counters+0x3d): undefined reference to `memset'
>> /usr/bin/ld: InstrProfiling.c:(.text.__llvm_profile_reset_counters+0x5a): undefined reference to `memset'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingValue.c.o): in function `InstProfPopcountll':
   InstrProfilingValue.c:(.text.InstProfPopcountll+0x5): undefined reference to `__popcountdi2'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingValue.c.o): in function `InstrProfGetRangeRepValue':
   InstrProfilingValue.c:(.text.InstrProfGetRangeRepValue+0x14): undefined reference to `__popcountdi2'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingValue.c.o): in function `InstrProfIsSingleValRange':
   InstrProfilingValue.c:(.text.InstrProfIsSingleValRange+0xb): undefined reference to `__popcountdi2'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingValue.c.o): in function `lprofSetupValueProfiler':
   InstrProfilingValue.c:(.text.lprofSetupValueProfiler+0xc): undefined reference to `getenv'
   /usr/bin/ld: InstrProfilingValue.c:(.text.lprofSetupValueProfiler+0x4b): undefined reference to `strtol'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingValue.c.o): in function `__llvm_profile_instrument_target':
   InstrProfilingValue.c:(.text.__llvm_profile_instrument_target+0x17e): undefined reference to `calloc'
   /usr/bin/ld: InstrProfilingValue.c:(.text.__llvm_profile_instrument_target+0x1bc): undefined reference to `stderr'
   /usr/bin/ld: InstrProfilingValue.c:(.text.__llvm_profile_instrument_target+0x1ee): undefined reference to `calloc'
   /usr/bin/ld: InstrProfilingValue.c:(.text.__llvm_profile_instrument_target+0x13c): undefined reference to `free'
   /usr/bin/ld: InstrProfilingValue.c:(.text.__llvm_profile_instrument_target+0x1d8): undefined reference to `fprintf'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingValue.c.o): in function `__llvm_profile_instrument_target_value':
   InstrProfilingValue.c:(.text.__llvm_profile_instrument_target_value+0x178): undefined reference to `calloc'
   /usr/bin/ld: InstrProfilingValue.c:(.text.__llvm_profile_instrument_target_value+0x1fb): undefined reference to `stderr'
   /usr/bin/ld: InstrProfilingValue.c:(.text.__llvm_profile_instrument_target_value+0x22c): undefined reference to `calloc'
   /usr/bin/ld: InstrProfilingValue.c:(.text.__llvm_profile_instrument_target_value+0x13d): undefined reference to `free'
   /usr/bin/ld: InstrProfilingValue.c:(.text.__llvm_profile_instrument_target_value+0x21d): undefined reference to `fprintf'
   /usr/bin/ld: /opt/cross/clang-5886454669/lib/clang/20/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingValue.c.o): in function `__llvm_profile_instrument_memop':
   InstrProfilingValue.c:(.text.__llvm_profile_instrument_memop+0x1d): undefined reference to `__popcountdi2'
   clang: error: linker command failed with exit code 1 (use -v to see invocation)

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for GET_FREE_REGION
   Depends on [n]: SPARSEMEM [=n]
   Selected by [y]:
   - RESOURCE_KUNIT_TEST [=y] && RUNTIME_TESTING_MENU [=y] && KUNIT [=y]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-10-25  3:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-25  3:30 [uml:next 28/45] InstrProfilingUtil.c:(.text.lprofAtExit+0x1): undefined reference to `atexit' kernel test robot

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