From: Benjamin Slade <beoram@gmail.com>
To: Guix-Help <help-guix@gnu.org>
Subject: confusion/mdl
Date: Tue, 28 Aug 2018 21:14:52 -0600 [thread overview]
Message-ID: <874lfd9843.fsf@jnanam.net> (raw)
I'm trying to build confusion, the MDL (muddle lisp) interpreter [from
http://www.russotto.net/git/mrussotto/confusion/src/master/src ]. It
says "To build it, you will need the Boehm-Demers-Weiser conservative
garbage collector for C", so I installed the guix package `libgc`. I
haven't had much luck building it though:
````
$ make
g++ -g -DGC_DEBUG -Wall -Wno-switch -c -o macros.o macros.cpp
macros.cpp: In function ‘mdl_value_t* mdl_get_atom(const char*, bool, mdl_value_t*)’:
macros.cpp:616:27: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
char *trailer = strstr(pname, "!-");
~~~~~~^~~~~~~~~~~~~
macros.cpp: In function ‘char* mdl_getcwd()’:
macros.cpp:1121:16: error: ‘getcwd’ was not declared in this scope
cwdp = getcwd(cwdbuf, bsize);
^~~~~~
macros.cpp:1121:16: note: suggested alternative: ‘getw’
cwdp = getcwd(cwdbuf, bsize);
^~~~~~
getw
macros.cpp: In function ‘mdl_value_t* mdl_internal_open_channel(mdl_value_t*)’:
macros.cpp:1322:10: error: ‘isatty’ was not declared in this scope
if (!isatty(fileno(f)))
^~~~~~
macros.cpp: In function ‘mdl_value_t* mdl_internal_reset_channel(mdl_value_t*)’:
macros.cpp:1367:10: error: ‘isatty’ was not declared in this scope
if (!isatty(fileno(f)))
^~~~~~
macros.cpp: In function ‘mdl_value_t* mdl_internal_reopen_channel(mdl_value_t*)’:
macros.cpp:1406:10: error: ‘isatty’ was not declared in this scope
if (!isatty(fileno(f)))
^~~~~~
macros.cpp: In function ‘void mdl_interp_init()’:
macros.cpp:3865:24: warning: ‘GC_gc_no’ is deprecated [-Wdeprecated-declarations]
last_assoc_clean = GC_gc_no;
^~~~~~~~
In file included from macros.hpp:18,
from macros.cpp:27:
/home/slade/.guix-profile/include/gc/gc.h:81:35: note: declared here
GC_API GC_ATTR_DEPRECATED GC_word GC_gc_no;
^~~~~~~~
macros.cpp: In function ‘mdl_value_t* mdl_builtin_eval_logout()’:
macros.cpp:8942:9: error: ‘getppid’ was not declared in this scope
if (getppid() == 1) exit(0);
^~~~~~~
macros.cpp:8942:9: note: suggested alternative: ‘getpt’
if (getppid() == 1) exit(0);
^~~~~~~
getpt
macros.cpp: In function ‘mdl_value_t* mdl_builtin_eval_sleep()’:
macros.cpp:9175:5: error: ‘sleep’ was not declared in this scope
sleep(fix->v.w);
^~~~~
make: *** [<builtin>: macros.o] Error 1
````
I had a look at Arch's AUR package [
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=mdli ] for it*
and it really seems to consist of `make CXX='g++-4.3'`. Though
Confusion's build instructions themselves don't seem to require an older
version of gcc, but, then again, I didn't have much luck building it on
guix.
What would people suggest as the next step to try?
* Which I couldn't get to successfully build on my Arch machine either,
the old gcc versions don't seem to build properly.
--
Benjamin Slade - https://babbagefiles.xyz
`(pgp_fp: ,(21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19))
'(sent by mu4e on Emacs running under GNU/Linux . https://gnu.org )
`(Choose Linux ,(Choose Freedom) . https://linux.com )
next reply other threads:[~2018-08-29 3:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-29 3:14 Benjamin Slade [this message]
2018-08-29 15:29 ` confusion/mdl Pierre Neidhardt
2018-08-29 18:58 ` confusion/mdl Benjamin Slade
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874lfd9843.fsf@jnanam.net \
--to=beoram@gmail.com \
--cc=help-guix@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.