keith-packard / snek

Snek programming language for tiny systems
GNU General Public License v3.0
292 stars 30 forks source link

compilation fails on Picolibc semihosting for qemu-arm #84

Closed sanyaade-teachings closed 1 year ago

sanyaade-teachings commented 1 year ago

Hi All,

Good day to everyone and many thanks for snek and all your amazing efforts I am having small issue getting snek to build fully on Ubuntu 20.04 on WSL. The build fails on semihosting as shown below: The error message: /usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: cannot find /usr/lib/picolibc/arm-none-eabi/lib/thumb/v7-m/nofp/crt0-semihost.o: No such file or directory collect2: error: ld returned 1 exit status make[1]: ** [Makefile:33: snek-qemu-arm-1.9.elf] Error 1 make[1]: Leaving directory '/home/lookma/snek/ports/qemu-arm' make: [Makefile:30: ports/qemu-arm/snek-qemu-arm-1.9.elf] Error 2** image

I followed all the install steps as detailed on Snek GitHub pages.

Please help for tips and directions! Hear from you soon!

God blesses!!!

Regards

keith-packard commented 1 year ago

You'll need a newer version of picolibc for this to work -- version 1.7.5 or newer, which means upgrading to ubuntu 22.10 or later. Good luck!

sanyaade-teachings commented 1 year ago

You'll need a newer version of picolibc for this to work -- version 1.7.5 or newer, which means upgrading to ubuntu 22.10 or later. Good luck!

Many thanks! Following your direction, I upgrade the Ubuntu distro to version 23.10 build snek again. It all went well. image

Many thanks! Next is to learn the basic steps requiring hardware porting with snek. Many thanks!

God blesses!!!

Regards