All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: 2.6.20 doesn't compile with gcc-3.2.2
       [not found] <200702052104.36388.a1426z@gawab.com>
@ 2007-02-05 18:13 ` Kilau, Scott
  0 siblings, 0 replies; 10+ messages in thread
From: Kilau, Scott @ 2007-02-05 18:13 UTC (permalink / raw)
  To: Al Boldi; +Cc: linux-kernel

Hi Al,
 
> What was your binutils version (# ld -v) before and after the upgrade?

I was on the "last" version of binutils that Red Hat 9 had, which was:
binutils-2.13.90.0.18-9.i386 


I went up to the prebuilt version of binutils from Fedora Core 3:

[root@scottk7 tmp]# ld -v
GNU ld version 2.15.92.0.2 20040927
[root@scottk7 tmp]# rpm -qa|grep binutil
binutils-2.15.92.0.2-5.1


Scott


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

* Re: 2.6.20 doesn't compile with gcc-3.2.2
  2007-02-07 10:33 ` Andi Kleen
@ 2007-02-07 14:16   ` Al Boldi
  0 siblings, 0 replies; 10+ messages in thread
From: Al Boldi @ 2007-02-07 14:16 UTC (permalink / raw)
  To: Andi Kleen; +Cc: linux-kernel

Andi Kleen wrote:
> Al Boldi <a1426z@gawab.com> writes:
> > Doing the following results in an incomplete vmlinuz:
> >
> > # make mrproper
> > # make allnoconfig
> > # make bzlilo
> >
> > objcopy: arch/i386/boot/compressed/vmlinux.bin: File truncated
>
> This looks more like some local problem.

It's a binutils problem.

As Scott mentioned, upgrading from
	GNU ld version 2.13.90.0.18 20030121
to
	GNU ld version 2.15.92.0.2 20040927
solves it.

But it's still not clear what change in 2.6.20 required the upgrade.


Thanks!

--
Al


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

* Re: 2.6.20 doesn't compile with gcc-3.2.2
  2007-02-05 12:31 Al Boldi
  2007-02-05 13:24 ` Alistair John Strachan
@ 2007-02-07 10:33 ` Andi Kleen
  2007-02-07 14:16   ` Al Boldi
  1 sibling, 1 reply; 10+ messages in thread
From: Andi Kleen @ 2007-02-07 10:33 UTC (permalink / raw)
  To: Al Boldi; +Cc: linux-kernel

Al Boldi <a1426z@gawab.com> writes:

> Doing the following results in an incomplete vmlinuz:
> 
> # make mrproper
> # make allnoconfig
> # make bzlilo
> 
> objcopy: arch/i386/boot/compressed/vmlinux.bin: File truncated

This looks more like some local problem. Are you sure you didn't run out of
disk space or similar?  When you rerun make what error do you see?

> make[2]: *** [arch/i386/boot/compressed/vmlinux.bin] Error 1
> make[1]: *** [arch/i386/boot/compressed/vmlinux] Error 2
> make: *** [bzlilo] Error 2
> 
> # gcc -v
> Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/specs
> Configured with: ../configure --prefix=/usr --libdir=/usr/lib 
> --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info 
> --enable-shared --enable-threads=posix --disable-checking --enable-long-long 
> --enable-__cxa_atexit --enable-languages=c,c++,ada,f77,objc,java 
> --host=i586-mandrake-linux-gnu --with-system-zlib
> Thread model: posix
> gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
> 
> 
> Is gcc-4.0.1 now the minimum required to compile the kernel?

3.2 should work. Only 2.xx support was dropped.

-Andi

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

* Re: 2.6.20 doesn't compile with gcc-3.2.2
       [not found]   ` <200702052104.44580.a1426z@gawab.com>
  2007-02-05 18:15     ` Alistair John Strachan
@ 2007-02-05 18:26     ` Alistair John Strachan
  1 sibling, 0 replies; 10+ messages in thread
From: Alistair John Strachan @ 2007-02-05 18:26 UTC (permalink / raw)
  To: Al Boldi; +Cc: linux-kernel, Bodo Eggert

On Monday 05 February 2007 18:04, you wrote:
> Alistair John Strachan wrote:
> > On Monday 05 February 2007 13:48, Bodo Eggert wrote:
> > > Al Boldi <a1426z@gawab.com> wrote:
> > > > Doing the following results in an incomplete vmlinuz:
> > > >
> > > > # make bzlilo
> > > >
> > > > objcopy: arch/i386/boot/compressed/vmlinux.bin: File truncated
> > > > make[2]: *** [arch/i386/boot/compressed/vmlinux.bin] Error 1
> > > > make[1]: *** [arch/i386/boot/compressed/vmlinux] Error 2
> > > > make: *** [bzlilo] Error 2
> > > >
> > > > gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
> > >
> > > I just compiled using gcc 3.3.5 (debian stable). Please verify that
> > > your disk is not full and gcc is the cause. If it is, this patch should
> > > do the trick: :)
> >
> > Not so fast.. post your config? If you've got anything referring to
> > relocatable kernel support, try disabling it?
>
> No luck disabling relocatable kernel, but using a mem-split other than 3/1
> compiles fine.  There is a catch though, the kernel won't boot anymore.
>
> # ld -v
> GNU ld version 2.13.90.0.18 20030121
>
> Which binutils version is now the minimum required, and why is a binutils
> upgrade necessary?

Another obvious question is, did -rc1/-rc2 compile correctly? If you have the 
time, go through all the -rc's, that'll make a bisection easier (if you end 
up having to do one).

-- 
Cheers,
Alistair.

Final year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.

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

* Re: 2.6.20 doesn't compile with gcc-3.2.2
       [not found]   ` <200702052104.44580.a1426z@gawab.com>
@ 2007-02-05 18:15     ` Alistair John Strachan
  2007-02-05 18:26     ` Alistair John Strachan
  1 sibling, 0 replies; 10+ messages in thread
From: Alistair John Strachan @ 2007-02-05 18:15 UTC (permalink / raw)
  To: Al Boldi; +Cc: linux-kernel, Bodo Eggert

On Monday 05 February 2007 18:04, Al Boldi wrote:
> Alistair John Strachan wrote:
> > On Monday 05 February 2007 13:48, Bodo Eggert wrote:
> > > Al Boldi <a1426z@gawab.com> wrote:
> > > > Doing the following results in an incomplete vmlinuz:
> > > >
> > > > # make bzlilo
> > > >
> > > > objcopy: arch/i386/boot/compressed/vmlinux.bin: File truncated
> > > > make[2]: *** [arch/i386/boot/compressed/vmlinux.bin] Error 1
> > > > make[1]: *** [arch/i386/boot/compressed/vmlinux] Error 2
> > > > make: *** [bzlilo] Error 2
> > > >
> > > > gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
> > >
> > > I just compiled using gcc 3.3.5 (debian stable). Please verify that
> > > your disk is not full and gcc is the cause. If it is, this patch should
> > > do the trick: :)
> >
> > Not so fast.. post your config? If you've got anything referring to
> > relocatable kernel support, try disabling it?
>
> No luck disabling relocatable kernel, but using a mem-split other than 3/1
> compiles fine.  There is a catch though, the kernel won't boot anymore.
>
> # ld -v
> GNU ld version 2.13.90.0.18 20030121
>
> Which binutils version is now the minimum required, and why is a binutils
> upgrade necessary?

Documentation/Changes still says 2.12, and your binutils is closer to 2.14.
I can't think of a particular patch to point the finger at (looking now).

If you want an interim workaround, grab a newer binutils (probably 2.17), 
install it to a prefix like $HOME/binutils, then:

export PATH=$HOME/binutils/bin:$PATH

And confirm the resulting kernel builds and works.

-- 
Cheers,
Alistair.

Final year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.

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

* Re: 2.6.20 doesn't compile with gcc-3.2.2
@ 2007-02-05 15:49 Kilau, Scott
  0 siblings, 0 replies; 10+ messages in thread
From: Kilau, Scott @ 2007-02-05 15:49 UTC (permalink / raw)
  To: linux-kernel; +Cc: a1426z

Hi all,

> > objcopy: arch/i386/boot/compressed/vmlinux.bin: File truncated
> > make[2]: *** [arch/i386/boot/compressed/vmlinux.bin] Error 1
> > make[1]: *** [arch/i386/boot/compressed/vmlinux] Error 2
> > make: *** [bzlilo] Error 2

I got the same as well here on my box.

I am using Red Hat 9, with a lot of things upgraded.

I found other "hints" that this might be a binutils issue,
which obviously hasn't been touched in years on Red Hat 9,
so I picked up the binutils built for Fedora Core 3,
and installed them...

That solved the problem.

Scott Kilau




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

* Re: 2.6.20 doesn't compile with gcc-3.2.2
  2007-02-05 13:48 Bodo Eggert
@ 2007-02-05 15:07 ` Alistair John Strachan
       [not found]   ` <200702052104.44580.a1426z@gawab.com>
  0 siblings, 1 reply; 10+ messages in thread
From: Alistair John Strachan @ 2007-02-05 15:07 UTC (permalink / raw)
  To: Bodo Eggert; +Cc: linux-kernel, Al Boldi

On Monday 05 February 2007 13:48, Bodo Eggert wrote:
> Al Boldi <a1426z@gawab.com> wrote:
> > Doing the following results in an incomplete vmlinuz:
> >
> > # make bzlilo
> >
> > objcopy: arch/i386/boot/compressed/vmlinux.bin: File truncated
> > make[2]: *** [arch/i386/boot/compressed/vmlinux.bin] Error 1
> > make[1]: *** [arch/i386/boot/compressed/vmlinux] Error 2
> > make: *** [bzlilo] Error 2
> >
> > gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
>
> I just compiled using gcc 3.3.5 (debian stable). Please verify that your
> disk is not full and gcc is the cause. If it is, this patch should do the
> trick: :)

Not so fast.. post your config? If you've got anything referring to 
relocatable kernel support, try disabling it?

-- 
Cheers,
Alistair.

Final year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.

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

* 2.6.20 doesn't compile with gcc-3.2.2
@ 2007-02-05 13:48 Bodo Eggert
  2007-02-05 15:07 ` Alistair John Strachan
  0 siblings, 1 reply; 10+ messages in thread
From: Bodo Eggert @ 2007-02-05 13:48 UTC (permalink / raw)
  To: linux-kernel, Al Boldi

Al Boldi <a1426z@gawab.com> wrote:

> Doing the following results in an incomplete vmlinuz:

> # make bzlilo
> 
> objcopy: arch/i386/boot/compressed/vmlinux.bin: File truncated
> make[2]: *** [arch/i386/boot/compressed/vmlinux.bin] Error 1
> make[1]: *** [arch/i386/boot/compressed/vmlinux] Error 2
> make: *** [bzlilo] Error 2

> gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)

I just compiled using gcc 3.3.5 (debian stable). Please verify that your 
disk is not full and gcc is the cause. If it is, this patch should do the 
trick: :)

--- ./Documentation/Changes~	2007-02-05 15:10:04.000000000 +0100
+++ ./Documentation/Changes	2007-02-05 15:10:04.000000000 +0100
@@ -29,5 +29,5 @@ hardware, for example, you probably need
 isdn4k-utils.
 
-o  Gnu C                  3.2                     # gcc --version
+o  Gnu C                  3.3                     # gcc --version
 o  Gnu make               3.79.1                  # make --version
 o  binutils               2.12                    # ld -v

-- 
Anything you do can get you shot, including nothing. 

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

* Re: 2.6.20 doesn't compile with gcc-3.2.2
  2007-02-05 12:31 Al Boldi
@ 2007-02-05 13:24 ` Alistair John Strachan
  2007-02-07 10:33 ` Andi Kleen
  1 sibling, 0 replies; 10+ messages in thread
From: Alistair John Strachan @ 2007-02-05 13:24 UTC (permalink / raw)
  To: Al Boldi; +Cc: linux-kernel

On Monday 05 February 2007 12:31, you wrote:
> Doing the following results in an incomplete vmlinuz:
>
> # make mrproper
> # make allnoconfig
> # make bzlilo
>
> objcopy: arch/i386/boot/compressed/vmlinux.bin: File truncated
> make[2]: *** [arch/i386/boot/compressed/vmlinux.bin] Error 1
> make[1]: *** [arch/i386/boot/compressed/vmlinux] Error 2
> make: *** [bzlilo] Error 2
>
> # gcc -v
> Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/specs
> Configured with: ../configure --prefix=/usr --libdir=/usr/lib
> --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info
> --enable-shared --enable-threads=posix --disable-checking
> --enable-long-long --enable-__cxa_atexit
> --enable-languages=c,c++,ada,f77,objc,java
> --host=i586-mandrake-linux-gnu --with-system-zlib
> Thread model: posix
> gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
>
>
> Is gcc-4.0.1 now the minimum required to compile the kernel?

A patch went in to remove support for GCC 3.1, but as far as I know, 3.2 
should be a supported compiler.

At any rate, this might be a binutils issue. What version of binutils are you 
using?

-- 
Cheers,
Alistair.

Final year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.

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

* 2.6.20 doesn't compile with gcc-3.2.2
@ 2007-02-05 12:31 Al Boldi
  2007-02-05 13:24 ` Alistair John Strachan
  2007-02-07 10:33 ` Andi Kleen
  0 siblings, 2 replies; 10+ messages in thread
From: Al Boldi @ 2007-02-05 12:31 UTC (permalink / raw)
  To: linux-kernel


Doing the following results in an incomplete vmlinuz:

# make mrproper
# make allnoconfig
# make bzlilo

objcopy: arch/i386/boot/compressed/vmlinux.bin: File truncated
make[2]: *** [arch/i386/boot/compressed/vmlinux.bin] Error 1
make[1]: *** [arch/i386/boot/compressed/vmlinux] Error 2
make: *** [bzlilo] Error 2

# gcc -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib 
--with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info 
--enable-shared --enable-threads=posix --disable-checking --enable-long-long 
--enable-__cxa_atexit --enable-languages=c,c++,ada,f77,objc,java 
--host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)


Is gcc-4.0.1 now the minimum required to compile the kernel?


Thanks!

--
Al


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

end of thread, other threads:[~2007-02-07 14:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200702052104.36388.a1426z@gawab.com>
2007-02-05 18:13 ` 2.6.20 doesn't compile with gcc-3.2.2 Kilau, Scott
2007-02-05 15:49 Kilau, Scott
  -- strict thread matches above, loose matches on Subject: below --
2007-02-05 13:48 Bodo Eggert
2007-02-05 15:07 ` Alistair John Strachan
     [not found]   ` <200702052104.44580.a1426z@gawab.com>
2007-02-05 18:15     ` Alistair John Strachan
2007-02-05 18:26     ` Alistair John Strachan
2007-02-05 12:31 Al Boldi
2007-02-05 13:24 ` Alistair John Strachan
2007-02-07 10:33 ` Andi Kleen
2007-02-07 14:16   ` Al Boldi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.