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

error: command '/usr/bin/aarch64-linux-gnu-gcc' #5

Open
DezzardHD opened this issue Dec 4, 2021 · 2 comments
Open

error: command '/usr/bin/aarch64-linux-gnu-gcc' #5

DezzardHD opened this issue Dec 4, 2021 · 2 comments

Comments

@DezzardHD
Copy link

I am trying to install ems_bus on my raspberry pi 4:
Specs:
Revision: c03114
OS description: Debian GNU/Linux 11 (bullseye)
Architecture: arm64

pi@raspberrypi:~/EMSbus/ems_bus-master $ python3 setup.py build install --user
/usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'python_requires'
  warnings.warn(msg)
/usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'install_requires'
  warnings.warn(msg)
running build
running build_py
running build_ext
building 'ems_bus.ems_serio' extension
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYTHON_MODULE=1 -I/usr/include/python3.9 -c ems_serio/crc.c -o build/temp.linux-aarch64-3.9/ems_serio/crc.o
Assembler messages:
Fatal error: can't create build/temp.linux-aarch64-3.9/ems_serio/crc.o: Keine Berechtigung
error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1

Following the installation instructions for aarch64-linux-gnu-gcc I've figured that I had already installed the compiler.
So why do I get the error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1?

Another thing I couldn't figure out was, why there are these warnings:

pi@raspberrypi:~/EMSbus/ems_bus-master $ python3 setup.py build install --user
/usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'python_requires'
  warnings.warn(msg)
/usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'install_requires'
  warnings.warn(msg)

Aside from these problems:
Does somebody know if I can read data from "Buderus RC20" using ems_bus?
I'm not sure if it even uses EMS bus version 1 and wasn't able to figure that one out.

I appreciate any hints to get it to work. :)

@CreaValix
Copy link
Owner

CreaValix commented Dec 6, 2021

Hi Moritz,
check out ems_bus/ems_devices.py, you'll see that the RC20 uses EMS. However, I tested it only with my RC20, so you may find issues, as it was never tested with an RC20.

For the warning, try this: google/gdata-python-client#66
It seems that Python changed the setup tool.

Lastly, your build fails with an access error. Check your permissions, maybe you checked out as root? Better try again with a clean environment...
I also do not understand why setup.py chooses a cross compiler, as you are already ON the RPi 4.

@DezzardHD
Copy link
Author

Hi CreaValix,

thanks for responding. Just wanted to let you know that I appreciate your help, but I decided to gave up on getting it running.

Best regards
Moritz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants