[fpc-pascal] FreeBSD failure compiling fpdoc 2.7.1

Marco van de Voort marcov at stack.nl
Fri Mar 15 19:08:51 CET 2013


In our previous episode, Graeme Geldenhuys said:
> 
> #gmake clean
> gmake all -j 5 FPMAKEOPT="-T 8" FPC=$COMPILER
> FPCOPT="-Fl/usr/local/lib/" OPT="-Fl/usr/local/lib/"
> gmake install INSTALL_PREFIX=/data/devel/fpc-2.7.1/$TARGET/ FPC=$COMPILER

You install using the bootstrap compiler, not the generated one.

my script:

#!/usr/bin/env bash
# -dSHOWUSEDMEM  (this argument to the compiler)

ARCH=`uname -m`

echo ARCH is $ARCH

export ARGS="   -gl -viwn -Sg -Fl/usr/local/lib "

CPU_TARGET=i386
PP=ppcrel
NEWPP=ppc386
if [ $ARCH = "amd64" ] ; then
  CPU_TARGET=x86_64
  echo selecting 64 - bit
  PP=ppcrel_x64
  NEWPP=ppcx64 
  ARGS+=" -gw2"
fi

echo $CPU_TARGET

if [ $ARCH = "i386" ] ; then
  ARGS+="-Cppentium3 -gl  "
fi

cd ~/src/fpc
gmake -j 2 clean CPU_TARGET="$CPU_TARGET" PP=$PP OPT="$ARGS"  >& ~/cleanlog
gmake -j 2 all CPU_TARGET="$CPU_TARGET" PP=$PP OPT="$ARGS" >&  ~/buildlog
if [ ! $? = 0 ] ; then
 echo Build failed, again
else
 gmake install OPT="$ARGS" "CPU_TARGET=$CPU_TARGET" INSTALL_PREFIX=~/src/builded PP=~/src/fpc/compiler/$NEWPP >& ~/installog
 if [ ! $? = 0 ] ; then
  echo INSTALL failed | tee ~/outcome
 else
  echo Everything _should_ be fine.| tee ~/outcome
 fi
fi


 
 



More information about the fpc-pascal mailing list