Cannot build because of missing 32-bit GNU stubs and missing libgcc #4525
|
So i am building my own bootloader in C right now and have come across two quite annoying issues. Whenever i build with the default But that can be fixed by forcing clang instead. I think it would be better if it was possible just to use GCC normally if possible, because it does work just fine in an Ubuntu distrobox. The second issue that i cannot link libgcc for 32-bit architectures because i use 64-bit integers. I added this in my makefile which i link against: But again. The issue is that clang is in my distrobox so that path doesn't work... Any ideas on how to fix this? My GitHub repo: https://github.com/zinix-org/lime-boot/tree/printf |
Replies: 1 comment 1 reply
|
have you tried using a toolbox for this exclusively? ideally, you would:
this is exactly the kind of scenario that toolbox/distrobox excels at. in case you need a different distro (e.g., ubuntu), you can specify that as well: |
Yes i did. And thats when it worked. Now i just include a config file where i define
LIBGCCandCLANG: https://github.com/zinix-org/lime-boot/blob/main/Makefile#L11