Web lists-archives.org

Re: [Mingw-users] help to compile gmp-4.2.2






> Date: Tue, 5 Feb 2008 01:17:38 +0800
> From: 10walls@xxxxxxxxx
> To: mingw-users@xxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [Mingw-users] help to compile gmp-4.2.2
>
> Eduardo Mendes wrote:
> >
> >
> > > Date: Mon, 4 Feb 2008 23:13:00 +0800
> > > From: 10walls@xxxxxxxxx
> > > To: mingw-users@xxxxxxxxxxxxxxxxxxxxx
> > > Subject: Re: [Mingw-users] help to compile gmp-4.2.2
> > >
> > > Eduardo Mendes wrote:
> > > >
> > > >
> > > > Done but
> > > >
> > > >
> > > > :/msys/1.0/bin/sh.exe ../libtool --mode=compile gcc -DHAVE_CONFIG_H
> > -I.
> > > > -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo add_1 | sed
> > > > 's/_$//'` -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8
> > > > -mno-cygwin -c -o add_1.lo add_1.c
> > > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..
> > > > -DOPERATION_add_1 -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8
> > > > -mno-cygwin -c add_1.c -o add_1.o
> > > > C:/msys/1.0/bin/sh.exe ../libtool --mode=compile --tag=CC
> > ../mpn/m4-ccas
> > > > --m4="m4" gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..
> > > > -DOPERATION_`echo add_n | sed 's/_$//'` -m32 -O2 -fomit-frame-pointer
> > > > -mtune=k8 -march=k8 -mno-cygwin `test -f 'add_n.asm' || echo
> > './'`add_n.asm
> > > > ../mpn/m4-ccas "--m4=m4 gcc" -c -DHAVE_CONFIG_H -I. -I. -I..
> > > > -D__GMP_WITHIN_GMP -I.. -DOPERATION_add_n -m32 -O2
> > -fomit-frame-pointer
> > > > -mtune=k8 -march=k8 -mno-cygwin add_n.asm -o add_n.o
> > > > m4 gcc -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_add_n add_n.asm
> > > > >tmp-add_n.s
> > > > m4: gcc: No such file or directory
> > > > make[2]: *** [add_n.lo] Error 1
> > > > make[2]: Leaving directory `C:/msys/1.0/home/eduardo/gmp-4.2.2/mpn'
> > > > make[1]: *** [all-recursive] Error 1
> > > > make[1]: Leaving directory `C:/msys/1.0/home/eduardo/gmp-4.2.2'
> > > > make: *** [all] Error 2
> > > >
> > > >
> > > > Do you think I need to update libtool?
> > > >
> > > > Many thanks
> > > >
> > > > Ed
> > > >
> > >
> > > It has nothing to do with the installed libtool. Try rerunning
> > > configure.
> >
> > Bfore every attempt, I issue make distclean and then retype the
> > configure command.
> >
> > > I am unable to duplicate your problem. Having '../mpn/m4-ccas
> > > "--m4=m4 gcc"' is strange, mine emits '../mpn/m4-ccas --m4=m4 gcc -c',
> > > there are no double quotes in mine.
> > >
> > > What does "cat mpn/Makefile|grep M4" say?
> >
> > It says:
> >
> > CLOCAL_M4 = $(top_srcdir)/aclocal.m4
> > $(ACLOCAL_M4)
> > M4 = m4
> > $(ACLOCAL_M4): # $(am__aclocal_m4_deps)
> > $(M4) -DOPERATION_$* `test -f '$<' || echo '$(srcdir)/'`$< >tmp-$*.s
> > $(M4) -DOPERATION_$* `if test -f '$<'; then $(CYGPATH_W) '$<';
> > else $(CYGPATH_W) '$(srcdir)/$<'; fi` >tmp-$*.s
> > $(LIBTOOL) --mode=compile --tag=CC $(top_srcdir)/mpn/m4-ccas
> > --m4="$(M4)" $(CCAS) $(COMPILE_FLAGS) `test -f '$<' || echo '$(srcdir)/'`$<
> >
> >
> > I have removed gmp-4.2.2 dir and done everything from scratch.
> > Unfortunately the error msg is the same.
> >
>
> I'll admit I have no idea what went wrong. Where is "m4 gcc" expanded
> from? Something is very wrong...
>
> OK, since m4 is contains no spaces, try removing quotation marks from
> --m4="$(M4)". "cat mpn/Makefile|grep '\-\-m4\=' -n" will tell you which
> line it is on.
>
> Edit mpn/Makefile manually or use the sed _expression_
> 's/\-\-m4\=\"\$(M4)"/\-\-m4\=\$(M4)/g' on it.
>
> If it still fails, post your config.log and mpn\Makefile. Maybe
> MinGW-users list has makefile gurus.
>
 
It worked - make finished without an error.  I tried make install and gives an error (maybe you can help me here too).
 
:/msys/1.0/bin/sh.exe ./libtool --mode=install /bin/install -c  'libgmp.la' '/mingw/lib/libgmp.la'
/bin/install -c .libs/libgmp.lai /mingw/lib/libgmp.la
./libtool: line 6426: /bin/install: Permission denied
make[3]: *** [install-libLTLIBRARIES] Error 126
make[3]: Leaving directory `C:/msys/1.0/home/eduardo/gmp-4.2.2'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `C:/msys/1.0/home/eduardo/gmp-4.2.2'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `C:/msys/1.0/home/eduardo/gmp-4.2.2'
make: *** [install] Error 2
 
Many many thanks
 
Ed
 
 
 

> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> MinGW-users mailing list
> MinGW-users@xxxxxxxxxxxxxxxxxxxxx
>
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.sourceforge.net/lists/listinfo/mingw-users



Express yourself instantly with MSN Messenger! MSN Messenger
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users