Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling folsomite error #646

Open
amit-siddhu opened this issue Feb 1, 2017 · 7 comments
Open

Compiling folsomite error #646

amit-siddhu opened this issue Feb 1, 2017 · 7 comments

Comments

@amit-siddhu
Copy link

amit-siddhu commented Feb 1, 2017

Compiling /home/disco/master/deps/folsomite/src/folsomite_graphite_client.erl failed:
/home/disco/master/deps/folsomite/src/folsomite_graphite_client.erl:none: error in parse transform 'lager_transform': {function_clause,
[{lager_transform,
'-walk_ast/2-fun-0-',
[{typed_record_field,
{record_field,21,
{atom,21,tcp_socket}},
{remote_type,21,
[{atom,21,inet},
{atom,21,socket},
[]]}}],
[{file,
"src/lager_transform.erl"},
{line,60}]},
{lists,map,2,
[{file,"lists.erl"},
{line,1239}]},
{lager_transform,walk_ast,2,
[{file,
"src/lager_transform.erl"},
{line,60}]},
{compile,
'-foldl_transform/2-anonymous-2-',
2,
[{file,"compile.erl"},
{line,964}]},
{compile,foldl_transform,2,
[{file,"compile.erl"},
{line,966}]},
{compile,
'-internal_comp/4-anonymous-1-',
2,
[{file,"compile.erl"},
{line,321}]},
{compile,fold_comp,3,
[{file,"compile.erl"},
{line,347}]},
{compile,internal_comp,4,
[{file,"compile.erl"},
{line,331}]}]}
ERROR: compile failed while processing /home/disco/master/deps/folsomite: rebar_abort

@ghost
Copy link

ghost commented Feb 1, 2017

Which version of erlang and rebar?

@amit-siddhu
Copy link
Author

Erlang - 19
Rebar - 2.2.0

I managed to compile against erlang 18.3 but after handling many deprecation issues.

amit-siddhu added a commit to amit-siddhu/disco that referenced this issue Feb 2, 2017
@jackieduckie
Copy link

jackieduckie commented Aug 22, 2017

I'm running into the same issue on Erlang - 20, Rebar 3.5.1

@ghost
Copy link

ghost commented Aug 22, 2017

@jackieduckie thanks for the feedback do you have the traceback?

@jackieduckie
Copy link

jackieduckie commented Aug 23, 2017

==> goldrush (get-deps)
==> lager (get-deps)
==> bear (get-deps)
==> meck (get-deps)
==> folsom (get-deps)
==> folsomite (get-deps)
==> plists (get-deps)
==> mochiweb (get-deps)
==> master (get-deps)
==> goldrush (compile)
==> lager (compile)
==> bear (compile)
==> meck (compile)
==> folsom (compile)
==> folsomite (compile)
Compiling /Users/RuiningDong/disco/master/deps/folsomite/src/folsomite_graphite_client.erl failed:
/Users/RuiningDong/disco/master/deps/folsomite/src/folsomite_graphite_client.erl:none: error in parse transform 'lager_transform': {function_clause,
[{lager_transform,
'-walk_ast/2-fun-0-',
[{typed_record_field,
{record_field,21,
{atom,21,tcp_socket}},
{remote_type,21,
[{atom,21,inet},
{atom,21,socket},
[]]}}],
[{file,
"src/lager_transform.erl"},
{line,60}]},
{lists,map,2,
[{file,"lists.erl"},
{line,1239}]},
{lager_transform,walk_ast,2,
[{file,
"src/lager_transform.erl"},
{line,60}]},
{compile,
'-foldl_transform/3-anonymous-2-',
3,
[{file,"compile.erl"},
{line,1038}]},
{compile,foldl_transform,3,
[{file,"compile.erl"},
{line,1041}]},
{compile,
'-internal_comp/5-anonymous-1-',
3,
[{file,"compile.erl"},
{line,342}]},
{compile,fold_comp,4,
[{file,"compile.erl"},
{line,369}]},
{compile,internal_comp,5,
[{file,"compile.erl"},
{line,353}]}]}
ERROR: compile failed while processing /Users/RuiningDong/disco/master/deps/folsomite: rebar_abort
make: *** [master] Error 1

@ghost
Copy link

ghost commented Aug 23, 2017

@jackieduckie this looks like the same error. can you try the fix created here : amit-siddhu@4763ac8

Also see : #647
I haven't seen what the differences are between erl19 and erl 20.

If you know what changes have occurred between 19 and 20 feel free to open a pull request.

@jackieduckie
Copy link

Yes that solves part of the problem, combined with replacing now() with timestamp(), and updating the .config file of rebar, it works now. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants