From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: [outreach] Help trying to create R package Date: Fri, 19 Oct 2018 08:21:36 +0200 Message-ID: References: <20181016074412.54757b18@alma-ubu> <20181016082350.75757e6b@alma-ubu> <20181017001851.71543cc9@alma-ubu> <20181017091750.1c408b8d@alma-ubu> <20181018085424.541e9287@alma-ubu> <87va5zktpa.fsf@elephly.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]:47019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDOAb-0000G3-1T for guix-devel@gnu.org; Fri, 19 Oct 2018 02:22:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDOAY-0002iN-NK for guix-devel@gnu.org; Fri, 19 Oct 2018 02:22:00 -0400 Received: from mail-ot1-x341.google.com ([2607:f8b0:4864:20::341]:41101) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gDOAU-0002PZ-KW for guix-devel@gnu.org; Fri, 19 Oct 2018 02:21:56 -0400 Received: by mail-ot1-x341.google.com with SMTP id c32so32178143otb.8 for ; Thu, 18 Oct 2018 23:21:49 -0700 (PDT) In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Laura Lazzati Cc: Guix-devel Helllo Laura, Laura Lazzati ezt =C3=ADrta (id=C5=91pont: 201= 8. okt. 19., P, 5:48): > > On Thu, Oct 18, 2018 at 10:05 PM Laura Lazzati > wrote: > > > > On Thu, Oct 18, 2018 at 3:17 PM Laura Lazzati > > wrote: > > > > > > On Thu, Oct 18, 2018 at 3:15 PM Ricardo Wurmus w= rote: > > > > > > > > > > > > Hi Laura, > > > > > > > > > configure: checking for guile 2.2 > > > > > configure: found guile 2.2 > > > > > checking for guile-2.2... /usr/bin/guile-2.2 > > > > > checking for Guile version >=3D 2.2... 2.2.3 > > > > > checking for guild-2.2... no > > > > > checking for guile-config-2.2... no > > > > > checking for guile-tools-2.2... no > > > > > configure: error: 'guild' binary not found; please check your > > > > > guile-2.x installation. > > > > > > > > I recommend using =E2=80=9Cguix environment --pure guix=E2=80=9D wh= en on a foreign > > > > distribution. > > > Yes, I am trying that right now :) I'll let you know after reading > > > Invoking guix environment and trying that. Hope this works > > > > > > I have tried lots of things today, not successfully. > > > > with guix environment guix, I get the same output that I get without > > using guix environment (I mean, it uses the installed guix that I tend > > to use generally) > > the output of which guix in both cases is: > > /home/laura/.config/guix/current/bin/guix > > > > with guix environment --pure guix --ad-hoc coreutils findutils which (o= r -C) > > I get, the output: > > Command 'lesspipe' is available in the following places > > * /bin/lesspipe > > * /usr/bin/lesspipe > > The command could not be located because '/bin:/usr/bin' is not > > included in the PATH environment variable. > > lesspipe: command not found > > There, I run which guix and get: > > which: no guix in > > (/gnu/store/khk3lpx1li9y5zxzdppn9wi4n5g1qsgs-profile/bin:/gnu/store/khk= 3lpx1li9y5zxzdppn9wi4n5g1qsgs-profile/sbin) > > > > The closest I got was by setting: > > PATH=3D$PATH:/usr/bin/:/bin > > PATH=3D$PATH:/usr/local/bin > > And since I still got the issue with guile, I went to > > /usr/bin/ > > and created a symlink > > sudo ln -s /gnu/store/p9wm67w3rfw3hlb9iljgvsfn84mz4w9d-guile-2.2.4 guil= e-2.2.4 > > (setting guile-2.2 that whas already there to a hidden file) > > Then the ./configure --localstatedir=3D/var > > Worked fine, as well as the make (echo $? of both 0) > > There, the result of which guix is: > > /usr/local/bin/guix > > ( a symlink to -> /var/guix/profiles/per-user/root/guix-profile/bin/gui= x) > > I could run the ./pre-inst-env guix package -i hello, took a while but = worked. > > Complained about having to do: > > export PATH=3D"/home/laura/.guix-profile/bin${PATH:+:}$PATH" > > Did so. This seems to be ok so far. > > And finally I appended my r-aspi definition to cran.scm > > However, everything went wrong when trying to run: (sorry, the output > > is long and I also get the same output with ./pre-inst-env lint > > r-aspi) > > ./pre-inst-env guix build r-aspi > > ;;; note: source file /home/laura/guix/gnu/packages/cran.scm > > ;;; newer than compiled /home/laura/guix/gnu/packages/cran.go > > guix build: warning: failed to load '(gnu packages abiword)': > > exception thrown: # > #\t string: "a7izhueiqsdjs2eo7dfyb63cqje7mbqz6ennlyoynxxucbhpdnta"] If I get you right, then the problem is introduced when you add the package definition to cran.scm, since ./pre-inst-env guix package -i hello worked. Since essentially everything is broken by the change, it is most probable that you have some forms that is not closed properly. I would at first check for mismatching parenthesis. If you can see nothing suspicious, then could you send a diff, so that I can have a look? > I have an update here, sorry, I can't help trying to figure out what's > wrong. In the definition of my r-aspi, I found that the base32 was not > well calculated, and I have already corrected that. Now this line does > not appear anymore when throwing the same commands. the other warnings > do. and the In procedure module-lookup: Unbound variable: continue > too. I also tried generating the new cran.go with guild compile > cran.scm but the output was really awful. If you need it, when you > answer back I paste it. > > 262f6c0> > > guix build: warning: failed to load '(gnu packages android)': > > In procedure module-lookup: Unbound variable: googletest > > guix build: warning: failed to load '(gnu packages avr)': > > In procedure module-lookup: Unbound variable: binutils > > guix build: warning: failed to load '(gnu packages axoloti)': > > In procedure module-lookup: Unbound variable: gcc-4.9 > > guix build: warning: failed to load '(gnu packages bioconductor)': > > In procedure module-lookup: Unbound variable: perl-module-build > > guix build: warning: failed to load '(gnu packages bootloaders)': > > no binding `bc' in module (gnu packages algebra) > > guix build: warning: failed to load '(gnu packages chemistry)': > > In procedure module-lookup: Unbound variable: python2-numpy > > guix build: warning: failed to load '(gnu packages commencement)': > > In procedure module-lookup: Unbound variable: gnu-make > > guix build: warning: failed to load '(gnu packages debug)': > > In procedure module-lookup: Unbound variable: gnu-make > > guix build: warning: failed to load '(gnu packages display-managers)': > > In procedure module-lookup: Unbound variable: gpgme > > guix build: warning: failed to load '(gnu packages games)': > > In procedure module-lookup: Unbound variable: unzip > > guix build: warning: failed to load '(gnu packages image-viewers)': > > In procedure module-lookup: Unbound variable: curl > > guix build: warning: failed to load '(gnu packages license)': > > In procedure module-lookup: Unbound variable: perl > > guix build: warning: failed to load '(gnu packages make-bootstrap)': > > In procedure module-lookup: Unbound variable: coreutils > > guix build: warning: failed to load '(gnu packages maven)': > > In procedure module-lookup: Unbound variable: java-plexus-container-def= ault > > guix build: warning: failed to load '(gnu packages syndication)': > > In procedure module-lookup: Unbound variable: curl > > guix build: warning: failed to load '(gnu packages unrtf)': > > In procedure module-lookup: Unbound variable: coreutils > > guix build: error: r-aspi: unknown package > > > > > > > > > > > > > > > > Ricardo > > > > > > Regards, > > Laura > Regards, > Laura Best regards, g_bor