Recent

Author Topic: Ras Pi Lazarus build error  (Read 5931 times)

zogtrog

  • New Member
  • *
  • Posts: 20
Ras Pi Lazarus build error
« on: December 27, 2012, 01:11:25 am »
I tried compiling the source from zipped 1.0.4 version and the latest svn version.

do make clean all - runs out of memory
repeat make this time doesn't out memory, but falls over

Compiling projectwizarddlg.pas
Assembling projectwizarddlg
Assembling main
main.pp(13853) Error: Can't call the assembler, error -1 switching to external a                                             ssembling
main.pp(13853) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
make[2]: *** [lazarus] Error 1
make[2]: Leaving directory `/home/pi/lazarus-svn/ide'
make[1]: *** [ide] Error 2
make[1]: Leaving directory `/home/pi/lazarus-svn/ide'
make: *** [ide] Error 2
root@raspberrypi:/home/pi/lazarus-svn# Compiling projectwizarddlg.pas
make[1]: *** [ide] Error 2
make[1]: Leaving directory `/home/pi/lazarus-svn/ide'
make: *** [ide] Error 2

Any one got any bright ideas ?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8833
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Ras Pi Lazarus build error
« Reply #1 on: December 27, 2012, 10:13:46 am »
Do you have as installed (try calling it from terminal)? If you use Raspbian it should already be there, but I have no idea since you don't say your OS.

zogtrog

  • New Member
  • *
  • Posts: 20
Re: Ras Pi Lazarus build error
« Reply #2 on: December 27, 2012, 02:42:41 pm »
Yep I got the latest raspbian wheezy hard float distro that is updated.
I have fpc 2.6.0 Rpi version. I was thinking do I need an external assembler. Do I need a specific binutils package. I also have Lazarus 0.934 installed from the official distro. Its only a problem because the castle engine won't compile on 0.934. I am doing all my building from the command line without desktop running.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8833
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Ras Pi Lazarus build error
« Reply #3 on: December 27, 2012, 04:01:04 pm »
Can you create a console app?

zogtrog

  • New Member
  • *
  • Posts: 20
Re: Ras Pi Lazarus build error
« Reply #4 on: December 29, 2012, 11:52:56 am »
I think i've figured out what is going wrong. I need a new compiler for raspian wheezy as it is an arm hard float system armhf. In other words I think what is needed is a new target "linux armhf", or "raspbian armhf"

The arm libraries supplied with fpc 2.6.0 don't work with the raspberry pi running raspian. When I tried to compile fpc 2.6.0 this is what happend.

as  -o /home/pi/fpc-2.6.0/rtl/units/arm-linux/prt0.o arm/prt0.as
as  -o /home/pi/fpc-2.6.0/rtl/units/arm-linux/dllprt0.o arm/dllprt0.as
as  -o /home/pi/fpc-2.6.0/rtl/units/arm-linux/cprt0.o arm/cprt0.as
as  -o /home/pi/fpc-2.6.0/rtl/units/arm-linux/gprt0.o arm/gprt0.as
as  -o /home/pi/fpc-2.6.0/rtl/units/arm-linux/ucprt0.o arm/ucprt0.as
/home/pi/fpc-2.6.0/compiler/ppc1 -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../arm -Fi../un                                             ix -Fiarm -FE. -FU/home/pi/fpc-2.6.0/rtl/units/arm-linux -darm -dRELEASE -Us -Sg                                              system.pp
An unhandled exception occurred at $0002F054 :
EAccessViolation : Access violation
  $0002F054
  $000213A0
  $0001DC64
 
I strongly suspect this is why the debugger won't compile under lazarus as well. I haven't been using free pascal for long and I don't have the expertise yet, to sort these errors out for myself. I can compile most programs using fpc, but signicantly I can't make a new version of fpc or lazarus. I am going to cross post to the raspberry pi web site as well.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8833
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Ras Pi Lazarus build error
« Reply #5 on: December 29, 2012, 02:20:55 pm »
If I'm not mistaken, there's a discussion here or the mailing list talking about hard float arm. There's additional switch required to enable it when building the compiler. Try searching.

 

TinyPortal © 2005-2018