From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8FfDFwjEImHI7wAAgWs5BA (envelope-from ) for ; Sun, 22 Aug 2021 23:39:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id OFdxEwjEImEyTAAA1q6Kng (envelope-from ) for ; Sun, 22 Aug 2021 21:39:20 +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 8D8D41B8BC for ; Sun, 22 Aug 2021 23:39:19 +0200 (CEST) Received: from localhost ([::1]:45580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHvBW-0004CP-8C for larch@yhetil.org; Sun, 22 Aug 2021 17:39:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHle1-00039X-TT for help-guix@gnu.org; Sun, 22 Aug 2021 07:28:05 -0400 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:38800) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHle0-00035X-GU for help-guix@gnu.org; Sun, 22 Aug 2021 07:28:05 -0400 Received: by mail-lj1-x235.google.com with SMTP id c12so25868013ljr.5 for ; Sun, 22 Aug 2021 04:28:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=tBZa3RGPduG76IxYNY09PL74EdmP8r62iX1VPI5ecCs=; b=d/Yt7Fb6CF/BYe6wBr6gKxGJvcy6d2QRY4hELAKS6bvfi/KsA2vQz7COoEPofY53nA aWh8MefiBuZVAJ2KD0akp/BoSs7dHtxR6M+ydltaBMn9lffju17p8IhFfz/p39E/H5gr 8ZcZd4cTvAt1p4d0pNlQY19U1zZ4wvdEqwlZPLE0Rp8H0+bufFmnZKwQoNag1CUBjlNg yaCP28WPAVOeShkhNAFfrGb2PYSIedp58YcnyGPp5Xv3zN8jx12SoXygN/WgOq7cKCI1 qys+SM2UpqMIXPzrnRD/JAtuXE9AYA+53nvkTilkv4X4kOsFttB1AcRlAxxXdfanfwNA dFag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=tBZa3RGPduG76IxYNY09PL74EdmP8r62iX1VPI5ecCs=; b=hk8harThTGTgpavxqOK0qDK05qmhwP/4F7Tl3wvQ2Cqc4Iapz0QoC4t+dcHQTDA/9e O8/h+qogHZ5Hw/V/yxCyHdYZrfhlVLuhci1k7AeSIJaxtS87qY7fkAIfta6/aysQ7o50 Ctb2dJ72kcmI0HPctD+3BJ2sO37VrWsfSjxr8LMW9HV4NS/1f51E93C53sIyDI1QKBqA GoUYyLfm33XosQJaGdQmbYgNJwQbKEbjvju12Hb1Y796mcQdfWCf6/gJHBSrxC70Fhcf xlI5blPIUHVLoxKHDsz4SlXafiX8Ja/FiSJNSj89y3lzzaqNBJ6l+i8WRMy0ytojYfZq M6Gw== X-Gm-Message-State: AOAM5300L5dsI3N9GYBoTAv0CxU8+NtDrcMhx/1IRALHZ0lhzk6dZYIz cVdqrzNP1bUJLyqLhmti3DNX/aSLlqHZKoEa/X0XZ1F4yO/8Z0oa X-Google-Smtp-Source: ABdhPJziqvgxxdNB8B7E4t4HiqqSojk3V22ngMWVEneuVICz9pwLF4MlVz1cDWQkDlg8WNAI4SoKPB5EkwEmCYpjw/o= X-Received: by 2002:a2e:9e59:: with SMTP id g25mr23102521ljk.499.1629631681833; Sun, 22 Aug 2021 04:28:01 -0700 (PDT) MIME-Version: 1.0 From: Wade Zhang Date: Sun, 22 Aug 2021 19:27:49 +0800 Message-ID: Subject: Issue about building python on a foreign distro To: help-guix@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::235; envelope-from=dochang@gmail.com; helo=mail-lj1-x235.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=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 X-Mailman-Approved-At: Sun, 22 Aug 2021 17:39:03 -0400 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: , 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=1629668360; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=tBZa3RGPduG76IxYNY09PL74EdmP8r62iX1VPI5ecCs=; b=ecCuSQTnUQjUjKfQTYWL8/gwqUSEZZtl0Up6eslmIdy0MTQN1L28k597vXYQsEOfk+n2Nc +dhMRBMkNZRwUiMNV/5geafDJEOlSQqgI5V9ASgaW+UUU7w21J9/+7S/29/YZPSazfsFyM hgtU90zehvQ3KUiV/ZiuqOrvuvrWvDsoK5lmgabNyQoE5gZ9aOZyGKVBzcIZOpolF4H3/q U3H3X06/Lx9Yo5fqbCfy2vwP/mN14yzRZcNq92VsM1aCCDTV0TsWDcLn8rtYUZGxhKJEpL BX+abe8Uqje8mhIv3KqkgquroEVnpKYqteVrMFVum9lFmiNk+cqZB7u2gW//VA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629668360; a=rsa-sha256; cv=none; b=f2Fzjo3sXV5856Oxt1lWirLr5lWJEpvww2koma4WE+t4LUjHGhOJOEobzEpqd1b1XEH7VQ X95lnewoklzP2g9TTw4L+WZcA2cXoRjnK0QqK6SFzHJv891CBoSx3isFmYRRZ/WX7D791A hv0jUlpUB62eQq43DizIc/vgGK2uV0ezuNagcWSNaInjYPakfEHbgg+yoFR/F5pc3GVH17 62wNYrvHfnLzHt2Xs1VBP1Fh8zRUsTgpwR5+W1sS/Q/sTcKKdrmLtJFlNi6DbTuFWQTsCK jBsfQ98RVztvzueBl6HZioLFjj8H/iLvbUjOh/ZceKev13qjscaGrLCKkXWJ4w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="d/Yt7Fb6"; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="d/Yt7Fb6"; dmarc=pass (policy=none) header.from=gmail.com; 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: 8D8D41B8BC X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: nPjT7gH6QPCk Hi all, Recently I installed Guix on a Debian buster host. I want to install all build dependencies by Guix. Since I use pyenv to manage Python versions, I have to install Python outside Guix. Now I get stuck during the Python installation. I install dependencies by the following command: ``` guix install glibc gcc-toolchain make pkg-config libffi zlib bzip2 readline openssl sqlite xz xmlsec libxml2 ``` # With ccache At first I install ccache to speed up the building: ``` guix install ccache ``` When I run `pyenv install 3.8.11`, I got the following error: ``` checking for getaddrinfo... yes checking getaddrinfo bug... yes Fatal: You must get working getaddrinfo() function. or you can specify "--disable-ipv6". ``` I can build Python with packages installed by apt, so I think it's not an ipv6 problem. I also tried to `apt-get install nscd` but the building still failed. # Without ccache Then I uninstall ccache and run `pyenv install 3.8.11`, I got another error: ``` *** WARNING: renaming "_ctypes" since importing it failed: build/lib.linux-x86_64-3.8/_ctypes.cpython-38-x86_64-linux-gnu.so: undefined symbol: ffi_prep_cif Python build finished successfully! The necessary bits to build these optional modules were not found: _bz2 _curses _curses_panel _dbm _gdbm _lzma _sqlite3 _tkinter readline zlib To find the necessary bits, look in setup.py in detect_modules() for the module's name. The following modules found by detect_modules() in setup.py, have been built by the Makefile instead, as configured by the Setup files: _abc atexit pwd time Failed to build these modules: _uuid nis Following modules built successfully but were removed because they could not be imported: _ctypes ``` It seems all dependencies installed by Guix are not found. I'm new to Guix, I have searched these message but can't find the solution. Could you please tell me the reason of these errors and how to fix them? Best Regards, Wade Zhang