unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: <janneke@gnu.org>
To: guile-user@gnu.org
Subject: cross building fibers from i686-linux to i586-pc-gnu fails
Date: Wed, 23 Oct 2024 07:55:29 +0200	[thread overview]
Message-ID: <87v7xjbbxq.fsf@gnu.org> (raw)

Hi,

Running

    ./pre-inst-env guix build --target=i586-pc-gnu --system=i686-linux guile-fibers

(also using latest fibers f92e5cb4f78e7e3d3537bfc9622bc59ea99fe9a7) fails

--8<---------------cut here---------------start------------->8---
make[1]: Entering directory '/tmp/guix-build-guile-fibers-1.3.1.drv-0/source'
./env	\
  /gnu/store/6f0nwq8wfcrbii9lxlffjph7kajgp6q9-guile-3.0.9/bin/guild compile --target=i586-pc-gnu -L "/tmp/guix-build-guile-fibers-1.3.1.drv-0/source"	\
  -Wunbound-variable -Warity-mismatch -Wformat -o "fibers/operations.go" "fibers/operations.scm"
Backtrace:
In ice-9/psyntax.scm:
  1221:19 19 (parse _ (("placeholder" placeholder)) ((top) #(ribcage () () ())) _ e (eval) (…))
   259:10 18 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) (hygiene #{ g108}#))
In ice-9/eval.scm:
   293:34 17 (_ #<module (#{ g108}#) 126960>)
In ice-9/boot-9.scm:
   3411:4 16 (define-module* _ #:filename _ #:pure _ #:version _ #:imports _ #:exports _ # _ # …)
  3424:24 15 (_)
   222:29 14 (map1 (((srfi srfi-9)) ((fibers events-impl)) ((fibers stack)) ((fibers #)) (#) …))
   222:17 13 (map1 (((fibers events-impl)) ((fibers stack)) ((fibers timer-wheel)) ((# #)) # …))
  3327:17 12 (resolve-interface (fibers events-impl) #:select _ #:hide _ #:prefix _ #:renamer …)
In ice-9/threads.scm:
    390:8 11 (_ _)
In ice-9/boot-9.scm:
  3253:13 10 (_)
In ice-9/threads.scm:
    390:8  9 (_ _)
In ice-9/boot-9.scm:
  3544:20  8 (_)
   2836:4  7 (save-module-excursion #<procedure 11f900 at ice-9/boot-9.scm:3545:21 ()>)
  3564:26  6 (_)
In unknown file:
           5 (primitive-load-path "fibers/events-impl" #<procedure 29b290 at ice-9/boot-9.scm…>)
In override/fibers/events-impl.scm:
    41:15  4 (_)
In unknown file:
           3 (dynamic-link "/tmp/guix-build-guile-fibers-1.3.1.drv-0/source/.libs/fibers-libe…")
In system/foreign-library.scm:
   190:25  2 (load-foreign-library _ #:extensions _ #:search-ltdl-library-path? _ # _ # _ # _ …)
In unknown file:
           1 (dlopen "/tmp/guix-build-guile-fibers-1.3.1.drv-0/source/.libs/fibers-libevent.…" …)
In ice-9/boot-9.scm:
  1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure dlopen: file "/tmp/guix-build-guile-fibers-1.3.1.drv-0/source/.libs/fibers-libevent.so", message "ld.so.1: cannot open shared object file: No such file or directory"
make[1]: *** [Makefile:1601: fibers/operations.go] Error 1
make[1]: Leaving directory '/tmp/guix-build-guile-fibers-1.3.1.drv-0/source'
make: *** [Makefile:595: all] Error 2
--8<---------------cut here---------------end--------------->8---

while cross building from x86_64-linux works fine.  In the build
environment, ldd says:

--8<---------------cut here---------------start------------->8---
$ ldd .libs/fibers-libevent.so
	linux-gate.so.1 (0xf7ed4000)
	libevent-2.1.so.7 => /gnu/store/jwbc0180qkfq4wccbm75xlvcw0z6rs8d-libevent-2.1.12/lib/libevent-2.1.so.7 (0xf7e6d000)
	libguile-3.0.so.1 => /gnu/store/clx4ayrx24nf9s5rbxmq03m7hwbk72df-guile-3.0.9/lib/libguile-3.0.so.1 (0xf7d12000)
	libffi.so.8 => /gnu/store/rryqnjb0ppwyxh8i54xd977iknjn0gvr-libffi-3.4.4/lib/libffi.so.8 (0xf7d0c000)
	libunistring.so.5 => /gnu/store/cgrpwyhy73wjfw2zgcfi79za2viv0j1v-libunistring-1.1/lib/libunistring.so.5 (0xf7b57000)
	libcrypt.so.1 => /gnu/store/61q2qhhl29abgvf1m966crpq35jdwp1n-libxcrypt-4.4.36/lib/libcrypt.so.1 (0xf7b15000)
	libm.so.6 => /gnu/store/krfrpinq1lsrszf27yp9dx20n88nb9mf-glibc-cross-i586-pc-gnu-2.39/lib/libm.so.6 (0xf7a12000)
	libgc.so.1 => /gnu/store/8j6s2f424n8hj3w5frxqc00lvx84pnn3-libgc-8.2.4/lib/libgc.so.1 (0xf79be000)
	libpthread.so.0.3 => /gnu/store/krfrpinq1lsrszf27yp9dx20n88nb9mf-glibc-cross-i586-pc-gnu-2.39/lib/libpthread.so.0.3 (0xf79a9000)
	libgcc_s.so.1 => /gnu/store/wshar34kq0ng2141krswx9br8jz1148x-gcc-cross-i586-pc-gnu-11.4.0-lib/i586-pc-gnu/lib/libgcc_s.so.1 (0xf798a000)
	libc.so.0.3 => /gnu/store/krfrpinq1lsrszf27yp9dx20n88nb9mf-glibc-cross-i586-pc-gnu-2.39/lib/libc.so.0.3 (0xf771c000)
	libmachuser.so.1 => /gnu/store/krfrpinq1lsrszf27yp9dx20n88nb9mf-glibc-cross-i586-pc-gnu-2.39/lib/libmachuser.so.1 (0xf7702000)
	libhurduser.so.0.3 => /gnu/store/krfrpinq1lsrszf27yp9dx20n88nb9mf-glibc-cross-i586-pc-gnu-2.39/lib/libhurduser.so.0.3 (0xf76ca000)
	ld.so.1 => /gnu/store/krfrpinq1lsrszf27yp9dx20n88nb9mf-glibc-cross-i586-pc-gnu-2.39/lib/ld.so.1 (0xf7692000)
--8<---------------cut here---------------end--------------->8---

and adding the location of ld.so.1 to LD_LIBRARY_PATH gives yet another error

--8<---------------cut here---------------start------------->8---
$ LD_LIBRARY_PATH=/gnu/store/krfrpinq1lsrszf27yp9dx20n88nb9mf-glibc-cross-i586-pc-gnu-2.39/lib ./env /gnu/store/6f0nwq8wfcrbii9lxlffjph7kajgp6q9-guile-3.0.9/bin/guild compile --target=i586-pc-gnu -L "/tmp/guix-build-guile-fibers-1.3.1.drv-0/source" -Wunbound-variable -Warity-mismatch -Wformat -o "fibers/io-wakeup.go" "fibers/io-wakeup.scm"
/gnu/store/6f0nwq8wfcrbii9lxlffjph7kajgp6q9-guile-3.0.9/bin/guile: /gnu/store/krfrpinq1lsrszf27yp9dx20n88nb9mf-glibc-cross-i586-pc-gnu-2.39/lib/libm.so.6: version `GLIBC_2.1' not found (required by /gnu/store/6f0nwq8wfcrbii9lxlffjph7kajgp6q9-guile-3.0.9/lib/libguile-3.0.so.1)
/gnu/store/6f0nwq8wfcrbii9lxlffjph7kajgp6q9-guile-3.0.9/bin/guile: /gnu/store/krfrpinq1lsrszf27yp9dx20n88nb9mf-glibc-cross-i586-pc-gnu-2.39/lib/libm.so.6: version `GLIBC_2.0' not found (required by /gnu/store/6f0nwq8wfcrbii9lxlffjph7kajgp6q9-guile-3.0.9/lib/libguile-3.0.so.1)
--8<---------------cut here---------------end--------------->8---

any ideas?

Greetings,
Janneke

-- 
Janneke Nieuwenhuizen <janneke@gnu.org>  | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com



                 reply	other threads:[~2024-10-23  5:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v7xjbbxq.fsf@gnu.org \
    --to=janneke@gnu.org \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).