On Mon, 2013-10-28 at 17:28 -0700,
cha...@gmail.com wrote:
> After some weeks of hiatus (I had my Minnowboard on RMA), I got back
> to work with it. I was trying to build a third party module on the
> Minnowboard, but I got the following errors:
>
> /bin/sh: /usr/src/kernel/scripts/recordmcount: No such file or
> directory
>
> solved it with "make recordmcount"
>
> /bin/sh: scripts/basic/fixdep: No such file or directory
>
> solved it with "make fixdep"
>
> /bin/sh: scripts/mod/modpost: No such file or directory
>
> I could not compile this. I got "modpost.h:12:23: fatal error:
> elfconfig.h: No such file or directory".
>
> If I try to "make modules" i get "*** No rule to make target
> `arch/x86/tools/relocs.c', needed by `arch/x86/tools/relocs'. Stop."
>
> As @Darren Hart suggested, I filled a report on Bugzilla for this
> issue. For the record, there was a related report "Building a kernel
> module on target image fails" that was closed as "INVALID".
Yes, but that was a different bug. The thing you are hitting is a
complication associated with cross compiling where things like
recordmcount are built for the build host, they must be rebuilt on the
target.
> I was wondering if there is a source from I can copy the missing files
> or other workaround that let me continue with my work, meanwhile the
> bug report is revised.
I was thinking "make scripts" solved all the issues, but perhaps the
relocs issue remains. Hrm. I have built a module on the minnow, so I
need to recall the steps. Unfortunately it is not documented in the
kernel-dev manual. Will look into it, but poke again in a week if you
haven't heard back. Traveling at the moment.
--
Darren