[CLN-list] CLN vs weird mixture of Cygwin and MinGW [Was: Results
of building cln-1.1.13 ...]
Sheplyakov Alexei
varg at theor.jinr.ru
Mon Aug 14 16:44:09 CEST 2006
Hello,
On Sun, Aug 13, 2006 at 07:42:59PM -0700, Richard Haney wrote:
> > I'm sorry, but your message lacks any relevant info. PLEASE, post
> > your config.log file.
> I'm sorry my message lacked any information relevant to your particular
> interests,
This information is necessary to anyone who are going to fix the issues
you've mentioned. In general, if you report a bug about configure
script not doing its job the Right Way (TM), it is a good idea to post
your config.log file.
> For example, the fact that the CLN configure command took only about
> two minutes could make a _huge_ difference in how someone goes about
> building CLN or even in deciding to build CLN at all (say, for a
> complete "newbie" only tentatively interested in cln).
> The GiNaC configure script takes about 30 minutes on the same computer.
On my Duron 800 with 512Mb RAM (running Debian GNU/Linux sid) running
GiNaC configure script takes about 1 minute. On ReactOS it is indeed
somewhat slower, but it is not *that* slow.
> uname -s = CYGWIN_NT-5.1
You are trying to make win32 libraries with a mix of Cygwin and MinGW
tools. While it is certainly possible build win32 libraries/binaries
with such a setup, it is a little bit tricky, so I suggest you to use MSYS.
BTW, running shell scripts with MSYS is *much* faster.
If you insist on using Cygwin+MinGW, you need at least to
1) give the configure script proper --build and --host arguments,
e.g.,
--build=i586-mingw32msvc --host=i586-mingw32msvc
2) make sure that directories with MinGW tools listed first in your $PATH,
which is not the case with your setup:
> PATH: /usr/local/bin
> PATH: /usr/bin
> PATH: /bin
> PATH: /cygdrive/c/Dev-Cpp/bin
> PATH: /cygdrive/c/Borland/BCC55/Bin
> PATH: /cygdrive/c/PROGRA~1/Vide_2.0
> PATH: /cygdrive/c/dm/bin
> Also, I would think the information I provided about the missing .exe
> extensions for executable targets in the Makefiles would be extremely
> useful for anyone wanting to fix that particular problem I described.
Yes, this is somewhat useful information.
> Since I suppose you are interested in the config.log file for the first
> configure run after I changed the order of directories in my PATH
> variable (and running "make distclean" and doing manual cleanup, as I
> recall), I am attaching essentially a copy of that file, with slight
> editing as noted for "host name". (I'm not sure whether it could be a
> significant point of vulnerability to Internet mischief if made
> public.)
OK, host name is really irrelevant.
> I'm also deleting the last directory name listed for PATH because it
> seems irrelevant
I don't know if presence of this particular directory in your PATH is
important or not ...
> and could possibility be misconstrued as to
> being of any general significance by sufficiently ignorant people.
... but instead of writing such an offensive phrase you could have
modified your PATH before running configure to not contain that
directory.
> I suppose the information after "checking for suffix of executables" and
> at "ac_cv_exeext=.exe" may be of particular interest in determining
> where the autoconf/configure process may be in error in regard to the
> missing .exe extensions for executable targets in Makefiles.
Autoconf does its job right, but CLN's tests/Makefile.in do not care
about $(EXEEXT). Attached patch should fix this.
> Hopefully, the config.log file will also help in determining why the
> default value for the Makefile INSTALL variable
There is no such a default. The value of this variable is determined by
the configure script, which is basically searches for required program
in your $PATH.
> causes a crash in the doc directory for "make install".
I think it is either Cygwin bug or just your setup is horribly broken.
Best regards,
Alexei.
--
All science is either physics or stamp collecting.
-------------- next part --------------
Index: cln-1.1.13/tests/Makefile.in
===================================================================
--- cln-1.1.13.orig/tests/Makefile.in 2006-08-13 14:21:23.000000000 +0400
+++ cln-1.1.13/tests/Makefile.in 2006-08-13 14:56:16.000000000 +0400
@@ -24,6 +24,7 @@
LN = ln
RM = rm -f
@SET_MAKE@
+EXEEXT = @EXEEXT@
#### End of system configuration section. ####
@@ -48,7 +49,8 @@
LIBS = ../src/libcln.la -lm
LIBDEPS = ../src/libcln.la
-PROGRAMS = exam tests timemul timesquare timediv timesqrt timegcd timefact timeprint timeLFsqrt timeRAtoLF timeLFRAmul timeRALFdiv timepi timeexp1 timeeuler timecatalan timezeta3 timeLFln timeLFexp timeLFsin timeLFcos timeLFsinh timeLFcosh timeLFatan timeLFatanh timerecip2adic timediv2adic timeMIpow2recip timeMIpow2div timeMImisc5 timeUPMImul timesqrtmodp main
+PROGRAMS = $(addsuffix $(EXEEXT),exam tests timemul timesquare timediv timesqrt timegcd timefact timeprint timeLFsqrt timeRAtoLF timeLFRAmul timeRALFdiv timepi timeexp1 timeeuler timecatalan timezeta3 timeLFln timeLFexp timeLFsin timeLFcos timeLFsinh timeLFcosh timeLFatan timeLFatanh timerecip2adic timediv2adic timeMIpow2recip timeMIpow2div timeMImisc5 timeUPMImul timesqrtmodp main)
+
MODULES_exam = exam exam_I exam_RA exam_SF exam_FF exam_DF exam_LF exam_I_gcd exam_I_sqrtp
MODULES_tests = tests \
test_I \
@@ -94,7 +96,7 @@
MODULES_timesqrtmodp = timesqrtmodp
MODULES_main = main
-all : exam tests
+all : exam$(EXEEXT) tests$(EXEEXT)
%.s : %.c
$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -S $< -o $@
@@ -126,41 +128,42 @@
../src/libcln.a :
cd ../src ; $(MAKE) libcln.a
-exam : $(patsubst %,%.o,$(MODULES_exam))
-tests : $(patsubst %,%.o,$(MODULES_tests))
-timemul : $(patsubst %,%.o,$(MODULES_timemul))
-timesquare : $(patsubst %,%.o,$(MODULES_timesquare))
-timediv : $(patsubst %,%.o,$(MODULES_timediv))
-timesqrt : $(patsubst %,%.o,$(MODULES_timesqrt))
-timegcd : $(patsubst %,%.o,$(MODULES_timegcd))
-timefact : $(patsubst %,%.o,$(MODULES_timefact))
-timeprint : $(patsubst %,%.o,$(MODULES_timeprint))
-timeLFsqrt : $(patsubst %,%.o,$(MODULES_timeLFsqrt))
-timeRAtoLF : $(patsubst %,%.o,$(MODULES_timeRAtoLF))
-timeLFRAmul : $(patsubst %,%.o,$(MODULES_timeLFRAmul))
-timeRALFdiv : $(patsubst %,%.o,$(MODULES_timeRALFdiv))
-timepi : $(patsubst %,%.o,$(MODULES_timepi))
-timeexp1 : $(patsubst %,%.o,$(MODULES_timeexp1))
-timeeuler : $(patsubst %,%.o,$(MODULES_timeeuler))
-timecatalan : $(patsubst %,%.o,$(MODULES_timecatalan))
-timezeta3 : $(patsubst %,%.o,$(MODULES_timezeta3))
-timeLFln : $(patsubst %,%.o,$(MODULES_timeLFln))
-timeLFexp : $(patsubst %,%.o,$(MODULES_timeLFexp))
-timeLFsin : $(patsubst %,%.o,$(MODULES_timeLFsin))
-timeLFcos : $(patsubst %,%.o,$(MODULES_timeLFcos))
-timeLFsinh : $(patsubst %,%.o,$(MODULES_timeLFsinh))
-timeLFcosh : $(patsubst %,%.o,$(MODULES_timeLFcosh))
-timeLFatan : $(patsubst %,%.o,$(MODULES_timeLFatan))
-timeLFatanh : $(patsubst %,%.o,$(MODULES_timeLFatanh))
-timerecip2adic : $(patsubst %,%.o,$(MODULES_timerecip2adic))
-timediv2adic : $(patsubst %,%.o,$(MODULES_timediv2adic))
-timeMIpow2recip : $(patsubst %,%.o,$(MODULES_timeMIpow2recip))
-timeMIpow2div : $(patsubst %,%.o,$(MODULES_timeMIpow2div))
-timeMImisc5 : $(patsubst %,%.o,$(MODULES_timeMImisc5))
-timeUPMImul : $(patsubst %,%.o,$(MODULES_timeUPMImul))
-timesqrtmodp : $(patsubst %,%.o,$(MODULES_timesqrtmodp))
-main : $(patsubst %,%.o,$(MODULES_main))
-$(PROGRAMS) : % : $(LIBDEPS)
+exam$(EXEEXT) : $(patsubst %,%.o,$(MODULES_exam))
+tests$(EXEEXT) : $(patsubst %,%.o,$(MODULES_tests))
+timemul$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timemul))
+timesquare$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timesquare))
+timediv$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timediv))
+timesqrt$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timesqrt))
+timegcd$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timegcd))
+timefact$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timefact))
+timeprint$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timeprint))
+timeLFsqrt$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timeLFsqrt))
+timeRAtoLF$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timeRAtoLF))
+timeLFRAmul$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timeLFRAmul))
+timeRALFdiv$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timeRALFdiv))
+timepi$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timepi))
+timeexp1$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timeexp1))
+timeeuler$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timeeuler))
+timecatalan$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timecatalan))
+timezeta3$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timezeta3))
+timeLFln$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timeLFln))
+timeLFexp$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timeLFexp))
+timeLFsin$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timeLFsin))
+timeLFcos$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timeLFcos))
+timeLFsinh$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timeLFsinh))
+timeLFcosh$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timeLFcosh))
+timeLFatan$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timeLFatan))
+timeLFatanh$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timeLFatanh))
+timerecip2adic$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timerecip2adic))
+timediv2adic$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timediv2adic))
+timeMIpow2recip$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timeMIpow2recip))
+timeMIpow2div$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timeMIpow2div))
+timeMImisc5$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timeMImisc5))
+timeUPMImul$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timeUPMImul))
+timesqrtmodp$(EXEEXT) : $(patsubst %,%.o,$(MODULES_timesqrtmodp))
+main$(EXEEXT) : $(patsubst %,%.o,$(MODULES_main))
+
+$(PROGRAMS) : %$(EXEEXT) : $(LIBDEPS)
$(LIBTOOL_LINK) $(CXX) $(CXXFLAGS) $(TARGET_ARCH) $(patsubst %,%.o,$(MODULES_$(*F))) $(LDFLAGS) $(LIBS) -o $@
@@ -171,8 +174,8 @@
uninstall :
check : all
- ./exam
- ./tests
+ ./exam$(EXEEXT)
+ ./tests$(EXEEXT)
mostlyclean : clean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
Url : http://www.cebix.net/pipermail/cln-list/attachments/20060814/823e524f/attachment.pgp
More information about the CLN-list
mailing list