unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Matt Wette <matt.wette@gmail.com>
To: Amirouche <amirouche@hypermove.net>
Cc: guile-user@gnu.org
Subject: Re: ffi-helper: looking for C libraries to try
Date: Fri, 14 Jul 2017 20:01:05 -0700	[thread overview]
Message-ID: <C8775E7F-E8E3-4A03-84B8-A45B6F8ADC83@gmail.com> (raw)
In-Reply-To: <3f26923d-3f24-9e90-6daa-b8c2ed26fa1e@hypermove.net>


> On Jul 14, 2017, at 5:55 PM, Amirouche <amirouche@hypermove.net> wrote:
> 
> Can you provide guidance regarding how to run compile-ffi, here what I've done so far:
> 
> $ git clone https://git.savannah.nongnu.org/git/nyacc.git
> $ cd nyacc
> $ git checkout c99dev
> $ cd examples/nyacc/lang/c99
> $ source env.sh
> 
> Then:
> 
> $ guild compile-ffi cairo/cairo.ffi
> 
> ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
> ;;;       or pass the --no-auto-compile argument to disable.
> ;;; compiling /home/amirouche/.guix-profile/bin/guild
> ;;; compiled /home/amirouche/.cache/guile/ccache/2.2-LE-8-3.A/gnu/store/1pzfigry5bnh3n146w0ib77vkd2g6jdc-guile-2.2.2/bin/guild.go
> guild: unknown script "compile-ffi"
> Try `guild help' for more information.
> 
> I have guile-bytestructures
> 

Hmm.  Yea, I goofed on env.sh.  This seems to work for me:

#!/bin/sh
# source this file: $ . env.sh
topdir=`(cd ../../../..; pwd)`
if [ "X$GUILE_LOAD_PATH" = "X" ]; then
 GUILE_LOAD_PATH=$topdir/module:$topdir/examples:$topdir/examples/nyacc/lang/c99
else
 GUILE_LOAD_PATH=$topdir/module:$topdir/examples:$topdir/examples/nyacc/lang/c99:$GUILE_LOAD_PATH
fi;
export GUILE_LOAD_PATH

mwette$ guild compile-ffi cairo/cairo.ffi
TODO: compile-ffi args, arrays, extern variables





  reply	other threads:[~2017-07-15  3:01 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-14 23:17 ffi-helper: looking for C libraries to try Matt Wette
2017-07-15  0:04 ` Mike Gran
2017-07-15  0:44 ` Amirouche Boubekki
2017-07-15  4:35   ` Matt Wette
2017-07-15  8:24     ` Amirouche
2017-07-15 12:37       ` Matt Wette
2017-07-15 12:42         ` Matt Wette
2017-07-15 13:15     ` Matt Wette
2017-08-01 16:20       ` Matt Wette
2017-07-15  0:55 ` Amirouche
2017-07-15  3:01   ` Matt Wette [this message]
2017-08-08 10:00 ` Catonano
2017-08-12 19:55   ` Matt Wette

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=C8775E7F-E8E3-4A03-84B8-A45B6F8ADC83@gmail.com \
    --to=matt.wette@gmail.com \
    --cc=amirouche@hypermove.net \
    --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).