[fpc-pascal] FPC 2.6.2 for DOS/Go32V2 FP.PAS cannot compile with GDB support

Lubomír Čabla kladno at gmail.com
Mon Nov 11 20:41:53 CET 2013


It seems that compilation doesn't work under Windows Server 2003 Enterprise.

I did the same under Windows XP SP3 using

make go32v2zip "OPT=-gl -O- -Xs-"

and it works up to compilation of IDE fp.pas - see attached listing
fpc263.rar.

I got the same error for crt1.c even I think the compiler is compiled
and used (at least as I see in LOG file):

Z:\fpcbuild>Z:\fpcbuild\fpcsrc\compiler\ppc386.exe -?
Free Pascal Compiler version 2.6.3 [2013/11/11] for i386
...

*Could you help me how to compile now IDE fp.pas with GDB using new
ppc386.exe?*

>From LOG file:

...
z:/pp/bin/go32v2/make.exe testgdb
make.exe[6]: Entering directory `z:/fpcbuild/fpcsrc/ide'
LibGDB found in z:/fpcbuild/fpcsrc/libgdb/go32v2/libgdb.a
make.exe[6]: Leaving directory `z:/fpcbuild/fpcsrc/ide'
z:/pp/bin/go32v2/make.exe fpc_all
make.exe[6]: Entering directory `z:/fpcbuild/fpcsrc/ide'
*z:/fpcbuild/fpcsrc/compiler/ppc386.exe* -di386
-Flz:/fpcbuild/fpcsrc/libgdb/go32v2 -Ur -Xs -O2 -n -Sg
-Fuz:/fpcbuild/fpcsrc/rtl/units/go32v2
-Fuz:/fpcbuild/fpcsrc/packages/fv/units/go32v2
-Fuz:/fpcbuild/fpcsrc/packages/gdbint/units/go32v2
-Fuz:/fpcbuild/fpcsrc/packages/regexpr/units/go32v2
-Fuz:/fpcbuild/fpcsrc/packages/fcl-base/units/go32v2
-Fuz:/fpcbuild/fpcsrc/packages/fcl-xml/units/go32v2
-Fuz:/fpcbuild/fpcsrc/packages/chm/units/go32v2
-Fuz:/fpcbuild/fpcsrc/packages/graph/units/go32v2 -FE. -FUunits/go32v2 -gl
-O- -Xs- -dRELEASE   fp.pas
fp.pas(553,1) Error: Error while linking
fp.pas(553,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make.exe[6]: Leaving directory `z:/fpcbuild/fpcsrc/ide'
make.exe[5]: Leaving directory `z:/fpcbuild/fpcsrc/ide'
make.exe[4]: Leaving directory `z:/fpcbuild/fpcsrc/ide'
make.exe[3]: Leaving directory `z:/fpcbuild/fpcsrc'
make.exe[2]: Leaving directory `z:/fpcbuild/fpcsrc'
make.exe[1]: Leaving directory `z:/fpcbuild'

Output to CMD:

Z:\fpcbuild>make go32v2zip "OPT=-gl -O- -Xs-">x131111.log
exceptn.as: Assembler messages:
exceptn.as:362: Warning: indirect ljmp without `*'
exceptn.as:414: Warning: indirect ljmp without `*'
z:\fpcbuild\fpcsrc\libgdb\go32v2\/libc.a(crt1.o):crt1.c:(.data+0x0):
multiple definition of `__bss_count'
z:\fpcbuild\fpcsrc\rtl\units\go32v2\prt0.o:v2prt0.as:(.data+0x94): first
defined here
z:\fpcbuild\fpcsrc\libgdb\go32v2\/libc.a(crt1.o):crt1.c:(.data+0x4):
multiple definition of `__PROXY'
z:\fpcbuild\fpcsrc\rtl\units\go32v2\prt0.o:v2prt0.as:(.data+0xba): first
defined here
z:\fpcbuild\fpcsrc\libgdb\go32v2\/libc.a(crt1.o):crt1.c:(.data+0xc):
multiple definition of `__PROXY_LEN'
z:\fpcbuild\fpcsrc\rtl\units\go32v2\prt0.o:v2prt0.as:(.data+0xc2): first
defined here
z:\fpcbuild\fpcsrc\libgdb\go32v2\/libc.a(crt1.o):crt1.c:(.text+0x45c):
undefined reference to `_crt0_init_mcount'
make.exe[6]: *** [fp.exe] Error 1
make.exe[5]: *** [buildfp] Error 2
make.exe[4]: *** [gdb] Error 2
make.exe[3]: *** [ide_all] Error 2
make.exe[2]: *** [build-stamp.i386-go32v2] Error 2
make.exe[1]: *** [fpcsrc/build-stamp.i386-go32v2] Error 2
make.exe: *** [go32v2zip] Error 2



On Sat, Nov 9, 2013 at 11:03 PM, Lubomír Čabla <kladno at gmail.com> wrote:

> Oh my god, I made a big mistake.
>
> I'm very sorry, but you know - nobody is perfect.
>
> I forgot to change the compiler from old one to 2.6.2, so in z:\pp was the
> old one :-(
>
> Well from start:
>
> OS = Windows Server 2003 Enterprise, 3 GB RAM, on disk z: over 1 TB free
> space
>
> FPC 2.6.2 is installed in z:\pp
>
> 1. unpack fpcbuild.zip (build from 8.11.2013) to z:\fpcbuild
>
> 2. libgdb copied to Z:\fpcbuild\fpcsrc\libgdb
>
> 3. in CMD:
>
> Z:\fpcbuild>make go32v2zip "OPT=-gl -O- -Xs-" 1>x131109.log
> v2prt0.as: Assembler messages:
> v2prt0.as:330: Warning: indirect ljmp without `*'
> v2prt0.as:404: Warning: indirect lcall without `*'
> exceptn.as: Assembler messages:
> exceptn.as:362: Warning: indirect ljmp without `*'
> exceptn.as:414: Warning: indirect ljmp without `*'
> make.exe[7]: *** [ppc386.exe] Error 217
> make.exe[6]: *** [next] Error 2
> make.exe[5]: *** [ppc1.exe] Error 2
> make.exe[4]: *** [cycle] Error 2
> make.exe[3]: *** [compiler_cycle] Error 2
> make.exe[2]: *** [build-stamp.i386-go32v2] Error 2
> make.exe[1]: *** [fpcsrc/build-stamp.i386-go32v2] Error 2
>  make.exe: *** [go32v2zip] Error 2
>
> From LOG file (see attachment):
>
> Z:/pp/bin/go32v2/ppc386.exe -Ur -Xs -O2 -n -Fui386 -Fusystems
> -Fuz:/fpcbuild/fpcsrc/rtl/units/go32v2 -Fii386 -FE.
> -FUi386/units/i386-go32v2 -dRELEASE -gl -O- -Xs- -di386 -dGDB -dBROWSERLOG
> -Fux86 pp.pas
> An unhandled exception occurred at $0001475E :
> *EOutOfMemory : Out of memory*
>   $0001475E
>   $00014AA5
>   $00043227
>   $00057EEB
>   $00058141
>   $0005C46B
>   $0015A060
>   $0015A4B4
>   $0015A4B4
>   $0015B13B
>   $000DF46C
>   $000DF46C
>   $000F66D3
>   *$000F6Aaasmtai.pas(396,11) Warning: Constructor should be public*
> *Fatal: Compilation aborted*
> 4C
>   $000F6E50
>   $00131AB0
>   $0013E7D1
>
>
> On Sat, Nov 9, 2013 at 12:35 AM, Tomas Hajny <XHajT03 at hajny.biz> wrote:
>
>> On Fri, November 8, 2013 22:07, Lubomír Čabla wrote:
>>
>>
>> Hi Lubomir,
>>
>> > thank you for your help but I am totally confused and do not know how to
>> > compile the compiler from snapshot.
>> >
>> > Could you help me, please? Thank you.
>> >
>> > I downloaded fpcbuild.zip, unpacked to Z:\fpcbuild and I got these
>> errors:
>> >
>> > Z:\fpcbuild>make go32v2zip
>> > z:/pp/bin/go32v2/make.exe zipinstall OS_TARGET=go32v2
>> > make.exe[1]: Entering directory `z:/fpcbuild'
>> > z:/pp/bin/go32v2/make.exe -C fpcsrc build
>> > make.exe[2]: Entering directory `z:/fpcbuild/fpcsrc'
>> > z:/pp/bin/go32v2/make.exe compiler_cycle RELEASE=1
>> > make.exe[3]: Entering directory `z:/fpcbuild/fpcsrc'
>> > z:/pp/bin/go32v2/make.exe -C compiler cycle
>> > make.exe[4]: Entering directory `z:/fpcbuild/fpcsrc/compiler'
>> > z:/pp/bin/go32v2/make.exe OS_TARGET= CROSSBINDIR= BINUTILSPREFIX=
>> > CROSSCYCLEBOOT
>> > STRAP=1 rtlclean rtl
>> > make.exe[5]: Entering directory `z:/fpcbuild/fpcsrc/compiler'
>> > z:/pp/bin/go32v2/make.exe -C  clean
>>
>> No idea. :-( The line should state 'z:/pp/bin/go32v2/make.exe -C
>> z:/fpcbuild/fpcsrc/rtl clean'. I really don't understand why it misses the
>> directory name. Does the same happen if you call 'make rtlclean' within
>> directory fpcsrc\compiler? Anyway, the only way for finding out what's
>> happening is calling make with additional parameters for makefile
>> debugging - '--debug=all -p -w --warn-undefined-variables'. If the error
>> happens also with 'make rtlclean', use those parameters for that call
>> (between 'make' and 'rtlclean'), otherwise they need to be added to the
>> 'make go32v2zip' call. Note that stderr should be redirected to the same
>> file as stdout. Make sure to zip the output before sending it (especially
>> if you intend to send it to the list - uploading it somewhere and sending
>> just a URL might be a better option), otherwise your post might be held
>> for approval if your attachment exceeds limit set for this list.
>>
>> Hope this helps
>>
>> Tomas
>>
>>
>>
>>
>> _______________________________________________
>> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131111/0711f778/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fpc263.rar
Type: application/rar
Size: 11966 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131111/0711f778/attachment.rar>


More information about the fpc-pascal mailing list