Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

build error on erlang R14B04 (erts-5.8.5) #10

Open
marianoguerra opened this Issue · 7 comments

6 participants

@marianoguerra

hi, trying to fetch and build simple_bridge which depends on this project failed with the following error:

I can reproduce it fetching and building this project, if you need more info let me know.

./rebar compile
==> proper (compile)
./write_compile_flags include/compile_flags.hrl
Compiled src/strip_types.erl
Compiled src/vararg.erl
Compiled src/proper_prop_remover.erl
Compiled src/proper_transformer.erl
Compiled src/proper_fsm.erl
Compiled src/proper_statem.erl
Compiled src/proper_orddict.erl
Compiled src/proper_symb.erl
Compiled src/proper_queue.erl
Compiled src/proper_dict.erl
Compiled src/proper_gb_sets.erl
Compiled src/proper_gb_trees.erl
Compiled src/proper_array.erl
Compiled src/proper_ordsets.erl
Compiled src/proper.erl
Compiled src/proper_sets.erl
Compiled src/proper_arith.erl
Compiled src/proper_shrink.erl
src/proper_types.erl:343: Warning: missing specification for function from_binary/1
src/proper_types.erl:460: Warning: missing specification for function unwrap/1
Compiled src/proper_types.erl
Compiled src/proper_gen.erl
Compiled src/proper_typeserver.erl
==> proper_stdlib (compile)
src/proper_ct.erl:none: error in parse transform 'ct_line': {undef,
                     [{ct_line,parse_transform,
                       [[{attribute,1,file,
                      {"src/proper_ct.erl",1}},
                     {attribute,1,module,proper_ct},
                     {attribute,2,export,
                      [{parse_transform,2}]},
                     {attribute,3,export,[{tc_proper,2}]},
                     {attribute,4,export,[{testcases,1}]},
                     {attribute,1,file,
                      {"/usr/lib/erlang/lib/common_test-1.5.5/include/ct.hrl",
                       1}},
                     {attribute,1,file,
                      {"/usr/lib/erlang/lib/test_server-3.4.5/include/test_server.hrl",
                       1}},
                     {attribute,21,file,
                      {"/usr/lib/erlang/lib/common_test-1.5.5/include/ct.hrl",
                       21}},
                     {attribute,-21,file,{[],21}},
                     {attribute,7,file,
                      {"src/proper_ct.erl",7}},
                     {function,8,parse_transform,2,
                      [{clause,8,
                        [{var,8,'Forms'},
                         {var,8,'_Options'}],
                        [],
                        [{match,9,
                          {var,9,'Properties'},
                          {call,9,
                           {atom,9,collect_properties},
                           [{var,9,'Forms'}]}},
                         {match,10,
                          {tuple,10,
                           [{var,10,'HdrForms'},
                        {var,10,'Clauses'}]},
                          {call,11,
                           {remote,11,
                        {atom,11,lists},
                        {atom,11,splitwith}},
                           [{'fun',11,
                         {clauses,
                          [{clause,12,
                            [{var,12,'T'}],
                            [[{op,12,'=/=',
                               {call,12,
                            {atom,12,element},
                            [{integer,12,1},
                             {var,12,'T'}]},
                               {atom,12,function}}]],
                            [{atom,12,true}]},
                           {clause,13,
                            [{var,13,'_'}],
                            [],
                            [{atom,13,false}]}]}},
                        {var,14,'Forms'}]}},
                         {op,15,'++',
                          {var,15,'HdrForms'},
                          {op,16,'++',
                           {call,15,
                        {atom,15,tc_exports},
                        [{var,15,'Properties'}]},
                           {op,16,'++',
                        {var,16,'Clauses'},
                        {call,16,
                         {atom,16,tc_clauses},
                         [{var,16,
                           'Properties'}]}}}}]}]},
                     {function,18,tc_output,2,
                      [{clause,18,
                        [{cons,18,{var,18,'C'},{nil,18}},
                         {nil,18}],
                        [[{call,18,
                           {atom,18,is_integer},
                           [{var,18,'C'}]}]],
                        [{call,19,
                          {remote,19,
                           {atom,19,io},
                           {atom,19,format}},
                          [{atom,19,user},
                           {cons,19,{var,19,'C'},{nil,19}},
                           {nil,19}]}]},
                       {clause,20,
                        [{var,20,'Format'},
                         {var,20,'Data'}],
                        [],
                        [{call,21,
                          {remote,21,
                           {atom,21,ct},
                           {atom,21,log}},
                          [{var,21,'Format'},
                           {var,21,'Data'}]},
                         {call,22,
                          {remote,22,
                           {atom,22,io},
                           {atom,22,format}},
                          [{atom,22,user},
                           {var,22,'Format'},
                           {var,22,'Data'}]}]}]},
                     {function,24,tc_proper,2,
                      [{clause,24,
                        [{var,24,'Prop'},
                         {var,24,'Config'}],
                        [],
                        [{match,25,
                          {var,25,'Options'},
                          {call,25,
                           {remote,25,
                        {atom,25,proplists},
                        {atom,25,get_value}},
                           [{atom,25,proper},
                        {var,25,'Config'},
                        {nil,25}]}},
                         {match,26,
                          {atom,26,true},
                          {call,26,
                           {remote,26,
                        {atom,26,proper},
                        {atom,26,quickcheck}},
                           [{var,26,'Prop'},
                        {op,26,'++',
                         {var,26,'Options'},
                         {cons,26,
                          {tuple,26,
                           [{atom,26,on_output},
                            {'fun',26,
                             {function,tc_output,2}}]},
                          {nil,26}}}]}}]}]},
                     {function,28,testcases,1,
                      [{clause,28,
                        [{var,28,'Module'}],
                        [],
                        [{lc,29,
                          {call,29,
                           {atom,29,list_to_atom},
                           [{op,29,'++',
                         {string,29,"tc_"},
                         {call,29,
                          {atom,29,atom_to_list},
                          [{var,29,'Name'}]}}]},
                          [{generate,30,
                        {var,30,'Name'},
                        {call,30,
                         {remote,30,
                          {atom,30,proper_util},
                          {atom,30,
                           exported_properties}},
                         [{var,30,'Module'}]}}]}]}]},
                     {function,34,collect_properties,1,
                      [{clause,34,
                        [{var,34,'Forms'}],
                        [],
                        [{match,35,
                          {var,35,'Analyzed'},
                          {call,35,
                           {remote,35,
                        {atom,35,erl_syntax_lib},
                        {atom,35,analyze_forms}},
                           [{var,35,'Forms'}]}},
                         {match,36,
                          {var,36,'Funs'},
                          {call,36,
                           {remote,36,
                        {atom,36,proplists},
                        {atom,36,get_value}},
                           [{atom,36,functions},
                        {var,36,'Analyzed'},
                        {nil,36}]}},
                         {match,37,
                          {var,37,'Prefix'},
                          {call,37,
                           {remote,37,
                        {atom,37,proper_util},
                        {atom,37,property_prefix}},
                           []}},
                         {lc,38,
                          {var,38,'Name'},
                          [{generate,38,
                        {tuple,38,
                         [{var,38,'Name'},
                          {integer,38,0}]},
                        {var,38,'Funs'}},
                           {call,38,
                        {remote,38,
                         {atom,38,lists},
                         {atom,38,prefix}},
                        [{var,38,'Prefix'},
                         {call,38,
                          {atom,38,atom_to_list},
                          [{var,38,'Name'}]}]}]}]}]},
                     {function,40,tc_exports,1,
                      [{clause,40,
                        [{var,40,'Properties'}],
                        [],
                        [{cons,41,
                          {tuple,41,
                           [{atom,41,attribute},
                        {integer,41,0},
                        {atom,41,export},
                        {lc,42,
                         {tuple,42,
                          [{call,42,
                            {atom,42,list_to_atom},
                            [{call,42,
                              {remote,42,
                               {atom,42,string},
                               {atom,42,join}},
                              [{cons,42,
                            {string,42,"tc"},
                            {cons,42,
                             {call,42,
                              {atom,42,
                               atom_to_list},
                              [{var,42,'Name'}]},
                             {nil,42}}},
                               {string,42,"_"}]}]},
                           {integer,42,1}]},
                         [{generate,43,
                           {var,43,'Name'},
                           {var,43,'Properties'}}]}]},
                          {nil,43}}]}]},
                     {function,45,tc_clauses,1,
                      [{clause,45,
                        [{var,45,'Properties'}],
                        [],
                        [{lc,46,
                          {block,46,
                           [{match,47,
                         {var,47,'Atom'},
                         {call,47,
                          {atom,47,list_to_atom},
                          [{call,47,
                            {remote,47,
                             {atom,47,string},
                             {atom,47,join}},
                            [{cons,47,
                              {string,47,"tc"},
                              {cons,47,
                               {call,47,
                            {atom,47,atom_to_list},
                            [{var,47,'Name'}]},
                               {nil,47}}},
                             {string,47,"_"}]}]}},
                        {tuple,48,
                         [{atom,48,function},
                          {integer,48,0},
                          {var,48,'Atom'},
                          {integer,48,1},
                          {cons,48,
                           {tuple,48,
                            [{atom,48,clause},
                             {integer,48,0},
                             {cons,48,
                              {tuple,48,
                               [{atom,48,var},
                            {integer,48,0},
                            {atom,48,'Config'}]},
                              {nil,48}},
                             {nil,48},
                             {cons,49,
                              {tuple,49,
                               [{atom,49,call},
                            {integer,49,0},
                            {tuple,49,
                             [{atom,49,remote},
                              {integer,49,0},
                              {tuple,49,
                               [{atom,49,atom},
                                {integer,49,0},
                                {atom,49,
                                 proper_ct}]},
                              {tuple,50,
                               [{atom,50,atom},
                                {integer,50,0},
                                {atom,50,
                                 tc_proper}]}]},
                            {cons,51,
                             {tuple,51,
                              [{atom,51,call},
                               {integer,51,0},
                               {tuple,51,
                                [{atom,51,atom},
                                 {integer,51,0},
                                 {var,51,'Name'}]},
                               {nil,51}]},
                             {cons,52,
                              {tuple,52,
                               [{atom,52,var},
                                {integer,52,0},
                                {atom,52,
                                 'Config'}]},
                              {nil,52}}}]},
                              {nil,53}}]},
                           {nil,53}}]}]},
                          [{generate,54,
                        {var,54,'Name'},
                        {var,54,'Properties'}}]}]}]},
                     {eof,55}],
                    [{outdir,"ebin"},
                     debug_info,fail_on_warning,
                     debug_info,
                     {i,"include"},
                     report_errors,report_warnings]]},
                      {compile,
                       '-foldl_transform/2-anonymous-2-',2},
                      {compile,foldl_transform,2},
                      {compile,
                       '-internal_comp/4-anonymous-1-',2},
                      {compile,fold_comp,3},
                      {compile,internal_comp,4},
                      {compile,internal,3}]}
@superbobry

Same with R15B01 actually.

@developerworks

R15B01 compile output:

G:\erlang\tmp\mimetypes>rebar compile
Running Erlang
==> mimetypes (compile)
Compiled src/mimetypes_scan.xrl
Compiled src/mimetypes_parse.yrl
Compiled src/mimetypes_sup.erl
Compiled src/mimetypes_parse.erl
Compiled src/mimetypes_scan.erl
Compiled src/mimetypes_app.erl
Compiled src/mimetypes_loader.erl
Compiled src/mimetypes.erl
Running Erlang

=INFO REPORT==== 3-Aug-2012::20:20:08 ===
    application: mimetypes
    exited: {shutdown,{mimetypes_app,start,[normal,[]]}}
    type: temporary
escript: exception error: no match of right hand side value
                 {error,{shutdown,{mimetypes_app,start,[normal,[]]}}}
ERROR: Command [compile] failed!
@Mistagrooves

@developerworks had the same issue. Tried this and realized that it was choking on the windows line endings.
mimetypes:start_link().
** exception exit: {badmatch,{error,{19,mimetypes_scan,{illegal,"\r"}},19}}
in function mimetypes:init/1 (src/mimetypes.erl, line 215)
in call from gen_server:init_it/6 (gen_server.erl, line 297)
in call from proc_lib:init_p_do_apply/3 (proc_lib.erl, line 227)

@yrashk

interesting, will look into it. don't have Windows around, though

@dch
dch commented

@yrashk I think this could be fixed by extending the NL definition https://github.com/spawngrid/mimetypes/blob/master/src/mimetypes_scan.xrl#L4 to accept \r\n as well as just \n.

@yrashk

If you can try and see whether this works, I'll gladly accept a pull request!

@dch

BTW fixed in pr #16. @marianoguerra you can close this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.