Re: Autotools build system
David Fang <[email protected]>
| Newsgroups | gmane.comp.gnu.gnucap.devel |
|---|---|
| Message-ID | <[email protected]> |
> bad internal command: clear > terminate called after throwing an instance of > 'Exception_Bad_Internal_Command' > Abort Oh yeah, duh. main.cc is calling "quit" in a catch-clause which, as you said, is an invalid command, after removing all those translation units that define the commands. The invalid command at that point throws an uncaught exception -- hence, abort/terminate. The catch clause should probably be written to never throw, if possible. But this is a somewhat artificial scenario we've created... Fang > Does that happen for you too? This might be independent of our build system. > (This is tested on powerpc-apple-darwin8.) > > Full info: > --------------------->8 snip 8<------------------ > [fangism:gnucap-2009-06-11-patched/build/src] fang% ../libtool --mode=execute > gdb ./gnucap > GNU gdb 6.3.50-20050815 (Apple version gdb-696) (Sat Oct 20 18:20:28 GMT > 2007) > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "powerpc-apple-darwin"... > warning: --arch option not supported in this gdb. > Reading symbols for shared libraries . > warning: UUID mismatch detected between: > > /Users/fang/local/src/gnucap-2009-06-11-patched/build/src/.libs/libgnucap.0.0.0.dylib > > /Users/fang/local/src/gnucap-2009-06-11-patched/build/src/.libs/libgnucap.0.0.0.dylib.dSYM/Contents/Resources/DWARF/libgnucap.0.0.0.dylib... > ...... done > > (gdb) run > Starting program: > /Users/fang/local/src/gnucap-2009-06-11-patched/build/src/.libs/gnucap > Reading symbols for shared libraries .+ done > Gnucap 2009.06.11 RCS 26.111 > The Gnu Circuit Analysis Package > Never trust any version less than 1.0 > Copyright 1982-2007, Albert Davis > Gnucap comes with ABSOLUTELY NO WARRANTY > This is free software, and you are welcome > to redistribute it under the terms of > the GNU General Public License, version 3 or later. > See the file "COPYING" for details. > bad internal command: clear > terminate called after throwing an instance of > 'Exception_Bad_Internal_Command' > > Program received signal SIGABRT, Aborted. > 0x90047dac in kill () > (gdb) where > #0 0x90047dac in kill () > #1 0x9012d7b4 in abort () > #2 0x94c8c078 in __gnu_cxx::__verbose_terminate_handler () > #3 0x94c89c08 in __gxx_personality_v0 () > #4 0x94c89c6c in std::terminate () > #5 0x94c89eac in __cxa_throw () > #6 0x0104b238 in CMD::command (cs=@0xa0004168, scope=0xc24bc195) at > ../../src/c__cmd.cc:118 > #7 0x00004d3c in main (argc=1, argv=0xbfffdcec) at ../../src/main.cc:216 > > --------------------->8 snip 8<------------------ > > I can look into this further after some sleep. :) > > >> What you are left with is a program with only one command, the >> one to load plugins. You will need to do control-D to quit, >> because even the quit command isn't there. >> >> If a module is loaded by default, and you want to replace it, >> all you need to do is load the one you want. > >>> You can always add such an executable to Makefile.am: >>> if WIN32 >>> bin_PROGRAMS += gnucap-win32-demo >>> endif >>> ... >>> >>> and link it statically. >> >> I thought Makefile.am was supposed to not require that stuff. > > Nothing is required, it just gives you the ability to do such things. > > > Fang > > David Fang > http://www.csl.cornell.edu/~fang/ > http://www.achronix.com/ > > > > _______________________________________________ > Gnucap-devel mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/gnucap-devel > David Fang http://www.csl.cornell.edu/~fang/ http://www.achronix.com/