2.6.20 doesn't compile with gcc-3.2.2
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
Quoted 23 lines · you
Doing the following results in an incomplete vmlinuz:
# make mrproper # make allnoconfig # make bzliloobjcopy:
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)
Quoted 1 line
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?
Signature · 5 lines
Cheers, Alistair. Final year Computer Science undergraduate. 1F2 55 South Clerk Street, Edinburgh, UK.
Quoted 7 lines · Al Boldi
Doing the following results in an incomplete vmlinuz:
# make mrproper # make allnoconfig # make bzliloobjcopy:
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?
Quoted 15 lines
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)
Quoted 1 line
Is gcc-4.0.1 now the minimum required to compile the kernel?
3.2 should work. Only 2.xx support was dropped.
-Andi
Quoted 10 lines · Andi Kleen
Quoted 7 lines · Al Boldi
Doing the following results in an incomplete vmlinuz:
# make mrproper # make allnoconfig # make bzliloobjcopy:
arch/i386/boot/compressed/vmlinux.bin: File truncatedThis 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