Re: Linux 2.6.15-rc3 - gcc-4.0.2 compile error

From: Byron Stanoszek (gandalf_at_winds.org)
Date: 11/29/05

  • Next message: Andi Kleen: "Re: [Perfctr-devel] Re: Enabling RDPMC in user space by default"
    Date:	Tue, 29 Nov 2005 13:37:25 -0500 (EST)
    To: linux-kernel@vger.kernel.org
    
    
    

    Just reporting a compile error with gcc-4.0.2 on i386. Below is the error. My
    .config is attached. The error only appears at the very end of the vmlinux
    linking stage.

    I'm using binutils-2.16.91.0.3 20050821.

    The error goes away when using gcc-3.4.3. I realize this is probably more a gcc
    bug than a kernel bug, but I figured I'd let kernel people know anyway.

    . . .
       AS arch/i386/lib/putuser.o
       CC arch/i386/lib/strstr.o
       CC arch/i386/lib/usercopy.o
       AR arch/i386/lib/lib.a
       GEN .version
       CHK include/linux/compile.h
       UPD include/linux/compile.h
       CC init/version.o
       LD init/built-in.o
       LD vmlinux
    sound/built-in.o:(.rodata+0x54e4): undefined reference to `__compound_literal.84'
    sound/built-in.o:(.rodata+0x54f4): undefined reference to `__compound_literal.87'
    sound/built-in.o:(.rodata+0x5504): undefined reference to `__compound_literal.90'
    sound/built-in.o:(.rodata+0x5514): undefined reference to `__compound_literal.93'
    sound/built-in.o:(.rodata+0x5524): undefined reference to `__compound_literal.96'
    sound/built-in.o:(.rodata+0x5534): undefined reference to `__compound_literal.99'
    sound/built-in.o:(.rodata+0x5544): undefined reference to `__compound_literal.102'
    sound/built-in.o:(.rodata+0x5554): undefined reference to `__compound_literal.105'
    sound/built-in.o:(.rodata+0x5564): undefined reference to `__compound_literal.108'
    sound/built-in.o:(.rodata+0x5574): undefined reference to `__compound_literal.113'
    sound/built-in.o:(.rodata+0x5584): undefined reference to `__compound_literal.115'
    sound/built-in.o:(.rodata+0x5594): undefined reference to `__compound_literal.117'
    sound/built-in.o:(.rodata+0x55a4): undefined reference to `__compound_literal.119'
    sound/built-in.o:(.rodata+0x55b4): undefined reference to `__compound_literal.122'
    sound/built-in.o:(.rodata+0x55c4): undefined reference to `__compound_literal.125'
    sound/built-in.o:(.rodata+0x55d4): undefined reference to `__compound_literal.127'
    sound/built-in.o:(.rodata+0x55e4): undefined reference to `__compound_literal.129'
    sound/built-in.o:(.rodata+0x55f4): undefined reference to `__compound_literal.131'
    sound/built-in.o:(.rodata+0x5604): undefined reference to `__compound_literal.133'
    sound/built-in.o:(.rodata+0x5614): undefined reference to `__compound_literal.135'
    sound/built-in.o:(.rodata+0x5624): undefined reference to `__compound_literal.137'
    sound/built-in.o:(.rodata+0x5634): undefined reference to `__compound_literal.139'
    sound/built-in.o:(.rodata+0x5644): undefined reference to `__compound_literal.141'
    sound/built-in.o:(.rodata+0x5654): undefined reference to `__compound_literal.143'
    sound/built-in.o:(.rodata+0x5664): undefined reference to `__compound_literal.145'
    sound/built-in.o:(.rodata+0x5674): undefined reference to `__compound_literal.147'
    sound/built-in.o:(.rodata+0x5684): undefined reference to `__compound_literal.149'
    sound/built-in.o:(.rodata+0x5694): undefined reference to `__compound_literal.151'
    sound/built-in.o:(.rodata+0x56a4): undefined reference to `__compound_literal.154'
    sound/built-in.o:(.rodata+0x56b4): undefined reference to `__compound_literal.156'
    sound/built-in.o:(.rodata+0x56c4): undefined reference to `__compound_literal.158'
    sound/built-in.o:(.rodata+0x56d4): undefined reference to `__compound_literal.160'
    sound/built-in.o:(.rodata+0x56f4): undefined reference to `__compound_literal.163'
    sound/built-in.o:(.rodata+0x5704): undefined reference to `__compound_literal.165'
    sound/built-in.o:(.rodata+0x5714): undefined reference to `__compound_literal.167'
    sound/built-in.o:(.rodata+0x5724): undefined reference to `__compound_literal.169'
    sound/built-in.o:(.rodata+0x5734): undefined reference to `__compound_literal.171'
    sound/built-in.o:(.rodata+0x5744): undefined reference to `__compound_literal.173'
    sound/built-in.o:(.rodata+0x5754): undefined reference to `__compound_literal.175'
    sound/built-in.o:(.rodata+0x5764): undefined reference to `__compound_literal.177'
    sound/built-in.o:(.rodata+0x5774): undefined reference to `__compound_literal.179'
    sound/built-in.o:(.rodata+0x5784): undefined reference to `__compound_literal.181'
    sound/built-in.o:(.rodata+0x5794): undefined reference to `__compound_literal.183'
    sound/built-in.o:(.rodata+0x57a4): undefined reference to `__compound_literal.185'
    sound/built-in.o:(.rodata+0x57b4): undefined reference to `__compound_literal.187'
    sound/built-in.o:(.rodata+0x57c4): undefined reference to `__compound_literal.189'
    sound/built-in.o:(.rodata+0x57d4): undefined reference to `__compound_literal.192'
    sound/built-in.o:(.rodata+0x57e4): undefined reference to `__compound_literal.194'
    sound/built-in.o:(.rodata+0x57f4): undefined reference to `__compound_literal.196'
    sound/built-in.o:(.rodata+0x5804): undefined reference to `__compound_literal.199'
    sound/built-in.o:(.rodata+0x5814): undefined reference to `__compound_literal.201'
    sound/built-in.o:(.rodata+0x5834): undefined reference to `__compound_literal.204'
    sound/built-in.o:(.rodata+0x5844): undefined reference to `__compound_literal.206'
    sound/built-in.o:(.rodata+0x5854): undefined reference to `__compound_literal.208'
    make: *** [vmlinux] Error 1

    --
    Byron Stanoszek                         Ph: (330) 644-3059
    Systems Programmer                      Fax: (330) 644-8110
    Commercial Timesharing Inc.             Email: byron@comtime.com
    
    

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/



  • Next message: Andi Kleen: "Re: [Perfctr-devel] Re: Enabling RDPMC in user space by default"

    Relevant Pages

    • [patch 04/29] DEBUG_FS must depend on SYSFS
      ... LD vmlinux ... inode.c:: undefined reference to `kernel_subsys' ... config DEBUG_FS ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: ipw2100: firmware problem
      ... you could put .config in it too. ... > Frankly, a filesystem that: ... > - can be somehow linked with vmlinux and not separate like an initrd ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH 2.6] Take care of large inlines in include/linux/netdevice.h
      ... With my usual .config: ... # size vmlinux.pre2 vmlinux ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
      (Linux-Kernel)
    • Re: ipw2100: firmware problem
      ... you could put .config in it too. ... Frankly, a filesystem that: ... can be somehow linked with vmlinux and not separate like an initrd ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • 2.6.12-rc6-mm1: kernel BUG at fs/inode.c:1106
      ... trigged when umounting an NTFS partition. ... I can provide the .config ... kernel BUG at fs/inode.c:1106! ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)