marsdev icon indicating copy to clipboard operation
marsdev copied to clipboard

Fix various issues with the build process

Open tiagosr opened this issue 3 years ago • 2 comments

Removing a little bit of the bitrot

  • changed GNU_MIRROR to another, as the old tripadvisor mirror is not working anymore
  • changed newlib from 1.20.0 to 4.2.0, as 1.20.0 doesn't build on aarch64 machines (even if cross compiling) due to bugs in the configure scripts
  • placed a step to remove .o files in sikthehedgehog/mdtools, as they get downloaded with the repository, making it fail to compile on anything else but x86_64
  • switched from debian to ubuntu:jammy to make z80-tools stop failing during the tests (I didn't get to go too in-depth into what causes the issue 🤷🏽)

tiagosr avatar Jun 11 '22 18:06 tiagosr

Looks good to me.

dleslie avatar Jul 31 '22 19:07 dleslie

Hey, sorry I'm been pretty busy these days. I did look this over briefly but my concern is whether newlib 4.2.0 will actually run on a compiled ROM. Last time I tried to upgrade newlib the ROMs that got built were malformed. I don't remember exactly how it was several years ago so it might be worth trying again

andwn avatar Aug 01 '22 06:08 andwn

Well I'll be damned, Newlib 4.2.0 does work, but I had to implement syscall stubs to suppress some linker warnings.

I got the mirror set to gnu.org at the moment which should be more reliable.

Merging the Dockerfile and *.o clearing as is.

andwn avatar Sep 25 '22 13:09 andwn