Test compile falls over lazarus / 1-Linux ---------------------------------------------------------------------- bob.appleyard · 2006-09-06 11:42 Hey, just installed Lazarus, everything worked fine, but when I tried copmiling and running a blank project (the thing that comes up when you start the IDE), I got some errors. It appears as though it's bombing out when it goes to linking -- ld says that it's hit an incompatible object file. How the hell do I get round that though? I'm running FC5 x86_64, by the way. Here is the full output: Code: [Select]Hint: Start of reading config file /etc/fpc.cfg Hint: End of reading config file /etc/fpc.cfg Free Pascal Compiler version 2.0.2 [2005/11/26] for i386 Copyright (c) 1993-2005 by Florian Klaempfl Target OS: Linux for i386 Compiling /tmp/project1.lpr Compiling unit1.pas Linking /tmp/project1 /usr/bin/ld: skipping incompatible /usr/lib/fpc/2.0.2/units/i386-linux/rtl/cprt21.o when searching for /usr/lib/fpc/2.0.2/units/i386-linux/rtl/cprt21.o /usr/bin/ld: cannot find /usr/lib/fpc/2.0.2/units/i386-linux/rtl/cprt21.o project1.lpr(17,1) Error: Error while linking /usr/bin/ld: skipping incompatible /usr/lib/fpc/2.0.2/units/i386-linux/rtl/cprt21.o when searching for /usr/lib/fpc/2.0.2/units/i386-linux/rtl/cprt21.o /usr/bin/ld: cannot find /usr/lib/fpc/2.0.2/units/i386-linux/rtl/cprt21.o project1.lpr(17,1) Error: Error while linking ---------------------------------------------------------------------- Vincent Snijders · 2006-09-06 12:18 You are using the 32 bits compiler (for i386), while your system probably has the 64 bits linker (ld) installed. Install and use a 64 bits version of the compiler or make sure a 32 bits linker is used. ---------------------------------------------------------------------- bob.appleyard · 2006-09-06 14:39 aha, ok, i'll try that then. If I install the 64 bit version of FPC, will it have the necessary files for operating with lazarus? ---------------------------------------------------------------------- matthijs · 2006-09-07 09:46 Yes. If you install 64bit versions. Things work alright. However if you expect it contains all dependencies, this is not the case. So if for instance you did not install 64 bit of libgtk, you still have to do that your self using yum or something equal.