help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

confusion/mdl


From: Benjamin Slade
Subject: confusion/mdl
Date: Tue, 28 Aug 2018 21:14:52 -0600
User-agent: mu4e 1.0; emacs 26.1

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 )



reply via email to

[Prev in Thread] Current Thread [Next in Thread]