Gnucash 1.6.6 from portage does not run. The output is as follows: --- toojays@hiro$ gnucash ERROR: In procedure dynamic-link: ERROR: file not found --- Running under gdb gives no clues apart from "Program exited with code 02". Is there anything else I can do?
Created attachment 2452 [details] strace -o gnucash-strace gnucash I'm attaching the strace output. The problem appears at about line 677, which makes me wonder if the problem lies with g-wrap. The version of g-wrap in portage is 1.2.1, but http://www.gnucash.org/pub/g-wrap/source/ lists a couple of 1.3.x versions which have been there for several months (although these aren't in their package directories, so perhaps g-wrap follows an odd/even devel/stable version numbering scheme).
try to re-emerge g-wrap from the strace log it seems that you dont have the necessary files in /usr/share/guile/g-wrapped/ Comparing my g-wrap install: >>> Merging dev-libs/g-wrap-1.2.1-r2 to / --- /usr/ --- /usr/bin/ >>> /usr/bin/g-wrap-config --- /usr/lib/ >>> /usr/lib/libg-wrap-runtime-guile.la >>> /usr/lib/libg-wrap-runtime-guile.so.2.0.0 >>> /usr/lib/libg-wrap-runtime-guile.a --- /usr/share/ --- /usr/share/info/ >>> /usr/share/info/g-wrap.info.gz >>> /usr/share/info/g-wrap.info-1.gz >>> /usr/share/info/g-wrap.info-2.gz --- /usr/share/guile/ >>> /usr/share/guile/g-wrapped/ >>> /usr/share/guile/g-wrapped/libgw-runtime.so.0.0.0 >>> /usr/share/guile/g-wrapped/gw-runtime-spec.scm >>> /usr/share/guile/g-wrapped/libgw-runtime.a >>> /usr/share/guile/g-wrapped/libgw-runtime.la >>> /usr/share/guile/g-wrap/ >>> /usr/share/guile/g-wrap/guile-types.scm >>> /usr/share/guile/g-wrap/sorting.scm >>> /usr/share/guile/g-wrap/output-file.scm >>> /usr/share/guile/g-wrap/g-translate.scm >>> /usr/share/guile/g-wrap.scm
Created attachment 2662 [details] output of "emerge g-wrap" (minus build output) Thanks for responding. Re-emerging g-wrap doesn't fix it. I have attached the output of my emerge, you can see it has the same files as yours, although the order of some of them is different.
I seem to be getting somewhere! I've recompiled some stuff (g-wrap, guile) without optimisations, and it looks good now. I'll see if I can figure out exactly which optimisation is breaking it and get back to you (it's either -march=athlon or -O3).
Okay . . . what I have is: * sys-libs/glibc Latest version Available: 2.2.5-r5 Latest version Installed: 2.2.5-r5 * sys-devel/gcc Latest version Available: 3.1-r7 Latest version Installed: 3.1-r7 Usually I compile with CFLAGS="-march=athlon -O3 -pipe -Wl,-z,combreloc". The problem is not with g-wrap but with guile (ebuild 1.4-r3). Here are the CFLAGS I have tried for guile: CFLAGS="-march=i386 -O": gnucash WORKED CFLAGS="-march=athlon -O2 -pipe -Wl,-z,combreloc": gnucash FAILED CFLAGS="-march=i686 -O2 -pipe -Wl,-z,combreloc": gnucash FAILED CFLAGS="-march=i586 -O3 -pipe -Wl,-z,combreloc": gnucash FAILED CFLAGS="-march=i386 -O2 -pipe -Wl,-z,combreloc": gnucash FAILED CFLAGS="-march=i386 -O -pipe -Wl,-z,combreloc": gnucash FAILED CFLAGS="-march=i386 -O -Wl,-z,combreloc": gnucash FAILED CFLAGS="-march=i386 -O": gnucash WORKED CFLAGS="-march=i386 -O -pipe": gnucash WORKED CFLAGS="-march=i386 -O3": gnucash WORKED CFLAGS="-march=athlon -O3 -pipe": gnucash WORKED CFLAGS="-march=athlon -O3 -pipe -Wl,-z,combreloc": gnucash FAILED So the problem comes when you turn on "combine relocations" in the linking of guile.
well, we dont officially support or recommend combined relocations, so its not really a good idea to filter out it from the ebuild. I suggest you file this upstream (guile) and see from there.. closing this since I can't see what I can actively do to fix it