benchmark icon indicating copy to clipboard operation
benchmark copied to clipboard

Errors compiling Spring.Benchmark.pas on Ubuntu

Open dr-kristau opened this issue 3 years ago • 1 comments

I'm trying to compile Spring.Benchmark.pas using Lazarus 2.0.12 on Ubuntu 20.04.3, but I'm getting a couple of errors:

Compile Project, Target: QuickSortBenchmark: Exit code 1, Errors: 3
Spring.Benchmark.pas(88,27) Error: Identifier not found "pthread_cond_t"
Spring.Benchmark.pas(88,41) Error: Error in type definition
Spring.Benchmark.pas(92,25) Error: Illegal expression

Screenshot from 2021-11-19 16-53-32

Does it work for you? If so, any idea what I'm doing wrong?

Thank you.

dr-kristau avatar Nov 19 '21 15:11 dr-kristau

I did not test on FPC with anything but Windows so some types might be incorrect. Please consult anyone with some more FPC experience.

sglienke avatar Nov 19 '21 17:11 sglienke