<div dir="ltr">Worked like a charm! Thanks for the tip, Michel.<br><div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jan 26, 2017 at 12:33 PM Michel Boaventura <<a href="mailto:michel.boaventura@gmail.com">michel.boaventura@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto" class="gmail_msg">Hi Kelly,<div dir="auto" class="gmail_msg"><br class="gmail_msg"></div><div dir="auto" class="gmail_msg">This turns out to be an issue with erlang and zlib > 1.2.8:</div><div dir="auto" class="gmail_msg"><br class="gmail_msg"></div><div dir="auto" class="gmail_msg"><a href="http://erlang.org/pipermail/erlang-questions/2017-January/091452.html" class="gmail_msg" target="_blank">http://erlang.org/pipermail/erlang-questions/2017-January/091452.html</a></div><div dir="auto" class="gmail_msg"><br class="gmail_msg"></div><div dir="auto" class="gmail_msg">You can either downgrade zlib or apply the patch provided on the link.</div><div dir="auto" class="gmail_msg"><br class="gmail_msg"></div><div dir="auto" class="gmail_msg">Cheers</div></div><div class="gmail_extra gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg"></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg">Em 26 de jan de 2017 17:27, "Kelly McLaughlin" <<a href="mailto:mclaughlin77@gmail.com" class="gmail_msg" target="_blank">mclaughlin77@gmail.com</a>> escreveu:<br type="attribution" class="gmail_msg"></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg"><div class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg"><div class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg"><div class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">I'm having some issues that seem related to your problem. I don't have
 a good solution for you, but I'll add some details about my problems to
 the thread.<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg"><br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg"></div>I'm 
running Arch Linux and I I've been using erlang 18.3 from a custom build
 instead of the Arch package. As of about a month ago, everything was 
fine including dialyzer and xref. I didn't do any work with erlang for about a 
month and went back to it this week and found that I could no longer get
 dialyzer or xref to work. I get complaints about missing debug_info 
like this:<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg"><br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">===> Error in dialyzing apps: Could not get abstract code for file: /home/kelly/erlang/18.3-64/lib/erlang/lib/compiler-6.0.3/ebin/beam_disasm.beam (please recompile it with +debug_info)<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg"><br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg"></div>But the module_info disagrees that debug_info is not present:<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg"><br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">1> beam_disasm:module_info().<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">[{module,beam_disasm},<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg"> {exports,[{function__code,1},<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">           {format_error,1},<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">           {file,1},<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">           {module_info,0},<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">           {module_info,1}]},<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg"> {attributes,[{vsn,[161664284732293947572238212319246115161]},<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">              {author,"Kostis Sagonas"}]},<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg"> {compile,[{options,[{outdir,"/net/isildur/ldisk/daily_build/18_prebuild_opu_o.2016-03-14_21/otp_src_18/lib/compiler/src/../ebin"},<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">                     {i,"/net/isildur/ldisk/daily_build/18_prebuild_opu_o.2016-03-14_21/otp_src_18/lib/compiler/src/../../stdlib/include"},<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">                     {i,"/net/isildur/ldisk/daily_build/18_prebuild_opu_o.2016-03-14_21/otp_src_18/lib/compiler/src/."},<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">                     warnings_as_errors,warn_unused_import,inline,debug_info]},<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg"><br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg"></div><div class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">Meanwhile
 our build machine running Debian 8 and also using erlang 18.3 is still 
able to run dialyzer just fine. This makes me think it's likely an issue
 with a system package that may have advanced on Arch and included some 
changes that cause this problem.<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg"><br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg"></div>I've
 tried other versions of erlang as well with the same results. I 
unpacked some versions of 18.3 from the esl debian packages and using 
them got the same debug_info error. I wiped out my 18.3 PLT files trying
 to get things working, but I still had some 18.2.1 PLT files. I built a
 version of 18.2.1, but dialyzer thinks the files are invalid and if I 
move them out of the way then I am back to the debug_info errors.<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg"><br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">1> dialyzer:plt_info("rebar3_18.2.1_plt").<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">{error,not_valid}<br class="gmail_msg"><br class="gmail_msg"></div><div class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">If I copy that same PLT file to our Debian build machine and do the same the file seems fine:<br class="gmail_msg"><br class="gmail_msg">1> dialyzer:plt_info("rebar3_18.2.1_plt").<br class="gmail_msg">{ok,[{files,["/home/kelly/erlang/18.2.1-64/lib/erlang/lib/compiler-6.0.2/ebin/beam_a.beam",<br class="gmail_msg">             "/home/kelly/erlang/18.2.1-64/lib/erlang/lib/compiler-6.0.2/ebin/beam_asm.beam",<br class="gmail_msg">             "/home/kelly/erlang/18.2.1-64/lib/erlang/lib/compiler-6.0.2/ebin/beam_block.beam",<br class="gmail_msg">             "/home/kelly/erlang/18.2.1-64/lib/erlang/lib/compiler-6.0.2/ebin/beam_bool.beam",<br class="gmail_msg">             "/home/kelly/erlang/18.2.1-64/lib/erlang/lib/compiler-6.0.2/ebin<br class="gmail_msg">...<br class="gmail_msg"><br class="gmail_msg"></div>Any thoughts or ideas on this are appreciated. Thanks!<br class="gmail_msg"><br class="gmail_msg"><br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg"><div class="gmail_msg"><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
I've installed erlang 19.2 from source code on my Gentoo Linux and I'm not<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
able to build plt to dialyzer. It gives me the above error. The build was<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
configured with --without-javac --prefix=/usr<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
dialyzer --build_plt --apps kernel<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
dialyzer: Could not get abstract code for file:<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
/usr/lib/erlang/lib/kernel-5.1.1/ebin/disk_log.beam (please recompile it<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
with +debug_info)<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
I've also tried entering on erts/emulator and running make debug and tried<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
to set ERL_COMPILE_FLAGS="+debug_info" with no luck.<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
I don't know if it is an issue with gentoo (both my gentoo machines have<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
the same problem) because I have the same issue using portage and evm to<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
install it.<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
Thank you!<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
--<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
Michel Almada de Castro Boaventura<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
Analista de Sistemas<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
Laborat?rio de Software Livre - LSL<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
-------------- next part --------------<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
An HTML attachment was scrubbed...<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
URL: <<a href="http://erlang.org/pipermail/erlang-questions/attachments/20170116/6d5b2792/attachment-0001.html" rel="noreferrer" class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg" target="_blank">http://erlang.org/pipermail/erlang-questions/attachments/20170116/6d5b2792/attachment-0001.html</a>><br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
<br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg"><br class="m_-1282792497720318787m_3185832468015625515gmail_msg gmail_msg">
</blockquote></div></div></div>
<br class="gmail_msg"></blockquote></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br class="gmail_msg">
erlang-questions mailing list<br class="gmail_msg">
<a href="mailto:erlang-questions@erlang.org" class="gmail_msg" target="_blank">erlang-questions@erlang.org</a><br class="gmail_msg">
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" class="gmail_msg" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br class="gmail_msg">
<br class="gmail_msg"></blockquote></div></div>
</blockquote></div></div></div>