Problem installing newlib
Problem installing newlib
I am trying to port newlib to my kernel. Everything configures and builds correctly, but when I try to install, it doesn't put anything in $PREFIX/include or $PREFIX/lib. It puts it all into $PREFIX/$TARGET/include and $PREFIX/$TARGET/lib. As a result, gcc and ld can't find the headers or library files.
- max
- Member
- Posts: 616
- Joined: Mon Mar 05, 2012 11:23 am
- Libera.chat IRC: maxdev
- Location: Germany
- Contact:
Re: Problem installing newlib
What gcc do you use? Did you follow the OS Specific Toolchain page?Bth8 wrote:I am trying to port newlib to my kernel. Everything configures and builds correctly, but when I try to install, it doesn't put anything in $PREFIX/include or $PREFIX/lib. It puts it all into $PREFIX/$TARGET/include and $PREFIX/$TARGET/lib. As a result, gcc and ld can't find the headers or library files.
Re: Problem installing newlib
Yes, That's what I'm following. Binutils and the first pass on GCC are done and installed. The path is set correctly. Newlib is using the correct gcc. Everything compiles correctly, but upon install, newlib puts all includes and libs a directory too low. Then gcc can't find the headers and ld can't find the libs, so gcc pass 2 fails. Binutils, GCC, and newlib are all configured with the same target. Newlib's prefix is /usr and it's being installed with DESTDIR set to my sysroot. GCC and Binutils both have the correct sysroot set.max wrote:What gcc do you use? Did you follow the OS Specific Toolchain page?Bth8 wrote:I am trying to port newlib to my kernel. Everything configures and builds correctly, but when I try to install, it doesn't put anything in $PREFIX/include or $PREFIX/lib. It puts it all into $PREFIX/$TARGET/include and $PREFIX/$TARGET/lib. As a result, gcc and ld can't find the headers or library files.