-----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 > Hi, > > Thanks for the reply. > > Our compiler options are > > -------------------------------- > > CC arch/mips/mm/c-r4k.o > > Reading specs from > /opt/busybox_build/build_mipsel/staging_dir/lib/gcc/mipsel-linux-uclibc/ > 3.4.3/specs > > Configured with: > /opt/busybox_build/toolchain_build_mipsel/gcc-3.4.3/configure > --prefix=/opt/busybox_build/build_mipsel/staging_dir > --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu > --target=mipsel-linux-uclibc --enable-languages=c --enable-shared > --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld > --disable-nls --enable-sjlj-exceptions > > Thread model: posix > > gcc version 3.4.3 > > > /opt/busybox_build/build_mipsel/staging_dir/libexec/gcc/mipsel-linux-ucl > ibc/3.4.3/cc1 -quiet -nostdinc -nostdinc -v -Iinclude > -Iinclude/asm-mips/mach-generic -U__PIC__ -U__pic__ -D__KERNEL__ > -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(c_r4k) > -DKBUILD_MODNAME=KBUILD_STR(c_r4k) -iwithprefix include -isystem > /opt/busybox_build/build_mipsel/staging_dir/lib/gcc/mipsel-linux-uclibc/ > 3.4.3/include -include include/linux/autoconf.h -MD > arch/mips/mm/.c-r4k.o.d arch/mips/mm/c-r4k.c -quiet -dumpbase c-r4k.c > -mabi=32 -mno-abicalls -msoft-float -march=mips32 -auxbase-strip > arch/mips/mm/.tmp_c-r4k.o -O2 -Wall -Wundef -Wstrict-prototypes > -Wno-trigraphs -Wdeclaration-after-statement -version > -fno-strict-aliasing -fno-common -fno-pic -ffreestanding > -fomit-frame-pointer -o - | > > > /opt/busybox_build/build_mipsel/staging_dir/lib/gcc/mipsel-linux-uclibc/ > 3.4.3/../../../../mipsel-linux-uclibc/bin/as -G 0 -EL -O2 -no-mdebug -32 > -march=mips32 -v -non_shared -mips32 --trap -o arch/mips/mm/.tmp_c-r4k.o > - > > ignoring duplicate directory > "/opt/busybox_build/build_mipsel/staging_dir/lib/gcc/mipsel-linux-uclibc > /3.4.3/include" > > #include "..." search starts here: > > #include <...> search starts here: > > include > > include/asm-mips/mach-generic > > > /opt/busybox_build/build_mipsel/staging_dir/lib/gcc/mipsel-linux-uclibc/ > 3.4.3/include > > End of search list. > > GNU assembler version 2.15.94.0.2.2 (mipsel-linux-uclibc) using BFD > version 2.15.94.0.2.2 20041220 > > GNU C version 3.4.3 (mipsel-linux-uclibc) > > compiled by GNU C version 3.3.3 20040412 (Red Hat Linux > 3.3.3-7). > > GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=31846 > > > Thanks and Regards > Prasanna > > -----Original Message----- > From: kernelnewbies-bounce@xxxxxxxxxxxx > [mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On Behalf Of Kristof Provost > Sent: Saturday, January 06, 2007 1:04 AM > To: Mansoor Aftab > Cc: kernelnewbies@xxxxxxxxxxxx > Subject: Re: Compilation Errors - 2.6.19 > >>> Hi, >>> >>> I am trying to compile linux 2.6.19. But keep getting following > errors. >>> I tried several compiler options to get rid of the problem, as > described >>> in the mailing list, but could not. Any directions would be really >>> helpful, Thanks in advance. >>> >>> arch/mips/kernel/head.o(.init.text+0x3c): In function `kernel_entry': >>> arch/mips/kernel/head.S: relocation truncated to fit: R_MIPS_GPREL16 >>> against `fw_arg0' >>> arch/mips/kernel/head.o(.init.text+0x40):arch/mips/kernel/head.S: >>> relocation truncated to fit: R_MIPS_GPREL16 against `fw_arg1' >>> arch/mips/kernel/head.o(.init.text+0x44):arch/mips/kernel/head.S: >>> relocation truncated to fit: R_MIPS_GPREL16 against `fw_arg2' >>> arch/mips/kernel/head.o(.init.text+0x48):arch/mips/kernel/head.S: >>> relocation truncated to fit: R_MIPS_GPREL16 against `fw_arg3' >>> >>> arch/mips/kernel/built-in.o(.text+0x87c): In function `handle_int': >>> : undefined reference to `plat_irq_dispatch' >>> arch/mips/kernel/built-in.o(.text+0x87c): In function `handle_int': >>> : relocation truncated to fit: R_MIPS_26 against `plat_irq_dispatch' >>> arch/mips/kernel/built-in.o(.text+0x1ddc): In function > `allocate_irqno': >>> : undefined reference to `find_next_zero_bit' >>> arch/mips/kernel/built-in.o(.text+0x1ddc): In function > `allocate_irqno': >>> : relocation truncated to fit: R_MIPS_26 against `find_next_zero_bit' >>> arch/mips/kernel/built-in.o(.init.text+0x13c4): In function >>> `setup_arch': >>> ...... >>> ...... >>> ...... >>> >>> >>> Regards, >>> Mansoor Aftab. > > Have you tried adding "-G 0"? > > Kristof Your assembles has the -G 0 option, the C compiler doesn't. You can't mix -G settings. The GCC man page has a little information about it as well. - -G num Put global and static objects less than or equal to num bytes into the small data or bss sections instead of the normal data or bss sections. The default value of num is 8. The -msdata option must be set to one of sdata or use for this option to have any effect. All modules should be compiled with the same -G num value. Compilingwith different values of num may or may not work; if it doesn't the linker will give an error message---incorrect code will not be generated. Kristof -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFoqGEUEZ9DhGwDugRA049AJ0abNwPCUm9r1uzPAD+3vgctM65bwCfV5hd XQWQpJgcBjhpGTFRt1Rapt4= =MxWG -----END PGP SIGNATURE----- -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/