Re: [GNC-dev] Need help - several tests fail
Op maandag 26 augustus 2019 12:40:31 CEST schreef Geert Janssens: > Op zondag 25 augustus 2019 17:43:31 CEST schreef John Ralls: > > > On Aug 25, 2019, at 3:39 AM, Christian Gruber > > > I fixed the problem. It is a missing build dependency. I did only call > > > "make check" directly after generating a fresh build dir with CMake. So > > > not every dependency of the tests has been built yet, scm-srfi64-extras > > > is one of them. After calling "make all" and then "make check" again and > > > after installing missing french locale, all tests run successfully now. > > > Maybe there are even more missing dependencies, which are all built with > > > "make all". > > > > > > Is this a known issue, that the test applications are missing some > > > required dependencies in the CMakeLists.txt? I'll have a look, what is > > > actually missing and try to fix it. > > > > We know that the dependency tree in the CMakeLists isn't exhaustive, but > > Geert had the check target sorted last winter. The srfi64 tests were added > > after that and I guess that some dependencies got missed then. Obviously > > having a full dependency tree is more robust, especially if the source > > directory layout changes so have at it! > > > > Regards, > > John Ralls > > IIRC I ran into this before and fixed it on master while reorganizing the > scheme sources recently. As the file changes in that restructuring were > fairly big, I didn't attempt to backport useful bits to maint. And I can't > reproduce this particular dependency issue on master any more (just ran > into a new one though). > > So it may be a maint-only issue. > For the record, it's not a maint-only problem, or at least not any more. I tried a ninja-build check yesterday in an empty build directory and it consistently failed with a missing dependency in engine-utils.scm. Running ninja-build && ninja-build check did solve it. So it seems there is still room for improvement in this area. Geert ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: [GNC-dev] Need help - several tests fail
Op zondag 25 augustus 2019 17:43:31 CEST schreef John Ralls: > > On Aug 25, 2019, at 3:39 AM, Christian Gruber > > wrote:> > > Am 22.08.19 um 09:21 schrieb Geert Janssens: > >> Op donderdag 22 augustus 2019 05:37:12 CEST schreef John Ralls: > On Aug 21, 2019, at 3:28 PM, Christian Gruber > > wrote: > > Ok, that was a useful hint. Clearing the guile cache helped. I'm one > step > further. I have no idea, what led to this situation. I couldn't > reproduce > this again. > > Next problem is that still several tests fail with the following > output: > > ERROR: no code for module (gnucash engine test srfi64-extras) > >>> > >>> Which means that they're not finding > >>> libgnucash/engine/test/srfi64-extras.scm or perhaps srfi64-extras.go Can > >>> you figure out why? It might help to run make with VERBOSE=1 so that the > >>> whole command is printed for each step or to switch to ninja which dumps > >>> any failed commands without being asked and is also about 10x faster > >>> than > >>> make. > >>> > >>> Regards, > >>> John Ralls > >> > >> It can also be an as of yet undiscovered build dependency issue (there > >> still are a few on maint). > >> > >> You didn't post any error output (or full build log) so it's hard to > >> tell. > >> In the build logs do you find a message logging the build of engine/test/ > >> srfi64-extras.go before you get your errors ? > >> > >> Geert > > > > I fixed the problem. It is a missing build dependency. I did only call > > "make check" directly after generating a fresh build dir with CMake. So > > not every dependency of the tests has been built yet, scm-srfi64-extras > > is one of them. After calling "make all" and then "make check" again and > > after installing missing french locale, all tests run successfully now. > > Maybe there are even more missing dependencies, which are all built with > > "make all". > > > > Is this a known issue, that the test applications are missing some > > required dependencies in the CMakeLists.txt? I'll have a look, what is > > actually missing and try to fix it. > We know that the dependency tree in the CMakeLists isn't exhaustive, but > Geert had the check target sorted last winter. The srfi64 tests were added > after that and I guess that some dependencies got missed then. Obviously > having a full dependency tree is more robust, especially if the source > directory layout changes so have at it! > > Regards, > John Ralls IIRC I ran into this before and fixed it on master while reorganizing the scheme sources recently. As the file changes in that restructuring were fairly big, I didn't attempt to backport useful bits to maint. And I can't reproduce this particular dependency issue on master any more (just ran into a new one though). So it may be a maint-only issue. Geert ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: [GNC-dev] Need help - several tests fail
> On Aug 25, 2019, at 3:39 AM, Christian Gruber > wrote: > > Am 22.08.19 um 09:21 schrieb Geert Janssens: >> Op donderdag 22 augustus 2019 05:37:12 CEST schreef John Ralls: On Aug 21, 2019, at 3:28 PM, Christian Gruber wrote: Ok, that was a useful hint. Clearing the guile cache helped. I'm one step further. I have no idea, what led to this situation. I couldn't reproduce this again. Next problem is that still several tests fail with the following output: ERROR: no code for module (gnucash engine test srfi64-extras) >>> Which means that they're not finding >>> libgnucash/engine/test/srfi64-extras.scm or perhaps srfi64-extras.go Can >>> you figure out why? It might help to run make with VERBOSE=1 so that the >>> whole command is printed for each step or to switch to ninja which dumps >>> any failed commands without being asked and is also about 10x faster than >>> make. >>> >>> Regards, >>> John Ralls >> It can also be an as of yet undiscovered build dependency issue (there still >> are a few on maint). >> >> You didn't post any error output (or full build log) so it's hard to tell. >> In the build logs do you find a message logging the build of engine/test/ >> srfi64-extras.go before you get your errors ? >> >> Geert >> >> > I fixed the problem. It is a missing build dependency. I did only call "make > check" directly after generating a fresh build dir with CMake. So not every > dependency of the tests has been built yet, scm-srfi64-extras is one of them. > After calling "make all" and then "make check" again and after installing > missing french locale, all tests run successfully now. Maybe there are even > more missing dependencies, which are all built with "make all". > > Is this a known issue, that the test applications are missing some required > dependencies in the CMakeLists.txt? I'll have a look, what is actually > missing and try to fix it. We know that the dependency tree in the CMakeLists isn't exhaustive, but Geert had the check target sorted last winter. The srfi64 tests were added after that and I guess that some dependencies got missed then. Obviously having a full dependency tree is more robust, especially if the source directory layout changes so have at it! Regards, John Ralls ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: [GNC-dev] Need help - several tests fail
Am 22.08.19 um 09:21 schrieb Geert Janssens: Op donderdag 22 augustus 2019 05:37:12 CEST schreef John Ralls: On Aug 21, 2019, at 3:28 PM, Christian Gruber wrote: Ok, that was a useful hint. Clearing the guile cache helped. I'm one step further. I have no idea, what led to this situation. I couldn't reproduce this again. Next problem is that still several tests fail with the following output: ERROR: no code for module (gnucash engine test srfi64-extras) Which means that they're not finding libgnucash/engine/test/srfi64-extras.scm or perhaps srfi64-extras.go Can you figure out why? It might help to run make with VERBOSE=1 so that the whole command is printed for each step or to switch to ninja which dumps any failed commands without being asked and is also about 10x faster than make. Regards, John Ralls It can also be an as of yet undiscovered build dependency issue (there still are a few on maint). You didn't post any error output (or full build log) so it's hard to tell. In the build logs do you find a message logging the build of engine/test/ srfi64-extras.go before you get your errors ? Geert I fixed the problem. It is a missing build dependency. I did only call "make check" directly after generating a fresh build dir with CMake. So not every dependency of the tests has been built yet, scm-srfi64-extras is one of them. After calling "make all" and then "make check" again and after installing missing french locale, all tests run successfully now. Maybe there are even more missing dependencies, which are all built with "make all". Is this a known issue, that the test applications are missing some required dependencies in the CMakeLists.txt? I'll have a look, what is actually missing and try to fix it. Regards, Christian ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: [GNC-dev] Need help - several tests fail
Op donderdag 22 augustus 2019 05:37:12 CEST schreef John Ralls: > > On Aug 21, 2019, at 3:28 PM, Christian Gruber > > wrote: > > > > Ok, that was a useful hint. Clearing the guile cache helped. I'm one step > > further. I have no idea, what led to this situation. I couldn't reproduce > > this again. > > > > Next problem is that still several tests fail with the following output: > > > > ERROR: no code for module (gnucash engine test srfi64-extras) > > Which means that they're not finding > libgnucash/engine/test/srfi64-extras.scm or perhaps srfi64-extras.go Can > you figure out why? It might help to run make with VERBOSE=1 so that the > whole command is printed for each step or to switch to ninja which dumps > any failed commands without being asked and is also about 10x faster than > make. > > Regards, > John Ralls It can also be an as of yet undiscovered build dependency issue (there still are a few on maint). You didn't post any error output (or full build log) so it's hard to tell. In the build logs do you find a message logging the build of engine/test/ srfi64-extras.go before you get your errors ? Geert ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: [GNC-dev] Need help - several tests fail
> On Aug 21, 2019, at 3:28 PM, Christian Gruber > wrote: >> > Ok, that was a useful hint. Clearing the guile cache helped. I'm one step > further. I have no idea, what led to this situation. I couldn't reproduce > this again. > > Next problem is that still several tests fail with the following output: > > ERROR: no code for module (gnucash engine test srfi64-extras) > Which means that they're not finding libgnucash/engine/test/srfi64-extras.scm or perhaps srfi64-extras.go Can you figure out why? It might help to run make with VERBOSE=1 so that the whole command is printed for each step or to switch to ninja which dumps any failed commands without being asked and is also about 10x faster than make. Regards, John Ralls ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: [GNC-dev] Need help - several tests fail
Am 19.08.19 um 00:54 schrieb John Ralls: On Aug 18, 2019, at 1:20 PM, Christian Gruber wrote: Hi, Since I'm new to GnuCash development, I still need some help getting everything running. Several tests currently fail on my platform: 1 - test-exp-parser (Failed) 2 - test-link-module-app-utils (Failed) 4 - test-scm-query-string (Failed) 8 - test-date-utilities (Failed) 9 - test-options (Failed) 10 - test-app-utils (Failed) 15 - test-load-example-account (Failed) 36 - test-qof (Child aborted) 59 - test-gnc-numeric (Failed) 64 - test-scm-query (Failed) 65 - test-business-core (Failed) 81 - test-libgnucash-scm-utilities (Failed) 83 - test-link-module-gnome-utils (Failed) 85 - test-import-parse (Failed) 93 - test-qif-imp (Failed) 94 - test-qif-parse (Failed) 95 - test-qif-merge-groups (Failed) 99 - test-invoice (Failed) 100 - test-owner-report (Failed) 102 - test-link-module-report-gnome (Failed) 104 - test-link-module-report-system (Failed) 106 - test-test-extras (Failed) 107 - test-commodity-utils (Failed) 108 - test-report-utilities (Failed) 109 - test-html-utilities-srfi64 (Failed) 110 - test-html-fonts (Failed) 111 - test-report-html (Failed) 112 - test-report-system (Failed) 113 - test-standard-category-report (Failed) 114 - test-standard-net-linechart (Failed) 115 - test-standard-net-barchart (Failed) 116 - test-cashflow-barchart (Failed) 117 - test-charts (Failed) 118 - test-transaction (Failed) 119 - test-balsheet-pnl (Failed) 120 - test-income-gst (Failed) 121 - test-budget (Failed) 122 - test-register (Failed) 123 - test-average-balance (Failed) 124 - test-stress-options (Failed) 125 - test-cash-flow (Failed) At many tests I saw the following or similar output: 1: ;;; WARNING: loading compiled file /home/christian/dev/build/gnucash/lib/gnucash/scm/ccache/2.0/fin.go failed: 1: ;;; ERROR: In procedure make_objcode_from_file: bad header on object file: "\x7fELF\x02\x01\x01�\x00\x00\x00\x00\x00\x00\x00\x00" [...] 1: ERROR: In procedure primitive-load-path: Unable to find file "fin" in load path There is always a warning, that some *.go files could not be loaded. Next there is an error about "bad header on object file". And at the end there is another error, that the file, which could not be loaded before, could not be found in the the load path or that there is no code for this module. Any ideas? My system is an Ubuntu 19.04. That's a symptom of stale guile caches. If "make clean && make && make check" doesn't resolve the problem go hunting for .go files outside your build dir. ~/.caches/guile is a common hiding place. If you have an installed GnuCash make sure that Guile can't find its .go files. Regards, John Ralls Ok, that was a useful hint. Clearing the guile cache helped. I'm one step further. I have no idea, what led to this situation. I couldn't reproduce this again. Next problem is that still several tests fail with the following output: ERROR: no code for module (gnucash engine test srfi64-extras) ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: [GNC-dev] Need help - several tests fail
> On Aug 18, 2019, at 1:20 PM, Christian Gruber > wrote: > > Hi, > > Since I'm new to GnuCash development, I still need some help getting > everything running. Several tests currently fail on my platform: > > 1 - test-exp-parser (Failed) > 2 - test-link-module-app-utils (Failed) > 4 - test-scm-query-string (Failed) > 8 - test-date-utilities (Failed) > 9 - test-options (Failed) > 10 - test-app-utils (Failed) > 15 - test-load-example-account (Failed) > 36 - test-qof (Child aborted) > 59 - test-gnc-numeric (Failed) > 64 - test-scm-query (Failed) > 65 - test-business-core (Failed) > 81 - test-libgnucash-scm-utilities (Failed) > 83 - test-link-module-gnome-utils (Failed) > 85 - test-import-parse (Failed) > 93 - test-qif-imp (Failed) > 94 - test-qif-parse (Failed) > 95 - test-qif-merge-groups (Failed) > 99 - test-invoice (Failed) > 100 - test-owner-report (Failed) > 102 - test-link-module-report-gnome (Failed) > 104 - test-link-module-report-system (Failed) > 106 - test-test-extras (Failed) > 107 - test-commodity-utils (Failed) > 108 - test-report-utilities (Failed) > 109 - test-html-utilities-srfi64 (Failed) > 110 - test-html-fonts (Failed) > 111 - test-report-html (Failed) > 112 - test-report-system (Failed) > 113 - test-standard-category-report (Failed) > 114 - test-standard-net-linechart (Failed) > 115 - test-standard-net-barchart (Failed) > 116 - test-cashflow-barchart (Failed) > 117 - test-charts (Failed) > 118 - test-transaction (Failed) > 119 - test-balsheet-pnl (Failed) > 120 - test-income-gst (Failed) > 121 - test-budget (Failed) > 122 - test-register (Failed) > 123 - test-average-balance (Failed) > 124 - test-stress-options (Failed) > 125 - test-cash-flow (Failed) > > At many tests I saw the following or similar output: > > 1: ;;; WARNING: loading compiled file > /home/christian/dev/build/gnucash/lib/gnucash/scm/ccache/2.0/fin.go failed: > 1: ;;; ERROR: In procedure make_objcode_from_file: bad header on object file: > "\x7fELF\x02\x01\x01�\x00\x00\x00\x00\x00\x00\x00\x00" > [...] > 1: ERROR: In procedure primitive-load-path: Unable to find file "fin" in load > path > > There is always a warning, that some *.go files could not be loaded. Next > there is an error about "bad header on object file". And at the end there is > another error, that the file, which could not be loaded before, could not be > found in the the load path or that there is no code for this module. > > Any ideas? > > My system is an Ubuntu 19.04. That's a symptom of stale guile caches. If "make clean && make && make check" doesn't resolve the problem go hunting for .go files outside your build dir. ~/.caches/guile is a common hiding place. If you have an installed GnuCash make sure that Guile can't find its .go files. Regards, John Ralls ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
[GNC-dev] Need help - several tests fail
Hi, Since I'm new to GnuCash development, I still need some help getting everything running. Several tests currently fail on my platform: 1 - test-exp-parser (Failed) 2 - test-link-module-app-utils (Failed) 4 - test-scm-query-string (Failed) 8 - test-date-utilities (Failed) 9 - test-options (Failed) 10 - test-app-utils (Failed) 15 - test-load-example-account (Failed) 36 - test-qof (Child aborted) 59 - test-gnc-numeric (Failed) 64 - test-scm-query (Failed) 65 - test-business-core (Failed) 81 - test-libgnucash-scm-utilities (Failed) 83 - test-link-module-gnome-utils (Failed) 85 - test-import-parse (Failed) 93 - test-qif-imp (Failed) 94 - test-qif-parse (Failed) 95 - test-qif-merge-groups (Failed) 99 - test-invoice (Failed) 100 - test-owner-report (Failed) 102 - test-link-module-report-gnome (Failed) 104 - test-link-module-report-system (Failed) 106 - test-test-extras (Failed) 107 - test-commodity-utils (Failed) 108 - test-report-utilities (Failed) 109 - test-html-utilities-srfi64 (Failed) 110 - test-html-fonts (Failed) 111 - test-report-html (Failed) 112 - test-report-system (Failed) 113 - test-standard-category-report (Failed) 114 - test-standard-net-linechart (Failed) 115 - test-standard-net-barchart (Failed) 116 - test-cashflow-barchart (Failed) 117 - test-charts (Failed) 118 - test-transaction (Failed) 119 - test-balsheet-pnl (Failed) 120 - test-income-gst (Failed) 121 - test-budget (Failed) 122 - test-register (Failed) 123 - test-average-balance (Failed) 124 - test-stress-options (Failed) 125 - test-cash-flow (Failed) At many tests I saw the following or similar output: 1: ;;; WARNING: loading compiled file /home/christian/dev/build/gnucash/lib/gnucash/scm/ccache/2.0/fin.go failed: 1: ;;; ERROR: In procedure make_objcode_from_file: bad header on object file: "\x7fELF\x02\x01\x01�\x00\x00\x00\x00\x00\x00\x00\x00" [...] 1: ERROR: In procedure primitive-load-path: Unable to find file "fin" in load path There is always a warning, that some *.go files could not be loaded. Next there is an error about "bad header on object file". And at the end there is another error, that the file, which could not be loaded before, could not be found in the the load path or that there is no code for this module. Any ideas? My system is an Ubuntu 19.04. Regards, Christian ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel