From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: Cannot build guile-chickadee. Date: Wed, 20 Jun 2018 08:44:48 -0400 Message-ID: References: <87muvquv4x.fsf@elephly.net> <87muvqdjs4.fsf@gmail.com> <87po0lu90t.fsf@elephly.net> <87o9g5u7sf.fsf@elephly.net> <87in6dtyzt.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]:43808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVcTj-0001Mh-HM for help-guix@gnu.org; Wed, 20 Jun 2018 08:44:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVcTi-0005PX-IJ for help-guix@gnu.org; Wed, 20 Jun 2018 08:44:51 -0400 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:56123) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fVcTi-0005PO-8U for help-guix@gnu.org; Wed, 20 Jun 2018 08:44:50 -0400 Received: by mail-wm0-x236.google.com with SMTP id v16-v6so5771707wmh.5 for ; Wed, 20 Jun 2018 05:44:50 -0700 (PDT) In-Reply-To: <87in6dtyzt.fsf@elephly.net> 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: Ricardo Wurmus Cc: help-guix On Wed, Jun 20, 2018 at 8:37 AM, Ricardo Wurmus wrote: > > Hey Dave, > >>> Turns out that the Makefile of guile-sdl2 needed to be patched. After >>> the patch Chickadee can be built with the release tarball. >>> >>> I=E2=80=99ll push the package definition shortly. >> >> Could you tell me the commit id when you push it? I'd like to just >> sort out the issues you were having and make new releases of >> guile-sdl2 and chickadee so that Guix can have clean packages with no >> hackery involved. > > I=E2=80=99ve pushed guile-chickadee with commit > 00fca594da4c63a976e1c67ec3caab47f2a38d87. The patch to guile-sdl2 is in > commit e5b77ccfe861545a61f6c6355f5c9fb712bc4894. After that I noticed > that the package might also need a build phase to fix the installation > location: > > --8<---------------cut here---------------start------------->8--- > diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-develo= pment.scm > index b428fa77f..f8c6583f9 100644 > --- a/gnu/packages/game-development.scm > +++ b/gnu/packages/game-development.scm > @@ -1248,7 +1248,16 @@ a 2D editor view.") > "10qx0ha5gsayybd186r1my7vc7rf5fbzp9jvmc4xg9a8wz8rqhah"))= )) > (build-system gnu-build-system) > (arguments > - '(#:make-flags '("GUILE_AUTO_COMPILE=3D0"))) > + '(#:make-flags '("GUILE_AUTO_COMPILE=3D0") > + #:phases > + (modify-phases %standard-phases > + (add-after 'configure 'patch-makefile > + (lambda _ > + ;; Install compiled Guile files in the expected place. > + (substitute* '("Makefile") > + (("^godir =3D .*$") > + "godir =3D $(moddir)\n")) > + #t))))) > (propagated-inputs > `(("guile-opengl" ,guile-opengl) > ("guile-sdl2" ,guile-sdl2))) > --8<---------------cut here---------------end--------------->8--- Okay, I will make this change upstream. > Unfortunately, I still cannot use it as the example fails with OpenGL > errors, e.g.: > > chickadee/window.scm:56:21: In procedure open-window: > Throw to key `sdl-error' with args `("make-window" "failed to create = window: ~A" "Couldn't find matching GLX visual")'. > > So I picked the first of the visuals that glxinfo outputs: > > export SDL_VIDEO_X11_VISUALID=3D0x022 > > But then I get another error: > > chickadee/window.scm:60:21: In procedure open-window: > Throw to key `sdl-error' with args `("make-gl-context" "failed to cre= ate OpenGL context: ~A" "Could not create GL context")'. > > And that=E2=80=99s probably because something somewhere decides that the > graphics chip in my Librem 13 does not support OpenGL 3.3(?), even > though glxinfo says this: > > --8<---------------cut here---------------start------------->8--- > Extended renderer info (GLX_MESA_query_renderer): > Vendor: Intel Open Source Technology Center (0x8086) > Device: Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2) (0x1916) > Version: 17.3.8 > Accelerated: yes > Video memory: 3072MB > Unified memory: yes > Preferred profile: core (0x1) > Max core profile version: 4.5 > Max compat profile version: 3.0 > Max GLES1 profile version: 1.1 > Max GLES[23] profile version: 3.2 > =E2=80=A6 > OpenGL vendor string: Intel Open Source Technology Center > OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2) > OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.3.8 > OpenGL core profile shading language version string: 4.50 > OpenGL core profile context flags: (none) > OpenGL core profile profile mask: core profile > --8<---------------cut here---------------end--------------->8--- > > Not sure if this is a problem with my setup here. Hmm, there's no problem with your setup. Your GPU supports a higher version of OpenGL that mine does so it should just work. I'll let you know if I can find anything that might resolve this issue. SDL is being less than helpful with its error message. Thanks, - Dave