[fpc-pascal] How to remove verbose compiler output

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Sat Apr 5 21:13:55 CEST 2014


On 2014-04-05 17:00, Sven Barth wrote:
> 
> Could you test by disabling the usage of a config file (-n)? You'll need 
> to pass all paths using -Fu then,

No problem. Just did the test with -n and it made no difference when it
comes to the -v parameter options. The -vh- , -vw- and -v0 parameters
are all ignored. I still get the usual verbose output.

Here is my build script as I used it for this test.

----8<-------------8<-------------8<-------------8<-------------8<----
#!/bin/sh
# Build script for tiOPF using 64bit Free Pascal Compiler
BASEDIR="/data/devel"
FPC="$BASEDIR/fpc-2.6.2/x86_64-freebsd/bin/ppcx64"
FPCVER=`$FPC -iV`
FPCCPU=`$FPC -iTP`
FPCHOST=`$FPC -iTO`
TIOPF="$BASEDIR/tiopf_dailybuilds/tiopf"
FBLIB="$TIOPF/3rdParty/FBLib"
ZEOS="$BASEDIR/opensource/zeos_svn"

# set variables as they would have been in fpc.cfg
fpcversion="2.6.2"
fpctarget="x86_64-freebsd"

# Work-around to suppress all unwanted messages
#$FPC -MObjFPC -S2cai -O1 -gl -vh- -vw- -ve -vq
-vm5023,505#7,5058,5060,5024,5028,4055 -B \

$FPC -MObjFPC -S2cai -O1 -gl -vh- -vw- -v0 -n -B \

-Fu/data/devel/fpc-$fpcversion/$fpctarget/lib/fpc/$fpcversion/units/$fpctarget/*
\
  -Fl/lib:/usr/lib:/usr/local/lib \
  -Fl/data/devel/fpc-$fpcversion/lib/fpc/$fpcversion/lib/$fpctarget \
  -FD/data/devel/fpc-$fpcversion/$fpctarget/bin/ \
   -Fu$FBLIB \
   -Fi$FBLIB \
    -Fu$ZEOS/src/core \
    -Fu$ZEOS/src/component \
    -Fu$ZEOS/src/dbc \
    -Fu$ZEOS/src/parsesql \
    -Fu$ZEOS/src/plain \
    -Fu$ZEOS/packages/lazarus/ \
  -Fi$TIOPF/Core/ \
  -Fu$TIOPF/Core/ \
  -Fu$TIOPF/Options/ \
  -Fu$TIOPF/GUI/ \
  -FU$TIOPF/Compilers/FPC/lib/$FPCCPU-$FPCHOST/ \
  -dLINK_CSV -dLINK_TAB -dLINK_XMLLIGHT -dLINK_SQLDB_IB \
  -dLINK_FBLx -dLINK_ZEOS_FB -dLINK_ZEOS_MYSQL50 \
  -dUseCThreads \
  $TIOPF/Compilers/FPC/tiOPF.pas

----8<-------------8<-------------8<-------------8<-------------8<----

And the output is still verbose

-------------------------------------------
[freebsd (tiopf2)]$ ./opf_package-64.run
tiUtils.pas(3000,3) Hint: Local const "subdomain_chars" is not used
tiUtils.pas(3261,43) Hint: Local variable "LBytes1" does not seem to be
initialized
tiUtils.pas(3262,43) Hint: Local variable "LBytes2" does not seem to be
initialized
tiCompress.pas(103,45) Hint: Function result variable does not seem to
be initialized
tiCompress.pas(115,47) Hint: Function result variable does not seem to
be initialized
tiBase64.pas(246,37) Hint: Local variable "scanBuf" does not seem to be
initialized
.....snip.....
tiOPF.pas(19,32) Hint: Unit "tiPersistenceLayers" not used in tiOPF
tiOPF.pas(19,53) Hint: Unit "tiWebServerClientConnectionDetails" not
used in tiOPF
tiOPF.pas(20,3) Hint: Unit "tiCRC32" not used in tiOPF
[freebsd (tiopf2)]$
-------------------------------------------


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/



More information about the fpc-pascal mailing list