Compile error kernel 2.4.20-rc1

Compile error kernel 2.4.20-rc1

Post by Arnd Bergman » Sun, 04 May 2003 11:50:07




> Just tried to compile kernel 2.4.21-rc1 and I get the compile error as
> per attached file 'compile_error.txt'. The config file used is also
> attached. This happened while doing 'make rpm'. This is being compiled
> on SuSE Pro 8.2 which is using GCC 3.3.

> I'll happily try out patches.

Try this one. Note that you can use 'make -k vmlinux modules' to find
all the broken files in one run.

        Arnd <><

--- ./drivers/atm/ambassador.c.bak      2003-05-03 11:31:39.000000000 +0200

 /********** microcode **********/

 #ifdef AMB_NEW_MICROCODE
-#define UCODE(x) UCODE1(atmsar12.,x)
+#define UCODE(x) UCODE1(atmsar12,x)
 #else
-#define UCODE(x) UCODE1(atmsar11.,x)
+#define UCODE(x) UCODE1(atmsar11,x)
 #endif
 #define UCODE2(x) #x
-#define UCODE1(x,y) UCODE2(x ## y)
+#define UCODE1(x,y) UCODE2(x.y)

 static u32 __initdata ucode_start =
 #include UCODE(start)
--- ./drivers/net/tokenring/olympic.c.bak       2003-05-03 11:22:36.000000000 +0200

        printk(" stat_ring[7]: %p\n", &(olympic_priv->olympic_rx_status_ring[7])  );

        printk("RXCDA: %x, rx_ring[0]: %p\n",readl(olympic_mmio+RXCDA),&olympic_priv->olympic_rx_ring[0]);
-       printk("Rx_ring_dma_addr = %08x, rx_status_dma_addr =
-%08x\n",olympic_priv->rx_ring_dma_addr,olympic_priv->rx_status_ring_dma_addr) ;
+       printk("Rx_ring_dma_addr = %08x, rx_status_dma_addr = %08x\n",olympic_priv->rx_ring_dma_addr,olympic_priv->rx_status_ring_dma_addr) ;
 #endif

        writew((((readw(olympic_mmio+RXENQ)) & 0x8000) ^ 0x8000) | i,olympic_mmio+RXENQ);
diff -ur kernel-source-2.4.20-hammer-orig/drivers/net/irda/ma600.c kernel-source-2.4.20-hammer/drivers/net/irda/ma600.c
--- kernel-source-2.4.20-hammer-orig/drivers/net/irda/ma600.c   2002-11-29 00:53:13.000000000 +0100

        if(!(expr)) { \
                printk( "Assertion failed! %s,%s,%s,line=%d\n",\
                #expr,__FILE__,__FUNCTION__,__LINE__); \
-               ##func}
+               func}
 #endif

 /* convert hex value to ascii hex */
diff -ur kernel-source-2.4.20-hammer-orig/drivers/net/wan/sdla_chdlc.c kernel-source-2.4.20-hammer/drivers/net/wan/sdla_chdlc.c
--- kernel-source-2.4.20-hammer-orig/drivers/net/wan/sdla_chdlc.c       2002-11-29 00:53:14.000000000 +0100

                if (chdlc_set_intr_mode(card, APP_INT_ON_TIMER)){
-                       printk (KERN_INFO "%s:
-                               Failed to set interrupt triggers!\n",
+                       printk (KERN_INFO "%s: "
+                               "Failed to set interrupt triggers!\n",
                                card->devname);
                        return -EIO;    
                }
--- ./drivers/sound/cs46xx.c.orig       2003-04-25 01:53:02.000000000 +0200

 struct InitStruct
 {
-    u32 long off;
-    u32 long val;
+    u32 off;
+    u32 val;
 } InitArray[] = { {0x00000040, 0x3fc0000f},
                   {0x0000004c, 0x04800000},

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Compile error kernel 2.4.20-rc1

Post by Anders Karlsso » Sun, 04 May 2003 17:40:11


Good Afternoon,


> Try this one. Note that you can use 'make -k vmlinux modules' to find
> all the broken files in one run.

Many thanks for the patch, I have applied it, but I still ended up with
compile time errors elsewhere in the wan drivers. I ended up minimising
the configuration to eliminate the parts with errors. I will go through
and document all breaks in one go once I have got the other bits I need
to do out of the way.

/Anders

  signature.asc
< 1K Download

 
 
 

1. Error in compiling the 2.4.20-rc1 linux ppc kernel version

Hello
could you please help me in understand how to resolve the following problem
during linking phase?

make[2]: Nothing to be done for `all_targets'.
make[2]: Leaving directory `/usr/linuxppc/src-linuxppc_2_4/arch/ppc/lib'
make[1]: Leaving directory `/usr/linuxppc/src-linuxppc_2_4/arch/ppc/lib'
/usr/linuxppc/ppc/powerpc-linux/bin/ld -T arch/ppc/vmlinux.lds -Ttext
0xc0000000 -Bstatic arch/ppc/kernel/head.o arch/ppc/kernel/idle_6xx.o
init/main.o init/version.o init/do_mounts.o \
        --start-group \
        arch/ppc/kernel/kernel.o arch/ppc/platforms/platform.o
arch/ppc/mm/mm.o arch/ppc/lib/lib.o kernel/kernel.o mm/mm.o fs/fs.o
ipc/ipc.o \
         drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
drivers/net/net.o drivers/media/media.o drivers/ieee1394/ieee1394drv.o
drivers/pci/driver.o drivers/macintosh/macintosh.o \
        net/network.o \
        /usr/linuxppc/src-linuxppc_2_4/lib/lib.a \
        --end-group \
        -o vmlinux
mm/mm.o: In function `do_wp_page':
mm/mm.o(.text+0x12a4): undefined reference to `flush_tlb_page'
mm/mm.o(.text+0x12a4): relocation truncated to fit: R_PPC_REL24
flush_tlb_page
mm/mm.o(.text+0x1444): undefined reference to `flush_tlb_page'
mm/mm.o(.text+0x1444): relocation truncated to fit: R_PPC_REL24
flush_tlb_page
mm/mm.o: In function `handle_mm_fault':
mm/mm.o(.text+0x1cf8): undefined reference to `flush_tlb_page'
mm/mm.o(.text+0x1cf8): relocation truncated to fit: R_PPC_REL24
flush_tlb_page
fs/fs.o: In function `dput':
fs/fs.o(.text+0x17924): undefined reference to `atomic_dec_and_lock'
fs/fs.o(.text+0x17924): relocation truncated to fit: R_PPC_REL24
atomic_dec_and_lock
make: *** [vmlinux] Error 1

I did the following:

# make clean
# make dep
# make zImage.initrd

Many Thanks for any your help
Salvatore

===================================================================

Consulting Engineer           v: +33 1 30 85 06 00
LYNUXWORKS S.A.               f: +33 1 30 85 06 06
2 allee de la Fresnerie       www.lynuxworks.com
78330 Fontenay-Le-Fleury
France

Open source and true real-time embedded solutions for the post-PC era
=====================================================================

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Some questions about using and installing SSH (OpenSSH)

3. IBM x440 problems on 2.4.20 to 2.4.20-rc1-ac3

4. Help with Tekram DC-315U modules!!

5. Compile Error -- 2.4.20-rc1 -- SiSFB and DRM

6. Unable to handle page == hardware problem ?

7. 2.4.20-rc1: Compile error in aicasm_gram.y with bison-1.75

8. SCO OpenServer 5 and Compaq Proliant 5000R

9. 2.4.20-rc1-ac3 compile warnings/errors (test)

10. fix intermezzo compile in 2.4.20-rc1

11. 2.4.20-rc1 dirty ext2 mount error

12. 2.4.20-rc1-ac1 kernel BUG at page_alloc.c:127!

13. PROBLEM: System hangs while Partition check: with 2.4.20-rc1 kernel