unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Wade Zhang <dochang@gmail.com>
To: help-guix@gnu.org
Subject: Issue about building python on a foreign distro
Date: Sun, 22 Aug 2021 19:27:49 +0800	[thread overview]
Message-ID: <CANBNykuUganjSKkvaofcicxhO=itzUtAbLZXLQcpyWO0B4MF=A@mail.gmail.com> (raw)

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


             reply	other threads:[~2021-08-22 21:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-22 11:27 Wade Zhang [this message]
2021-08-23 16:41 ` Issue about building python on a foreign distro zimoun
2021-08-23 19:30   ` Wade Zhang
2021-08-25 13:08     ` zimoun
2021-08-29 22:29       ` Wade Zhang
2021-09-16 11:24 ` Hartmut Goebel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CANBNykuUganjSKkvaofcicxhO=itzUtAbLZXLQcpyWO0B4MF=A@mail.gmail.com' \
    --to=dochang@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).