[PPL-devel] conftest.cc disappearing in a misterious way

Roberto Bagnara bagnara at cs.unipr.it
Wed Jul 6 11:32:23 CEST 2005


Hi there,

a user has troubles configuring a (autoconfiscated) library
we have written.  He is on a (fully up-to-date and not hacked
in any way) Cygwin system and uses a configure script generated
by Autoconf 2.59.
Below is, I believe, the relevant section of config.log.
To summarize:

1) tests are made for signal.h usability and presence:
    these are both successful;
2) immediately after, a test for sys/time.h presence
    failes because "g++: conftest.cc: No such file or directory".
    This is strange, because conftest.cc should have been created
    by the configure script.
3) The test for sys/time.h usability succeeds!
4) Both tests for sys/resource.h presence and usability fail for
    the same reason: "g++: conftest.cc: No such file or directory".

configure:29564: checking signal.h usability
configure:29576: g++ -c  -g -O2  conftest.cc >&5
configure:29582: $? = 0
configure:29586: test -z
			 || test ! -s conftest.err
configure:29589: $? = 0
configure:29592: test -s conftest.o
configure:29595: $? = 0
configure:29605: result: yes
configure:29609: checking signal.h presence
configure:29619: g++ -E  conftest.cc
configure:29625: $? = 0
configure:29645: result: yes
configure:29680: checking for signal.h
configure:29687: result: yes
configure:29564: checking sys/time.h usability
configure:29576: g++ -c  -g -O2  conftest.cc >&5
configure:29582: $? = 0
configure:29586: test -z
			 || test ! -s conftest.err
configure:29589: $? = 0
configure:29592: test -s conftest.o
configure:29595: $? = 0
configure:29605: result: yes
configure:29609: checking sys/time.h presence
configure:29619: g++ -E  conftest.cc
g++: conftest.cc: No such file or directory
g++: no input files
configure:29625: $? = 1
configure: failed program was:
configure:29645: result: no
configure:29651: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!
configure:29653: WARNING: sys/time.h: proceeding with the compiler's result
configure:29680: checking for sys/time.h
configure:29687: result: yes
configure:29564: checking sys/resource.h usability
configure:29576: g++ -c  -g -O2  conftest.cc >&5
g++: conftest.cc: No such file or directory
g++: no input files
configure:29582: $? = 1
configure: failed program was:
configure:29605: result: no
configure:29609: checking sys/resource.h presence
configure:29619: g++ -E  conftest.cc
g++: conftest.cc: No such file or directory
g++: no input files
configure:29625: $? = 1
configure: failed program was:
configure:29645: result: no
configure:29680: checking for sys/resource.h
configure:29687: result: no
configure:29555: checking for sys/time.h
configure:29560: result: yes
configure:29555: checking for sys/types.h
configure:29560: result: yes
configure:29555: checking for unistd.h
configure:29560: result: yes

I have googled for around one hour and I have seen that many people
had this problem in the past (just replace "conftest.cc" with "conftest.c"
in the search), but noone seems to have found the cause.  Not having
access to the user's machine I don't know how to proceed, since I cannot
reproduce the problem on my machines.  A careful inspection of the entire
config.log output did not reveal anything to me.
Any idea what may be wrong?
All the best,

     Roberto

-- 
Prof. Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy
http://www.cs.unipr.it/~bagnara/
mailto:bagnara at cs.unipr.it



More information about the PPL-devel mailing list