[llvmlinux] [arch/x86/kernel/head64.c] In function `early_make_pgtable': undefined reference to `mcount'

Jan-Simon Möller jsmoeller at linuxfoundation.org
Tue Jul 9 21:22:50 UTC 2013


Good, now compare the provided config with yours and find the option(s) which 
differ and provoke this. 
Then compare a gcc build with a clang build of that same file.

Best,
JS
-- 

Sincerely yours,

Jan-Simon Möller

jsmoeller at linuxfoundation.org
On Tuesday 09 July 2013 23:15:20 Sedat Dilek wrote:
> From my build-log:
> [...]
>   LINK    vmlinux
>   LD      vmlinux.o
>   MODPOST vmlinux.o
>   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 `early_make_pgtable':
> arch/x86/kernel/head64.c:(.init.text+0x2a): undefined reference to `mcount'
> arch/x86/kernel/head64.c:(.init.text+0x3e): undefined reference to `mcount'
> arch/x86/kernel/head64.c:(.init.text+0x4d): undefined reference to `mcount'
> arch/x86/kernel/head64.c:(.init.text+0xb1): undefined reference to `mcount'
> arch/x86/kernel/head64.c:(.init.text+0xd4): undefined reference to `mcount'
> arch/x86/kernel/head64.o:arch/x86/kernel/head64.c:(.init.text+0x106):
> more undefined references to `mcount' follow
> make[2]: *** [vmlinux] Error 1
> make[1]: *** [deb-pkg] Error 2
> 
> - Sedat -


More information about the LLVMLinux mailing list