Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2005-10

Several problems compiling fpc 2.1.1

9 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Vincent Snijders

Hi,

None of my nightly builds seem to succeed with svn/fpc/trunk. On linux:
make OPT='-gv' packages_base
....
make[3]: Entering directory `/home/vsds/lazarus/source/fpc/2.1/packages/base/paszlib' /bin/mkdir -p units/i386-linux
/home/vsds/lazarus/source/fpc/2.1/compiler/ppc386 -Ur -Xs -OG2p3 -n -Fu/home/vsds/lazarus/source/fpc/2.1/rtl/units/i386-linux -FE. -FUunits/i386-linux -gv -di386 -dRELEASE paszlib.pas
trees.pas(335,1) Fatal: Internal error 200403091
trees.pas(115,61) Fatal: Compilation aborted
make[3]: *** [paszlib.ppu] Error 1
make[3]: Leaving directory `/home/vsds/lazarus/source/fpc/2.1/packages/base/paszlib'

On another linux computer make cycle fails. ppc1 is created, but when executing /home/fpcfan/rpmbuild/BUILD/fpc/compiler/ppc1 -iVSPTPSOTO it just hangs (using all available cpu time).

On windows (make cycle goes without error):
make OPT="-g -gl -Ur" rtl
...
c:/lazarus/source/fpc/2.1/compiler/ppc386.exe -Ur -Ur -Xs -OG2p3 -n -Fi../inc -Fi../i386 -FE. -FUC:/lazarus/source/fpc/2.1/rtl/units/i386-win32 -g -gl -Ur -di386 -dRELEASE -Fi../objpas/sysutils sysutils.pp
sysutils.pp(1156,1) Fatal: Internal error 200403091 sysutils.pp(1156,1) Fatal: Compilation aborted
make.exe[2]: Leaving directory `C:/lazarus/source/fpc/2.1/rtl/win32'

On macosx (I am not using any debug options like -gl or -gv there): make -C h2pas all
/bin/mkdir -p units/powerpc-darwin
/Users/vsnijders/tmp/build/fpc/fpcsrc/compiler/ppcppc -Ur -Xs -O1 -n -Sg -Fu/Users/vsnijders/tmp/build/fpc/fpcsrc/rtl/units/powerpc-darwin -FE. -FUunits/powerpc-darwin -dpowerpc -dRELEASE h2pas.pas h2pas.pas(1437,60) Error: Incompatible type for arg no. 1: Got "LongInt", expected "AnsiString"
h2pas.pas(1465,60) Error: Incompatible type for arg no. 1: Got "LongInt", expected "AnsiString"
h2pas.pas(1620,60) Error: Incompatible type for arg no. 1: Got "LongInt", expected "AnsiString"
h2pas.pas(1648,60) Error: Incompatible type for arg no. 1: Got "LongInt", expected "AnsiString"
h2pas.pas(8762,4) Fatal: There were 4 errors compiling module, stopping h2pas.pas(8762,4) Fatal: Compilation aborted
make[4]: *** [h2pas] Error 1

Vincent.

Reply by email

Vincent Snijders
to Vincent Snijders
Vincent Snijders wrote
Hi, None of my nightly builds seem to succeed with svn/fpc/trunk.

<snip>

Show quoted text 5 lines
On another linux computer make cycle fails. ppc1 is created, but when executing /home/fpcfan/rpmbuild/BUILD/fpc/compiler/ppc1 -iVSPTPSOTO it just hangs (using all available cpu time).

I did a strace on this ppc1:

...
write(1, "2.1.1\n", 62.1.1
) = 6
munmap(0x40098000, 32768) = 0
munmap(0x400a0000, 32768) = 0
munmap(0x400a8000, 32768) = 0
munmap(0x40080000, 32768) = 0
munmap(0x40068000, 32768) = 0
munmap(0x40070000, 32768) = 0
munmap(0x40078000, 32768) = 0
munmap(0x40060000, 32768) = 0
munmap(0x40000000, 262144) = 0
munmap(0x40048000, 32768) = 0
munmap(0x40050000, 32768) = 0
exit_group(0) = ?

and it hangs.

Maybe related to the changes in revision 1259?

Vincent.

Reply by email

Peter Vreman
to Vincent Snijders: None of my nightly builds seem to succeed with svn/fpc/trunk. On linux: make OPT='-gv' …
Show quoted text 8 lines
`/home/vsds/lazarus/source/fpc/2.1/packages/base/paszlib' /bin/mkdir -p units/i386-linux /home/vsds/lazarus/source/fpc/2.1/compiler/ppc386 -Ur -Xs -OG2p3 -n -Fu/home/vsds/lazarus/source/fpc/2.1/rtl/units/i386-linux -FE. -FUunits/i386-linux -gv -di386 -dRELEASE paszlib.pas trees.pas(335,1) Fatal: Internal error 200403091 trees.pas(115,61) Fatal: Compilation aborted

This is a known issue. I'll fix it when i've some spare time.

Reply by email

Peter Vreman
to Vincent Snijders: <snip> I did a strace on this ppc1: ... write(1, "2.1.1\n", 62.1.1 ) = 6…
Show quoted text 32 lines
Vincent Snijders wrote: > Hi, > > None of my nightly builds seem to succeed with svn/fpc/trunk. <snip> > On another linux computer make cycle fails. ppc1 is created, but when > executing > /home/fpcfan/rpmbuild/BUILD/fpc/compiler/ppc1 -iVSPTPSOTO > it just hangs (using all available cpu time). > I did a strace on this ppc1: ... write(1, "2.1.1\n", 62.1.1 ) = 6 munmap(0x40098000, 32768) = 0 munmap(0x400a0000, 32768) = 0 munmap(0x400a8000, 32768) = 0 munmap(0x40080000, 32768) = 0 munmap(0x40068000, 32768) = 0 munmap(0x40070000, 32768) = 0 munmap(0x40078000, 32768) = 0 munmap(0x40060000, 32768) = 0 munmap(0x40000000, 262144) = 0 munmap(0x40048000, 32768) = 0 munmap(0x40050000, 32768) = 0 exit_group(0) = ? and it hangs. Maybe related to the changes in revision 1259?

Unable to reproduce this. The program itself has ended. What kernel version is used? And what is the result of a strace if you add {$linklib c} in pp.pas and try to run a newly build ppc1?

Reply by email

Vincent Snijders
to Peter Vreman
Peter Vreman wrote 13 lines
>Vincent Snijders wrote: > >>Hi, >> >>None of my nightly builds seem to succeed with svn/fpc/trunk. > ><snip> > Unable to reproduce this. The program itself has ended. What kernel version is used? And what is the result of a strace if you add {$linklib c} in pp.pas and try to run a newly build ppc1?

If I add {linklib c} it runs without error and make cycle completes.

Then I get this error:
/home/fpcfan/rpmbuild/BUILD/fpc/compiler/ppc386 -XX -CX -Ur -Xs -OG2p3 -n -S2 -Sh -Fu/home/fpcfan/rpmbuild/BUILD/fpc/rtl/units/i386-linux -FE. -FU/home/fpcfan/rpmbuild/BUILD/fpc/fcl/units/i386-linux -di386 -dRELEASE dbf.pas dbf_lang.pas(494,23) Error: Incompatible types: got "LongInt" expected "AnsiString" dbf_lang.pas(640) Fatal: There were 1 errors compiling module, stopping dbf_lang.pas(19,15) Fatal: Compilation aborted

Similar to the h2pas error on darwin (where dbf is not compiled).

Karl-Michael Schindler said on IRC that the h2pas error on darwin was introduced in revision 1277.

Vincent.

Reply by email

Lee, John

Strange, I too get the error in h2pas in dbf_lang on the v211 go32v2 and win32 snapshots respectively for today (see email & logs).

Regards John
-----------------------

Peter Vreman wrote 13 lines
>Vincent Snijders wrote: > >>Hi, >> >>None of my nightly builds seem to succeed with svn/fpc/trunk. > ><snip> > Unable to reproduce this. The program itself has ended. What kernel version is used? And what is the result of a strace if you add {$linklib c} in pp.pas and try to run a newly build ppc1?

If I add {linklib c} it runs without error and make cycle completes.

Then I get this error:
/home/fpcfan/rpmbuild/BUILD/fpc/compiler/ppc386 -XX -CX -Ur -Xs -OG2p3 -n -S2 -Sh -Fu/home/fpcfan/rpmbuild/BUILD/fpc/rtl/units/i386-linux -FE. -FU/home/fpcfan/rpmbuild/BUILD/fpc/fcl/units/i386-linux -di386 -dRELEASE dbf.pas dbf_lang.pas(494,23) Error: Incompatible types: got "LongInt" expected "AnsiString" dbf_lang.pas(640) Fatal: There were 1 errors compiling module, stopping dbf_lang.pas(19,15) Fatal: Compilation aborted

Similar to the h2pas error on darwin (where dbf is not compiled).

Karl-Michael Schindler said on IRC that the h2pas error on darwin was introduced in revision 1277.

Vincent.

Reply by email

Peter Vreman
to Vincent Snijders: If I add {linklib c} it runs without error and make cycle completes. Then I get this…
Show quoted text 7 lines
-Fu/home/fpcfan/rpmbuild/BUILD/fpc/rtl/units/i386-linux -FE. -FU/home/fpcfan/rpmbuild/BUILD/fpc/fcl/units/i386-linux -di386 -dRELEASE dbf.pas dbf_lang.pas(494,23) Error: Incompatible types: got "LongInt" expected "AnsiString" dbf_lang.pas(640) Fatal: There were 1 errors compiling module, stopping dbf_lang.pas(19,15) Fatal: Compilation aborted

Fixed

Reply by email

Peter Vreman
to Peter Vreman: This is a known issue. I'll fix it when i've some spare time.
Show quoted text 10 lines
> `/home/vsds/lazarus/source/fpc/2.1/packages/base/paszlib' > /bin/mkdir -p units/i386-linux > /home/vsds/lazarus/source/fpc/2.1/compiler/ppc386 -Ur -Xs -OG2p3 -n > -Fu/home/vsds/lazarus/source/fpc/2.1/rtl/units/i386-linux -FE. > -FUunits/i386-linux > -gv -di386 -dRELEASE paszlib.pas > trees.pas(335,1) Fatal: Internal error 200403091 > trees.pas(115,61) Fatal: Compilation aborted This is a known issue. I'll fix it when i've some spare time.

Fixed

Reply by email

Vincent Snijders
to Vincent Snijders: If I add {linklib c} it runs without error and make cycle completes. Then I get this…
Vincent Snijders wrote 20 lines
Peter Vreman wrote: >> Vincent Snijders wrote: >> >>> Hi, >>> >>> None of my nightly builds seem to succeed with svn/fpc/trunk. >> >> >> <snip> >> > > > Unable to reproduce this. The program itself has ended. What kernel > version is used? And what is the result of a strace if you add {$linklib > c} in pp.pas and try to run a newly build ppc1? If I add {linklib c} it runs without error and make cycle completes.

make all completes too.
make install fails, because fpcmake hangs, just like ppc1 did.

Vincent.

Reply by email