linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* link failure: file truncated
@ 2008-07-24 23:07 Jon Tollefson
  2008-07-24 23:17 ` Chuck Meade
  0 siblings, 1 reply; 3+ messages in thread
From: Jon Tollefson @ 2008-07-24 23:07 UTC (permalink / raw)
  To: linuxppc-dev

Just tried to build the latest version from Linus' tree and I am getting 
a link error.

building with the pseries_defconfig

...
  LD      drivers/built-in.o
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: modpost: Found 6 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
ld: final link failed: File truncated
make: *** [.tmp_vmlinux1] Error 1


~/src/linus/linux-2.6>cat /etc/SuSE-release 
SUSE LINUX Enterprise Server 9 (ppc)
VERSION = 9
PATCHLEVEL = 3
~/src/linus/linux-2.6>ld --version
GNU ld version 2.15.90.0.1.1 20040303 (SuSE Linux)
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
~/src/linus/linux-2.6>gcc --version
gcc (GCC) 3.3.3 (SuSE Linux)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

~/src/linus/linux-2.6>cat /etc/SuSE-release 
SUSE LINUX Enterprise Server 9 (ppc)
VERSION = 9
PATCHLEVEL = 3



Jon

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: link failure: file truncated
  2008-07-24 23:07 link failure: file truncated Jon Tollefson
@ 2008-07-24 23:17 ` Chuck Meade
  2008-07-24 23:51   ` Segher Boessenkool
  0 siblings, 1 reply; 3+ messages in thread
From: Chuck Meade @ 2008-07-24 23:17 UTC (permalink / raw)
  To: kniht; +Cc: linuxppc-dev

Jon Tollefson wrote:
> Just tried to build the latest version from Linus' tree and I am getting
> a link error.
> 
> building with the pseries_defconfig
> 
> ...
>  LD      drivers/built-in.o
>  LD      vmlinux.o
>  MODPOST vmlinux.o
> WARNING: modpost: Found 6 section mismatch(es).
> To see full details build your kernel with:
> 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
>  GEN     .version
>  CHK     include/linux/compile.h
>  UPD     include/linux/compile.h
>  CC      init/version.o
>  LD      init/built-in.o
>  LD      .tmp_vmlinux1
> ld: final link failed: File truncated
> make: *** [.tmp_vmlinux1] Error 1
> 
> 
> ~/src/linus/linux-2.6>cat /etc/SuSE-release SUSE LINUX Enterprise Server
> 9 (ppc)
> VERSION = 9
> PATCHLEVEL = 3
> ~/src/linus/linux-2.6>ld --version
> GNU ld version 2.15.90.0.1.1 20040303 (SuSE Linux)
> Copyright 2002 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License.  This program has absolutely no warranty.
> ~/src/linus/linux-2.6>gcc --version
> gcc (GCC) 3.3.3 (SuSE Linux)
> Copyright (C) 2003 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> ~/src/linus/linux-2.6>cat /etc/SuSE-release SUSE LINUX Enterprise Server
> 9 (ppc)
> VERSION = 9
> PATCHLEVEL = 3
> 
> 
> 
> Jon

As you may have seen from Segher's email from about 40 minutes ago, I can
confirm that I am getting the same error at the same point in the build.
I am going to reply to his message in a few minutes with more details he
requested.  Like you, I also have a 2.15-era ld version.

I can tell you that if you revert the patch that Segher sent on July 22
for file arch/powerpc/kernel/vmlinux.lds.S, the link should succeed (mine
does).

Regards,
Chuck

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: link failure: file truncated
  2008-07-24 23:17 ` Chuck Meade
@ 2008-07-24 23:51   ` Segher Boessenkool
  0 siblings, 0 replies; 3+ messages in thread
From: Segher Boessenkool @ 2008-07-24 23:51 UTC (permalink / raw)
  To: Chuck Meade; +Cc: linuxppc-dev, kniht

>> Just tried to build the latest version from Linus' tree and I am 
>> getting
>> a link error.

I can reproduce this now, with 3.4.6 + 2.15, on powerpc64 defconfig
(with the drivers that don't compile with 3.4.6 disabled).

I have a fix for the warning with 2.17, but that's just a warning,
so I'll wait sending it until we know what causes the error.

Stay tuned :-)


Segher

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-07-25  0:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-24 23:07 link failure: file truncated Jon Tollefson
2008-07-24 23:17 ` Chuck Meade
2008-07-24 23:51   ` Segher Boessenkool

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).