]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
fix: newlib crt0.o build error and gcc-full c++tools install failure
authorTulio A M Mendes <[email protected]>
Sat, 14 Mar 2026 03:26:36 +0000 (00:26 -0300)
committerTulio A M Mendes <[email protected]>
Sat, 14 Mar 2026 03:26:36 +0000 (00:26 -0300)
commit50a5d05bd6ff67c2562081398a15239fa95d0218
treead64bd534a05ef6acaeb0645cefe76e36ab9e62f
parent9d00c7eb34d0848c1d8f4a7faaf07f2654ea414a
fix: newlib crt0.o build error and gcc-full c++tools install failure

Two fixes to toolchain/build.sh:

1. Newlib: added have_crt0="no" to the adros entry in configure.host.
   Newlib's build system expected crt0.o from libc/sys/adros/, but our
   crt0 is provided by libgloss/adros. Setting have_crt0=no tells newlib
   to skip the crt0.o copy. Also replaced the old Makefile.am/configure.in
   (recursive autotools, wrong for newlib 4.4.0) with a minimal Makefile.inc
   (non-recursive build system).

2. GCC full rebuild: use explicit targets (all-gcc all-target-libgcc,
   install-gcc install-target-libgcc) instead of bare 'make install'.
   The bare install fails on c++tools/g++-mapper-server which is not
   needed for cross-compilation and doesn't build for freestanding
   targets.

Verified:
- i686-adros-gcc 13.2.0 and i686-adros-g++ 13.2.0 both work
- C and C++ cross-compilation succeeds
- newlib libc.a and libm.a installed
- 100/100 smoke tests pass (10 sec)
toolchain/build.sh