OCaml Forge
SCM

Detail: [#1369] ./configure does not run through (without explicit error message)

Bugs: Browse | Download .csv | Monitor

[#1369] ./configure does not run through (without explicit error message)

Date:
2014-02-07 11:16
Priority:
3
State:
Closed
Submitted by:
Martin Steffen (martinsteffen)
Assigned to:
Nobody (None)
Hardware:
Other
Resolution:
Not a bug
Severity:
None
Version:
None
Component:
None
Operating System:
Linux
Product:
None
 
URL:
Summary:
./configure does not run through (without explicit error message)

Detailed description
Installing lablgtk-2.18.0 fails already (it seems) at the configuration phase. Below is the complete output of
the configure. It ends with the message about gcc (without giving message that something is wrong). When doing "make world" afterwards, make complains

config.make is not up to date. Execute ./configure first.

Comparing the output below to the result of doing the same on a different system (Fedora on a Dell laptop, instead of RHEL on a Dell-PC) indicates that actually configure script did not run to its natural end. Since there's not explicit error message, I don't know what made it choke. Comparing it again the the successful run under Fedora: the next line would (at that platform) be

checking for gcc .... gcc


Martin




---------------------------------- putput of ./configure -------------------------------------
[lablgtk-2.18.0]$ configure
checking for ocamlc... ocamlc
ocaml version is 4.02.0+dev3-2013-12-19
ocaml library path is /hom/pma/lib/ocaml
Default install dirs are : /hom/pma/lib/ocaml/lablgtk2 and /hom/pma/lib/ocaml/stublibs
Compile with ocamlc -I +lablgtk2
checking for ocamlopt... ocamlopt
checking ocamlopt version... ok
checking for ocamlc.opt... ocamlc.opt
checking ocamlc.opt version... ok
checking for ocamlopt.opt... ocamlopt.opt
checking ocamlc.opt version... ok
checking for ocamlrun... ocamlrun
checking for ocamldep... ocamldep
checking for ocamldoc... ocamldoc
checking for ocamllex... ocamllex
checking for ocamlyacc... ocamlyacc
checking for ocamlmktop... ocamlmktop
checking for ocamlmklib... ocamlmklib
checking for camlp4o... camlp4o
checking for ocamlfind... ocamlfind
ocamlfind library path is /hom/pma/lib/ocaml/site-lib
ocamlfind ldconf path is /hom/pma/lib/ocaml/ld.conf
checking for ocaml threads... use system threads
checking for ocaml dll support... yes
checking for ranlib... ranlib
OCaml uses gcc to compile C files
--------------------------------------------------------

Followup

Message
Date: 2014-11-09 07:04
Sender: Jacques Garrigue

Good to know that this wasn't LablGTK's fault.
Thanks for the update.
Date: 2014-10-16 14:55
Sender: Martin Steffen



Hi,

I played around a bit. I recently tried to install a different tool
(unrelated) and the same happended. So, it seemed that the problem was
not lablgtk, but the configure-procedure in general.

What _exactly_ caused the problem, I don't know. I looked at my PATH
(which was quite long, as I added different directories here and there)
and I started shortening it, in order to narrow down which software
interferes badly. Anyhow, I run the ./configure with a pretty barebone
PATH (just /sbin, /usr/local/bin and a few others) and then it works (at
least the configure; got a nother problem now with compiling, but I try
to solve that independently).

So: some stuff in the extended PATH I had must have disrupted the
the configures stuff so that it choked. I did not in the end bothered to
find out exactly what it was, but just to let you know: it was nothing
directly related to lablgtk.

Martin
Date: 2014-09-25 06:25
Sender: Martin Steffen

> That is, if you have all the -dev packages, then running autocon


In the README, I found

> In case you are using the SVN version you may have to first type
> "aclocal && autoconf".

So, I Iused this time the git-clone (not svn, I did not find that, I don't know whether svn is (still) available) and did as the README said, i.e. aclocal and autoconf. Both run silently, but the configure afterwards has the same behavior.

Martin
Date: 2014-09-24 09:01
Sender: Jacques Garrigue

This is a rather desperate case.
All the stranger as configure is just using a standard autoconf macro to detect the C compiler.

A last attempt could be rebuilding configure locally.
That is, if you have all the -dev packages, then running autoconf should give you a version of configure that may work better.
Date: 2014-09-24 06:09
Sender: Martin Steffen

Hi,

the path and the version are

[msteffen@nittedal lablgtk-2.18.0]$ which gcc
/usr/bin/gcc
[msteffen@nittedal lablgtk-2.18.0]$ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4).


With the setting CC=gcc and verbose, and I tried the newer version 2.18.2, but there was indeed no change.
Date: 2014-09-24 00:10
Sender: Jacques Garrigue

That is really strange.
Looking at the configure script, I see nothing to be executed between the last line output and the next message, so I have no idea on what it chokes.
Note that the current version of lablgtk is 2.18.2, but I see no recent change in configure, so this shouldn't make a difference.

Could you check that gcc is in your path:
$ which gcc
and try to execute configure giving gcc explicitly
$ CC=gcc ./configure -verbose
I don't expect to see much difference, but...
Date: 2014-09-23 11:40
Sender: Martin Steffen

I tried again on the same platform (RHEL). If I do

make clean and then ./configure the following happens (so it's one like more than I had orignally posted) but it does not run to the end (compared to the behavior under fedora). I appended also the config.log, as you suggested.


[msteffen@nittedal lablgtk-2.18.0]$ make clean
make -C src clean
make[1]: Entering directory `/ifi/asgard/p00/pma/src/lablgtk-2.18.0/src'
Makefile:19: ../config.make: No such file or directory
make[1]: *** No rule to make target `../config.make'. Stop.
make[1]: Leaving directory `/ifi/asgard/p00/pma/src/lablgtk-2.18.0/src'
make: *** [clean] Error 2

-------

./configure
checking for ocamlc... ocamlc
ocaml version is 4.02.0+dev3-2013-12-19
ocaml library path is /hom/pma/lib/ocaml
Default install dirs are : /hom/pma/lib/ocaml/lablgtk2 and /hom/pma/lib/ocaml/stublibs
Compile with ocamlc -I +lablgtk2
checking for ocamlopt... ocamlopt
checking ocamlopt version... ok
checking for ocamlc.opt... ocamlc.opt
checking ocamlc.opt version... ok
checking for ocamlopt.opt... ocamlopt.opt
checking ocamlc.opt version... ok
checking for ocamlrun... ocamlrun
checking for ocamldep... ocamldep
checking for ocamldoc... ocamldoc
checking for ocamllex... ocamllex
checking for ocamlyacc... ocamlyacc
checking for ocamlmktop... ocamlmktop
checking for ocamlmklib... ocamlmklib
checking for camlp4o... camlp4o
checking for ocamlfind... ocamlfind
ocamlfind library path is /hom/pma/lib/ocaml/site-lib
ocamlfind ldconf path is /hom/pma/lib/ocaml/ld.conf
checking for ocaml threads... use system threads
checking for ocaml dll support... yes
checking for ranlib... ranlib
OCaml uses gcc to compile C files
checking for gcc... [msteffen@nittedal lablgtk-2.18.0]$

Date: 2014-09-18 05:52
Sender: Jacques Garrigue

Sorry for not answering earlier.
Does it really stop there?
I can see no reason.
Could you send config.log ?

Attached Files:

Attachments:
config.log
config.log

Changes:

Field Old Value Date By
status_idOpen2014-11-09 07:04garrigue
close_dateNone2014-11-09 07:04garrigue
ResolutionNone2014-11-09 07:04garrigue
File Added296: config.log2014-09-24 06:09martinsteffen
File Added295: config.log2014-09-23 11:40martinsteffen