Re: [PATCH] kbuild: Fix computing srcversion for modules

From: Alexander Beregalov
Date: Tue Mar 15 2011 - 01:26:27 EST


On 15 March 2011 08:04, Alexander Beregalov <a.beregalov@xxxxxxxxx> wrote:
> On 12 March 2011 02:06, Henrik Rydberg <rydberg@xxxxxxxxxxx> wrote:
>> On Fri, Mar 11, 2011 at 10:34:47PM +0100, Michal Marek wrote:
>>> Recent change to fixdep:
>>>
>>> Â Â commit b7bd182176960fdd139486cadb9962b39f8a2b50
>>> Â Â Author: Michal Marek <mmarek@xxxxxxx>
>>> Â Â Date: Â Thu Feb 17 15:13:54 2011 +0100
>>>
>>> Â Â fixdep: Do not record dependency on the source file itself
>>>
>>> changed the format of the *.cmd files without realizing that it is also
>>> used by modpost. Put the path to the source file to the file back, in a
>>> special variable, so that modpost sees all source files when calculating
>>> srcversion for modules.
>>>
>
> Hi Michal,
>
> There is something wrong with the patch,
> I can't compile 2.6.38 neither linux-next on sparc64:
>
> $ make CROSS_COMPILE=sparc64-unknown-linux-gnu-
> ÂCHK Â Â include/linux/version.h
> ÂCHK Â Â include/generated/utsrelease.h
> ÂUPD Â Â include/generated/utsrelease.h
> ÂCC Â Â Âkernel/bounds.s
> ÂGEN Â Â include/generated/bounds.h
> ÂCC Â Â Âarch/sparc/kernel/asm-offsets.s
> ÂGEN Â Â include/generated/asm-offsets.h
> ÂCALL Â Âscripts/checksyscalls.sh
> ÂCC Â Â Âscripts/mod/empty.o
> ÂMKELF Â scripts/mod/elfconfig.h
> ÂHOSTCC Âscripts/mod/file2alias.o
> ÂHOSTCC Âscripts/mod/modpost.o
> ÂHOSTCC Âscripts/mod/sumversion.o
> ÂHOSTLD Âscripts/mod/modpost
> /usr/lib/gcc/sparc-unknown-linux-gnu/4.5.2/../../../../sparc-unknown-linux-gnu/bin/ld:
> scripts/mod/sumversion.o: Relocations in generic ELF (EM: 3)
> scripts/mod/sumversion.o: could not read symbols: File in wrong format
> collect2: ld returned 1 exit status
>
> $ file scripts/mod/sumversion.o
> scripts/mod/sumversion.o: ELF 32-bit LSB relocatable, Intel 80386,
> version 1 (SYSV), not stripped
>
> Why 386?
>
> gcc both sparc and sparc64 are 4.5.2, ld/binutils is 2.21
>

Sorry for the noise, it's my fault.

I use distcc for distributing sparc64-unknown-linux-gnu-gcc calls to x86 host.
I should not distribute plain 'gcc' calls.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/