<div dir="ltr">Hi!<br><br>I can compile small programs with fpc freebsd x86_64. Then I tried compile and run lazarus (0.9.27 snapshot of 2008-09-25). I can compile, but I can't run it.<br><br>the output:<br><br>%cd lazarus<br>
%gmake LCL_PLATFORM=gtk2<br><br>...<br><br>%./startlazarus<br>Runtime error 217 at $00000000004ABC85<br> $00000000004ABC85<br> $0000000000603D88 line 258 of ../gtk/gtkwidgetset.inc<br> $00000000005DCBEE line 543 of gtk2widgetset.inc<br>
$000000000045217E line 1593 of forms.pp<br> $0000000000439548 line 39 of interfaces.pas<br> $000000000042DA7B<br> $000000000041AEB9<br><br>%file startlazarus<br>startlazarus: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), for FreeBSD 7.0 (700055), dynamically linked (uses shared libs), FreeBSD-style, not stripped<br>
%fpc teste.pas<br>Free Pascal Compiler version 2.3.1 [2008/09/17] for x86_64<br>Copyright (c) 1993-2008 by Florian Klaempfl<br>Target OS: FreeBSD for x86-64<br>Compiling teste.pas<br>Assembling teste<br>Linking teste<br>5 lines compiled, 0.1 sec <br>
%./teste <br>teste<br>%<br><br><br>My fpc.cfg (from my FPC 2.2.0 FreeBSD 32 bits):<br><br><br>#<br># Example fpc.cfg for Free Pascal Compiler<br>#<br><br># ----------------------<br># Defines (preprocessor)<br># ----------------------<br>
<br>#<br># nested #IFNDEF, #IFDEF, #ENDIF, #ELSE, #DEFINE, #UNDEF are allowed<br>#<br># -d is the same as #DEFINE<br># -u is the same as #UNDEF<br>#<br><br>#<br># Some examples (for switches see below, and the -? helppages)<br>
#<br># Try compiling with the -dRELEASE or -dDEBUG on the commandline<br>#<br><br># For a release compile with optimizes and strip debuginfo<br>#IFDEF RELEASE<br> -O2<br> -Xs<br> #WRITE Compiling Release Version<br>#ENDIF<br>
<br># For a debug version compile with debuginfo and all codegeneration checks on<br>#IFDEF DEBUG<br> -g<br> -Crtoi<br> #WRITE Compiling Debug Version<br>#ENDIF<br><br># set binutils prefix<br><br>#IFNDEF CPUI386<br>#IFNDEF CPUAMD64<br>
#DEFINE NEEDCROSSBINUTILS<br>#ENDIF<br>#ENDIF<br><br><br>#IFNDEF freebsd<br>#DEFINE NEEDCROSSBINUTILS<br>#ENDIF<br><br><br>#IFDEF FPC_CROSSCOMPILING<br>#IFDEF NEEDCROSSBINUTILS<br> -XP$fpctarget-<br>#ENDIF NEEDCROSSBINUTILS<br>
#ENDIF<br><br># ----------------<br># Parsing switches<br># ----------------<br><br># Pascal language mode<br># -Mfpc free pascal dialect (default)<br># -Mobjfpc switch some Delphi 2 extensions on<br># -Mdelphi tries to be Delphi compatible<br>
# -Mtp tries to be TP/BP 7.0 compatible<br># -Mgpc tries to be gpc compatible<br># -Mmacpas tries to be compatible to the macintosh pascal dialects<br>#<br># Turn on Object Pascal extensions by default<br>
#-Mobjfpc<br><br># Assembler reader mode<br># -Rdefault use default assembler<br># -Ratt read AT&T style assembler<br># -Rintel read Intel style assembler<br>#<br># All assembler blocks are AT&T styled by default<br>
#-Ratt<br><br># Semantic checking<br># -S2 same as -Mobjfpc<br># -Sc supports operators like C (*=,+=,/= and -=)<br># -Sa include assertion code.<br># -Sd same as -Mdelphi<br>
# -Se<x> error options. <x> is a combination of the following:<br># <n> : compiler stops after the <n> errors (default is 1)<br># w : compiler stops also after warnings<br>
# n : compiler stops also after notes<br># h : compiler stops also after hints<br># -Sg allow LABEL and GOTO<br># -Sh Use ansistrings<br># -Si support C++ styled INLINE<br>
# -Sk load fpcylix unit<br># -SI<x> set interface style to <x><br># -SIcom COM compatible interface (default)<br># -SIcorba CORBA compatible interface<br># -Sm support macros like C (global)<br>
# -So same as -Mtp<br># -Sp same as -Mgpc<br># -Ss constructor name must be init (destructor must be done)<br># -St allow static keyword in objects<br># -Sx enable exception keywords (default in Delphi/ObjFPC modes)<br>
#<br># Allow goto, inline, C-operators, C-vars<br>-Sgic<br><br># ---------------<br># Code generation<br># ---------------<br><br># Uncomment the next line if you always want static/dynamic units by default<br># (can be overruled with -CD, -CS at the commandline)<br>
#-CS<br>#-CD<br><br># Set the default heapsize to 8Mb<br>#-Ch8000000<br><br># Set default codegeneration checks (iocheck, overflow, range, stack)<br>#-Ci<br>#-Co<br>#-Cr<br>#-Ct<br><br># Optimizer switches<br># -Os generate smaller code<br>
# -O1 level 1 optimizations (quick optimizations, debuggable)<br># -O2 level 2 optimizations (-O1 + optimizations which make debugging more difficult)<br># -O3 level 3 optimizations (-O2 + optimizations which also may make the program slower rather than faster)<br>
# -Op<x> set target cpu for optimizing, see fpc -i for possible values<br>#<br># See "fpc -i" also for more fine-grained control over which optimizations<br># to perform<br><br># -----------------------<br>
# Set Filenames and Paths<br># -----------------------<br><br># Slashes are also allowed under dos<br><br># path to the messagefile, not necessary anymore but can be used to override<br># the default language<br>#-Fr/usr/local/lib/fpc/$fpcversion/msg/errore.msg<br>
#-Fr/usr/local/lib/fpc/$fpcversion/msg/errorn.msg<br><br># searchpath for includefiles<br>#-Fi/pp/inc;/pp/rtl/inc<br><br># searchpath for units and other system dependent things<br>-Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget<br>
-Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/*<br>-Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/rtl<br>#-Fu~/fpc/packages/base/*/units/;~/fpc/fcl/units/;~/fpc/rtl/units/<br><br># searchpath for libraries<br>-Fl/usr/local/lib<br>
<br><br><br>#-Fl/pp/lib<br>#-Fl/lib;/usr/lib<br><br><br># -------------<br># Linking<br># -------------<br><br># generate always debugging information for GDB (slows down the compiling<br># process)<br># -gc generate checks for pointers<br>
# -gd use dbx<br># -gg use gsym<br># -gh use heap trace unit (for memory leak debugging)<br># -gl use line info unit to show more info for backtraces<br># -gv generates programs tracable with valgrind<br>
# -gw generate dwarf debugging info<br>#<br># Enable debuginfo and use the line info unit by default<br>#-gl<br><br># always pass an option to the linker<br>#-k-s<br><br># Always strip debuginfo from the executable<br>
-Xs<br><br><br># -------------<br># Miscellaneous<br># -------------<br><br># Write always a nice FPC logo ;)<br>-l<br><br># Verbosity<br># e : Show errors (default) d : Show debug info<br># w : Show warnings u : Show unit info<br>
# n : Show notes t : Show tried/used files<br># h : Show hints c : Show conditionals<br># i : Show general info d : Show debug info<br># l : Show linenumbers r : Rhide/GCC compatibility mode<br>
# a : Show everything x : Executable info (Win32 only)<br># b : Write file names messages with full path<br># v : write fpcdebug.txt with p : Write tree.log with parse tree<br># lots of debugging info<br>
#<br># Display Info, Warnings and Notes<br>-viwn<br># If you don't want so much verbosity use<br>#-vw<br><br>#<br># That's all folks<br>#<br><br><br><br>Fabio Luis Girardi<br><br><br><div class="gmail_quote">2008/9/19 Francisco Reyes <span dir="ltr"><<a href="mailto:lists@stringsutils.com">lists@stringsutils.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><a href="mailto:papelhigienico@gmail.com" target="_blank">papelhigienico@gmail.com</a> writes:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I will test it!! I need it!<br>
</blockquote>
<br></div>
Fabio,<br>
<br>
Basically all you need to do is:<br>
+ Untar snapshot to your home directory<br>
+ Create ~/.fpc.cfg :<div class="Ih2E3d"><br>
-Fu~/snapshot/lib/fpc/$FPCVERSION/units/$FPCTARGET/*<br>
-viwh<br></div>
+ Either symlink /snapshot/bin to ~/bin or cd ~/bin<br>
ln -s /snaphot/bin/*<br>
+ Symlink the ppcx64 file too<br>
cd ~/bin<br>
ln -s /snapshot/lib/fpc/2.3.1/ppcx64 (from memory, check)<br>
<br>
<br>
I plan to test it some more this weekend too..<div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</div></div></blockquote></div><br></div>