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

Pierre Free Pascal pierre at freepascal.org
Fri Nov 8 12:31:21 CET 2013


Hi Lubomir,

  I think that your problem comes from the fact that you are
using release go32v2 compiler version 2.6.2
to compile 2.6.3 snapshot IDE.
  I was able to reproduce this problem.
The error comes from the fact that there are several variations
of the environ pchar array ...
  The assembler symbol can be _environ or __environ
and there is an incompatibility between 2.6.3 rtl and 2.6.2 
compiler that generates a laoding of crt1.o object from
libgdb.a library. This should not happen, and of course,
when it does, leads to multiply defined symbols and the error
you got.

  You should first compiler the snapshot 2.6.3 compiler,
and use this freshly generated snapshot compiler to
recompile rtl packages and finally compile the IDE
with libgdb.

  Could you test if this works for you also?

Pierre Muller.



More information about the fpc-pascal mailing list