We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

Error: nothing provides libc.so.6()(64bit) needed by

asked 2020-01-06 22:53:33 +0200

Johan Smits gravatar image

updated 2020-01-10 07:59:49 +0200

martyone gravatar image

I'm trying to build a app with Python3 in it.

But I run into some issues:

  • In the rpm spec I use %global __python %{__python3} to use python3 for stripping the package.
  • I have used pip3 install --target=lib/python --ignore-installed matrix-nio to install the needed libs into the lib dir. I noticed that there is a pvectorc.cpython-37m-x86_64-linux-gnu.so file inside the lib/python dir.

Now when I want to try to run the package I get the error: Error: nothing provides libc.so.6()(64bit) needed by MatrixChat-0.0.1-1.i486 on the emulator and also on a Sailfish device.

What is the way of doing this?

I have done it with a other app and python and that works fine. But it doesn't have compiled .so files.

EDIT:

This is probably because I ran pip install on my laptop and not in the sailfish build environment. But it is unknown to me how to do this.

edit retag flag offensive close delete

Comments

1

Every component (library) of your software has to be compiled as 32bit binaries to be successfully run on Sailfish OS (as of now). This even holds true on 64bit kernels. It looks like some pieces of your build system are 64bit.

Maus ( 2020-01-06 23:35:51 +0200 )edit

To me I'm doing it wrong, during package build I want to do the pip install inside the build container. So that everything is correct for the architecture. Even for Arm and 486 builds. Doing this outside the build environment seems hard (unknown) to me. So I'm curious on how this "should" be done?

Here are some config files: https://gist.github.com/johansmitsnl/94d7305065087a0a077f08bede35eaed

Johan Smits ( 2020-01-07 08:38:31 +0200 )edit

Probably you can have some inspirations here: https://gitlab.com/cy8aer/bluepill/tree/nio (build dir and .gitlab-ci.yml/.drone.yml)

cy8aer ( 2020-01-10 09:17:02 +0200 )edit

@cy8aer do you have a matrix ID to have a chat with you? mine is: @johan.smits:smitsmail.net and I'm testing you nio branch but I have some questions.

Wanting to test/support your project instead of making a new one.

Johan Smits ( 2020-01-10 23:03:55 +0200 )edit

2 Answers

Sort by » oldest newest most voted
3

answered 2020-01-10 08:09:26 +0200

martyone gravatar image

You can execute pip3 inside the build environment with e.g.

TARGET=SailfishOS-3.2.1.20-i486
sfdk tools package-install $TARGET python3-pip python3-setuptools python3-devel
sfdk engine exec sb2 -t $TARGET pip3 install --target=lib/python --ignore-installed matrix-nio

Run it on host from the root of you source directory (where lib/python exists).

edit flag offensive delete publish link more

Comments

thanks, will try this.

Johan Smits ( 2020-01-10 23:04:10 +0200 )edit
0

answered 2020-01-08 09:32:12 +0200

Maus gravatar image

updated 2020-01-08 09:33:43 +0200

Sorry, I have not built any app for Sailfish OS yet, so I can't help with the specific build process. What I would do when I encounter this kind of problem is identifying the object files that seem to have been compiled as 64bit objects. From the output you linked above, I could not easily identify the culprit. If you don't find any, you would have to find out what makes rpmlib think your project needs a depencency to the 64bit version of libc.so.6. At this moment, I'd also guess that pip (or manipulating its output) is somehow involved in solving this.

edit flag offensive delete publish link more

Comments

This is probably because I ran pip install on my laptop and not in the sailfish build environment. But it is unknown to me how to do this.

Johan Smits ( 2020-01-09 20:52:47 +0200 )edit

Every component (library) of your software has to be compiled as 32bit binaries to be successfully run on Sailfish OS (as of now). This even holds true on 64bit kernels. It looks like some pieces of your build system are 64bit. mywegmansconnect

Chosenpai ( 2020-01-24 08:41:29 +0200 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2020-01-06 22:53:33 +0200

Seen: 886 times

Last updated: Jan 10 '20