Opened 8 years ago

Last modified 8 years ago

#51456 new defect

gnucash build failure with guile and guile18 installed

Reported by: mopihopi Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: LeoFCardoso (Leonardo), rjderosa (Robert De Rosa), posita (Matt Bogosian), Blokkendoos (Johan)
Port: gnucash

Description

Upgrading gnucash to @2.6.12_1, on OS X 10.10.5 with XCode 7.2.1 Build version 7C1002, with webkit-gtk +quartz, an error is encountered:

$ sudo port upgrade gnucash
--->  Computing dependencies for gnucash
--->  Fetching archive for gnucash
--->  Attempting to fetch gnucash-2.6.12_1+hbci+ofx.darwin_14.x86_64.tbz2 from https://packages.macports.org/gnucash
--->  Attempting to fetch gnucash-2.6.12_1+hbci+ofx.darwin_14.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/gnucash
--->  Attempting to fetch gnucash-2.6.12_1+hbci+ofx.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/gnucash
--->  Fetching distfiles for gnucash
--->  Verifying checksums for gnucash
--->  Extracting gnucash
--->  Applying patches to gnucash
--->  Configuring gnucash
--->  Building gnucash
Error: org.macports.build for port gnucash returned: command execution failed
Please see the log file for port gnucash for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gnucash/gnucash/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
$ 
...
:info:build libtool: link: /usr/bin/clang -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libtest-core-guile.0.dylib  .libs/libtest_core_guile_la-swig-unittest-support-guile.o   -L/opt/local/lib -lguile-2.0 -lgc ./.libs/libtest-core.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gnucash/gnucash/work/gnucash-2.6.12/src/libqof/qof/.libs/libgnc-qof.dylib -lgio-2.0 -lgthread-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -lm  -Os -arch x86_64 -Wl,-headerpad_max_install_names -arch x86_64 -Wl,-dylib_file -Wl,/opt/local/lib/libgnc-qof.1.dylib:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gnucash/gnucash/work/gnucash-2.6.12/src/libqof/qof/.libs/libgnc-qof.dylib   -install_name  /lib/libtest-core-guile.0.dylib -compatibility_version 1 -current_version 1.0 -Wl,-single_module
:info:build libtool: link: (cd ".libs" && rm -f "libtest-core-guile.dylib" && ln -s "libtest-core-guile.0.dylib" "libtest-core-guile.dylib")
:info:build libtool: link: ( cd ".libs" && rm -f "libtest-core-guile.la" && ln -s "../libtest-core-guile.la" "libtest-core-guile.la" )
:info:build GNC_UNINSTALLED=yes \
:info:build     GNC_BUILDDIR=../.. \
:info:build     LD_LIBRARY_PATH="../../src/test-core/.libs:../../src/libqof/qof/.libs:${LD_LIBRARY_PATH}" DYLD_LIBRARY_PATH="../../src/test-core/.libs:../../src/libqof/qof/.libs:${DYLD_LIBRARY_PATH}"  \
:info:build     /opt/local/bin/guild compile -o unittest-support.go unittest-support.scm
:info:build ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
:info:build ;;;       or pass the --no-auto-compile argument to disable.
:info:build ;;; compiling /opt/local/bin/guild
:info:build ;;; compiled /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gnucash/gnucash/work/.home/.cache/guile/ccache/2.0-LE-8-2.0/opt/local/bin/guild.go
:info:build Backtrace:
:info:build In /opt/local/bin/guild:
:info:build   74: 19 [main ("/opt/local/bin/guild" "compile" "-o" ...)]
:info:build In srfi/srfi-1.scm:
:info:build  619: 18 [for-each #<procedure 10f69a500 at scripts/compile.scm:179:14 (file)> #]
:info:build In scripts/compile.scm:
:info:build  182: 17 [#<procedure 10f69a500 at scripts/compile.scm:179:14 (file)> "unittest-support.scm"]
:info:build In system/base/target.scm:
:info:build   59: 16 [with-target "x86_64-apple-darwin14" ...]
:info:build In system/base/compile.scm:
:info:build  150: 15 [compile-file "unittest-support.scm" #:output-file ...]
:info:build   43: 14 [call-once #<procedure 10f69a400 at system/base/compile.scm:56:5 ()>]
:info:build In ice-9/boot-9.scm:
:info:build  171: 13 [with-throw-handler #t ...]
:info:build In system/base/compile.scm:
:info:build   59: 12 [#<procedure 10f69a3c0 at system/base/compile.scm:58:9 ()>]
:info:build  153: 11 [#<procedure 10f69a440 at system/base/compile.scm:151:8 (port)> #<closed: file 0>]
:info:build  216: 10 [read-and-compile #<input: unittest-support.scm 16> #:from ...]
:info:build  232: 9 [lp (#<tree-il #>) #<directory (gnucash unittest-support) 10f59d750> ...]
:info:build  180: 8 [lp (#<procedure compile-tree-il (x e opts)>) (cond-expand # #) ...]
:info:build In ice-9/boot-9.scm:
:info:build 2401: 7 [save-module-excursion #<procedure 10f6d4ba0 at language/scheme/compile-tree-il.scm:29:3 ()>]
:info:build In language/scheme/compile-tree-il.scm:
:info:build   31: 6 [#<procedure 10f6d4ba0 at language/scheme/compile-tree-il.scm:29:3 ()>]
:info:build In ice-9/psyntax.scm:
:info:build  106: 0 [#<procedure 10f69a380 at ice-9/boot-9.scm:97:6 (thrown-k . args)> misc-error ...]
:info:build
:info:build ice-9/boot-9.scm:106:20: In procedure #<procedure 10f69a380 at ice-9/boot-9.scm:97:6 (thrown-k . args)>:
:info:build ice-9/boot-9.scm:106:20: In procedure dynamic-link: file: "libtest-core-guile", message: "file not found"
:info:build make[3]: *** [unittest-support.go] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gnucash/gnucash/work/gnucash-2.6.12/src/test-core'
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gnucash/gnucash/work/gnucash-2.6.12/src'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gnucash/gnucash/work/gnucash-2.6.12'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gnucash/gnucash/work/gnucash-2.6.12'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gnucash/gnucash/work/gnucash-2.6.12" && /usr/bin/make -j8 -w all
:info:build Exit code: 2
:error:build org.macports.build for port gnucash returned: command execution failed
:debug:build Error code: CHILDSTATUS 32600 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"portbuild::build_main org.macports.build"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for gnucash: org.macports.install org.macports.build org.macports.destroot
:notice:build Please see the log file for port gnucash for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gnucash/gnucash/main.log

Attachments (2)

gnucash-2.6.12_1.log (2.0 MB) - added by mopihopi 8 years ago.
main.log
2016-11-02 gnucash main w guile 2.013 and guile18 - OS X 10.10.log.zip (59.9 KB) - added by Blokkendoos (Johan) 8 years ago.
gc install fails with guile(2) and guile18 installed

Change History (17)

Changed 8 years ago by mopihopi

Attachment: gnucash-2.6.12_1.log added

main.log

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Cc: dports@… removed
Owner: changed from macports-tickets@… to dports@…

comment:2 Changed 8 years ago by LeoFCardoso (Leonardo)

Cc: leonardo.f.cardoso@… added

Cc Me!

comment:3 Changed 8 years ago by rjderosa (Robert De Rosa)

Cc: rderosa86@… added

Cc Me!

comment:4 Changed 8 years ago by posita (Matt Bogosian)

Cc: mtb19@… added

Cc Me!

comment:5 Changed 8 years ago by Blokkendoos (Johan)

Cc: jo.vanoost@… added

Cc Me!

Version 0, edited 8 years ago by Blokkendoos (Johan) (next)

comment:6 Changed 8 years ago by rjderosa (Robert De Rosa)

Just a heads up that the problem still exists with version 2.6.13_0

comment:7 Changed 8 years ago by LeoFCardoso (Leonardo)

Somehow, another guile installation was causing this issue in my machine.

$sudo port installed | grep -i guile
  guile @2.0.11_3 (active)
  guile18 @1.8.8_3
  guile18 @1.8.8_4 (active)

So, I decided to remove all guile packages.

$ sudo port -f uninstall guile
--->  Deactivating guile @2.0.11_3
--->  Cleaning guile
--->  Uninstalling guile @2.0.11_3
--->  Cleaning guile
$ sudo port -f uninstall guile18@1.8.8_4
--->  Unable to uninstall guile18 @1.8.8_4, the following ports depend on it:
--->  	gnucash @2.6.9_0+hbci+ofx
--->  	gnucash @2.6.10_0+hbci+ofx
--->  	gnucash @2.6.11_0+hbci+ofx
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating guile18 @1.8.8_4
--->  Unable to deactivate guile18 @1.8.8_4, the following ports depend on it:
--->  	gnucash @2.6.11_0+hbci+ofx
Warning: Deactivate forced.  Proceeding despite dependencies.
--->  Cleaning guile18
--->  Uninstalling guile18 @1.8.8_4
--->  Cleaning guile18

$ sudo port -f uninstall guile18
--->  Unable to uninstall guile18 @1.8.8_3, the following ports depend on it:
--->  	gnucash @2.6.9_0+hbci+ofx
--->  	gnucash @2.6.10_0+hbci+ofx
--->  	gnucash @2.6.11_0+hbci+ofx
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Uninstalling guile18 @1.8.8_3
--->  Cleaning guile18

After that...

$ sudo port clean gnucash

$ sudo port upgrade gnucash

It works. ---> No broken files found.

:-)

Hope this post help other users.

comment:8 in reply to:  7 ; Changed 8 years ago by mopihopi

Thank you! After force-uninstalling all versions of guile* the upgrade completed for me without error.

comment:9 in reply to:  8 Changed 8 years ago by Blokkendoos (Johan)

Replying to leonardo.f.cardoso@…:

Thanks!, Fixed this issue for me too. As I prefer the Spartan X-style, now happily back to GnuCash in X-windows.

Last edited 8 years ago by Blokkendoos (Johan) (previous) (diff)

comment:10 Changed 8 years ago by drkp (Dan Ports)

Is this still an issue with 2.6.14? I'm able to build with both guile (2.0) and guile18 installed.

comment:11 in reply to:  10 Changed 8 years ago by Blokkendoos (Johan)

Replying to drkp:

Is this still an issue with 2.6.14? I'm able to build with both guile (2.0) and guile18 installed.

Tested these two scenario's, both on OS X 10.10 and 10.8:

  1. guile + guile18 + gnucash => fails (libtest-core-guile not found)
  2. guile18 + gnucash => ok

Though, as long as GC installs with or w/o workaround, it is not critical for me.

Changed 8 years ago by Blokkendoos (Johan)

gc install fails with guile(2) and guile18 installed

comment:12 Changed 8 years ago by drkp (Dan Ports)

Summary: gnucash @2.6.12_1 build failuregnucash build failure with guile and guile18 installed

Thanks! I'll check it out.

comment:13 Changed 8 years ago by drkp (Dan Ports)

In a12ba5ab/macports-ports:

gnucash, gnucash-devel: explicitly specify guile 1.8 in configure.args

Possibly fixes build problems when both guile and guile18 are
installed; see #51456

comment:14 Changed 8 years ago by drkp (Dan Ports)

I still can't reproduce this for some reason, but can you see whether the above commit fixes it?

comment:15 in reply to:  14 Changed 8 years ago by Blokkendoos (Johan)

Replying to drkp:

I still can't reproduce this for some reason, but can you see whether the above commit fixes it?

Still the same ("libtest-core-guile" not found) Here in short what I did:

$ port -f selfupdate
$ port installed | grep "guile\|gnucash"

gnucash-docs @2.2.0_0 (active)
guile @2.0.13_0 (active)
guile18 @1.8.8_4
guile18 @1.8.8_5 (active)
slib-guile @1.0_4 (active)

$ port install gnucash

Both on OS X 10.10 and 10.8. It's a rainy day.

Note: See TracTickets for help on using tickets.