Oneliner fails on Ubuntu 11.04 #263

Closed
flashingpumpkin opened this Issue Sep 3, 2011 · 5 comments

Comments

Projects
None yet
2 participants
@flashingpumpkin
[... a lot of compilation going on ... ]
==> agner.xg1Naa (escriptize)
Uncaught error in rebar_core: {'EXIT',
                               {undef,
                                [{rebar_utils,expand_env_variable,
                                  ["gnome-classic","DESKTOP_SESSION",[]]},
                                 {rebar_port_compiler,merge_each_var,2},
                                 {rebar_port_compiler,setup_env,1},
                                 {rebar_core,'-setup_envs/2-lc$^0/1-0-',2},
                                 {rebar_core,'-setup_envs/2-lc$^0/1-0-',2},
                                 {rebar_core,setup_envs,2},
                                 {rebar_core,execute,4},
                                 {rebar_core,process_dir,4}]}}
make: *** [compile] Error 1

Compiling rebar manually and passing the same arguments works though:

1> rebar_utils:expand_env_variable("gnome-classic","DESKTOP_SESSION",[]).
"gnome-classic"

Not sure what's going on there, but I think that rebar_utils is not compiled?

This happens both with the simple and the release onliner.

@flashingpumpkin

This comment has been minimized.

Show comment Hide comment
@flashingpumpkin

flashingpumpkin Sep 5, 2011

I should also add, this is R14B03 like #264

I should also add, this is R14B03 like #264

@yrashk

This comment has been minimized.

Show comment Hide comment
@yrashk

yrashk Sep 7, 2011

Member

Should work now, please re-open if the issue persists.

Member

yrashk commented Sep 7, 2011

Should work now, please re-open if the issue persists.

@yrashk yrashk closed this Sep 7, 2011

@flashingpumpkin

This comment has been minimized.

Show comment Hide comment
@flashingpumpkin

flashingpumpkin Sep 10, 2011

Hi. Unfortunately it's still failing. Complete output below. Erlang was compiled with --prefix ~/local

alen@mu:[tmp]$ curl https://raw.github.com/agner/agner/master/scripts/oneliner | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   295  100   295    0     0    483      0 --:--:-- --:--:-- --:--:--   670
Cloning into /tmp/agner.k9uTl7...
remote: Counting objects: 1800, done.
remote: Compressing objects: 100% (618/618), done.
remote: Total 1800 (delta 1265), reused 1702 (delta 1174)
Receiving objects: 100% (1800/1800), 7.55 MiB | 1.04 MiB/s, done.
Resolving deltas: 100% (1265/1265), done.
==> agner.k9uTl7 (get-deps)
[Processing dependency: rebar]
remote: Counting objects: 3414, done.
remote: Compressing objects: 100% (1572/1572), done.
remote: Total 3414 (delta 2069), reused 2964 (delta 1683)
Receiving objects: 100% (3414/3414), 727.46 KiB | 553 KiB/s, done.
Resolving deltas: 100% (2069/2069), done.
[Processing dependency: gen_fsm2]
remote: Counting objects: 28, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 28 (delta 9), reused 28 (delta 9)
Unpacking objects: 100% (28/28), done.
[Processing dependency: getopt]
remote: Counting objects: 230, done.
remote: Compressing objects: 100% (97/97), done.
remote: Total 230 (delta 105), reused 226 (delta 102)
Receiving objects: 100% (230/230), 218.45 KiB, done.
Resolving deltas: 100% (105/105), done.
[Processing dependency: gproc]
remote: Counting objects: 848, done.
remote: Compressing objects: 100% (323/323), done.
remote: Total 848 (delta 600), reused 734 (delta 492)
Receiving objects: 100% (848/848), 778.64 KiB | 487 KiB/s, done.
Resolving deltas: 100% (600/600), done.
[Processing dependency: jsx]
remote: Counting objects: 2129, done.
remote: Compressing objects: 100% (880/880), done.
remote: Total 2129 (delta 1259), reused 1947 (delta 1105)
Receiving objects: 100% (2129/2129), 699.71 KiB | 556 KiB/s, done.
Resolving deltas: 100% (1259/1259), done.
[Processing dependency: plists]
remote: Counting objects: 68, done.
remote: Compressing objects: 100% (57/57), done.
remote: Total 68 (delta 26), reused 0 (delta 0)
Unpacking objects: 100% (68/68), done.
[Processing dependency: typespecs]
remote: Counting objects: 91, done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 91 (delta 18), reused 91 (delta 18)
Unpacking objects: 100% (91/91), done.
==> agner.k9uTl7 (pre_compile)
[Processing dependency: rebar]
[Building...]
Recompile: src/getopt
Recompile: src/mustache
Recompile: src/rebar
Recompile: src/rebar_abnfc_compiler
Recompile: src/rebar_app_utils
Recompile: src/rebar_appups
Recompile: src/rebar_asn1_compiler
Recompile: src/rebar_base_compiler
Recompile: src/rebar_cleaner
Recompile: src/rebar_config
Recompile: src/rebar_core
Recompile: src/rebar_ct
Recompile: src/rebar_deps
Recompile: src/rebar_edoc
Recompile: src/rebar_erlc_compiler
Recompile: src/rebar_erlydtl_compiler
Recompile: src/rebar_escripter
Recompile: src/rebar_eunit
Recompile: src/rebar_file_utils
Recompile: src/rebar_lfe_compiler
Recompile: src/rebar_log
Recompile: src/rebar_neotoma_compiler
Recompile: src/rebar_otp_app
Recompile: src/rebar_port_compiler
Recompile: src/rebar_protobuffs_compiler
Recompile: src/rebar_rel_utils
Recompile: src/rebar_reltool
Recompile: src/rebar_require_vsn
Recompile: src/rebar_subdirs
Recompile: src/rebar_templater
Recompile: src/rebar_upgrade
Recompile: src/rebar_utils
Recompile: src/rebar_xref
==> rebar (compile)
Congratulations! You now have a self-contained script called "rebar" in
your current working directory. Place this script anywhere in your path
and you can use rebar to build OTP-compliant apps.
[Processing dependency: gen_fsm2]
==> example (get-deps)
==> gen_fsm2 (get-deps)
[Building...]
==> example (compile)
Compiled src/example_fsm.erl
==> gen_fsm2 (compile)
Compiled src/gen_fsm2.erl
[Processing dependency: getopt]
==> getopt (get-deps)
[Building...]
==> getopt (compile)
Compiled src/getopt.erl
[Processing dependency: gproc]
==> edown (get-deps)
==> gen_leader (get-deps)
==> gproc (get-deps)
[Building...]
==> edown (compile)
Compiled src/edown_lib.erl
Compiled src/edown_doclet.erl
Compiled src/edown_xmerl.erl
Compiled src/edown_layout.erl
==> gen_leader (compile)
Compiled src/gen_leader.erl
==> gproc (compile)
Compiled src/gproc_app.erl
Compiled src/gproc_sup.erl
Compiled src/gproc_init.erl
Compiled src/gproc_lib.erl
Compiled src/gproc_info.erl
Compiled src/gproc_dist.erl
Compiled src/gproc.erl
[Processing dependency: jsx]
==> jsx (get-deps)
[Building...]
==> jsx (compile)
Compiled src/jsx_verify.erl
Compiled src/jsx_format.erl
Compiled src/jsx_utf8.erl
Compiled src/jsx_encoder.erl
Compiled src/jsx.erl
Compiled src/jsx_utils.erl
Compiled src/jsx_terms.erl
Compiled src/jsx_utf32.erl
Compiled src/jsx_utf16le.erl
Compiled src/jsx_utf32le.erl
Compiled src/jsx_utf16.erl
Compiled src/jsx_utf32le.erl
[Processing dependency: plists]
==> plists (get-deps)
[Building...]
==> plists (compile)
Compiled src/plists.erl
[Processing dependency: typespecs]
==> typespecs (get-deps)
[Building...]
==> typespecs (compile)
==> agner.k9uTl7 (compile)
Compiled src/agner_index.erl
Compiled src/agner_utils.erl
Compiled src/agner_rebar_plugin.erl
Compiled src/agner_repo_server_sup.erl
Compiled src/agner_spec.erl
Compiled src/agner_download.erl
Compiled src/agner_main.erl
Compiled src/agner_fetch.erl
Compiled src/agner_sup.erl
Compiled src/agner_repo_server.erl
Compiled src/agner_github.erl
Compiled src/agner_app.erl
Compiled src/agner.erl
Compiled src/agner_server.erl
==> agner.k9uTl7 (escriptize)
escript: exception error: undefined function getopt:parse/2
  in function  agner_main:main/1
  in call from escript:run/2
  in call from escript:start/1
  in call from init:start_it/1
  in call from init:start_em/1

Not sure why this is happening. getopt clearly has a parse/2 function.

Also, I do not have permissions to reopen the issue.

Hi. Unfortunately it's still failing. Complete output below. Erlang was compiled with --prefix ~/local

alen@mu:[tmp]$ curl https://raw.github.com/agner/agner/master/scripts/oneliner | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   295  100   295    0     0    483      0 --:--:-- --:--:-- --:--:--   670
Cloning into /tmp/agner.k9uTl7...
remote: Counting objects: 1800, done.
remote: Compressing objects: 100% (618/618), done.
remote: Total 1800 (delta 1265), reused 1702 (delta 1174)
Receiving objects: 100% (1800/1800), 7.55 MiB | 1.04 MiB/s, done.
Resolving deltas: 100% (1265/1265), done.
==> agner.k9uTl7 (get-deps)
[Processing dependency: rebar]
remote: Counting objects: 3414, done.
remote: Compressing objects: 100% (1572/1572), done.
remote: Total 3414 (delta 2069), reused 2964 (delta 1683)
Receiving objects: 100% (3414/3414), 727.46 KiB | 553 KiB/s, done.
Resolving deltas: 100% (2069/2069), done.
[Processing dependency: gen_fsm2]
remote: Counting objects: 28, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 28 (delta 9), reused 28 (delta 9)
Unpacking objects: 100% (28/28), done.
[Processing dependency: getopt]
remote: Counting objects: 230, done.
remote: Compressing objects: 100% (97/97), done.
remote: Total 230 (delta 105), reused 226 (delta 102)
Receiving objects: 100% (230/230), 218.45 KiB, done.
Resolving deltas: 100% (105/105), done.
[Processing dependency: gproc]
remote: Counting objects: 848, done.
remote: Compressing objects: 100% (323/323), done.
remote: Total 848 (delta 600), reused 734 (delta 492)
Receiving objects: 100% (848/848), 778.64 KiB | 487 KiB/s, done.
Resolving deltas: 100% (600/600), done.
[Processing dependency: jsx]
remote: Counting objects: 2129, done.
remote: Compressing objects: 100% (880/880), done.
remote: Total 2129 (delta 1259), reused 1947 (delta 1105)
Receiving objects: 100% (2129/2129), 699.71 KiB | 556 KiB/s, done.
Resolving deltas: 100% (1259/1259), done.
[Processing dependency: plists]
remote: Counting objects: 68, done.
remote: Compressing objects: 100% (57/57), done.
remote: Total 68 (delta 26), reused 0 (delta 0)
Unpacking objects: 100% (68/68), done.
[Processing dependency: typespecs]
remote: Counting objects: 91, done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 91 (delta 18), reused 91 (delta 18)
Unpacking objects: 100% (91/91), done.
==> agner.k9uTl7 (pre_compile)
[Processing dependency: rebar]
[Building...]
Recompile: src/getopt
Recompile: src/mustache
Recompile: src/rebar
Recompile: src/rebar_abnfc_compiler
Recompile: src/rebar_app_utils
Recompile: src/rebar_appups
Recompile: src/rebar_asn1_compiler
Recompile: src/rebar_base_compiler
Recompile: src/rebar_cleaner
Recompile: src/rebar_config
Recompile: src/rebar_core
Recompile: src/rebar_ct
Recompile: src/rebar_deps
Recompile: src/rebar_edoc
Recompile: src/rebar_erlc_compiler
Recompile: src/rebar_erlydtl_compiler
Recompile: src/rebar_escripter
Recompile: src/rebar_eunit
Recompile: src/rebar_file_utils
Recompile: src/rebar_lfe_compiler
Recompile: src/rebar_log
Recompile: src/rebar_neotoma_compiler
Recompile: src/rebar_otp_app
Recompile: src/rebar_port_compiler
Recompile: src/rebar_protobuffs_compiler
Recompile: src/rebar_rel_utils
Recompile: src/rebar_reltool
Recompile: src/rebar_require_vsn
Recompile: src/rebar_subdirs
Recompile: src/rebar_templater
Recompile: src/rebar_upgrade
Recompile: src/rebar_utils
Recompile: src/rebar_xref
==> rebar (compile)
Congratulations! You now have a self-contained script called "rebar" in
your current working directory. Place this script anywhere in your path
and you can use rebar to build OTP-compliant apps.
[Processing dependency: gen_fsm2]
==> example (get-deps)
==> gen_fsm2 (get-deps)
[Building...]
==> example (compile)
Compiled src/example_fsm.erl
==> gen_fsm2 (compile)
Compiled src/gen_fsm2.erl
[Processing dependency: getopt]
==> getopt (get-deps)
[Building...]
==> getopt (compile)
Compiled src/getopt.erl
[Processing dependency: gproc]
==> edown (get-deps)
==> gen_leader (get-deps)
==> gproc (get-deps)
[Building...]
==> edown (compile)
Compiled src/edown_lib.erl
Compiled src/edown_doclet.erl
Compiled src/edown_xmerl.erl
Compiled src/edown_layout.erl
==> gen_leader (compile)
Compiled src/gen_leader.erl
==> gproc (compile)
Compiled src/gproc_app.erl
Compiled src/gproc_sup.erl
Compiled src/gproc_init.erl
Compiled src/gproc_lib.erl
Compiled src/gproc_info.erl
Compiled src/gproc_dist.erl
Compiled src/gproc.erl
[Processing dependency: jsx]
==> jsx (get-deps)
[Building...]
==> jsx (compile)
Compiled src/jsx_verify.erl
Compiled src/jsx_format.erl
Compiled src/jsx_utf8.erl
Compiled src/jsx_encoder.erl
Compiled src/jsx.erl
Compiled src/jsx_utils.erl
Compiled src/jsx_terms.erl
Compiled src/jsx_utf32.erl
Compiled src/jsx_utf16le.erl
Compiled src/jsx_utf32le.erl
Compiled src/jsx_utf16.erl
Compiled src/jsx_utf32le.erl
[Processing dependency: plists]
==> plists (get-deps)
[Building...]
==> plists (compile)
Compiled src/plists.erl
[Processing dependency: typespecs]
==> typespecs (get-deps)
[Building...]
==> typespecs (compile)
==> agner.k9uTl7 (compile)
Compiled src/agner_index.erl
Compiled src/agner_utils.erl
Compiled src/agner_rebar_plugin.erl
Compiled src/agner_repo_server_sup.erl
Compiled src/agner_spec.erl
Compiled src/agner_download.erl
Compiled src/agner_main.erl
Compiled src/agner_fetch.erl
Compiled src/agner_sup.erl
Compiled src/agner_repo_server.erl
Compiled src/agner_github.erl
Compiled src/agner_app.erl
Compiled src/agner.erl
Compiled src/agner_server.erl
==> agner.k9uTl7 (escriptize)
escript: exception error: undefined function getopt:parse/2
  in function  agner_main:main/1
  in call from escript:run/2
  in call from escript:start/1
  in call from init:start_it/1
  in call from init:start_em/1

Not sure why this is happening. getopt clearly has a parse/2 function.

Also, I do not have permissions to reopen the issue.

@yrashk

This comment has been minimized.

Show comment Hide comment
@yrashk

yrashk Sep 10, 2011

Member

what does which escript return?

Member

yrashk commented Sep 10, 2011

what does which escript return?

@flashingpumpkin

This comment has been minimized.

Show comment Hide comment
@flashingpumpkin

flashingpumpkin Sep 10, 2011

alen@mu:[agner.ZeTmPK ~master]$ which escript
/home/alen/local/bin/escript

alen@mu:[agner.ZeTmPK ~master]$ which escript
/home/alen/local/bin/escript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment