From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Aleix_Conchillo_Flaqu=C3=A9?= Newsgroups: gmane.lisp.guile.devel,gmane.lisp.guile.user Subject: Re: GNU G-Golf 0.8.0-a.4 available for testing Date: Mon, 1 May 2023 13:33:18 -0700 Message-ID: References: <20230416235036.2d5a299e@aicha> <20230501143450.6cff3d96@tintin> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005a141405faa7bc96" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21808"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user , guile-devel To: David Pirotte Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Mon May 01 22:33:51 2023 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ptaDW-0005PO-Vz for guile-devel@m.gmane-mx.org; Mon, 01 May 2023 22:33:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptaDH-0001xC-Dr; Mon, 01 May 2023 16:33:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptaDF-0001wR-V1; Mon, 01 May 2023 16:33:33 -0400 Original-Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ptaDE-0002KN-6l; Mon, 01 May 2023 16:33:33 -0400 Original-Received: by mail-qk1-x72d.google.com with SMTP id af79cd13be357-74df951e897so121756085a.2; Mon, 01 May 2023 13:33:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682973210; x=1685565210; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=VfKes8qsX95RdoT93cjSyazyhymAUyjz14coEXC5ZMs=; b=CuldPiZmnvo8AhurUE4Gy4Hu7D+an4BdASEtzMLXpIwIdFTkFLH6KoenWLc4Hjef6Y 5IB2qyYqa9ddRFNbH8zACmSQ7ik6R8jMmQJl5FdVe/90f3Aie7/naTiYsvue4Y1SUdtb BMQu00G6tURNVj/bAROqfZwAAYGhf3xDiigXrYOIUo4ecVs0vVpnqIpsDnnC2Hf1Eh4/ hKjqGT/mxZ6ZmrimGMBEPyNDe6nqtRqZys2sVHfFN51f3jJ4AHw3wT12iJ2httltq8sy P7xKh1ilHHM/pxxSyECzz3RK4jpKMg6LqI7+1r1GePnK9Nl7WLkQhTluLAxXOPSU9kj7 ouAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682973210; x=1685565210; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VfKes8qsX95RdoT93cjSyazyhymAUyjz14coEXC5ZMs=; b=eWWaI9ybm0/+RrEyf3bSZNgenOFgry6InC2UkzvvIS8ZEkWaGYFJ4VUL2Oq5uoCmDU nZj6dy4SFJQ2quznuJDNpTDKEL0nOt3vJ3B1CvQ0owW6hlhjaZXn5L42FYxXgYd8/OCM kdQSoRPmciv2kca1D6bhu7yZYFfyV6cTsM7Xe6Q/KipRTjY++uyT+qdEmoR02jUN9aCs 3N6mLpFpqLKMTvX1KyoE8rhLo/TGYhMadyHa4BledHy+VrRQ0PfgcaHyiD0zcheIJ7eR DxmYZHek0LS3NyerIEP8yJnmGcg7wzYpQSeWNxZDgDIsJ4EdA31F5FTLimwpgXJtuk0x Qmkw== X-Gm-Message-State: AC+VfDyIpnZDaECARxK4L2vwCF6s6P+/8nBInTotlqSLu6cmqkjrFvmN BzVLj4cP191QH6scqty3A1xYKioeOLM7DoJ23sh0CyUAHwc= X-Google-Smtp-Source: ACHHUZ4NEdAfdFqE4qgYEThDgZQ6o5sx5mm89Tzd9Rhhw/AcgiOxTxD1N4uQSN8XZxp8XCv00gKIrdagp6RpF9x5ofo= X-Received: by 2002:a05:6214:490:b0:618:ebd9:62f3 with SMTP id pt16-20020a056214049000b00618ebd962f3mr1949562qvb.11.1682973210054; Mon, 01 May 2023 13:33:30 -0700 (PDT) In-Reply-To: <20230501143450.6cff3d96@tintin> Received-SPF: pass client-ip=2607:f8b0:4864:20::72d; envelope-from=aconchillo@gmail.com; helo=mail-qk1-x72d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:21812 gmane.lisp.guile.user:18986 Archived-At: --0000000000005a141405faa7bc96 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, May 1, 2023 at 10:35=E2=80=AFAM David Pirotte wro= te: > Hi Aleix, > > Hi there! > > Making install in libg-golf > > > > CC libg_golf_la-gg-ffi.lo > > CC libg_golf_la-gg-utils.lo > > CC libg_golf_la-gg-glib.lo > > CC libg_golf_la-gg-gobject.lo > > CC libg_golf_la-gg-callback.lo > > CC libg_golf_la-gg-test-suite.lo > > CC libg_golf_la-g-golf.lo > > CCLD libg-golf.la > > Undefined symbols for architecture arm64: > > "_ffi_prep_cif", referenced from: > > _gg_ffi_prep_cif in libg_golf_la-gg-ffi.o > > (maybe you meant: _gg_ffi_prep_cif) > > ld: symbol(s) not found for architecture arm64 > > clang: error: linker command failed with exit code 1 (use -v to see > > invocation) > > The gg-ffi.c[h] files were changed after 0.8.0-a.2, introducing those > new functions, see commit 15e689d3446632d4a78e4b02c20495b4b0a4ba22 > Jan the 16th 2023. > > I would recommend to uninstall g-golf, clear your cache(s), clear the > build repo and try again. > > I cleaned everything up and had the same issue. This time I investigated a bit. The Makefile.am refers to FFI_CFLAGS and FFI_LIBS, but I don't see any reference to them and there's no PKG_CHECK_MODULES or anything that could define those in configure.ac or any m4 macro. Adding PKG_CHECK_MODULES line solved the issue: PKG_CHECK_MODULES(FFI, libffi >=3D 3.3.0) In 0.8.0-a.2 I guess libffi was really not used yet and as long as you had the header file you were fine. Let me know if this makes sense or if I'm missing something. Thank you! Aliex --0000000000005a141405faa7bc96 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, May 1, 2023 at 10:35=E2=80=AFAM David Pirotte <= david@altosw.be> wrote:
Hi Aleix,


Hi there!
> Making install in libg-golf
>
>=C2=A0 =C2=A0CC=C2=A0 =C2=A0 =C2=A0 =C2=A0libg_golf_la-gg-ffi.lo
>=C2=A0 =C2=A0CC=C2=A0 =C2=A0 =C2=A0 =C2=A0libg_golf_la-gg-utils.lo
>=C2=A0 =C2=A0CC=C2=A0 =C2=A0 =C2=A0 =C2=A0libg_golf_la-gg-glib.lo
>=C2=A0 =C2=A0CC=C2=A0 =C2=A0 =C2=A0 =C2=A0libg_golf_la-gg-gobject.lo >=C2=A0 =C2=A0CC=C2=A0 =C2=A0 =C2=A0 =C2=A0libg_golf_la-gg-callback.lo >=C2=A0 =C2=A0CC=C2=A0 =C2=A0 =C2=A0 =C2=A0libg_golf_la-gg-test-suite.lo=
>=C2=A0 =C2=A0CC=C2=A0 =C2=A0 =C2=A0 =C2=A0libg_golf_la-g-golf.lo
>=C2=A0 =C2=A0CCLD=C2=A0 =C2=A0 =C2=A0libg-golf.la
> Undefined symbols for architecture arm64:
>=C2=A0 =C2=A0"_ffi_prep_cif", referenced from:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0_gg_ffi_prep_cif in libg_golf_la-gg-ffi.o >=C2=A0 =C2=A0 =C2=A0 (maybe you meant: _gg_ffi_prep_cif)
> ld: symbol(s) not found for architecture arm64
> clang: error: linker command failed with exit code 1 (use -v to see > invocation)

The gg-ffi.c[h] files were changed after 0.8.0-a.2, introducing those
new functions, see commit 15e689d3446632d4a78e4b02c20495b4b0a4ba22
Jan the 16th 2023.

I would recommend to uninstall g-golf, clear your cache(s), clear the
build repo and try again.


I cleaned= =C2=A0everything up and had the same=C2=A0issue. This time I investigated a= bit.

The Makefile.am refers to FFI_CFLAGS and FFI_LIB= S, but I don't see any reference to them and there's no PKG_CHECK_M= ODULES or anything that could define those in configure.ac or any m4 macro.

Adding PKG_CHECK_= MODULES line solved the issue:

=C2=A0 =C2=A0 PKG_CHECK= _MODULES(FFI, libffi >=3D 3.3.0)

In=C2=A00.8.0-a.2 I guess libffi w= as really not used yet and as long as you had the header file you were fine= .
Let= me know if this makes sense or if I'm missing something.
<= div class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif= ">
<= div class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif= ">Thank you!<= /div>

<= /div>
Aliex=


--0000000000005a141405faa7bc96--