thanks for the reply :). when i checked the linux src for mips in asm-mips folder PAGE_SIZE was defined only in kernel context. if __KERNEL__ was defined only then was PAGE_SIZE defined. on the other hand PAGE_SIZE is defined for non kernel context in i386 and arm asm folders. i was able to fix the problem by defining PAGE_SIZE in asm-mips/page.h. that compiled the uClibc-0.9.26, then i compiled full build of gcc-3.3.3 and also was able to run test programs on the ubnt litestation2 mips-4kc board. isnt there a patch available for doing this the right way? i understand that making changes in the kernel code is not a good idea. is there a fix available for this problem? i would like to post my findings about the toolchain build procedure but not before getting the right solution for this problem.
regards abhijit On Fri, Apr 4, 2008 at 12:37 AM, Filippo ARCIDIACONO < [EMAIL PROTECTED]> wrote: > I suggest you to upgrade the uClibc to the 0.9.29 version. > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of abhijit ayarekar > > Sent: Thursday, April 03, 2008 10:12 PM > > To: [email protected] > > Subject: Problems in compiling for mips > > > > I am trying to compile uclibc-0.9.26 with binutils-2.15, > > gcc-3.3.3, kernel headers version 2.4.27 > > > > when i run make i get the following error > > > > [EMAIL PROTECTED] uClibc-0.9.26]# make CROSS=mips-linux- > > + ./extra/scripts/fix_includes.sh -k > > + /mnt/hdb/mips-toolchain/kernel/linux-kernel-2.4 -t mips > > Current kernel version is 2.4.27-ubnt0 > > > > Using kernel headers from 2.4.27-ubnt0 for architecture 'mips' > > provided in directory > > /mnt/hdb/mips-toolchain/kernel/linux-kernel-2.4 > > > > + TOPDIR=. > > + CC=mips-linux-gcc > > + /bin/sh extra/scripts/gen_bits_syscall_h.sh > > + cmp include/bits/sysnum.h include/bits/sysnum.h.new mv -f > > + include/bits/sysnum.h.new include/bits/sysnum.h > > make -C libc/sysdeps/linux/common headers > > make[1]: Entering directory > > `/mnt/hdb/mips-toolchain/sources/uClibc-0.9.26/libc/sysdeps/li > nux/common' > > ln -fs ../libc/sysdeps/linux/common/fpu_control.h > > ../../../..//include/ > > make[1]: Leaving directory > > `/mnt/hdb/mips-toolchain/sources/uClibc-0.9.26/libc/sysdeps/li > nux/common' > > make -C libc/sysdeps/linux/mips headers > > make[1]: Entering directory > > `/mnt/hdb/mips-toolchain/sources/uClibc-0.9.26/libc/sysdeps/li > nux/mips' > > ln -fs ../libc/sysdeps/linux/mips/sgidefs.h > > ../../../..//include/ ln -fs > > ../libc/sysdeps/linux/mips/fpu_control.h ../../../..//include/ > > make[1]: Leaving directory > > `/mnt/hdb/mips-toolchain/sources/uClibc-0.9.26/libc/sysdeps/li > nux/mips' > > make -C ldso > > make[1]: Entering directory > > `/mnt/hdb/mips-toolchain/sources/uClibc-0.9.26/ldso' > > ln -fs ../../include/elf.h include/ > > ln -fs ../ldso/mips/boot1_arch.h include/ ln -fs > > ../ldso/mips/ld_syscalls.h include/ ln -fs > > ../ldso/mips/ld_sysdep.h include/ make -C ldso; > > make[2]: Entering directory > > `/mnt/hdb/mips-toolchain/sources/uClibc-0.9.26/ldso/ldso' > > mips-linux-gcc -Wall -Wstrict-prototypes -Wno-trigraphs > > -fno-strict-aliasing -Os -mno-split-addresses -mips32 > > -mtune=mips32 -fPIC > > -DUCLIBC_RUNTIME_PREFIX=\"/mnt/hdb/mips-toolchain/mips-linux/\ > " -fno-builtin -nostdinc -I../../ldso/include -I. -> I../../include > > -I/mnt/hdb/mips-toolchain/lib/gcc-lib/mips-linux/3.3.3/include > > -I../libdl -c ldso.c -o ldso.o In file included from > > _dl_progname.h:2, > > from ldso.c:156: > > mips/elfinterp.c: In function `_dl_parse_relocation_information': > > mips/elfinterp.c:177: warning: unused variable `old_val' > > ldso.c: In function `_dl_boot2': > > ldso.c:362: error: `PAGE_SIZE' undeclared (first use in this function) > > ldso.c:362: error: (Each undeclared identifier is reported only once > > ldso.c:362: error: for each function it appears in.) > > ldso.c:454:2: warning: #warning "Debugging threads on mips > > won't work till someone fixes this..." > > ../../ldso/include/ld_syscall.h:56: warning: use of memory > > input without lvalue in asm operand 7 is deprecated In file > > included from ldso.c:1343: > > readelflib1.c: In function `_dl_load_elf_shared_library': > > readelflib1.c:452: error: `PAGE_SIZE' undeclared (first use > > in this function) In file included from ldso.c:1343: > > ../../ldso/include/ld_syscall.h:56: warning: use of memory > > input without lvalue in asm operand 7 is deprecated > > ../../ldso/include/ld_syscall.h:56: warning: use of memory > > input without lvalue in asm operand 7 is deprecated > > ../../ldso/include/ld_syscall.h:56: warning: use of memory > > input without lvalue in asm operand 7 is deprecated > > ../../ldso/include/ld_syscall.h:56: warning: use of memory > > input without lvalue in asm operand 7 is deprecated > > ../../ldso/include/ld_syscall.h:56: warning: use of memory > > input without lvalue in asm operand 7 is deprecated > > readelflib1.c: In function `_dl_dprintf': > > readelflib1.c:787: error: `PAGE_SIZE' undeclared (first use > > in this function) In file included from ldso.c:1343: > > ../../ldso/include/ld_syscall.h:56: warning: use of memory > > input without lvalue in asm operand 7 is deprecated In file > > included from ldso.c:1343: > > readelflib1.c: In function `_dl_malloc': > > readelflib1.c:886: error: `PAGE_SIZE' undeclared (first use > > in this function) In file included from ldso.c:1343: > > ../../ldso/include/ld_syscall.h:56: warning: use of memory > > input without lvalue in asm operand 7 is deprecated > > ../../ldso/include/ld_syscall.h: In function `_dl_mmap': > > ../../ldso/include/ld_syscall.h:56: warning: use of memory > > input without lvalue in asm operand 7 is deprecated > > make[2]: *** [ldso.o] Error 1 > > make[2]: Leaving directory > > `/mnt/hdb/mips-toolchain/sources/uClibc-0.9.26/ldso/ldso' > > make[1]: *** [all] Error 2 > > make[1]: Leaving directory > > `/mnt/hdb/mips-toolchain/sources/uClibc-0.9.26/ldso' > > make: *** [_dir_ldso] Error 2 > > > > can anyone please help me solve this problem? > > > > regards > > abhijit > > > > > >
_______________________________________________ uClibc mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/uclibc
