[Pkg-pascal-devel] Bug#780905: fp-compiler-2.6.4: fpc fails to link programs using fpmkunit

Gilles Risch gilles.risch at gmail.com
Sat Dec 5 14:23:40 UTC 2015


Hello Paul,

On Fri, 04 Dec 2015 11:20:27 +0100 Paul Gevers <elbrus at debian.org> wrote:
 > Hi Gilles,
 >
 > Thanks for reporting, much appreciated.
 >
 > On 03-12-15 22:21, Gilles Risch wrote:
 > > I've now successively removed more i386 packages, until the linking 
worked.
 > > These packages are no longer on my disk:
 > > * libc6-dev:i386
 > > * gcc-4.9-base:i386
 > > * linux-libc-dev:i386
 > > * libc6:i386
 > >
 > > So one of them is the originator of this problem.
 >
 > Could you please attach a "simple" example for me to try and reproduce
 > the issue? If not, could you try and figure out which one of the above
 > packages is the culprit? Installing them all again and removing them one
 > at a time should reveal which one is causing the trouble. Going from
 > them may be easier in understanding what is wrong and where.
 >

This is the smallest example to reproduce the issue:

program ReproduceBug;

{$mode objfpc}{$H+}

uses
     {$ifdef unix}cthreads;{$endif}

begin
     writeln('using cthreads seems to be the root cause of this bug.');
end.


The code complies if the cthreads unit isn't included.

I played a bit with the installed packages, libc6-dev:i386 is the 
troublemaker. Probably some environmental variables are pointing to a 
wring directory.

 > Paul
 >

Regards,
Gilles



More information about the Pkg-pascal-devel mailing list