<div dir="ltr">Unable to produce the no symbol error on <a href="http://distrowatch.com/table.php?distribution=fedora">Fedora 19</a>.<div><br></div><div>Seem to just work with no modifications.</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sun, Feb 23, 2014 at 10:22 AM, John Sibert <span dir="ltr"><<a href="mailto:sibert@hawaii.edu" target="_blank">sibert@hawaii.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">Perhaps.<br>
<br>
I have<br>
$ gdb --version<br>
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04<br>
<br>
But<br>
<a href="https://www.sourceware.org/gdb/" target="_blank">https://www.sourceware.org/<u></u>gdb/</a><br>
announced<br>
February 6th, 2014: *GDB 7.7 Released!*<br>
The latest version of GDB, version 7.7, is available for download <<a href="https://www.sourceware.org/gdb/download/" target="_blank">https://www.sourceware.org/<u></u>gdb/download/</a>>.<br>
<br>
<br>
<br></div><div class="">
John Sibert<br>
Emeritus Researcher, SOEST<br>
University of Hawaii at Manoa<br>
Honolulu HI (GMT-10)<br>
<a href="tel:808-294-3842" value="+18082943842" target="_blank">808-294-3842</a><br>
<br>
Visit the ADMB project <a href="http://admb-project.org/" target="_blank">http://admb-project.org/</a><br>
<br></div><div class="">
On 02/22/2014 08:11 PM, Johnoel Ancheta wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
Does gdb just need to be updated?<br>
<br>
<br></div><div class="">
On Sat, Feb 22, 2014 at 4:21 PM, John Sibert <<a href="mailto:sibert@hawaii.edu" target="_blank">sibert@hawaii.edu</a> <mailto:<a href="mailto:sibert@hawaii.edu" target="_blank">sibert@hawaii.edu</a>>> wrote:<br>
<br>
Starting with gcc-4.8 (or perhaps gcc-4.7) the compiler does not<br>
generate debugging information that is completely compatible with<br>
gdb. As a result the message "No symbol 'foo' in current context."<br>
is emitted every time an attempt is made to print or display a<br>
variable. Searching on the message yields a lot of useless advice<br>
about suppressing optimization. While is this advice is more or<br>
less correct, it does not eliminate the message or permit<br>
examining a variable. After a lot of further searching on<br>
stackoverflow, the solution is apparently to replace -g or -ggdb<br>
with "-g -gdwarf-2". Further farting around will reveal whether<br>
both -g and -gdwarf-2 are necessary. (Reverting to gcc-4.6.3 also<br>
solves the problem, but seems dumb.)<br>
<br>
The ADMB make scripts for gcc use -ggdb and will not produce the<br>
desired result.<br>
<br>
Also, IMHO, there is no point in compiling with both the OPT_LIB<br>
macro and the debug flags. It won't tell you where you walked out<br>
of an array in the optimized libraries. If you want to debug<br>
something use the safe libraries.<br>
<br>
John<br>
<br>
-- John Sibert<br>
Emeritus Researcher, SOEST<br>
University of Hawaii at Manoa<br>
Honolulu HI (GMT-10)<br></div>
<a href="tel:808-294-3842" value="+18082943842" target="_blank">808-294-3842</a> <tel:<a href="tel:808-294-3842" value="+18082943842" target="_blank">808-294-3842</a>><div class=""><br>
<br>
Visit the ADMB project <a href="http://admb-project.org/" target="_blank">http://admb-project.org/</a><br>
<br>
______________________________<u></u>_________________<br>
Developers mailing list<br></div>
<a href="mailto:Developers@admb-project.org" target="_blank">Developers@admb-project.org</a> <mailto:<a href="mailto:Developers@admb-project.org" target="_blank">Developers@admb-<u></u>project.org</a>><br>
<a href="http://lists.admb-project.org/mailman/listinfo/developers" target="_blank">http://lists.admb-project.org/<u></u>mailman/listinfo/developers</a><br>
<br>
<br>
</blockquote>
<br>
</blockquote></div><br></div>