According to Marius Gedminas:
First time it compiles nicely, second time ld complains about `Callsecond' being undefined. It might be possible to write a wrapper to execute `gpc --automake automakebug.pas' twice and output 'Ok' if the second compilation succeeds.
That works in my testsuite (-: i.e. it reproduces the bug ;-).
Thanks,
Peter