Help,

I am having problems building a cross-compile environment. I've tried it
before and am now trying again.
My base system is an Intel RedHat 5.2 installation, upgraded to Linux 2.2 (
via the redhat upgrade instructions)

I am attempting to follow the 'Building the GNU toolchain for ARM targets'
instructions helpfully provided by Chris Rutter.

I've tried to perform the steps several time but can never get a kernel to
build.
I have two problems at the moment.

Question
--------------
Following the binutils section I don't get any 'Hunk #1 ..' messages when I
patch binutils.
I don't find any .rej files so I carry on, but when i attempt to
'./configure' binutils it fails ( see the output below)


Next Question ( kernel Headers section)
------ --------------
If I am putting my 'cross compile' environment in /home/arm does this mean I
should use the following commands to copy the kernel headers across

% mkdir /home/arm/include
% cp -a /home/arm/dev-kernel/include/asm-arm /home/arm/include/asm
% cp -a /home/arm/dev-kernel/include/linux       /home/arm/include/linux

( My ARM kernel sources are in /arm/dev-kernel)


If anyone can help, It might put my faith back into cross compilers, at the
moment the intel box is moving closer and closer to that open window, and
I'm moving closer and closer to that white room with the padded walls :-)

Thanks

Iain


-------------------------------------------------------------- binutils
failure
-------------------------------------------------------------------------
# ./configure --target=arm-linux --prefix=/home/arm
Configuring for a i586-pc-linux-gnu host.
Created "Makefile" in /home/binutils-2.9.1.0.19a using "mt-frag"
./config.status is unchanged
Configuring libiberty...
Appending ./config/../../config/mh-x86pic to xhost-mkfrag
xhost-mkfrag is unchanged
Linked "alloca-conf.h" to "./alloca-norm.h".
Created "Makefile" in /home/binutils-2.9.1.0.19a/libiberty using
"xhost-mkfrag"
./config.status is unchanged
Configuring opcodes...
loading cache ../config.cache
checking host system type... i586-pc-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking build system type... i586-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for ar... (cached) ar
checking for ranlib... (cached) ranlib
checking for ranlib... (cached) ranlib
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... yes
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
checking whether to enable maintainer-specific portions of Makefiles... no
checking for Cygwin32 environment... (cached) no
checking for Mingw32 environment... (cached) no
checking for executable suffix... (cached) no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdlib.h... (cached) yes
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
Configuring bfd...
loading cache ../config.cache
checking host system type... i586-pc-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking build system type... i586-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for POSIXized ISC... no
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for ar... (cached) ar
checking for ranlib... (cached) ranlib
checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... yes
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
checking whether to enable maintainer-specific portions of Makefiles... no
checking for Cygwin32 environment... (cached) no
checking for Mingw32 environment... (cached) no
checking for executable suffix... (cached) no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for stddef.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/time.h... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for fcntl... (cached) yes
checking for getpagesize... (cached) yes
checking for setitimer... (cached) yes
checking for sysconf... (cached) yes
checking for fdopen... (cached) yes
checking whether strstr must be declared... (cached) no
checking whether malloc must be declared... (cached) no
checking whether realloc must be declared... (cached) no
checking whether free must be declared... (cached) no
checking whether getenv must be declared... (cached) no
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) no
checking for madvise... (cached) no
checking for mprotect... (cached) yes
creating ./config.status
creating Makefile
creating doc/Makefile
creating bfd-in3.h
creating config.h
config.h is unchanged
Configuring binutils...
loading cache ../config.cache
checking host system type... i586-pc-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking build system type... i586-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for ranlib... (cached) ranlib
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... yes
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for bison... (cached) bison -y
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking lex output file root... (cached) lex.yy
checking whether yytext is a pointer... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for Cygwin32 environment... (cached) no
checking for Mingw32 environment... (cached) no
checking for executable suffix... (cached) no
checking for ranlib... (cached) ranlib
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for sbrk... (cached) yes
checking for utimes... (cached) yes
checking for time_t in time.h... (cached) yes
checking for time_t in sys/types.h... (cached) yes
checking for utime.h... (cached) yes
checking whether fprintf must be declared... (cached) no
checking whether strstr must be declared... (cached) no
checking whether sbrk must be declared... (cached) no
checking whether getenv must be declared... (cached) no
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
Configuring ld...
loading cache ../config.cache
checking host system type... i586-pc-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking build system type... i586-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for ranlib... (cached) ranlib
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... yes
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for Cygwin32 environment... (cached) no
checking for Mingw32 environment... (cached) no
checking for executable suffix... (cached) no
checking for bison... (cached) bison -y
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking lex output file root... (cached) lex.yy
checking whether yytext is a pointer... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sbrk... (cached) yes
checking for dirent.h that defines DIR... (cached) no
checking for sys/ndir.h that defines DIR... (cached) no
checking for sys/dir.h that defines DIR... (cached) no
checking for ndir.h that defines DIR... (cached) no
checking for opendir in -lx... (cached) no
checking whether strstr must be declared... (cached) no
checking whether free must be declared... (cached) no
checking whether sbrk must be declared... (cached) no
checking whether getenv must be declared... (cached) no
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
Configuring gas...
loading cache ../config.cache
checking host system type... i586-pc-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking build system type... i586-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for ranlib... (cached) ranlib
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... yes
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for bison... (cached) bison -y
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking lex output file root... (cached) lex.yy
checking whether yytext is a pointer... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for Cygwin32 environment... (cached) no
checking for Mingw32 environment... (cached) no
checking for executable suffix... (cached) no
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdarg.h... (cached) yes
checking for varargs.h... (cached) yes
checking for errno.h... (cached) no
checking for sys/types.h... (cached) yes
checking whether compiling a cross-assembler... yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for inline... (cached) inline
checking for unlink... (cached) yes
checking for sbrk... (cached) yes
checking for working assert macro... (cached) yes
checking whether declaration is required for strstr... (cached) no
checking whether declaration is required for malloc... (cached) no
checking whether declaration is required for free... (cached) no
checking whether declaration is required for sbrk... (cached) no
checking whether declaration is required for errno... (cached) yes
creating ./config.status
creating Makefile
creating doc/Makefile
creating .gdbinit
creating config.h
config.h is unchanged
Configuring etc...
loading cache ../config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
creating ./config.status
creating Makefile
[root@cns409 binutils-2.9.1.0.19a]# make
make[1]: Entering directory `/home/binutils-2.9.1.0.19a/libiberty'
echo "# !Automatically generated from ./functions.def"\
  "- DO NOT EDIT!" >needed2.awk
grep '^DEFVAR(' < ./functions.def \
 | sed -e '/DEFVAR/s|DEFVAR.\([^,]*\).*|/\1/ { printf "#ifndef
NEED_\1\\n#define NEED_\1\\n#endif\\n" }|' \
 >>needed2.awk
grep '^DEFFUNC(' < ./functions.def \
 | sed -e '/DEFFUNC/s|DEFFUNC.\([^,]*\).*|/\1/ { printf "#ifndef
NEED_\1\\n#define NEED_\1\\n#endif\\n" }|' \
 >>needed2.awk
echo "/* !Automatically generated from ./functions.def"\
  "- DO NOT EDIT! */" >lconfig.h
awk -f needed2.awk <errors >>lconfig.h
cp lconfig.h config.tmp
/bin/sh ./../move-if-change config.tmp config.h
config.h is unchanged
touch stamp-config
test -z "" || \
  gcc -c -g -O2 -I. -I./../include   fnmatch.c -o pic/fnmatch.o
gcc -c -g -O2 -I. -I./../include  fnmatch.c
In file included from /usr/include/errno.h:36,
                 from fnmatch.c:45:
/usr/include/errnos.h:24: linux/errno.h: No such file or directory
make[1]: *** [fnmatch.o] Error 1
make[1]: Leaving directory `/home/binutils-2.9.1.0.19a/libiberty'
make: *** [all-libiberty] Error 2

unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to