Problem installing newlib

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.
Post Reply
Bth8
Posts: 3
Joined: Mon Apr 08, 2013 9:35 pm

Problem installing newlib

Post by Bth8 »

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.
User avatar
max
Member
Member
Posts: 616
Joined: Mon Mar 05, 2012 11:23 am
Libera.chat IRC: maxdev
Location: Germany
Contact:

Re: Problem installing newlib

Post by max »

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.
What gcc do you use? Did you follow the OS Specific Toolchain page?
Bth8
Posts: 3
Joined: Mon Apr 08, 2013 9:35 pm

Re: Problem installing newlib

Post by Bth8 »

max wrote:
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.
What gcc do you use? Did you follow the OS Specific Toolchain page?
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.
Post Reply