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

Marcelo Sousa marceloabsousa at gmail.com
Wed Jul 10 10:12:08 UTC 2013


mcount is related to ftrace, so perhaps you should enable that?


On Tue, Jul 9, 2013 at 11:19 PM, Sedat Dilek <sedat.dilek at gmail.com> wrote:

> On Tue, Jul 9, 2013 at 11:43 PM, Sedat Dilek <sedat.dilek at gmail.com>
> wrote:
> > On Tue, Jul 9, 2013 at 11:22 PM, Jan-Simon Möller
> > <jsmoeller at linuxfoundation.org> wrote:
> >> Good, now compare the provided config with yours and find the option(s)
> which
> >> differ and provoke this.
> >
> > That's not a good advice - as both differ a lot.
> > A list of Kconfig-options which are known to be problematic (BROKEN)
> > would be helpful.
> >
> > I think I take llvmlinux's kernel-config with CONFIG_INTEL_MEI*
> > enabled and see if this boots.
> >
>
> NOPE, that did not work.
> Enough testing for today.
>
> - Sedat -
>
> >> Then compare a gcc build with a clang build of that same file.
> >>
> >
> > Did you look into the disassembled objdump?
> > Or any other advice how to see why mcount is not referenced?
> >
> > - Sedat -
> >
> >> 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 -
> _______________________________________________
> LLVMLinux mailing list
> LLVMLinux at lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20130710/6fadcd37/attachment.html>


More information about the LLVMLinux mailing list