From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Slade Subject: confusion/mdl Date: Tue, 28 Aug 2018 21:14:52 -0600 Message-ID: <874lfd9843.fsf@jnanam.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fuqwe-0005Yx-0O for help-guix@gnu.org; Tue, 28 Aug 2018 23:15:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fuqwa-0006ZR-Q8 for help-guix@gnu.org; Tue, 28 Aug 2018 23:14:59 -0400 Received: from mail-it0-x234.google.com ([2607:f8b0:4001:c0b::234]:38228) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fuqwa-0006ZF-Ju for help-guix@gnu.org; Tue, 28 Aug 2018 23:14:56 -0400 Received: by mail-it0-x234.google.com with SMTP id p129-v6so5344697ite.3 for ; Tue, 28 Aug 2018 20:14:56 -0700 (PDT) Received: from sindhu ([172.83.40.99]) by smtp.gmail.com with ESMTPSA id a64-v6sm1449578itg.40.2018.08.28.20.14.54 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Aug 2018 20:14:54 -0700 (PDT) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Guix-Help 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 =E2=80=98mdl_value_t* mdl_get_atom(const char*, boo= l, mdl_value_t*)=E2=80=99: macros.cpp:616:27: error: invalid conversion from =E2=80=98const char*=E2= =80=99 to =E2=80=98char*=E2=80=99 [-fpermissive] char *trailer =3D strstr(pname, "!-"); ~~~~~~^~~~~~~~~~~~~ macros.cpp: In function =E2=80=98char* mdl_getcwd()=E2=80=99: macros.cpp:1121:16: error: =E2=80=98getcwd=E2=80=99 was not declared in thi= s scope cwdp =3D getcwd(cwdbuf, bsize); ^~~~~~ macros.cpp:1121:16: note: suggested alternative: =E2=80=98getw=E2=80=99 cwdp =3D getcwd(cwdbuf, bsize); ^~~~~~ getw macros.cpp: In function =E2=80=98mdl_value_t* mdl_internal_open_channel(mdl= _value_t*)=E2=80=99: macros.cpp:1322:10: error: =E2=80=98isatty=E2=80=99 was not declared in thi= s scope if (!isatty(fileno(f))) ^~~~~~ macros.cpp: In function =E2=80=98mdl_value_t* mdl_internal_reset_channel(md= l_value_t*)=E2=80=99: macros.cpp:1367:10: error: =E2=80=98isatty=E2=80=99 was not declared in thi= s scope if (!isatty(fileno(f))) ^~~~~~ macros.cpp: In function =E2=80=98mdl_value_t* mdl_internal_reopen_channel(m= dl_value_t*)=E2=80=99: macros.cpp:1406:10: error: =E2=80=98isatty=E2=80=99 was not declared in thi= s scope if (!isatty(fileno(f))) ^~~~~~ macros.cpp: In function =E2=80=98void mdl_interp_init()=E2=80=99: macros.cpp:3865:24: warning: =E2=80=98GC_gc_no=E2=80=99 is deprecated [-Wde= precated-declarations] last_assoc_clean =3D 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 =E2=80=98mdl_value_t* mdl_builtin_eval_logout()=E2= =80=99: macros.cpp:8942:9: error: =E2=80=98getppid=E2=80=99 was not declared in thi= s scope if (getppid() =3D=3D 1) exit(0); ^~~~~~~ macros.cpp:8942:9: note: suggested alternative: =E2=80=98getpt=E2=80=99 if (getppid() =3D=3D 1) exit(0); ^~~~~~~ getpt macros.cpp: In function =E2=80=98mdl_value_t* mdl_builtin_eval_sleep()=E2= =80=99: macros.cpp:9175:5: error: =E2=80=98sleep=E2=80=99 was not declared in this = scope sleep(fix->v.w); ^~~~~ make: *** [: macros.o] Error 1 ```` I had a look at Arch's AUR package [ https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=3Dmdli ] for it* and it really seems to consist of `make CXX=3D'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 )