unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Damien Mattei <damien.mattei@gmail.com>
To: dsmich@roadrunner.com
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: compilation error on Apple M1
Date: Tue, 27 Dec 2022 00:35:36 +0100	[thread overview]
Message-ID: <CADEOadfx-eypD2Ls=ymLnNwLGR+h9pkj-1Qi3vaAWz4jkdrLVw@mail.gmail.com> (raw)
In-Reply-To: <2a517d79541e8c54b889639b3290b0eefd7dc22b@webmail>

[-- Attachment #1: Type: text/plain, Size: 3666 bytes --]

those last years i installed guile on at least 3 mac system,without problem
with read line
readline installed by homebrew ,the homebrew version seems to use gnu
readline:
https://formulae.brew.sh/formula/readline
https://tiswww.case.edu/php/chet/readline/rltop.html
simply by adding that:
(use-modules (ice-9 readline))
(activate-readline)
so i surprised of this problem,
but again with homebrew it is perhaps better to install from the source
too, i will try tomorrow...

i succeed in making work the first part of this :
https://www.gnu.org/software/guile/manual/html_node/C-Extensions.html

with a few modifications:
gcc `pkg-config --cflags guile-3.0` -shared -o libbessel.so -fPIC
 -lguile-3.0 bessel.c

instead of:

gcc -shared -o libbessel.so -fPIC bessel.c

perhaps updating the doc

Regards,

Damien




On Mon, Dec 26, 2022 at 10:46 PM <dsmich@roadrunner.com> wrote:

> Well, Apple also has a readline implementation that is similar but not
> quite the same as gnu readline.  You might need to install that along with
> maybe telling ./configure to use the gnu version.
>
> Just a guess..
>
> Actually, Guile looks for some specific symbols that the Apple lib doesn't
> provide, but Guile doesn't actually use those symbols.  At one time (well
> over 10 years ago) I got Guile to work fine with the Apple readline by
> removing those specific ./configure checks.
>
> But you are probably better off by installing gnu readline.
>
> -Dale
>
>
> -----------------------------------------
> From: "Damien Mattei"
> To: dsmich@roadrunner.com
> Cc:
> Sent: Monday December 26 2022 9:31:47AM
> Subject: Re: compilation error on Apple M1
>
> hello Dale,
>
> yes i had to install gsed (gnu sed):
> brew install gsed
>
> now it is almost ok
> but i do not understand anymore how to make work readline and this strange
> error:
>
> scheme@(guile-user)> (use-modules (ice-9 readline))
> While compiling expression:
> In procedure dlopen: file "guile-readline.dylib", message
> "dlopen(guile-readline.dylib, 0x0005): tried: 'guile-readline.dylib' (no
> such file), '/System/Volumes/Preboot/Cryptexes/OSguile-readline.dylib' (no
> such file), '/usr/lib/guile-readline.dylib' (no such file, not in dyld
> cache), 'guile-readline.dylib' (no such file),
> '/usr/local/lib/guile-readline.dylib' (no such file),
> '/usr/lib/guile-readline.dylib' (no such file, not in dyld cache)"
> scheme@(guile-user)>
> the second try made no error:
> scheme@(guile-user)> (use-modules (ice-9 readline))
> scheme@(guile-user)
> but it does not work the usual way:
> scheme@(guile-user)> (activate-readline)
> ;;; <stdin>:3:1: warning: possibly unbound variable `activate-readline'
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> Unbound variable: activate-readline
>
> Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
> scheme@(guile-user) [1]>
>
> <https://www.gnu.org/software/guile/manual/html_node/Loading-Readline-Support.html>
> https://www.gnu.org/software/guile/manual/html_node/Loading-Readline-Support.html
> but it is so long time since my initial config of readline for guile that
> perheaps i miss a step.
>
> Regards,
> Damien
>
> On Mon, Dec 26, 2022 at 2:19 PM <dsmich@roadrunner.com> wrote:
>
>>
>>
>> -----------------------------------------
>> From: "Damien Mattei"
>> To: "guile-devel"
>> Cc:
>> Sent: Monday December 26 2022 6:13:42AM
>> Subject: Re: compilation error on Apple M1
>>
>>
>> > sed: -e: No such file or directory
>>
>> The bsd sed is different than gnu sed.  There was a few patches sent out
>> a while ago (by RhodiumToad?) that improved building on *bsd.
>>
>> I wonder if those will help?
>>
>>   -Dale
>>
>>
>>
>>

[-- Attachment #2: Type: text/html, Size: 7640 bytes --]

       reply	other threads:[~2022-12-26 23:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2a517d79541e8c54b889639b3290b0eefd7dc22b@webmail>
2022-12-26 23:35 ` Damien Mattei [this message]
2022-12-26 13:19 compilation error on Apple M1 dsmich
  -- strict thread matches above, loose matches on Subject: below --
2022-12-25 23:32 Damien Mattei
2022-12-25 23:58 ` Damien Mattei
2022-12-26  5:45   ` Colin Woodbury
2022-12-26  7:40 ` Aleix Conchillo Flaqué
2022-12-26 11:13   ` Damien Mattei

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='CADEOadfx-eypD2Ls=ymLnNwLGR+h9pkj-1Qi3vaAWz4jkdrLVw@mail.gmail.com' \
    --to=damien.mattei@gmail.com \
    --cc=dsmich@roadrunner.com \
    --cc=guile-devel@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).