Bug 14153 - 2.6.31 does not build with gcc 3.4.6
Summary: 2.6.31 does not build with gcc 3.4.6
Status: CLOSED WILL_NOT_FIX
Alias: None
Product: Other
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 high
Assignee: other_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-10 14:03 UTC by Kaj-Michael Lang
Modified: 2012-06-13 16:54 UTC (History)
5 users (show)

See Also:
Kernel Version: 2.6.31
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
Used config (80.91 KB, text/plain)
2009-09-10 14:04 UTC, Kaj-Michael Lang
Details

Description Kaj-Michael Lang 2009-09-10 14:03:17 UTC
Building 2.6.31 fails with:

  LD      .tmp_vmlinux1
drivers/built-in.o: In function `con_init':vt.c:(.init.text+0x6066): undefined reference to `.L1597'
make[2]: *** [.tmp_vmlinux1] Error 1
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2

Tools:
gcc version 3.4.6
GNU ld version 2.16.91.0.7 20060317

Builds ok with gcc 4.2.4
2.6.30(.x) builds fine with old gcc.
Comment 1 Kaj-Michael Lang 2009-09-10 14:04:53 UTC
Created attachment 23056 [details]
Used config
Comment 2 david.hinkes 2009-09-21 21:33:05 UTC
I concur, I have the same problem.  Mine can't find the reference to .L1485.

I'm trying to retrofit a 2.6.31 kernel onto RHEL 4.
Comment 3 Marc Bejarano 2009-10-06 18:32:22 UTC
still broken w/ 2.6.31.2
===
[beej@dell linux-2.6.31.2]$ make
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf -s arch/x86/Kconfig
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  CHK     include/linux/utsrelease.h
  UPD     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-x86
  CC      kernel/bounds.s
  GEN     include/linux/bounds.h
  CC      arch/x86/kernel/asm-offsets.s
  GEN     include/asm/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/selinux/mdp/mdp
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  CC      init/main.o
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  CC      init/do_mounts.o
  CC      init/do_mounts_rd.o
  CC      init/do_mounts_initrd.o
  CC      init/do_mounts_md.o
  LD      init/mounts.o
  CC      init/initramfs.o
  CC      init/calibrate.o
  LD      init/built-in.o
  HOSTCC  usr/gen_init_cpio
  GEN     usr/initramfs_data.cpio
  AS      usr/initramfs_data.o
  LD      usr/built-in.o
  LD      arch/x86/crypto/built-in.o
  AS      arch/x86/ia32/ia32entry.o
  CC      arch/x86/ia32/sys_ia32.o

<snip>

  AS      arch/x86/lib/memcpy_64.o
  CC      arch/x86/lib/memmove_64.o
  AS      arch/x86/lib/memset_64.o
  AS      arch/x86/lib/putuser.o
  AS      arch/x86/lib/rwlock_64.o
  AS      arch/x86/lib/thunk_64.o
  CC      arch/x86/lib/usercopy_64.o
  AR      arch/x86/lib/lib.a
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: modpost: Found 4 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
drivers/built-in.o(.init.text+0x5ebf): In function `con_init':
: undefined reference to `.L895'
make: *** [.tmp_vmlinux1] Error 1
[beej@dell linux-2.6.31.2]$ more /etc/redhat-release 
CentOS release 4.3 (Final)
[beej@dell linux-2.6.31.2]$ gcc --version
gcc (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2)
Copyright (C) 2004 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.
===
Comment 4 Greg Kroah-Hartman 2009-10-06 19:07:03 UTC
Sounds like a compiler issue, why not file this bug with Red Hat?

Note You need to log in before you can comment on or make changes to this bug.