Re: How to compile (Linux, Debian or Ubuntu, x86-64) FOX toolkit (snapshot) with -g and -O2 [RefPerSys]
Basile Starynkevitch <[email protected]>
| Newsgroups | gmane.comp.lib.fox-toolkit.user |
|---|---|
| Message-ID | <[email protected]> |
On 01/04/2022 14:08, Basile Starynkevitch wrote: > > Hello all, > > As you probably know, on recent Linux distributions the recent GCC > <https://gcc.gnu.org/> or Clang <https://clang.llvm.org/> compilers > can be invoked with both -O2 and -g (or even -g3) > > For the *RefPerSys* project (symbolic AI, open source, GPLv3+; see > *http://refpersys.org/* <http://refpersys.org/> and source code on > https://github.com/RefPerSys/RefPerSys ...) we are considering using > FOX toolkit, but we need DWARF debugging information for several > important reasons: > > > * manual debugging with GDB at first. > * generation (at "runtime") of C++ code compiled to some dlopen > <https://man7.org/linux/man-pages/man3/dlopen.3.html>-ed plugin. > The generated C++ code would depend upon some rules entered thru > the FOX graphical user interface > * software introspection and runtime reflection using Ian Lance > Taylor libbacktrace > <https://github.com/ianlancetaylor/libbacktrace> combioned with > dladdr <https://man7.org/linux/man-pages/man3/dladdr.3.html>. > * Hopefully, homoiconicity > <https://en.wikipedia.org/wiki/Homoiconicity> of the /RefPerSys/ > system and rule language > > > I tried several times to configure FOX source tree /fox-1.7.80/ using > ./configure --enable-debug CFLAGS='-O2 -g3' CXXFLAGS='-O2 -g3' but the > compilation of FOX did not show any -O flag. > > This is on Ubuntu 21.10, with g++ being GCC 11.1 > It seems (I am not sure) that using make CXXFLAGS='-O2 -g3' in FOX toolkit source tree solved the problem. I am unhappy of that ugly way to solve it. So, a better solution is welcome. Thanks -- Basile Starynkevitch<[email protected]> (only mine opinions / les opinions sont miennes uniquement) 92340 Bourg-la-Reine, France web page: starynkevitch.net/Basile/ _______________________________________________ Foxgui-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/foxgui-users