uClibc-0.9.29 Compilation error for mips32
Khem Raj
raj.khem at gmail.com
Thu Sep 11 07:01:57 UTC 2008
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
More information about the uClibc
mailing list