This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hi,
I am trying to build cross-compiler for "target=arm-linux",
"host=i686-pc-mingw32" on Win-2k.
The packages I am using are:
1) binutils-2.13.1.tar
2) For Kernel headers I am using linux-2.4.19.tar & patch-2.4.19-rmk4
3) gcc-3.2.2
4) glibc-2.3.1.tar & glibc-linuxthreads-2.3.1.tar
(A) Binutils is built successfully. The following configure otion is
specified:
§ ../binutils-2.13.1/configure -target=$TARGET -prefix=$PREFIX
(B) On linux box, obtained the kernel headers by "make menuconfig" & "make
dep" on the source.
(C) Copied the ./include/linux and ./include/asm to the
$PREFIX/arm-linux/include directory.
(D) Configured the GCC as:
$ ../gcc-3.2.2/configure --target=arm-linux --prefix=$PREFIX
--enable-languages=c --disable-nls --disable-threads --disable-shared
--with-headers=$PREFIX/arm-linux/include
(E) Edited the Makefile for following changes:
(i) Added "-Dinhibit_libc -D__gthr_posix_h" to the
TARGET_LIBGCC2_CFLAGS flag.
(ii) Added "-Dinhibit_libc -D__gthr_posix_h" to the T_CFLAGS flag.
(iii)Values of STMP_FIXINC and USE_COLLECT2 are emptied to remove
the fork-kill error.
(F) Installed GCC as:
$ make [LANGUAGES="c"] all-gcc install-gcc
The GCC installed successfully.
(G) Configured GLIBC as:
$ ../glibc-2.3.1/configure arm-linux --prefix=$PREFIX/arm-linux
--with-headers=$PREFIX/arm-linux/include --enable-add-ons=linuxthreads
Configures OK
(H) make
It says>> stddef.h: No such file or directory
Pl. refer the attached log file for this make.
<<A partial snapshot>>
****************************************************************************
********************
touch /home/manojv/build_glibc/gnu/lib-names.stmp
.././scripts/mkinstalldirs /home/manojv/build_glibc/csu
rm -f /home/manojv/build_glibc/csu/abi-tag.h.new
sed -e 's/#.*$//' -e '/^[ ]*$/d' ../abi-tags | \
while read conf tagos tagver; do \
test `expr 'arm-unknown-linux-gnu' \
: "$conf"` != 0 || continue; \
( echo "$tagos" | \
sed -e 's/[^0-9xXa-fA-F ]//' \
-e 's/^/#define __ABI_TAG_OS /'; \
echo "#ifndef __ABI_TAG_VERSION"; \
echo "$tagver" | \
sed -e 's/[^0-9xXa-fA-F]/ /g' -e 's/ *$//' \
-e 's/ /,/g' -e 's/^/# define __ABI_TAG_VERSION /'; \
echo "#endif" ) > /home/manojv/build_glibc/csu/abi-tag.h.new; \
done
if test -r /home/manojv/build_glibc/csu/abi-tag.h.new; then mv -f
/home/manojv/build_glibc/csu/abi-tag.h.new
/home/manojv/build_glibc/csu/abi-tag.h; \
else echo >&2 'This configuration not matched in ../abi-tags'; exit 1; fi
.././scripts/mkinstalldirs /home/manojv/build_glibc/csu
In file included from ../sysdeps/gnu/_G_config.h:9,
from init.c:22:
../sysdeps/unix/sysv/linux/bits/types.h:29:20: stddef.h: No such file or
directory
In file included from init.c:22:
../sysdeps/gnu/_G_config.h:14:20: stddef.h: No such file or directory
In file included from ../include/wchar.h:2,
from ../sysdeps/gnu/_G_config.h:24,
from init.c:22:
../wcsmbs/wchar.h:48:20: stddef.h: No such file or directory
In file included from ../include/wchar.h:2,
from ../iconv/gconv.h:28,
from ../include/gconv.h:1,
from ../sysdeps/gnu/_G_config.h:44,
from init.c:22:
../wcsmbs/wchar.h:48:20: stddef.h: No such file or directory
...
...
...
...
****************************************************************************
********************
I even tried the solution sighted at
http://archives.linuxfromscratch.org/mail-archives/lfs-support/2002-February
/003666.html , but I am still getting those errors.
Any guidance would be greatly appreciated.
Regards,
Manoj
<<myMake.log>>
Attachment:
myMake.log
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |