I then tested on my data, but it fails on first transaction of my ledger
file:
----------------------------------------------------------------------------------------
start ---
$ cat /tmp/thierry.ledger
1994/01/01 * Solde initial
Actif:Courant:BnpCc 7849,42 F = 7849,42 F
Equity:SoldeInitial
$ ledger --args-only --decimal-comma -f /tmp/thierry.ledger register
While parsing file "/tmp/thierry.ledger", line 2:
While parsing posting:
Actif:Courant:BnpCc 7849,42 F = 7849,42 F
^^^^^^^^^
Error: Cannot subtract an amount from an uninitialized amount
----------------------------------------------------------------------------------------
end ---
Any idea why it is failing so quickly ?
If I remove the equal sign and right part (I mean remove "= 7849,42 F"), it
is passing.
Well, the point is that I do not plan to remove all my checks noted with
'=' syntax.
Thierry
On Sunday, May 11, 2014 2:32:57 PM UTC+2, thierry wrote:
>
>
> Hello,
>
> I managed to compile ledger on Debian stable aka Wheezy with clang and
> latest version of boost. See commands below.
> Some points:
> - At the beginning of acprep, I have the error "Performing Test
> BOOST_REGEX_UNICODE_RUNS - Failed", but the build was anyway successful.
> - "make check" is successful up to 99%, the 2 tests not passing are
> because ledger is crashing by seg fault
>
> Thierry
>
>
> -------------------- commands to build --------------------
>
> ### pre-requisites
>
> sudo apt-get update && sudo apt-get --yes upgrade
>
> # needed for ledger
> sudo ap-get install build-essential cmake doxygen python-dev gettext git
> libedit-dev libgmp3-dev libmpfr-dev texinfo libmpc-dev
> # needed for boost
> sudo apt-get install libbz2-dev
> # needed for clang
> sudo apt-get install clang
>
> ### boost
>
> mkdir -p ~/compil/boost/src
> mkdir -p ~/compil/boost/build
> tar xfj ~/Downloads/boost_1_55_0.tar.bz2 -C ~/compil/boost/src
> cd ~/compil/boost/src/boost_1_55_0
> ./bootstrap.sh --prefix=/opt/boost/1.55.0
> # WARNING: do not use option --with-libraries with command ./bootstrap
> # because of bug in cmake that prevent to link when multiple version of
> # boost are installed
> sudo ./b2 --build-dir=/home/thierry/compil/boost/build
> --prefix=/opt/boost/1.55.0 install
>
> ### ledger
>
> mkdir -p ~/compil/ledger/src
> mkdir -p ~/compil/ledger/build
> cd ~/compil/ledger/src
> git clone git://github.com/ledger/ledger.git
> cd ~/compil/ledger/src/ledger
> export BOOST_ROOT=/opt/boost/1.55.0
> export CC=clang
> export CXX=clang
> ./acprep opt update --python --doxygen
> --output=/home/thierry/compil/ledger/build
>
> -------------------- commands to build (end) --------------------
>
>
>
>
>
>
>
> -------------------- "make check" errors --------------------
>
> $ cd ~/compil/ledger/src/ledger
> $ /home/thierry/compil/ledger/build/ledger -f
> /home/thierry/compil/ledger/src/ledger/test/regress/78AB4B87_py.test
> python /home/thierry/compil/ledger/src/ledger/test/regress/78AB4B87.py
> -5.00 GBP
> GBP
> Total is presently: (0.00 EUR)
> Converted to EUR: (-5.73 EUR)
> Total is now: (-5.73 EUR)
>
> -5.00 EUR {0.8733 GBP} [2012/01/03]
> EUR
> Erreur de segmentation
>
> $ /home/thierry/compil/ledger/build/ledger -f
> /home/thierry/compil/ledger/src/ledger/test/regress/9188F587_py.test
> python /home/thierry/compil/ledger/src/ledger/test/regress/9188F587.py
> -5.00 GBP
> GBP
> Total is presently: (0.00 EUR)
> Converted to EUR: (-6.00 EUR)
> Total is now: (-6.00 EUR)
>
> -5.00 EUR {0.8733 GBP} [2012/01/03]
> EUR
> Erreur de segmentation
>
> -------------------- "make check" errors (end) --------------------
>
--
---
You received this message because you are subscribed to the Google Groups
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.