User:Vincent/fpcbuildserver

From Free Pascal wiki
Jump to navigationJump to search

Installed plugins

  • javadoc
  • Maven Integration plugin (required by instant-messaging plugin)
  • Jenkins instant-messaging plugin
  • Jenkins Subversion Plug-in
  • Config AutoRefresh Plugin
  • ViewVC Plugin
  • Jenkins IRC Plugin

Building FPC trunk on Ubuntu 12.04.1

Problem

I got this linking error while building fpmake

/usr/local/bin/ld: cannot find -lpthread

This can be fixed by adding OPT=-Fl/usr/lib/i386-linux-gnu. Adding this to fpc.cfg helps for compiling normal applications, but not make all in the fpc/trunk directory, because -n is passed in that case.

I am looking for a way to teach ld to look in /usr/lib/i386-linux-gnu

Solution

It turned out that there was still an old (custom build) ld binary in the path at /usr/local/bin. Deleting that made sure that the system supplied ld was used. which contains the correct built-in linker paths.

Supporting scripts

Some supporting scripts I have put in the Free Pascal Lazarus Continuous Integration(fplci) project.