<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Alright, its compiling! It was wrong
path in fpc.cfg. The DEB installation creates a directory
structure under the fpc directory that matches this:<br>
<br>
/lib/fpc/3.1.1/units/$fpctarget<br>
<br>
Thanks again!<br>
<br>
<br>
On 08/16/2017 11:22 PM, Tomas Hajny wrote:<br>
</div>
<blockquote type="cite"
cite="mid:130c38be338175beba35762189ca31cf.squirrel@mail.freepascal.org">
<pre wrap="">On Wed, August 16, 2017 23:08, kapibara via fpc-pascal wrote:
</pre>
<blockquote type="cite">
<pre wrap="">The old SVN version is now in play, so far so good! But then "Can't find
unit system" happened:
</pre>
</blockquote>
<pre wrap="">You need RTL (and other required units, e.g. from packages) compiled with
that compiler version and provide path to it either using fpc.cfg, or -Fu
command line parameter(s). Parameter -vt shows the path used by the
compiler when trying to find the appropriate version of a compiled unit.
Tomas
</pre>
</blockquote>
<p><br>
</p>
<p>The working fpc.cfg<br>
</p>
<p># Config file generated by fpcmkcfg on 16-8-17 - 23:52:00<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>
-gl<br>
-Crtoi<br>
#WRITE Compiling Debug Version<br>
#ENDIF<br>
<br>
# assembling<br>
#ifdef darwin<br>
# use pipes instead of temporary files for assembling<br>
-ap<br>
# path to Xcode 4.3+ utilities (no problem if it doesn't exist)<br>
-FD/Applications/Xcode.app/</p>
<div dir="ltr"><wbr>Contents/Developer/usr/bin<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 <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>
# -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>
# -Oa=N set alignment to N<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>
# -Oo<x> switch on optimalization x. See fpc -i for
possible values<br>
# -OoNO<x> switch off optimalization x. See fpc -i for
possible values<br>
# -Op<x> set target cpu for optimizing, see fpc -i for
possible values<br>
<br>
#ifdef darwin<br>
#ifdef cpui386<br>
-Cppentiumm<br>
-Oppentiumm<br>
#endif<br>
#endif<br>
<br>
# -----------------------<br>
# Set Filenames and Paths<br>
# -----------------------<br>
<br>
# Both slashes and backslashes are allowed in paths<br>
<br>
# path to the messagefile, not necessary anymore but can be used
to override<br>
# the default language<br>
#-Fr/home/roger/fpc/fpc_svn/<wbr>lib/fpc/3.1.1/msg/errore.msg<br>
#-Fr/home/roger/fpc/fpc_svn/<wbr>lib/fpc/3.1.1/msg/errorn.msg<br>
#-Fr/home/roger/fpc/fpc_svn/<wbr>lib/fpc/3.1.1/msg/errores.msg<br>
#-Fr/home/roger/fpc/fpc_svn/<wbr>lib/fpc/3.1.1/msg/errord.msg<br>
#-Fr/home/roger/fpc/fpc_svn/<wbr>lib/fpc/3.1.1/msg/errorr.msg<br>
<br>
# searchpath for units and other system dependent things<br>
-Fu/home/roger/fpc/fpc_svn/<wbr>lib/fpc/3.1.1/units/$fpctarget<br>
-Fu/home/roger/fpc/fpc_svn/<wbr>lib/fpc/3.1.1/units/$<wbr>fpctarget/*<br>
-Fu/home/roger/fpc/fpc_svn/<wbr>lib/fpc/3.1.1/units/$<wbr>fpctarget/rtl<br>
-Fu/home/roger/fpc/<wbr>pascalscript/Source<br>
<br>
#IFDEF FPCAPACHE_1_3<br>
-Fu/home/roger/fpc/fpc_svn/<wbr>lib/fpc/3.1.1/units/$<wbr>fpctarget/httpd13/<br>
#ELSE<br>
#IFDEF FPCAPACHE_2_0<br>
-Fu/home/roger/fpc/fpc_svn/<wbr>lib/fpc/3.1.1/units/$<wbr>fpctarget/httpd20<br>
#ELSE<br>
-Fu/home/roger/fpc/fpc_svn/<wbr>lib/fpc/3.1.1/units/$<wbr>fpctarget/httpd22<br>
#ENDIF<br>
#ENDIF<br>
<br>
# searchpath for fppkg user-specific packages<br>
-Fu~/.fppkg/lib/fpc/$<wbr>fpcversion/units/$FPCTARGET/*<br>
<br>
# path to the gcclib<br>
#ifdef cpui386<br>
-Fl/usr/lib/gcc/x86_64-linux-<wbr>gnu/6<br>
#endif<br>
#ifdef cpux86_64<br>
-Fl/usr/lib/gcc/x86_64-linux-<wbr>gnu/6<br>
#endif<br>
<br>
# searchpath for libraries<br>
#-Fl/home/roger/fpc/fpc_svn/<wbr>lib/fpc/3.1.1/lib<br>
#-Fl/lib;/usr/lib<br>
-Fl/home/roger/fpc/fpc_svn/<wbr>lib/fpc/3.1.1/lib/$FPCTARGET<br>
<br>
# searchpath for tools<br>
-FD/home/roger/fpc/fpc_svn/<wbr>lib/fpc/3.1.1/bin/$FPCTARGET<br>
<br>
#IFNDEF CPUI386<br>
#IFNDEF CPUAMD64<br>
#DEFINE NEEDCROSSBINUTILS<br>
#ENDIF<br>
#ENDIF<br>
<br>
#IFNDEF Linux<br>
#DEFINE NEEDCROSSBINUTILS<br>
#ENDIF<br>
<br>
# binutils prefix for cross compiling<br>
#IFDEF FPC_CROSSCOMPILING<br>
#IFDEF NEEDCROSSBINUTILS<br>
-XP$FPCTARGET-<br>
#ENDIF<br>
#ENDIF<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 s : Show time stamps<br>
# i : Show general info q : Show message numbers<br>
# l : Show linenumbers c : Show conditionals<br>
# a : Show everything 0 : Show nothing (except
errors)<br>
# b : Write file names messages r : Rhide/GCC compatibility
mode<br>
# with full path x : Executable info (Win32
only)<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</div>
<br>
<br>
</body>
</html>