Forum > FV/Textmode IDE
No debugger support available
Moody:
Unfortunatly, this did not work.
make clean all install
runs fine - but result shows the wellknown "No debugger support available" :-(
Moody:
i patched fpcbuild-3.0.4/fpcsrc/ide/bin/x86_64-linux/link.res to contain
--- Code: ---INPUT(
-lncurses
-lm
-ldl
-lgcc
-lz
-lpython3
)
--- End code ---
(adding -lpython3 and -lz) and linking gets a step further:
--- Code: ---pcbuild-3.0.4/fpcsrc/packages/gdbint/units/x86_64-linux/ -Ficompiler -Fl/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0 -Cg -Ur -dNOCATCH -dBrowserCol -dGDB -dx86_64 -Fu../compiler -Fu../compiler/x86_64 -Fu../compiler/targets -Fu../compiler/systems -Fi../compiler/x86_64 -Fi../compiler -Fu../compiler/x86 -dNOOPT -Sg -Fl/usr/lib/ -Xd -viq fp.pas" failed with exit code 256. Console output:
Free Pascal Compiler version 3.0.4 [2018/04/14] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling fp.pas
Writing Resource String Table file: fp.rsj
Linking bin/x86_64-linux/fp
/usr/bin/ld: warning: bin/x86_64-linux/link.res contains output sections; did you forget -T?
fp.pas(581,1) Error: Error while linking
fp.pas(581,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
/usr/lib/libgdb.a(main.o): Mehrfachdefinition von »interpreter_p«
/home/lfs/fpcbuild-3.0.4/fpcsrc/packages/gdbint/units/x86_64-linux/gdbint.o: hier zuerst definiert
/usr/lib/libgdb.a(main.o): Mehrfachdefinition von »gdb_stdtarg«
/home/lfs/fpcbuild-3.0.4/fpcsrc/packages/gdbint/units/x86_64-linux/gdbint.o: hier zuerst definiert
/usr/lib/libgdb.a(top.o): Mehrfachdefinition von »deprecated_query_hook«
/home/lfs/fpcbuild-3.0.4/fpcsrc/packages/gdbint/units/x86_64-linux/gdbint.o: hier zuerst definiert
/usr/bin/ld: /usr/lib/libgdb.a(varobj.o): undefined reference to symbol 'PyImport_AddModule'
/usr/lib64/libpython3.6m.so.1.0: error adding symbols: DSO missing from command line
make: *** [Makefile:2224: all] Fehler 1
--- End code ---
No luck at all :'(
Thaddy:
make sure /etc/fpc.cfg is deleted and search for others. Delete these too.
Then force GDBMI like so:
--- Code: Bash [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---make clean all install GDBMI=1Since GDB/MI uses the GDB executable, the compiler will not look for it at compile time but instead includes just the GDB/MI interface.
Note this assumes the bitness for GDB is correct: 32 bit for a 32 bit system 64 bit for a 64 bit system. On multiarch you probably need both.
Quite a mess. This should not be not at all necessary.
marcov:
gdbmi in the IDE is a trunk feature, and not available in 3.0.x
Linking libgdb is very dependent on options the libgdb was compiled with, and gdbint can be edited somewhat to match, but this is not trivial.
Compiling yourself without python support should be easier
Moody:
ah, now it seems we come closer :-)
Ok, if it is not yet in 3.0.x ... that might be the reason why my build constantly looks for libgdb.a while it has been said that it wouldn't.
Hope that it will come soon.
Navigation
[0] Message Index
[#] Next page
[*] Previous page