bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNU Autoconf 2.65] testsuite: 74 192 283 284 285 286 289 failed


From: Romain Lenglet
Subject: Re: [GNU Autoconf 2.65] testsuite: 74 192 283 284 285 286 289 failed
Date: Sat, 13 Mar 2010 21:10:46 +0900
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109)

Ralf Wildenhues wrote:
192. autotest.at:1436: testing ...
./autotest.at:1488: autom4te --language=autotest -o suite suite.at
./autotest.at:1496: autoconf --force ./autotest.at:1496: /bin/sh -n configure ./autotest.at:1497: ./configure $configure_options --- /dev/null 2005-11-21 03:22:37.000000000 +0000
+++ /root/autoconf-2.65/tests/testsuite.dir/at-groups/192/stderr        
2010-03-09 15:33:42.000000000 +0000
@@ -0,0 +1,3 @@
+configure: error: in `/root/autoconf-2.65/tests/testsuite.dir/192':
+configure: error: test Erlang program execution failed
+See `config.log' for more details.
stdout:
checking for erl... /usr/bin/erl
checking for erlc... /usr/bin/erlc
checking for Erlang/OTP 'eunit' library subdirectory... ./autotest.at:1497: 
exit code was 1, expected 0
t/suite.log:
sed: can't read t/suite.log: No such file or directory
config.log:
[...]
configure:1746: checking for erl
configure:1764: found /usr/bin/erl
configure:1776: result: /usr/bin/erl
configure:1851: checking for erlc
configure:1869: found /usr/bin/erlc
configure:1881: result: /usr/bin/erlc
configure:1911: checking for Erlang/OTP 'eunit' library subdirectory
configure:1942: $ERLC $ERLCFLAGS -b beam conftest.$ac_ext >&5 && echo "#!/bin/sh" > conftest$ac_exeext && 
$as_echo "\"$ERL\" -run conftest start -run init stop -noshell" >> conftest$ac_exeext && chmod +x conftest$ac_exeext
File has wrong extension: beam
configure:1942: $? = 1
configure: program exited with status 1
configure: failed program was:
| -module(conftest).
| -export([start/0]).
| | start() ->
|           ReturnValue = case code:lib_dir("eunit") of
|           {error, bad_name} ->
|               file:write_file("conftest.out", "not found\n"),
|               1;
|           LibDir ->
|               file:write_file("conftest.out", LibDir),
|               0
|           end,
|           halt(ReturnValue)
| .
| configure:1947: error: in `/root/autoconf-2.65/tests/testsuite.dir/192':
configure:1950: error: test Erlang program execution failed

What does it mean for $ERLC to reject extension 'beam'?  Is this a
broken Erlang installation, or an unlelated program?  Let's CC: the
Erlang expert on this.

I can't reproduce this with the latest Autoconf revision and Erlang/OTP 13B3 (Debian unstable's package 1:13.b.3-dfsg-2).

I think like Ralf: you have /usr/bin/erl and /usr/bin/erlc executables that are not from Erlang/OTP: - your values of ERL, ERLC, ERLCFLAGS seem sane (i.e., there are real /usr/bin/erl and /usr/bin/erlc executables); - usually when Erlang's erlc prints out an error, it is prefixed by "erlc: ..."; - I can't find the string "File has wrong extension" in Erlang's erlc or in any of Erlang's files.


These logs for test 192 show clearly that it's your erlc that doesn't behave like Erlang's compiler:
...
192. autotest.at:1436: 192. Erlang Eunit unit tests (autotest.at:1436): FAILED
(autotest.at:1497)
...
> configure:1971: /usr/bin/erlc  -b beam conftest.erl >&5
> File has wrong extension: beam
> configure:1971: $? = 1
> configure: failed program was:
> | -module(conftest).
> | -export([start/0]).
> |
> | start() ->
> | halt(0)
> | .

Can you please try to write a conftest.erl file with those 3 lines:

-module(conftest).
-export([start/0]).
start() -> halt(0).

and run:
/usr/bin/erlc  -b beam conftest.erl

What's the result?
If it doesn't exit with status 0, it's not the Erlang compiler.
In that case, I would suggest renaming /usr/bin/erl and /usr/bin/erlc.

Best regards,
--
Romain Lenglet




reply via email to

[Prev in Thread] Current Thread [Next in Thread]