Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
It appears the build system could not build sys/crt0.o nor sys/lib.a, but why is not evident from the error listings. You might want to investigate the build files in the sys directory.
The newlib source is organized using "Cygnus style," which is unsupported in Automake versions 1.12 and beyond. Therefore, to be able to build newlib, you need a version less than or equal to 1.11.
Why didn't authors of Newlib changed this since 2012, when the next minor version of Automake was released? Should I build Automake to just build Newlib? Genius.
UPD: Automake 1.11 doesn't even work for me. Automake creators are genius too. They drop feature support as minor version change, they don't provide message that feature is not supported.
Hi all! I was having a similar issue to this and I hope I can shed some light on what fixed it for me.
I was using Newlib 3.0.0 (if it matters, 20180206) and was encountering the same issue. Changing versions of autoconf and automake did not help (although the newlib README is bad and doesn't specify that you need a Cygnus-compatible automake and autoconf).
However, if you look a little further up in the build log, you might spot some compile errors from GCC for your C files. For some reason, the Makefile just ignores these errors and tries to continue, which can be misleading. Look a little further up in your compilation logs to see if there are any.
For reference here are the versions of tools I used for Newlib 3:
- autoconf: 2.69
- automake: 1.12.1
- aclocal: 1.12.1