I’ve upgraded my build system from debian 8 to 9. When I try to add the following line
echo “deb Index of /debian wheezy-backports main contrib non-free” >>/etc/apt/sources.list
to the sources.list then do the update I get an error that that there is no release file.
So I just did a apt install qemu-user-static
I then did a cd to the build root. I then tried to execute hello and got the following error.
/lib/ld-linux-armhf.so.3: No such file or directory
I then chroot .
Are there any directions for setting up a My Cloud build environment on stretch?
This time when I executed the hello program it worked.
I’ve upgraded my build system from debian 8 to 9
What hardware? The My Cloud device itself? Some people’s build machines are their Intel/AMD desktop computers
wheezy-backports
Why is wheezy there? That is Debian 7 which is not mentioned in your post
I get an error that that there is no release file.
Can you post the exact release file it’s looking for? You can browse ftp.debian.org since it’s actually an HTTP server and maybe you can spot which repository is not working correctly.
So I just did a apt install qemu-user-static
To solve which problem? If you are setting up a build environment on the My Cloud, you shouldnt need qemu. If you are setting up a build environment on your x86/64 desktop then you may use qemu to chroot into a foreign architecture.
/lib/ld-linux-armhf.so.3: No such file or directory
Looks like you are building against armhf. I have a 2nd Gen My Cloud but the rootfs is soft-float arm.
I then chroot .
I’m thinking your chroot is set up for armhf but your rootfs that you boot from is just regular arm (soft-float). You won’t be able to use anything you compile in that armhf chroot outside of the chroot environment.
Are there any directions for setting up a My Cloud build environment on stretch?
Are you trying to build user mode binaries or a new kernel? It sounds like you are 90% there with the exception of having a armhf
chroot instead of arm
I don’t know why they are using wheezy. I’m running the build on an intel x86 machine. You
need to do the chroot into the arm root. You need the qemu-user-static so that your x86 machine can execute arm code. I have built several user mode binaries. both for the gen1 and gen2 My Clouds. Though to build for the gen2 you need to use static libraries.