-
Notifications
You must be signed in to change notification settings - Fork 62
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
Not able to build pi-gadget classic #89
Comments
when i run a clean run snapcraft --use-lxd. It always fail saying: apt-cache -o APT::Architecture=arm64 -o Dir::Etc::sourcelist=""/root/project/stage"/apt/restricted.sources.list" -o Dir::State::status="/root/project/stage"/tmp/status showpkg linux-firmware-raspi | sed -n -e 's/^Package: *//p' | sort -V | tail -1 ); ) |
Someone might correct me here, but I'm pretty sure the pi-gadget can only be built on arm architecture. If you want to build it on your amd64 you need to use I can see from the build instructions this is very unclear, and maybe even incorrect. Could you try to see if it helps? |
Hi @Meulengracht , I did run it on arm64 system . It always return this error: apt-cache -o APT::Architecture=arm64 -o Dir::Etc::sourcelist=""/root/project/stage"/apt/restricted.sources.list" -o Dir::State::status="/root/project/stage"/tmp/status showpkg linux-firmware-raspi | sed -n -e 's/^Package: *//p' | sort -V | tail -1 ); ) |
Could you clarify exactly how you produced that error? In your original message you mentioned you tried to build on arm64 and that it worked, but now it is not working? And did you get that same error with |
Sorry, if i was unclear on the first message. But when i run snapcraft --use-lxd that never worked How do i specify the ARCH and SERIES when using remote-build on amd64, because when i changed it in make file, it did not reflect in the build process. When i run snapcraft remote-build , it mentions that its building for amd64 instead of arm64 Also, even the remote build failed with error: Snap file not available for arch 'amd64'. |
try this command for remote-build That could be an issue with lxd, I'll try to see if I can reeproduce this and look into it. |
Hi,
I tried build pi-gadget classic on amd64 Ubuntu 20.04 , it never builds and always hangs.
sudo SERIES=focal ARCH=arm64 make
So, i tried it on arm64 and it worked. It created a stage folder. how am i supposed to used this to create classic gadget?
I also tried running snapcraft --use-lxd on both architectures. But it always fails giving:
Building gadget
++ arch
++ arch
Cross compilation detected; using pre-defined sources list
++ dpkg-architecture -t x86_64-linux-gnu -q DEB_HOST_ARCH
make: Entering directory '/home/ok/classic-gadget/pi-gadget'
Makefile:18: *** Build architecture is not supported. Stop.
make: Leaving directory '/home/ok/classic-gadget/pi-gadget'
The text was updated successfully, but these errors were encountered: