ibotlog2html for #crosstool-ng

<< Previous 2024-01-22 Next >>

# 04:34:21 cpackham quits : Ping timeout: 252 seconds
# 08:09:40 cpackham joins #crosstool-ng
# 08:29:38 cpackham quits : Ping timeout: 260 seconds
# 17:39:05 Trel I'm having an issue with building gpgme (a pre-req for something I'm building). It needs assuan, which I have installed to a destdir which I have included with LDFLAGS (and the library path with CPP and CXXFLAGS)
# 17:39:44 Trel But gpgme is failing with https://termbin.com/ln88
# 17:42:15 Trel (ignore that instance of libi32, that was a typo in my envar script (since fixed with no impact on the error as the dir was empty anyhow)
# 17:44:21 milkylainen Trel: If you can't point to anything more specific in the toolchain build that is wrong, then that isn't crosstool-ng problem.
# 17:44:57 milkylainen Linking various things are subject to your environment and understanding of various packages.
# 17:52:42 Trel I'm not sure what to do from here
# 17:53:02 Trel It should be linking to the one I compiled.
# 17:53:19 Trel What should I look at?
# 17:54:58 Trel milkylainen: I'm not familiar with this at all, so it could be something in the toolchain, but I'm completely lost
# 18:00:53 milkylainen Trel: You're probably somewhere in the right area. This is what various build environments struggle with all day long. Adapting packages so that they behave. But in general, a lot of package use pkg-config to describe link and compile flags for other packages.
# 18:03:19 milkylainen Trel: Your dependencies, like assuan has probably installed pkgconfig files somewhere. I don't know assuan without looking closer, so any answer regarding assuan with a large pinch of salt.
# 18:03:23 milkylainen :)
# 18:04:40 milkylainen But in general, that's pretty much how things work. You installed dependencies to a sysroot or similar and either just point packages there or they get their dependencies from a pkg-config which directs them to the correct place.
# 18:04:50 milkylainen There is a lot of variation on how this is done.
# 18:34:57 Trel I'm confused, it sounds like you're saying I did what I'm supposed to do to fix it already. So I'm confused as to what I do ftom here.
# 18:37:01 Trel s/ftom/from/
# 19:16:25 milkylainen Check if assuan provides pkg-config and learn how to use it. That could be a way out of it. But I haven't looked at libassuan, so I'm not 100% sure.
# 19:27:03 cpackham joins #crosstool-ng
# 19:29:35 zagura Trel: Looks like you're missing -l for libgpgmae.so -lm ./.libs/libgpgme.so /usr/lib/libgpg-error.so
# 19:32:03 zagura Or I'm messing with in/out of command :| What's the LDFLAGS you've passed?
# 20:08:58 TomS43 joins #crosstool-ng
# 20:22:56 Trel zagura: libgpgme is what I'm compiling
# 20:23:03 Trel (or rather gpgme itself)
# 20:24:23 Trel This is the envars I'm using for this https://termbin.com/sdf2
# 20:25:39 Trel with "/home/master/.cross/_builds/appimage/dest" being the destdir on installed for any prereqs
# 20:34:05 milkylainen Trel: libassuan resides there somewhere?
# 20:41:33 TomS43 quits : Quit: Client closed
# 20:44:56 TomS43 joins #crosstool-ng
# 20:45:15 zagura Trel: So there is /home/master/.cross/_builds/appimage/dest/lib/libassuan.so.0 there?
# 20:45:42 zagura As regular file or valid symbolic link
# 20:47:16 Trel zagura: libassuan.so.0 -> libassuan.so.0.8.6
# 20:47:24 Trel valid link within the same directory
# 20:47:48 Trel I could try replacing the link with a copy of the file, but is that really the issue?
# 20:48:02 Trel none of the other libraries have caused issues with links of that nature
# 20:48:10 zagura Hm. assuan_ctx_set_system_hooks@LIBASSUAN_1.0 maybe there is versioning issue?\
# 20:48:27 zagura Because those seems to be symbols from higher version.
# 20:48:45 milkylainen Probably found host assuan?
# 20:49:18 Trel I grabbed from https://www.gnupg.org/download/index.html
# 20:49:26 Trel let me check if I even have it on the host
# 20:49:38 milkylainen Check your config.log, if it was using autotools.
# 20:50:52 Trel What am I looking for in there
# 20:52:13 Trel any reference to the host location (which to me I wouldn't be able to tell from a prefix for the intended one) or a specific instance?
# 20:52:48 milkylainen where it looks for libassuan.
# 20:52:53 milkylainen And what it finds.
# 20:54:16 Trel Do I need to run configure with a specific flag to produce that?
# 20:54:23 Trel It has a line about finding it but doesn't say where.
# 20:55:57 milkylainen It should use some test of some sort to determine it.
# 20:56:26 milkylainen Either some basic compilation tests or pkg-config thingies to compile something.
# 20:57:04 Trel So you mean get the linenumber and then look at the configure script to see what it does?
# 20:58:26 milkylainen configure.ac perhaps.
# 20:58:58 milkylainen gtg.
# 20:59:59 TomS43 quits : Quit: Client closed
# 21:03:26 Trel I'm doing more digging
# 21:03:45 Trel I also don't think `make clean` is cleaning up, so I'm gonna nuke the folder before I look
# 21:05:00 TomS63 joins #crosstool-ng
# 21:12:19 Trel I'm stumped
# 21:12:25 Trel I have no idea how to debug something like this
# 21:16:33 zagura Trel: Hm. https://termbin.com/29k7 Working fine.
# 21:17:01 zagura 1. Installed libassuan on destdir with ./configure --prefix=/path-to-destdir && make install
# 21:17:38 zagura then configure gpgme with flag --with-libassuan-prefix=/path-to-destdir
# 21:17:39 Trel Do you have a system one it could be using and working?
# 21:17:53 Trel I've tried both that flag and exec_prefix
# 21:19:05 TomS63 quits : Quit: Client closed
# 21:19:07 Trel I just tried again, same exact error
# 21:19:26 Trel ./configure --prefix=/usr --with-libassuan-prefix=/home/master/.cross/_builds/appimage/dest/usr
# 21:19:31 zagura I just compiled with host tools on my Fedora, so no crosstools and no sysroot. I think, I don't have libassuan installed in /usr/lib as ./configure didn't find it on first try.
# 21:19:43 Trel That's what you were saying worked?
# 21:21:42 zagura it seems so, ldd shows correct path to libassuan.so and gpgme-tool installed fires without errors. :)
# 21:22:06 zagura What's ./configure output?
# 21:22:44 Trel moment
# 21:23:24 Trel https://termbin.com/ss7w
# 21:27:45 Trel I have no idea what I'm doing wrong
# 22:01:25 zagura Also, I had installed pkg-config then: https://termbin.com/rug2
# 23:18:19 Trel zagura: I'm not sure what that means, is that something I need to address somehow?
# 23:38:18 Trel I tried setting PKG_CONFIG_PATH to include the directories in the staging dir, but the error remains the same
# 23:39:23 Trel I'm at the point where I don't understand what's wrong, nor do I understand enough to gather more info to ask for help.

Generated by ibotlog2html by Yann E. MORIN