Ras Pi Lazarus build error lazarus / 1-Linux ---------------------------------------------------------------------- zogtrog · 2012-12-27 00:11 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 · 2012-12-27 09:13 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 · 2012-12-27 13:42 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 · 2012-12-27 15:01 Can you create a console app? ---------------------------------------------------------------------- zogtrog · 2012-12-29 10:52 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 · 2012-12-29 13:20 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.