Recent

Author Topic: Test compile falls over  (Read 3861 times)

bob.appleyard

  • Newbie
  • Posts: 3
Test compile falls over
« on: September 06, 2006, 01:42:43 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: Test compile falls over
« Reply #1 on: September 06, 2006, 02:18:01 pm »
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

  • Newbie
  • Posts: 3
RE: Test compile falls over
« Reply #2 on: September 06, 2006, 04:39:48 pm »
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

  • Hero Member
  • *****
  • Posts: 537
RE: Test compile falls over
« Reply #3 on: September 07, 2006, 11:46:18 am »
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.
What's in a sig? Would my posting look less if it didnot have a sig? (Free after William S.) :)

:( Why cannot I upload my own Avatar? :(

 

TinyPortal © 2005-2018