Mail Archives: cygwin-developers/1998/09/28/13:16:15
Christopher Faylor wrote:
> This seems to work around the problem (in the newlib directory):
>
> ./configure -v --build=i386-pc-cygwin32 --srcdir=`pwd`
>
Report of experience:
The following happened:
-------- snip ----------
/src/cdkb20/newlib[2]$ ./configure -v --build=i386-pc-cygwin32
--srcdir=`pwd`
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking build system type... i386-pc-cygwin32
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for Cygwin32 environment... yes
checking for Mingw32 environment... no
checking host system type... i586-pc-cygwin32
configure: error: source directory already configured; run make
distclean there first
/src/cdkb20/newlib[3]$ make distclean
make: *** No rule to make target `.././configure.host', needed by
`config.status'. Stop.
-------- snip ----------
This command before configure did it:
/src/cdkb20/newlib[7]$ find . -name config.status -exec rm '{}' \;
Now, the following message appeared while running `make' in newlib:
-------- snip ----------
....
ar ../libc.a *.o
ar: illegal option -- .
Usage: ar [-]{dmpqrtx}[abcilosuvV] [member-name] archive-file file...
ar -M [<mri-script]
ar: supported targets: pe-i386 pei-i386 srec symbolsrec tekhex binary
ihex
make[1]: *** [libc.a] Error 1
make: *** [all-recursive] Error 1
-------- snip ----------
As you can see, ar has no option. But the line
AR_FLAGS = rv
in newlib/Makefile helped temporarily:
-------- snip ----------
....
Making all in doc
g -c /export/src/cdkb20/newlib/doc/makedoc.c
make[1]: g: Command not found
make[1]: [makedoc.o] Error 127 (ignored)
o makedoc makedoc.o
make[1]: o: Command not found
make[1]: [makedoc] Error 127 (ignored)
....
-------- snip ----------
cd doc; make
or adding
CC_FOR_BUILD = gcc
to newlib/Makefile did it.
As next I've started `make' in dir cdkb20:
-------- snip ----------
....
rootme=`pwd`/ ; export rootme; \
CC="/src/cdkb20/gcc/xgcc -B/src/cdkb20/gcc/ -idirafter
/src/cdkb20/i386-pc-cygwin32/newlib/targ-include -idirafter
/src/cdkb20/newlib/libc/include -nostdinc -I. -I.
-I./../winsup/include"; export CC; \
CXX="/src/cdkb20/gcc/xgcc -B/src/cdkb20/gcc/ -idirafter
/src/cdkb20/i386-pc-cygwin32/newlib/targ-include -idirafter
/src/cdkb20/newlib/libc/include -nostdinc -I. -I. -I./../winsup/include
-nostdinc++ -nostdinc++ -g -O2"; export CXX; \
CONFIG_NM="/src/cdkb20/binutils/nm-new"; export CONFIG_NM; \
/bin/sh ./gen-params LIB_VERSION=2.8.0 >tmp-params.h
In file included from \src\cdkb20\gcc\include\syslimits.h:7,
from \src\cdkb20\gcc\include\limits.h:11,
from dummy.c:12:
\src\cdkb20\gcc\include\limits.h:117: limits.h: No such file or
directory
gen-params: could not invoke /src/cdkb20/gcc/xgcc -B/src/cdkb20/gcc/
-idirafter
/src/cdkb20/i386-pc-cygwin32/newlib/targ-include -idirafter
/src/cdkb20/newlib/l
ibc/include -nostdinc -I. -I. -I./../winsup/include -E on dummy.c
make[1]: *** [_G_config.h] Error 1
make: *** [all-target-libio] Error 2
-------- snip ----------
Bingo! I haven't understood this. winsup/include is in the
search path and it contains a limits.h.
Any suggestion?
Corinna
- Raw text -