Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry PI #34

Open
gshafer opened this issue Oct 9, 2020 · 6 comments
Open

Raspberry PI #34

gshafer opened this issue Oct 9, 2020 · 6 comments
Labels
Not a package issue Good for newcomers

Comments

@gshafer
Copy link

gshafer commented Oct 9, 2020

Has anyone got this work on RPI? I tried the binary and compiling. No go.

@ldn-softdev
Copy link
Owner

ldn-softdev commented Oct 9, 2020

Not sure if compiling was ever attempted on RPI, however, if compiler is C++14 or above, then it should compile - the package has no dependencies - 100% c++ code.
Do you mind sharing the compiling logs as well as the version of c++ compiler on your RPI?

@ldn-softdev ldn-softdev added the compiling issue issue preventing a successful compilation label Oct 9, 2020
@ldn-softdev
Copy link
Owner

I kinda assumed you had a compiling issue, could you elaborate if it's something else? any logs/outputs?

@gshafer
Copy link
Author

gshafer commented Oct 10, 2020

Thanks. It may be the version of c++ code. My version is:

pi@raspberry:~ $ c++ --version
c++ (Raspbian 4.9.2-10) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I tried to upgrade from this article:

https://solarianprogrammer.com/2017/12/08/raspberry-pi-raspbian-install-gcc-compile-cpp-17-programs/

After installing the program, I get the following error:

pi@raspberry:~ $ gcc-10.1 --version
gcc-10.1: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by gcc-10.1)

When I looked up this error, it said I needed to upgrade libc6:

sudo apt-get upgrade libc6
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... libc6 is already the newest version.

Stuck!

@ldn-softdev
Copy link
Owner

Yes, your libc requires an upgrade. Most likely the solution is described here, namely, quoting from that page:

E.g. add deb http://ftp.de.debian.org/debian sid main to /etc/apt/sources.list
and execute apt-get update && apt-get upgrade libc6

Let me know if compiling succeeds after that and jtc works.

@gshafer
Copy link
Author

gshafer commented Oct 10, 2020

I tried that, and tried to fix the errors that were displayed. Not much luck on that. Here is the screen shot:

pi@raspberry:/tmp $ sudo apt-get update && apt-get upgrade libc6
Get:1 http://repo.mosquitto.org jessie InRelease [11.0 kB]
Hit http://archive.raspberrypi.org jessie InRelease
Hit http://mirrordirector.raspbian.org jessie InRelease
Hit http://archive.raspbian.org jessie InRelease
Get:2 http://ftp.de.debian.org sid InRelease [146 kB]
Ign http://repo.mosquitto.org wheezy InRelease
Ign http://repo.mosquitto.org wheezy Release.gpg
Ign http://repo.mosquitto.org wheezy Release
Err http://repo.mosquitto.org jessie InRelease

Get:3 http://archive.raspbian.org jessie/main armhf Packages [9,539 kB]
Ign http://ftp.de.debian.org sid InRelease
Ign http://dev2day.de jessie InRelease
Ign http://dev2day.de jessie Release.gpg
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Get:4 http://ftp.de.debian.org sid/main Translation-en [6,325 kB]
Ign http://dev2day.de jessie Release
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Err http://repo.mosquitto.org wheezy/main armhf Packages
404 Not Found
Ign http://repo.mosquitto.org wheezy/main Translation-en_GB
Ign http://repo.mosquitto.org wheezy/main Translation-en
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en
Err http://dev2day.de jessie/main armhf Packages
404 Not Found
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://dev2day.de jessie/main Translation-en_GB
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Get:5 http://ftp.de.debian.org sid/main armhf Packages [8,147 kB]
Ign http://dev2day.de jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Get:6 http://archive.raspbian.org jessie/contrib armhf Packages [43.3 kB]
Get:7 http://archive.raspbian.org jessie/non-free armhf Packages [88.2 kB]
Ign http://ftp.de.debian.org sid/main Translation-en_GB
Ign http://archive.raspbian.org jessie/contrib Translation-en_GB
Ign http://archive.raspbian.org jessie/contrib Translation-en
Ign http://archive.raspbian.org jessie/main Translation-en_GB
Ign http://archive.raspbian.org jessie/main Translation-en
Ign http://archive.raspbian.org jessie/non-free Translation-en_GB
Ign http://archive.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Fetched 24.3 MB in 43s (556 kB/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mosquitto.org jessie InRelease: The following signatures were invalid: KEYEXPIRED 1515017477 KEYEXPIRED 1515017477 KEYEXPIRED 1515017477

W: GPG error: http://ftp.de.debian.org sid InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138
W: Failed to fetch http://repo.mosquitto.org/debian/dists/jessie/InRelease

W: Failed to fetch http://repo.mosquitto.org/debian/dists/wheezy/main/binary-armhf/Packages 404 Not Found

W: Failed to fetch http://dev2day.de/pms/dists/jessie/main/binary-armhf/Packages 404 Not Found

W: Some index files failed to download. They have been ignored, or old ones used instead.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
pi@raspberry:/tmp $ gcc-10.1 --version
Segmentation fault
pi@raspberry:/tmp $ sudo apt-get upgrade libc6
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libc-dev-bin : Depends: libc6 (< 2.20) but 2.31-3 is to be installed
libc6-dbg : Depends: libc6 (= 2.19-18+deb8u1) but 2.31-3 is to be installed
libc6-dev : Depends: libc6 (= 2.19-18+deb8u1) but 2.31-3 is to be installed
libnih1 : Depends: libc6 (< 2.20) but 2.31-3 is to be installed
openssh-sftp-server : Depends: openssh-client (= 1:6.7p1-5) but 1:8.3p1-1 is to be installed
E: Broken packages
pi@raspberry:/tmp $ gcc-10.1 --version
Segmentation fault
pi@raspberry:/tmp $ sudo apt-get upgrade libc-dev-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libc6-dbg : Depends: libc6 (= 2.19-18+deb8u1) but 2.31-3 is to be installed
libc6-dev : Depends: libc6 (= 2.19-18+deb8u1) but 2.31-3 is to be installed
Depends: libc-dev-bin (= 2.19-18+deb8u1) but 2.31-3 is to be installed
libnih1 : Depends: libc6 (< 2.20) but 2.31-3 is to be installed
openssh-sftp-server : Depends: openssh-client (= 1:6.7p1-5) but 1:8.3p1-1 is to be installed
E: Broken packages
pi@raspberry:/tmp $ sudo apt-get upgrade libc-dev-bin libc6-dbg libc6-dev libnih1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libnih-dbus1 : Depends: libnih1 (= 1.0.3-4.3) but 1.0.3-10+b6 is to be installed
openssh-sftp-server : Depends: openssh-client (= 1:6.7p1-5) but 1:8.3p1-1 is to be installed
E: Broken packages
pi@raspberry:/tmp $ sudo apt-get upgrade libc-dev-bin libc6-dbg libc6-dev libnih1 libnih-dbus1 openssh-sftp-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libpam-systemd : Depends: systemd (= 215-17+deb8u2) but 246.6-1 is to be installed
systemd-sysv : Depends: systemd (= 215-17+deb8u2) but 246.6-1 is to be installed
E: Broken packages
pi@raspberry:/tmp $

@ldn-softdev
Copy link
Owner

Try googling those errors and fixing those one by one. Another solution might be finding a more modern version of RPI (with a fresher version c++) and compiling a relocatable binary there.

Let me know once you manage to upgrade c++/compile binary, I'd appreciate if you could share then a relocatable image - I will publish it then.

If you face any issues with the package itself (i.e. not the issue with the compiler, but with the package code) - keep me posted, we'll try to overcome possible issues.

@ldn-softdev ldn-softdev added Not a package issue Good for newcomers and removed compiling issue issue preventing a successful compilation labels Oct 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Not a package issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants