Difference between revisions of "User:Vincent/fpcbuildserver"

From Lazarus wiki
Jump to navigationJump to search
(Created page with "== Installed plugins == * javadoc * Maven Integration plugin (required by instant-messaging plugin) * Jenkins instant-messaging plugin * Jenkins Subversion Plug-in * Config Au...")
 
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
* ViewVC Plugin
 
* ViewVC Plugin
 
* Jenkins IRC 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 [https://xp-dev.com/wiki/177012/Homepage Free Pascal Lazarus Continuous Integration](fplci) project.

Latest revision as of 09:25, 7 November 2012

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.