From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.user Subject: Re: configuring guile packages [was: GNU Guile 2.9.8 Released [beta]] Date: Wed, 8 Jan 2020 22:21:18 +0800 Message-ID: References: <87woaa3rq4.fsf@pobox.com> <296377b9-14f8-107a-21f3-ca2c139ef336@gmail.com> <9adebe26-c789-fbaf-f29d-d4757a86c00a@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="159844"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Guile User To: Matt Wette Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Jan 08 15:22:21 2020 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ipCDX-000TRh-Lx for guile-user@m.gmane.org; Wed, 08 Jan 2020 15:21:51 +0100 Original-Received: from localhost ([::1]:44732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipCDV-0004T8-Rf for guile-user@m.gmane.org; Wed, 08 Jan 2020 09:21:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46888) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipCDE-0004Sf-CS for guile-user@gnu.org; Wed, 08 Jan 2020 09:21:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipCDC-0001Zu-QJ for guile-user@gnu.org; Wed, 08 Jan 2020 09:21:32 -0500 Original-Received: from mail-yw1-xc2b.google.com ([2607:f8b0:4864:20::c2b]:40615) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ipCDC-0001ZR-JG for guile-user@gnu.org; Wed, 08 Jan 2020 09:21:30 -0500 Original-Received: by mail-yw1-xc2b.google.com with SMTP id i126so1270731ywe.7 for ; Wed, 08 Jan 2020 06:21:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=X354raXygSo8DPqkyZNCM2BOfke7E1w42hhcL1pZvpw=; b=f+3cNZN70Aragaqe/Rq2IHqXxmSHlaDjPqB6Qx/Avz+QZiihKedzrHY0Pb7t5aEAlr Gxez+ibMvaLR8RZI/jH940IteEHADyzYc55E+5jtKY/G0THU/Bx6FVzwPmVIuKp3LdhY Q6IjyYFFhDtBUcW3JHHebPx//F+rN7tDsJP82kJrtGdUYJDeWQ/rHRoYaKItrxe7aLLB gWMCiAyEyeP3bSJeWYP7dQAKgCNdsn8Rp8Z7dKiHfBRAYX5jdBIrtSrmXyc9AlmKA+tj RqVUFvVAr8pagnsAZs23DnPpJFN89k8FKQGGJWUajco2b2wgAf1HJ6mSJeGO4jQ9hkoo ToHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=X354raXygSo8DPqkyZNCM2BOfke7E1w42hhcL1pZvpw=; b=HzZMrlQxLf85yssFzZfdVUBo/+r6qz/TXjFq10AdXhNqcgSXiznZ2Wmd1ltPgc3tbE GXazRIvnNk3hqwfK6pD25EUHXJNrxuP+YiRVesPwkZICwVucV+xUKfmdNWJ9+HMxrYSh hmQ1zYl9x4JWJmSifLoEwKTcXdECAs1hCGVJ4yplMHqO0ds6fbnrrB8Jv3J0YNN6/ss7 0ZWOPb2TtOwPZtlU4FPDA9P8l3nVR6rWVCzOkt/BNxniVCox9dDwfPOU2r8UXTe5xhcy zoYD3Dsy24wfAOP/7EaeWE4E5YUBFPOmfigfHcXh2dhRvvkI+PmnWjbGSsmNt7CDNihy k+oQ== X-Gm-Message-State: APjAAAUS66hkIGESWsHWvv3mfa1rYMfqdJ+MgfWJbNZL4C60ASbaWosL myFbh2P+qjYN6YRu5NTwdWoO433OHFOwrl5Epdk= X-Google-Smtp-Source: APXvYqweItSgOQbC9sUFbuRkOppzYwcZZsVPyFBAfhNkn4OUW7QTayAJbncBNHa2yCRIRY+waNcGithYEKKwxeVyGOw= X-Received: by 2002:a81:6742:: with SMTP id b63mr3809740ywc.205.1578493289858; Wed, 08 Jan 2020 06:21:29 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::c2b X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:16010 Archived-At: Finally I found the problem is that I left a m4/guile.m4 in Artanis for some reasons. It's solved by remove it. Thanks for all the helps! Best regards On Mon, Jan 6, 2020 at 2:56 PM Nala Ginrut wrote: > Hi Matt! > Thanks for the help. > However, it seems doesn't work for me. I think your solution is to solve > mixed guile version detection issue, right? > I'm building it in docker, a pure clean Debian10 environment. Hmm... > > On Sat, Jan 4, 2020 at 7:29 AM Matt Wette wrote: > >> >> >> On 1/3/20 10:44 AM, Matt Wette wrote: >> > On 1/3/20 6:53 AM, Matt Wette wrote: >> >>> I am running into other issues, however, when there is a >> >>> guile in my path that appears before anything else, but a guile-2 >> >>> that appears from another directory. I am working to add >> >>> --with-guile to fix that. I'm having problems checking against >> >>> 2.0.14, for example. >> > I have been working on my configures. I have separate guile-2.0.14, >> > -2.2.4 and -2.9.8 installs. >> > To get everything to work I ended up with the following configure.ac >> > and nyacc.m4. Not beautiful >> > but it's working for 2.0.14, 2.2.X and 2.9.8. >> > >> > ===== snip from configure.ac ===== >> > m4_include([./pkg.m4]) >> > m4_include([./guile.m4]) >> > m4_include([./nyacc.m4]) >> > >> > AC_ARG_WITH(guile, [ --with-guile path to binary], >> > ,with_guile=unspecified) >> > >> > if test "_$with_guile" != "_unspecified"; then >> > GUILE=$with_guile >> > GUILE_EFFECTIVE_VERSION=`$GUILE -c "(display (effective-version))"` >> > guile_libdir=`$GUILE -c "(display (assq-ref %guile-build-info >> > 'libdir))"` >> > PKG_CONFIG_LIBDIR=$guile_libdir/pkgconfig >> > PKG_CONFIG=pkg-config >> > export PKG_CONFIG_LIBDIR >> > else >> > GUILE_PKG([3.2 3.0 2.9 2.2 2.0]) >> > GUILE_PROGS >> > fi >> > >> > GUILE_SITE_DIR >> > GUILE_SITE_GO_DIR >> > GUILE_DATA_DIR >> > >> > ========================== >> >> So I changed configure arg from "--with-guile=/path/to/guile" to >> "GUILE=/path/to/guile" >> AC_ARG_VAR([GUILE],[path to guile binary]) >> if test "x$ac_env_GUILE_set" = "xset"; then >> GUILE_EFFECTIVE_VERSION=`$GUILE -c "(display (effective-version))"` >> guile_libdir=`$GUILE -c "(display (assq-ref %guile-build-info >> 'libdir))"` >> PKG_PROG_PKG_CONFIG >> PKG_CONFIG_LIBDIR=$guile_libdir/pkgconfig >> export PKG_CONFIG_LIBDIR >> else >> GUILE_PKG([3.0 2.9 2.2 2.0]) >> GUILE_PROGS >> fi >> >> >> >> >> >> >>