<div dir="ltr"><div>Attempt to compile IDE from snapshot with GDB:</div><div><br></div><div>FPC GO32V2 2.6.2 is installed in z:\pp</div><div>PATH contains Z:\pp\bin\go32v2</div><div><br></div><div>Instruction from Tomas Hajny does not work:</div>
<div><br></div><div><i>creating directory "libgdb" next to "rtl", "ide" and "packages", unpacking</i></div><div><i>content of the downloaded file there and then compiling again using:</i></div>
<div><i><br></i></div><div><i>make clean rtl_all packages_all ide_all "OPT=-gl -O-"</i></div><div><br></div><div>Ii fails with error message</div><div><br></div><div>on screen:</div><div><br></div><div>z:/pp/bin/go32v2/ld.exe: cannot find -lgdb</div>
<div>make.exe[3]: *** [fp.exe] Error 1</div><div>make.exe[2]: *** [buildfp] Error 2</div><div>make.exe[1]: *** [gdb] Error 2</div><div>make.exe: *** [ide_all] Error 2</div><div><br></div><div>in LOG file:</div><div><br></div>
<div>make.exe[3]: Entering directory `z:/fpc/ide'</div><div>LibGDB not found</div><div>LIBGDBFILE=</div><div><br></div><div>make.exe[3]: Leaving directory `z:/fpc/ide'</div><div>z:/pp/bin/go32v2/make.exe fpc_all</div>
<div>make.exe[3]: Entering directory `z:/fpc/ide'</div><div>Z:/pp/bin/go32v2/ppc386.exe -di386 -Ur -Xs -O2 -n -Sg -Fuz:/fpc/rtl/units/go32v2 -Fuz:/fpc/packages/fv/units/go32v2 -Fuz:/fpc/packages/gdbint/units/go32v2 -Fuz:/fpc/packages/regexpr/units/go32v2 -Fuz:/fpc/packages/fcl-base/units/go32v2 -Fuz:/fpc/packages/fcl-xml/units/go32v2 -Fuz:/fpc/packages/chm/units/go32v2 -Fuz:/fpc/packages/graph/units/go32v2 -FE. -FUunits/go32v2 -gl -O- -dRELEASE -dNODEBUG fp.pas</div>
<div>fp.pas(553,1) Error: Error while linking</div><div>fp.pas(553,1) Fatal: There were 1 errors compiling module, stopping</div><div>Fatal: Compilation aborted</div><div>make.exe[3]: Leaving directory `z:/fpc/ide'</div>
<div>make.exe[2]: Leaving directory `z:/fpc/ide'</div><div>make.exe[1]: Leaving directory `z:/fpc/ide'</div><div><br></div><div>So, I made this:</div><div><br></div><div>1. download source package 21.10.2013</div>
<div> <a href="ftp://ftp.freepascal.org/pub/fpc/snapshot/fixes/source/fpc.zip">ftp://ftp.freepascal.org/pub/fpc/snapshot/fixes/source/fpc.zip</a></div><div> Revision: 25838</div><div> Last Changed Rev: 25765</div><div>
<br></div><div>2. unpacked to z:\fpc</div><div><br></div><div>3. download</div><div> <a href="ftp://ftp.freepascal.org/pub/fpc/contrib/libgdb/v6.1.1/go32v2-v601.zip">ftp://ftp.freepascal.org/pub/fpc/contrib/libgdb/v6.1.1/go32v2-v601.zip</a></div>
<div><br></div><div> <b>unpacked files in directory libgdb copied to Z:\fpc\libgdb\go32v2</b></div><div><br></div><div>3. command for compilation:</div><div><br></div><div>Z:\fpc>make rtl_all packages_all ide_all>x131107.log</div>
<div><br></div><div>on screen I got these mesaages:</div><div><br></div><div><a href="http://v2prt0.as">v2prt0.as</a>: Assembler messages:</div><div><a href="http://v2prt0.as:330">v2prt0.as:330</a>: Warning: indirect ljmp without `*'</div>
<div><a href="http://v2prt0.as:404">v2prt0.as:404</a>: Warning: indirect lcall without `*'</div><div><a href="http://exceptn.as">exceptn.as</a>: Assembler messages:</div><div><a href="http://exceptn.as:362">exceptn.as:362</a>: Warning: indirect ljmp without `*'</div>
<div><a href="http://exceptn.as:414">exceptn.as:414</a>: Warning: indirect ljmp without `*'</div><div><b>z:\fpc\libgdb\go32v2\/libc.a(crt1.o):crt1.c:(.data+0x0): multiple definition of `__bss_count'</b></div><div>
<b>z:\fpc\rtl\units\go32v2\prt0.o:v2prt0.as:(.data+0x94): first defined here</b></div><div><b>z:\fpc\libgdb\go32v2\/libc.a(crt1.o):crt1.c:(.data+0x4): multiple definition of `__PROXY'</b></div><div><b>z:\fpc\rtl\units\go32v2\prt0.o:v2prt0.as:(.data+0xba): first defined here</b></div>
<div><b>z:\fpc\libgdb\go32v2\/libc.a(crt1.o):crt1.c:(.data+0xc): multiple definition of `__PROXY_LEN'</b></div><div><b>z:\fpc\rtl\units\go32v2\prt0.o:v2prt0.as:(.data+0xc2): first defined here</b></div><div><b>z:\fpc\libgdb\go32v2\/libc.a(crt1.o):crt1.c:(.text+0x45c): undefined reference to `_crt0_init_mcount'</b></div>
<div>make.exe[3]: *** [fp.exe] Error 1</div><div>make.exe[2]: *** [buildfp] Error 2</div><div>make.exe[1]: *** [gdb] Error 2</div><div>make.exe: *** [ide_all] Error 2</div><div><br></div><div>Error in LOG file is:</div><div>
<br></div><div>make.exe[3]: Entering directory `z:/fpc/ide'</div><div>Z:/pp/bin/go32v2/ppc386.exe -di386 -Flz:/fpc/libgdb/go32v2 -Ur -Xs -O2 -n -Sg -Fuz:/fpc/rtl/units/go32v2 -Fuz:/fpc/packages/fv/units/go32v2 -Fuz:/fpc/packages/gdbint/units/go32v2 -Fuz:/fpc/packages/regexpr/units/go32v2 -Fuz:/fpc/packages/fcl-base/units/go32v2 -Fuz:/fpc/packages/fcl-xml/units/go32v2 -Fuz:/fpc/packages/chm/units/go32v2 -Fuz:/fpc/packages/graph/units/go32v2 -FE. -FUunits/go32v2 -dRELEASE fp.pas</div>
<div>fp.pas(553,1) Error: Error while linking</div><div>fp.pas(553,1) Fatal: There were 1 errors compiling module, stopping</div><div>Fatal: Compilation aborted</div><div><br></div><div>For more information see the log file x131107.log.</div>
<div><br></div><div>What I am doing wrong?</div><div><br></div></div>