Re: 2.6.8-rc2-mm1: NTFS compile error with gcc 2.95

From: Jan-Benedict Glaw (jbglaw_at_lug-owl.de)
Date: 07/29/04

  • Next message: Adrian Bunk: "[2.6 patch] istallion: remove inlines (fwd)"
    Date:	Thu, 29 Jul 2004 17:54:11 +0200
    To: Adrian Bunk <bunk@fs.tum.de>
    
    
    

    On Thu, 2004-07-29 16:41:49 +0200, Adrian Bunk <bunk@fs.tum.de>
    wrote in message <20040729144149.GC2349@fs.tum.de>:
    > On Wed, Jul 28, 2004 at 02:04:44AM -0700, Andrew Morton wrote:
    > >...
    > > Changes since 2.6.8-rc1-mm1:
    > >...
    > > bk-ntfs.patch
    > >...
    >
    > This causes the following compile error when using gcc 2.95:
    >
    > <-- snip -->
    >
    > ...
    > LD .tmp_vmlinux1
    > fs/built-in.o(.text+0x14425f): In function `ntfs_find_vcn':
    > : undefined reference to `__cmpdi2'
    > fs/built-in.o(.text+0x144272): In function `ntfs_find_vcn':
    > : undefined reference to `__cmpdi2'
    > make: *** [.tmp_vmlinux1] Error 1
    >
    > <-- snip -->

    GCC wanted to make a compare on a 8byte integer (so probably long long),
    but decided there isn't an appropriate insn on that hardware platform.
    So instead of emitting assembler, it generated a function call that
    would have resulted in a call to libgcc. However, the Linux kernel asks
    to *not* link that lib (eg. think about a gcc compiled for i686 (so is
    libgcc) while compiling for i386).

    With the that constraint in mind, there isn't really a "nice" solution.
    Maybe Linux should provide a function of that name (and several others,
    too). OTOH, the H8/300 port explicitely links in libgcc, but that's only
    an option if even the oldest processor supports *all* known CPU
    instructions.

    MfG, JBG

    -- 
    Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481             _ O _
    "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
     fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!   O O O
    ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
    
    

    -
    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: Adrian Bunk: "[2.6 patch] istallion: remove inlines (fwd)"

    Relevant Pages

    • 2.6: SCSI advansys.c doesnt compilefor !PCI
      ... I got the following compile error in 2.6.6-mm1 (but it doesn't seem to ... There had been need of rain for many days. ... "Only a promise," Lao Er said. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] Fix allnoconfig build with gcc4
      ... > simply removing the offending line is. ... this would cause a compile error if CONFIG_NET and CONFIG_SYSCTL is ... So the correct solution is apparently either one of ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • 2.6.4-mjb1: ivtv-driver compile error
      ... ported to 2.6 by Steven Fuerst ... I got the following compile error, it might be caused by the fact that ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [patch] 2.6.0-test11-mm1: isdn/eicon/eicon_mod.c doesnt compile
      ... I got the following compile error in 2.6.0-test11-mm1: ... There had been need of rain for many days. ... Pearl S. Buck - Dragon Seed ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.9-rc3-mm2: compile error in irq.c
      ... > posting the compile error here: ... > undeclared identifier is reported only once ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)