alliance-support '02
RE: problem building ocp under Cygwin 1.3.9 under Windows98SE with gcc 2.95.3-5


Christophe Alexandre (Christophe.Alexandre@asim.lip6.fr)
Tue, 5 Feb 2002 12:10:40 +0100 (CET)

Well ... It seems quite hard to build anything under cygwin and windows. I'm afraid I cannot help you much because I don't know a thing about cygwin and windows. We are planning to put all ALLIANCE under autoconf and automake, so that will make things maybe harder. Maybe, before running the autogen.sh script you should take the last version of automake, autoconf and libtool. Christophe. On Fri, 1 Feb 2002, Art wrote: > > -----Original Message----- > > From: Art [mailto:pinaar@austin.rr.com] > > Sent: Friday, February 01, 2002 8:19 PM > ... > > > -----Original Message----- > > > From: Christophe Alexandre [mailto:Christophe.Alexandre@lip6.fr] > > > Sent: Tuesday, January 29, 2002 3:33 AM > > ... > > This is still a problem for me. > > Update - I worked around the problems, but not very well. > I copied ltconfig from the GNU gcc 3.0.3 source tree ran make again, > with these results: > > $ ./ltconfig --version > ltconfig (GNU libtool) 1.4a-GCC3.0 (1.641.2.256 2001/05/28 20:09:07 with > GCC-loc > al changes) > > make > ... > checking dynamic linker characteristics... Win32 ld.exe > checking whether -lc should be explicitly linked in... yes > creating libtool > 0 [main] sh 81831473 fork_copy: user/cygwin data pass 2 failed, > 0x980000.. > 0xFFD000, done 0, windows pid 4293650903, Win32 error 8 > eval: Cannot fork: Resource temporarily unavailable > [ *** typical Windows problem with Cygwin - ajp ] > checking if libtool supports shared libraries... yes > ... > checking how to run the C++ preprocessor... g++ -E > ltconfig: `../ltcf-cxx.sh' does not exist > [ *** so I copied this too, later - ajp ] > Try `ltconfig --help' for more information. > configure: error: libtool tag configuration failed > make: *** [all] Error 1 > > [ *** Rebooted Windows to free resources and ran again - ajp ] > Running aclocal ... > Running libtoolize... > You should update your `aclocal.m4' by running aclocal. > Running automake --foreign ... > Running autoconf ... > configure.in:33: warning: AC_PROG_LEX invoked multiple times > checking for a BSD compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > ... > checking for ld used by GCC... /usr/i686-pc-cygwin/bin/ld.exe > checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes > checking for /usr/i686-pc-cygwin/bin/ld.exe option to reload object > files... -r > checking for BSD-compatible nm... /usr/bin/nm -B > checking whether ln -s works... yes > checking how to recognise dependant libraries... file_magic file format > pei*-i38 > 6(.*architecture: i386)? > checking command to parse /usr/bin/nm -B output... ok > [ *** This is redundant!!! So are a lot of the checks below!!! - ajp ] > checking how to run the C preprocessor... gcc -E > checking for dlfcn.h... yes > checking for ranlib... ranlib > checking for strip... strip > checking for gcc option to produce PIC... none > checking whether the linker (/usr/i686-pc-cygwin/bin/ld.exe) supports shared > lib > raries... yes > checking command to parse /usr/bin/nm -B output... (cached) ok > [ *** Again! Redundant. - ajp ] > checking if gcc static flag -static works... yes > checking the maximum length of command line arguments... 786433 > checking if gcc supports -fno-rtti -fno-exceptions... yes > checking if gcc supports -c -o file.o... yes > checking for objdir... .libs > checking how to hardcode library paths into programs... immediate > checking whether stripping libraries is possible... yes > checking dynamic linker characteristics... Win32 ld.exe > checking whether -lc should be explicitly linked in... yes > creating libtool > > [ *** System was out of resources. Forced to reboot Windows and resume. - > ajp ] > [ *** New "make" after reboot - ajp] > > checking for style of include used by make... GNU > checking for gcc... gcc > > [ *** Same as above... - ajp] > checking whether -lc should be explicitly linked in... yes > creating libtool > 0 [main] sh 761473 fork_copy: user/cygwin data pass 2 failed, > 0x980000..0x > FFE000, done 0, windows pid 4294271315, Win32 error 8 > ../configure: Cannot fork: Resource temporarily unavailable > 0 [main] sh 759921 fork_copy: user/cygwin data pass 2 failed, > 0x980000..0x > FFD000, done 0, windows pid 4294316527, Win32 error 8 > ../configure: Cannot fork: Resource temporarily unavailable > checking if libtool supports shared libraries... yes > checking for g++... g++ > ../configure: Cannot fork: Resource temporarily unavailable > ../configure: Cannot fork: Resource temporarily unavailable > make: *** [all] Error 2 > > [ *** System was out of resources. Forced to reboot Windows and resume. - > ajp ] > [ *** After reboot - ajp] > > **Warning**: I am going to run `configure' with no arguments. > If you wish to pass any to it, please specify them on the > `/cygdrive/f/u/pinaar/ws/alliance/sources/ocp/autogen.sh' command line. > > Running aclocal ... > Running libtoolize... > You should update your `aclocal.m4' by running aclocal. > Running automake --foreign ... > Running autoconf ... > ... > checking how to run the C++ preprocessor... g++ -E > ltconfig: `../ltcf-cxx.sh' does not exist > Try `ltconfig --help' for more information. > configure: error: libtool tag configuration failed > make: *** [all] Error 1 > > [ *** Copied ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh from the gcc 3.0.3 source > tree - ajp] > [ *** Now, it timed-out at "creating libtool" - ajp ] > [ *** After reboot - ocp compiled!!!! Yeah!!! - ajp ] > > checking whether ln -s works... yes > ... > appending configuration tag "CXX" to libtool > checking for flex... flex > checking for flex... (cached) flex > checking for yywrap in -lfl... yes > ... > checking for an ANSI C-conforming const... yes > configure: creating ./config.status > config.status: creating Makefile > config.status: creating src/Makefile > config.status: creating src/common/Makefile > config.status: creating src/placer/Makefile > make[1]: Entering directory `/cygdrive/f/u/pinaar/ws/all_obj/ocp/Cygwin_tmp' > Making install in src > make[2]: Entering directory > `/cygdrive/f/u/pinaar/ws/all_obj/ocp/Cygwin_tmp/src' > > Making install in common > make[3]: Entering directory > `/cygdrive/f/u/pinaar/ws/all_obj/ocp/Cygwin_tmp/src/ > common' > source='../../../src/common/PBBox.cpp' object='PBBox.o' libtool=no \ > depfile='.deps/PBBox.Po' tmpdepfile='.deps/PBBox.TPo' \ > depmode=gcc /bin/sh ../../../depcomp \ > g++ -DPACKAGE=\"ocp\" -DVERSION=\"1.0\" -DHAVE_DLFCN_H=1 -DYYTEXT_POINTER=1 > -DAL > LIANCE_VERSION='"4.5.0"' -DMUT_H="<mut325.h>" -DMPH_H="<mph413.h>" -DMPU_H=" > <mpu > 408.h>" -DMLO_H="<mlo502.h>" -DMLU_H="<mlu502.h>" -I. -I../../../src/common > -I. > ./../../src/common -I/cygdrive/f/u/pinaar/ws/all_obj/archi/Cygwin/include > -g > -O2 -Wall -c -o PBBox.o `test -f ../../../src/common/PBBox.cpp || echo > '../../.. > /src/common/'`../../../src/common/PBBox.cpp > > The configure run took 20 minutes (6 minutes to get to the "creating > libtool" line. > > Well. I'm not sure who creates ltconfig, but I got a copy which worked. > > Since it takes so long to run "./configure", I updated the Makefile > to avoid if it's been run before: > > # Do not re-build Makefiles if configured > all : > @if [ -f $(ALLIANCE_OS)_tmp/config.status ]; then\ > cd $(ALLIANCE_OS)_tmp && make install;\ > else\ > if [ ! -L configure.in ]; then ln -s $(sdir)/configure.in;fi;\ > if [ ! -L Makefile.am ]; then ln -s $(sdir)/Makefile.am;fi;\ > if [ ! -L aclocal.m4 ]; then ln -s $(sdir)/aclocal.m4;fi;\ > if [ ! -L ltconfig ]; then ln -s > $(SRCDIR)/distrib/autoconf/ltconfig;fi;\ > if [ ! -L src ]; then ln -s $(sdir)/src;fi;\ > sh $(sdir)/autogen.sh;\ > mkdir -p $(ALLIANCE_OS)_tmp;\ > cd $(ALLIANCE_OS)_tmp && ../configure --prefix=$(ALLIANCE_INSTALL_DIR) > && > make install;\ > fi > > I also made more changes to source code to compile under Cygwin, e.g., > replacing > ssignal() and gsignal() with signal() and raise(). I'll post the context > diff's > after I build everything. > > I don't know if I'm the only one who has such a hard time with Cygwin under > Windows98, but I dread running GNU tools under native Windows, since Cygwin > does provide very nice symlinks and a cool Unix environment which I sorely > miss in the Windows DOS prompt window running "command.com". > > Well. I'm not out of the woods. I still to build "ocr". > > > Thanks & Regards, > > Art > > --

 



Alliance Web Site © 1997, 2002 ASIM/LIP6/UPMC, page maintained by Czo [Olivier Sirol] , last updated on 05 February 2002.