[fpc-devel] fpc-image crashes on loading jpeg

Michael Van Canneyt michael at freepascal.org
Sun Jul 25 13:19:20 CEST 2010



On Sun, 25 Jul 2010, Felipe Monteiro de Carvalho wrote:

> Ok, so in order to solve this problem I guess I need a RTL with debug
> info, so in my Mac OS X I went for:
>
> cd ~/Programas/fpctrunk/
> make clean all install INSTALL_PREFIX=~/Programas/fpctrunk/install
>
> Then set my Lazarus compiler path to
> /Users/felipe/Programas/fpctrunk/install/lib/fpc/2.5.1/ppc386 which is
> a 2.5.1 compiler
>
> But when I try to rebuild the LCL I get:
>
> /Users/felipe/Programas/fpctrunk/install/lib/fpc/2.5.1/ppc386 -gl
> -Fu. -Funonwin32 -Fuforms -Fuwidgetset
> -Fu/usr/local/lib/fpc/2.5.1/units/i386-darwin/rtl -Fiinclude -FE.
> -FUunits/i386-darwin  -k-framework -kCarbon -k-framework -kOpenGL
> -k'-dylib_file'
> -k'/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
> -di386 alllclunits.pp
> Free Pascal Compiler version 2.5.1 [2010/07/25] for i386
> Copyright (c) 1993-2009 by Florian Klaempfl
> Target OS: Darwin for i386
> Compiling alllclunits.pp
> PPU Loading /usr/local/lib/fpc/2.5.1/units/i386-darwin/rtl/system.ppu
> PPU Invalid Version 114
> /Users/felipe/Programas/lazarus/lcl/alllclunits.pp(1,1) Fatal: Can't
> find unit system used by AllLCLUnits
>
> Which makes no sense, because I just built the compiler, how can the
> PPU version already be wrong?

Look at the compiler messags. it is not loading your freshly installed
units, but the units in some other location:
/usr/local/lib/fpc/2.5.1/units/i386-darwin/rtl/

Your compiler path is wrong.

Michael.



More information about the fpc-devel mailing list