From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Cannot build guile-chickadee. Date: Wed, 20 Jun 2018 14:37:42 +0200 Message-ID: <87in6dtyzt.fsf@elephly.net> References: <87muvquv4x.fsf@elephly.net> <87muvqdjs4.fsf@gmail.com> <87po0lu90t.fsf@elephly.net> <87o9g5u7sf.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]:42339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVcNC-0003uE-6s for help-guix@gnu.org; Wed, 20 Jun 2018 08:38:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVcN9-0002JU-1M for help-guix@gnu.org; Wed, 20 Jun 2018 08:38:06 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21096) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fVcN8-0002IP-N7 for help-guix@gnu.org; Wed, 20 Jun 2018 08:38:02 -0400 In-reply-to: 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: "Thompson, David" Cc: help-guix 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-developm= ent.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--- 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 wi= ndow: ~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 creat= e 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. Thanks for your help! -- Ricardo