From: Phil Wilshire (philwil@earthlink.net)
Date: Wed Oct 02 2002 - 06:59:49 EDT
Hi Konstantin
Here it is and here's how to find it I ran this on the 2.4.x kernel
you may need to run it against a different directory
I do not know if these tools work under Cygwin.
Use the find command with a pipe to xargs which runs a grep on all the
files found by find
find linux-2.4.x/ -name "*.[hc]" | xargs grep NBPC | more
And here is the output
linux-2.4.x/include/asm-ia64/sn/sgi.h:#define ctob(x)
((uint64_t)(x)*NBPC)
linux-2.4.x/include/asm-ia64/sn/sgi.h:#define btoc(x)
(((uint64_t)(x)+(NBPC-1))/NBPC)
linux-2.4.x/include/asm-ia64/sn/sgi.h:#ifndef NBPC
linux-2.4.x/include/asm-ia64/sn/sgi.h:#define NBPC 0
However this may not help much.
What target architecture are you trying to build for and have you
configured your kernel for that
architecture.
best regards
Phil Wilshire
Konstantin Kletschke wrote:
>
> Hi there!
>
> I am trying to compile uClibc under a Cygwin environment, what should
> not be the matter though. Because all headers used are from kernel and
> uclibc sources...
> I use today's CVS from uClibc and uClinux-2.4.x and the build script
> provided at
> http://www.uclinux.org/pub/uClinux/m68k-elf-tools/tools-20020410/
>
> the 1st stage cross compiler is already build.
> what the script does is simply make CROSS=arm-elf- in
> /usr/src/uClibc/libc/sysdeps/linux/common...
>
> make[4]: Entering directory `/usr/src/uClibc/libc/sysdeps/linux/common'
> arm-elf-gcc -Wall -Wall -Wstrict-prototypes -Wno-trigraphs
> -fno-strict-aliasing -Os -fstrict-aliasing -fno-builtin -nostdinc
> -I../../../../include -iwithprefix include -I. -D_LIBC
> -I/usr/src/uClinux-2.4.x/include -DNDEBUG -c waitpid.c -o waitpid.o
> arm-elf-strip -x -R .note -R .comment waitpid.o
> arm-elf-gcc -Wall -Wall -Wstrict-prototypes -Wno-trigraphs
> -fno-strict-aliasing -Os -fstrict-aliasing -fno-builtin -nostdinc
> -I../../../../include -iwithprefix include -I. -D_LIBC
> -I/usr/src/uClinux-2.4.x/include -DNDEBUG -c getdnnm.c -o getdnnm.o
> arm-elf-strip -x -R .note -R .comment getdnnm.o
> arm-elf-gcc -Wall -Wall -Wstrict-prototypes -Wno-trigraphs
> -fno-strict-aliasing -Os -fstrict-aliasing -fno-builtin -nostdinc
> -I../../../../include -iwithprefix include -I. -D_LIBC
> -I/usr/src/uClinux-2.4.x/include -DNDEBUG -c gethstnm.c -o gethstnm.o
> arm-elf-strip -x -R .note -R .comment gethstnm.o
> arm-elf-gcc -Wall -Wall -Wstrict-prototypes -Wno-trigraphs
> -fno-strict-aliasing -Os -fstrict-aliasing -fno-builtin -nostdinc
> -I../../../../include -iwithprefix include -I. -D_LIBC
> -I/usr/src/uClinux-2.4.x/include -DNDEBUG -c getcwd.c -o getcwd.o
> arm-elf-strip -x -R .note -R .comment getcwd.o
> arm-elf-gcc -Wall -Wall -Wstrict-prototypes -Wno-trigraphs
> -fno-strict-aliasing -Os -fstrict-aliasing -fno-builtin -nostdinc
> -I../../../../include -iwithprefix include -I. -D_LIBC
> -I/usr/src/uClinux-2.4.x/include -DNDEBUG -c mkfifo.c -o mkfifo.o
> arm-elf-strip -x -R .note -R .comment mkfifo.o
> arm-elf-gcc -Wall -Wall -Wstrict-prototypes -Wno-trigraphs
> -fno-strict-aliasing -Os -fstrict-aliasing -fno-builtin -nostdinc
> -I../../../../include -iwithprefix include -I. -D_LIBC
> -I/usr/src/uClinux-2.4.x/include -DNDEBUG -c setegid.c -o setegid.o
> arm-elf-strip -x -R .note -R .comment setegid.o
> arm-elf-gcc -Wall -Wall -Wstrict-prototypes -Wno-trigraphs
> -fno-strict-aliasing -Os -fstrict-aliasing -fno-builtin -nostdinc
> -I../../../../include -iwithprefix include -I. -D_LIBC
> -I/usr/src/uClinux-2.4.x/include -DNDEBUG -c wait.c -o wait.o
> arm-elf-strip -x -R .note -R .comment wait.o
> arm-elf-gcc -Wall -Wall -Wstrict-prototypes -Wno-trigraphs
> -fno-strict-aliasing -Os -fstrict-aliasing -fno-builtin -nostdinc
> -I../../../../include -iwithprefix include -I. -D_LIBC
> -I/usr/src/uClinux-2.4.x/include -DNDEBUG -c getpagesize.c -o getpagesize.o
> getpagesize.c: In function `__getpagesize':
> getpagesize.c:38: `NBPC' undeclared (first use in this function)
> getpagesize.c:38: (Each undeclared identifier is reported only once
> getpagesize.c:38: for each function it appears in.)
> getpagesize.c:41: warning: control reaches end of non-void function
> make[4]: *** [getpagesize.o] Error 1
> make[4]: Leaving directory `/usr/src/uClibc/libc/sysdeps/linux/common'
> make[3]: *** [_dir_common] Error 2
> make[3]: Leaving directory `/usr/src/uClibc/libc/sysdeps/linux'
> make[2]: *** [_dir_linux] Error 2
> make[2]: Leaving directory `/usr/src/uClibc/libc/sysdeps'
> make[1]: *** [_dir_sysdeps] Error 2
> make[1]: Leaving directory `/usr/src/uClibc/libc'
> make: *** [_dir_libc] Error 2
> cp: cannot stat `lib/crt0.o': No such file or directory
>
> My question is, where the heck is NBPC declared? In a headerfile?
>
> Greetings, Konsti
>
> This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/
--
SDCS -- System Design & Consulting Services LLC, http://www.sysdcs.com
**uClinux Training in Toronto, Oct 2002,
email me for details
630 Springhouse Sq., Leesburg VA 20175 t: 703 669 9765 f: 703 669 9768
This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/
This archive was generated by hypermail 2.1.4 : Wed Oct 02 2002 - 08:02:08 EDT