So I've got meaty skeleton working before, then got rid of the VM, and now after some time, I thougt I'd play around again. Cross-compiled binutils 2.31 and gcc 8.2.0 with i686-elf target exactly as the tutorial said, no errors came up, gcc is in $HOME/opt/cross/bin and working, as I can compile bare bones just fine. But whenever I try to build meaty skeleton with the included scripts and makefile, I get the following error:

I installed all the required packages (xorriso, qemu, grub), I followed the tutorial to the letter, I cloned the repo from gitlab, I tried moving the source around, but it's still not working. I ran "export PATH="$HOME/opt/cross/bin:$PATH"", $PATH gets properly set, I can call i686-elf-gcc directly and it works. Yet make apparently still can't find it.

Anyone got any ideas why this happens? I searched the forum for this and a few similar issues came up but nothing mentioned in those topics helped me solve this. This is on kubuntu 18.10 64-bit btw.

Probably because your root user doesn't have the environment variables set that your user account does. Does it work if you use sudo -E ./qemu.sh ? Might be easier to specify the full path of i686-elf-gcc inside your Makefile.

Probably because your root user doesn't have the environment variables set that your user account does. Does it work if you use sudo -E ./qemu.sh ? Might be easier to specify the full path of i686-elf-gcc inside your Makefile.

sudo -E didn't work, but it did lead me to find out the sysroot folder was owned by root, not me, which is why I had to run the script as root. It works now that I've changed the owner, which eliminates that requirement. Thanks for the help.

Who is online

Users browsing this forum: No registered users and 16 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum