[fpc-pascal] Bug in rtl/baseunix on OSX - Abort with illegal instruction

Brad Campbell brad at wasp.net.au
Thu Oct 16 06:17:07 CEST 2008


G'day all,

fpmkfifo aborts with an illegal instruction on OSX.

macppc:~ user$ fpc testfifo.pas
Free Pascal Compiler version 2.2.3 [2008/06/14] for powerpc
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Darwin for PowerPC
Compiling testfifo.pas
Assembling fifotest
Linking testfifo
8 lines compiled, 0.10 sec
1 warning(s) issued
macppc:~ user$ ./testfifo
Illegal instruction
macppc:~ user$ cat testfifo.pas
Program FifoTest;

Uses BaseUnix;

Begin
Writeln(fpMkFIFO('Hello.fifo',666));
End.

This works on Linux.
I've tested it against a native PPC compile on 10.4, and a PPC & Intel cross compile from Linux.
All terminate the same way.

I'm not quite sure how to go about debugging it.

Regards,
Brad
-- 
Dolphins are so intelligent that within a few weeks they can
train Americans to stand at the edge of the pool and throw them
fish.



More information about the fpc-pascal mailing list