uClibc-0.9.29 Compilation error for mips32

Gurminder sgurminder at gmail.com
Mon Sep 15 07:09:23 UTC 2008


Hey Thanks for the reply.
I compiled a new toolchain on local machine
And used mips-linux-uclibc- as a prefix instead of mips-linux-gcc and it
worked
fine :)

--Guri

On Thu, Sep 11, 2008 at 12:31 PM, Khem Raj <raj.khem at gmail.com> wrote:

> On (09/09/08 20:05), Gurminder wrote:
> > Hi,
> >            I tried compiling uClibc-0.9..29 for MIPS32 Big endian arch.
> > Cross Compiler used - mips-linux-gcc 3.4.4
> > Host Distro - Fedora Core 4
> > Kernel Headers used = mips-linux-2.6.15
> >
> > First Error I get is
> >
> > AS lib/crti.o
> > libc/sysdeps/linux/mips/crti.S:109:2: invalid preprocessing directive
> #APP
> > libc/sysdeps/linux/mips/crti.S:113:2: invalid preprocessing directive
> > #NO_APP
> > libc/sysdeps/linux/mips/crti.S:130:2: invalid preprocessing directive
> #APP
> > libc/sysdeps/linux/mips/crti.S:136:2: invalid preprocessing directive
> > #NO_APP
> > libc/sysdeps/linux/mips/crti.S:153:2: invalid preprocessing directive
> #APP
> > make[1]: *** [lib/crti.o] Error 1
> > =====================================
> > The make command it uses is :
> > " echo "  "AS lib/crti.o ;  mips-linux-gcc -c
> libc/sysdeps/linux/mips/crti.S
> > -o lib/crti.o -include ./include/libc-symbols.h  -Wall
> -Wstrict-prototypes
> > -fno-strict-aliasing  -mips32 -mtune=mips32 -mabi=32  -fno-builtin
> -nostdinc
> > -I./include -I. -std=gnu99  -Os -funit-at-a-time  -mno-split-addresses
> > -I./libpthread/linuxthreads.old/sysdeps/unix/sysv/linux/mips
> > -I./libpthread/linuxthreads.old/sysdeps/mips
> > -I./libpthread/linuxthreads.old/sysdeps/unix/sysv/linux
> > -I./libpthread/linuxthreads.old/sysdeps/pthread
> > -I./libpthread/linuxthreads.old -I./libpthread
> >
> -I/home/wifi/v6/spectramon/linux/kernel/kernels/mips-linux-2.6.15/include/
> > -isystem
> /export/tools-liteon/bin/../lib/gcc/mips-linux-uclibc/3.4.4/include
> > -DNDEBUG "-mno-split-addresses"      -D__ASSEMBLER__ -Wa,--noexecstack
> > -fPIC "
> >
> > Can any one please point out what is wrong here?
>
> I suspect its your compiler.
> Can you try a smaller example like
>
> a.S
>
> #APP
>        .section .init
> #NO_APP
>
>
> with your compiler. Does this compile correctly ?
>
> If you get same error then something is wrong in your cross compiler.
>
> Thx
>
> -Khem
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20080915/ffe07ac6/attachment-0001.htm 


More information about the uClibc mailing list