[Lazarus] Problems getting Lazarus working with fpc 2.7.1
Anthony Walter
sysrpl at gmail.com
Mon Sep 10 05:01:46 CEST 2012
Can someone help me please?
I am having a problems getting Lazarus working with fpc 2.7.1
compiler. The platform I am using is Windows 7 64bit, and I am
building the 32bit versions of fpc and lazarus. I am having two
different problems, 1) with the most current binary lazarus downloaded
from the sourceforge, and 2) a different problem with lazarus build
from svn sources.
1) When running the official current lazarus
(lazarus-1.0-fpc-2.6.0-win32.exe from sourceforge) with fpc 2.7.1
buillt from svn, I am able to build applications, but any application
I build that uses forms (Applcation.CreateForm, Applicaton.Run)
crashes at close. This information is given to me from the lazarus IDE
when the main form is closed:
Project project1 raised exception class 'External: SIGSEGV'.
At address 0040ED66
SYSTEM_$$_FINISH_WAITFIXEDLIST$PFREELISTS
0040ED66 8b4604 mov 0x4(%esi),%eax
I have no idea how to fix this and need some help.
2) When building from lazarus svn sources, startlazarus is crashes
after "Welcome to Lazarus IDE 1.1 configuration screen". I get a
"Lazarus IDE has stopped working" message and the option to close or
debug.
Here is what I've done to get fpc 2.7.1. I start out with a working
fpc 2.6.0 in my path (from lazarus-1.0-fpc-2.6.0-win32.exe). I open a
cmd window with admin rights and type the following:
mkdir c:\freepascal\fpc\2.7.1
cd c:\freepascal\fpc\2.7.1
svn co http://svn.freepascal.org/svn/fpc/trunk source
cd source
make all
make install PREFIX=c:\freepascal\fpc\2.7.1
cd c:\freepascal\fpc\2.7.1\bin\i386-win32
fpcmkcfg -d basepath=c:\freepascal\fpc\2.7.1 -o .\fpc.cfg
set path=c:\freepascal\fpc\2.7.1\bin\i386-win32
cd c:\freepascal
fpc
[Result]
Free Pascal Compiler version 2.7.1 [2012/09/09] for i386
Copyright (c) 1993-2012 by Florian Klaempfl and others
C:\freepascal\fpc\2.7.1\bin\i386-win32\fpc.exe [options] <inputfile> [options]
I compile and run hello.pas "program hello; begin WriteLn('hello
world'); end." with the fpc 2.7.1 I just build and it's checks okay.
Everything seems to be working fine.
*side note: running "make clean" in my fpc\2.7.1\source folder
terminates with errors and I am unable to make again unless I restore
a copy of the source folder.
To get lazarus from svn I use the following:
mkdir c:\freepascal\lazarus
cd c:\freepascal\lazarus
svn co http://svn.freepascal.org/svn/lazarus/trunk source
cd source
make all
startlazarus.exe
I get the lazarus 1.1 splash screen and then the Welcome to Lazarus
IDE 1.1 configuration screen. I give it all the right paths
(C:\freepascal\lazarus\source\,
C:\freepascal\fpc\2.7.1\bin\i386-win32\fpc.exe,
C:\freepascal\fpc\2.7.1\source,
C:\freepascal\fpc\2.7.1\bin\i386-win32\make.exe) and then click the
Start IDE and BOOM! It blows up.
So essentially what I am stuck with is a lazarus which does not work
with with the fpc 2.7.1 compiler. Could someone give me some advice?
Thanks
More information about the Lazarus
mailing list