From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gJxsHFW9LGHGTgEAgWs5BA (envelope-from ) for ; Mon, 30 Aug 2021 13:13:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eMcHGFW9LGHCKwAAbx9fmQ (envelope-from ) for ; Mon, 30 Aug 2021 11:13:25 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1344923133 for ; Mon, 30 Aug 2021 13:13:24 +0200 (CEST) Received: from localhost ([::1]:51904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKfEB-00060b-3V for larch@yhetil.org; Mon, 30 Aug 2021 07:13:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKfE0-00060E-44 for help-guix@gnu.org; Mon, 30 Aug 2021 07:13:12 -0400 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]:33578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKfDx-0003Ma-MM for help-guix@gnu.org; Mon, 30 Aug 2021 07:13:11 -0400 Received: by mail-ej1-x636.google.com with SMTP id x11so30431348ejv.0 for ; Mon, 30 Aug 2021 04:13:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iCOyOnZ86L5wspTtBhHbaJkGk8Sf3N9vfRcgKOBFpM0=; b=Lgq97s0bm7RHQVS07nPYYuFhae8G8CvU4CrKbx+hjJrfK/R2HEuhVigSHGz5gTwV1a RWvUlpfB3x8jarMBFBrcx3XEoTj1bMAz7Ck5+9pHUKSzHSd5fAqGqTcJFgXYzDJwNcbl l3x6hhC8UyTiOEF/1phqOI1mrVGY/wc9o/jn8fHmbAKjvTeVA37ZAebB+JTI9DDTUDNw w3pLy3itL/LZhcdeWDv74W4j7nFGTRvu6kyDCyt35yjpRCDhrylVklW9dSBBFtRUprXl voVkKkVoqwRFsMBJ5z6Un54aBb10Z7SEsQ5eB/DKBXkBKQdPQxIdOUlULJo1w0yOIjZI YrPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iCOyOnZ86L5wspTtBhHbaJkGk8Sf3N9vfRcgKOBFpM0=; b=nIUZ5Fgl7EZtW3cG54ZukVm+8Ch1ZkiABexD9YWdmYwz/mR/BvxfTVNZafxPT7LRzY wu+L1wWcpjCdJ9abgH/kd160vNEfM2S6q//vLI2V7LmSS6/ZsZU6A+QkMYkM6tEb+HPd xYWkjTBW+sWpzZ0LlFKMDJCEXNJNhLMmGbs5/N9tHY45bFwn2sSWAZDjruHEVIty1g4U NxWSI29JSPkZikhWGWIMLrYfmQwqrsG/FfE0hsJMOYKKdoowwvM7OMQP0ivNrBWK4qCp iIKp2ORTjnZbkuvClcsxnbrOO+SfTN+/aX63H8nGGCgGAgYMmzrBkhoRVGBIiwmN3M+Z wjjw== X-Gm-Message-State: AOAM5337AxH1zdbBKTnSW0+63qMdPW6ZpRLxNu6JrMpdYiMwp2T3quMh DooqX+wNDH+fBoJQ8Baf3HQaOPGhx/qVKayADMqL/qmM1WZSVg== X-Google-Smtp-Source: ABdhPJypH1Qpx2rg4qLKOWP9PROstub7wESBGhOVXUgtSkEn1TUWEo432AOlZLBu3rKRb2MhnPEb2qUMDFpPgrjR2KA= X-Received: by 2002:a17:906:a195:: with SMTP id s21mr24582746ejy.181.1630321987054; Mon, 30 Aug 2021 04:13:07 -0700 (PDT) MIME-Version: 1.0 References: <878s0kdvse.fsf@liltechdude.xyz> In-Reply-To: <878s0kdvse.fsf@liltechdude.xyz> From: Antwane Mason Date: Mon, 30 Aug 2021 07:12:56 -0400 Message-ID: Subject: Re: Request for help with writing defenition for pyxel. To: Dmitry Polyakov Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=ad.mason1413@gmail.com; helo=mail-ej1-x636.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630322004; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=K4S8wtOTTVogmFvKLecwRvmZfiQReKGgI2Ogq/Z4Y0w=; b=F7aw510x7YqdeGVPwMdNPo0w6sKXlGpspt1lYGDT/8NJoBv9BaGlvtCLEDJiHe1oGk3zJx edL1PhwLuKbX92gVg0rjIViQjVvWeafuqkxTIMsSld98OJn8bJivFCKzCqMhDOVKR16fmf l+gVMPZyjvRUbxwGORRJYpGqhrgFMmgyQBLS04wq93bBWkgjsV4R+1mAJ3a3RWTupee/ho lTWKR23n0EzUIz4ZyNbL6zZScFgLu0VwfHQdBYsjXKLmZmw7NRFXlGaGQiq/Ziv7DJhw8A kQ2jzzNz7xz+InjzfXs+buIeZt3MtKrUfMLz6Kf6GERFt1zT+iqHVA8SUxWCuQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630322004; a=rsa-sha256; cv=none; b=gCfozX4dpH2lViDSALZLEOTgDN2/oY0P34Szga1GZifTkIr7CqylveNX/nd1RKZwpKK07X //fI3FEA+BNVYjxwiglJFE7fVNfz8XX/QQzkGUD/vkXsejXKNr9TRU7xdc+4Sm2cDu9kwF DmtF2/6/6anaeGKcFraS9Bbo2zeCjGW6Hcw1e8GJsQCdnisZZxvMvYXBUWHRlDVRWQpYSe vpoRv+vDRNM43Gt7fHWW/HCsI91Ohid5yt09twnIG7IlzDEvES1z2rkfEfZIcYKq0BBf79 HLj6WlSquLN1UNg/JlEbg8H0YyP9zU6C8JPpu89GsXaoDaAC9A1Y5q5GX38qZg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=Lgq97s0b; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=Lgq97s0b; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 1344923133 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: s72mA/GbOx5E I suspect something is wrong with where python is expecting libSDL2-2.0.so. One thing you could try is trying to figure out where libSDL2-2.0.so is and ensuring that it's in your PATH environment variable during build time. Looking at build log and using -K option during guix build will be helpful for this. I think the build log should tell you what environment variables are set to. If it doesn't, going into the temporary build directory should help you find this information. The link below should help with how to debug the failed build. https://guix.gnu.org/manual/en/html_node/Debugging-Build-Failures.html Regards, Antwane On Sun, Aug 29, 2021 at 2:10 PM Dmitry Polyakov wrote: > I requesting for help with writing defenition for python retro game > engine[fn:1]. > > There are steps according to manual to build this engine[fn:2]: > > 1. Get sources with ~git clone https://github.com/kitao/pyxel~ > 2. "cd" to this dir > 3. Invoke ~guix environment --pure --ad-hoc gcc make python python-pip > coreutils findutils sdl2 sdl2-image~ > 4. Appnend this to in file pyxel/core/Makefile on line 50 > > ~-I/gnu/store/flvzd76nb8xzbp1sf5ckkvpwhspz9fqx-sdl-union-1.2.15/include/= SDL2~ > 5. Invoke ~make -C pyxel/core clean all~ > 6. Invoke ~pip3 install .~ to install this package > > And I got fully functional (according to examples) package in my > system, but when I was tried to write defenition: > #+begin_src scheme > (define-public python-pyxel > (package > (name "python-pyxel") > (version "1.4.3") > (source > (origin > (method url-fetch) > (uri "file:///home/lil/src/ring/pyxel" ;; this is version with > modified Makefile > ;; (pypi-uri "pyxel" version) <- this is original content from = $ > guix import pypi pyxel > ) > (sha256 > (base32 > "1gxvagmj37gs871bh77xafm5jyiaw1hvs76wb97w96kf3g8abhkz")))) > (build-system python-build-system) > (inputs > `(("gifsicle" ,gifsicle) > ("sdl2" ,(sdl-union (list sdl2 sdl2-image))))) > (home-page "https://github.com/kitao/pyxel") > (synopsis "A retro game engine for Python") > (description "A retro game engine for Python") > (license license:expat))) > #+end_src > > I was stacked with that error[fn:3] > #+begin_src bash > starting phase `build' > running "python setup.py" with command "build" and parameters () > Traceback (most recent call last): > File "", line 1, in > File "setup.py", line 2, in > from pyxel import VERSION > File > "/tmp/guix-build-python-pyxel-1.4.3.drv-0/source/pyxel/__init__.py", line > 10, in > from . import core # type: ignore > File > "/tmp/guix-build-python-pyxel-1.4.3.drv-0/source/pyxel/core/__init__.py", > line 42, in > _lib =3D _load_library() > File > "/tmp/guix-build-python-pyxel-1.4.3.drv-0/source/pyxel/core/__init__.py", > line 39, in _load_library > return cdll.LoadLibrary(lib_path) > File > "/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python-3.8.2/lib/python3.8/c= types/__init__.py", > line 451, in LoadLibrary > return self._dlltype(name) > File > "/gnu/store/9w9jvy3bgjg4qaqmrij01nbppiccqr7c-python-3.8.2/lib/python3.8/c= types/__init__.py", > line 373, in __init__ > self._handle =3D _dlopen(self._name, mode) > OSError: libSDL2-2.0.so.0: cannot open shared object file: No such file o= r > directory > command "python" "-c" "import setuptools, > tokenize;__file__=3D'setup.py';f=3Dgetattr(tokenize, 'open', > open)(__file__);code=3Df.read().replace('\\r\\n', > '\\n');f.close();exec(compile(code, __file__, 'exec'))" "build" failed wi= th > status 1 > builder for > `/gnu/store/2v3wlpjg2mg3mllc4qkb22b34cmymiab-python-pyxel-1.4.3.drv' fail= ed > with exit code 1 > build of > /gnu/store/2v3wlpjg2mg3mllc4qkb22b34cmymiab-python-pyxel-1.4.3.drv failed > View build log at > '/var/log/guix/drvs/2v/3wlpjg2mg3mllc4qkb22b34cmymiab-python-pyxel-1.4.3.= drv.bz2'. > guix build: error: build of > `/gnu/store/2v3wlpjg2mg3mllc4qkb22b34cmymiab-python-pyxel-1.4.3.drv' fail= ed > #+end_src > > As far as I can understand, firstly guix should build C++ dependencies > and /then/ install python package. Isn't it? But I don't know how to do > this. > > * Footnotes > > [fn:1] https://github.com/kitao/pyxel Actually is C++ and Python engine > > [fn:2] > https://github.com/kitao/pyxel#execute-the-following-command-in-any-folde= r > > [fn:3] For full error see https://pastebin.com/d18Wrrq4 > > > -- > =E9=AD=94=E6=B3=95=E5=B0=91=E5=A5=B3=E3=83=AA=E3=83=AB=E3=83=86=E3=83=81= =E3=83=85=E3=83=87=E3=81=A7=E3=81=99=E3=82=88=E3=80=82 > >