[erlang-bugs] R14B02: "make install-docs" fails on Ubuntu 10.04 / 10.10 (using the source tar-ball)

Andrew Thompson andrew@REDACTED
Wed Mar 16 19:15:56 CET 2011


On Wed, Mar 16, 2011 at 04:51:00PM +0100, Boris M??hmer wrote:
> "make install-docs" fails on Ubuntu 10.04 / 10.10 systems using the
> R14B02 source tar-ball (like in "R14B01").
> 
> The simple fix for "$ERL_TOP/Makefile.in" (or "$ERL_TOP/Makefile")
> would be to change line 412 from
>         $(ERL_TOP)/lib/erl_docgen/priv/bin/xref_mod_app.escript
> -topdir $(ERL_TOP) -outfile $(ERL_TOP)/make/$(TARGET)/mod2app.xml
> to
>         $(ERL_TOP)/bin/escript
> $(ERL_TOP)/lib/erl_docgen/priv/bin/xref_mod_app.escript -topdir
> $(ERL_TOP) -outfile $(ERL_TOP)/make/$(TARGET)/mod2app.xml
> 

Came here to report this. Boris' fix seems to solve the issue but then I
get this error:

=== Entering application common_test
make  RELEASE_PATH=/usr/local/lib/erlang   release_docs_spec 
escript
/Users/andrew/otp_src_R14B02/lib/erl_docgen/priv/bin/xml_from_edoc.escript
-preprocess true -i /include \
		-i ../../../test_server/include -i  ../../include \
		-i ../../../../erts/lib/kernel/include -i
../../../../lib/kernel/include \
		-i ../../../../erts/lib/snmp/include -i ../../../../lib/snmp/include
../../src/ct.erl
escript: exception error: undefined function edoc:file/2
  in function  erl_eval:local_func/5
  in call from escript:interpret/4
  in call from escript:start/1
  in call from init:start_it/1
  in call from init:start_em/1
make[5]: *** [ct.xml] Error 127
make[4]: *** [release_docs] Error 2
make[3]: *** [release_docs] Error 2
make[2]: *** [release_docs] Error 2
make[1]: *** [release_docs] Error 2
make: *** [install-docs] Error 2

Looks like a similar problem, except that this escript is being invoked
via 'escript' Changing 'escript' in the Makefile to '$(OTP_TOP)/escript'
seems to fix it, but its wrong in a bunch of the doc Makefiles.

Andrew


More information about the erlang-bugs mailing list