Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__tsan_init not found error. #190

Closed
tthtlc opened this issue Dec 5, 2016 · 2 comments
Closed

__tsan_init not found error. #190

tthtlc opened this issue Dec 5, 2016 · 2 comments
Labels
KTSAN KTSAN-related issues

Comments

@tthtlc
Copy link

tthtlc commented Dec 5, 2016

Got the following problem:

  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
kernel/Makefile:143: X.509 certificate list changed to "signing_key.x509" from "./signing_key.x509"
  CERTS   kernel/x509_certificate_list
  - Including cert signing_key.x509
  AS      kernel/system_certificates.o
  LD      kernel/built-in.o
  CHK     include/generated/uapi/linux/version.h
  LINK    vmlinux
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: vmlinux.o(.text+0x32ee86): Section mismatch in reference from the function kt_thr_pool_init() to the function .init.text:kt_cache_init()
The function kt_thr_pool_init() references
the function __init kt_cache_init().
This is often because kt_thr_pool_init lacks a __init 
annotation or the annotation of kt_cache_init is wrong.

  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
arch/x86/kernel/head64.o: In function `_GLOBAL__sub_I_00099_0_early_pmd_flags':
head64.c:(.text.startup+0x5): undefined reference to `__tsan_init'
arch/x86/kernel/head.o: In function `_GLOBAL__sub_I_00099_0_reserve_ebda_region':
head.c:(.text.startup+0x5): undefined reference to `__tsan_init'
init/built-in.o: In function `_GLOBAL__sub_I_00099_0___ksymtab_system_state':
main.c:(.text.startup+0x5): undefined reference to `__tsan_init'
init/built-in.o: In function `_GLOBAL__sub_I_00099_0_init_uts_ns':
version.c:(.text.startup+0x15): undefined reference to `__tsan_init'
init/built-in.o: In function `_GLOBAL__sub_I_00099_0_root_mountflags':
do_mounts.c:(.text.startup+0x25): undefined reference to `__tsan_init'
init/built-in.o:do_mounts_initrd.c:(.text.startup+0x35): more undefined references to `__tsan_init' follow
make: *** [vmlinux] Error 1

please help.

@xairy
Copy link
Collaborator

xairy commented Dec 5, 2016

Hi,

You have to apply this patch to GCC, as described here.

@xairy
Copy link
Collaborator

xairy commented Dec 5, 2016

Let me know if it doesn't help, closing the issue for now.

@xairy xairy closed this as completed Dec 5, 2016
@xairy xairy transferred this issue from google/ktsan Dec 23, 2021
@xairy xairy added the KTSAN KTSAN-related issues label Dec 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
KTSAN KTSAN-related issues
Projects
None yet
Development

No branches or pull requests

2 participants