public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Building a uclibc based toolchain
@ 2011-10-19 10:25 stl
  0 siblings, 0 replies; 2+ messages in thread
From: stl @ 2011-10-19 10:25 UTC (permalink / raw)
  To: gcc-help

Hello all,
I am trying to build my own uClibc based linux toolchain for a new architecture.

I follow the following steps:

1 - I compile binutils
2 - I copy the specific and generic linux headers (from my port of
linux) into ${HEADERS_DIR}
3 - I compile gcc only with --enable-language=c and
--with-headers=${HEADERS_DIR}
4 - I compile uClibc with the previously compiled gcc
5 - I recompile gcc with --enable-language=c,c++

All is fine for the four first steps.
But I have a question:

When uClibc building is done, where should I install the uClibc
libraries (libc.a, librt.a, etc...)
and headers?

Where gcc expects to find them?

Because, when I recompile gcc (step 5), I get GCC_NO_EXECUTABLE fatal error.
The config.log shows me that the crt1.o and some standard headers are missing..

Thanks in advance for your help.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Building a uclibc based toolchain
@ 2011-10-25 10:28 Jayant R. Sonar
  0 siblings, 0 replies; 2+ messages in thread
From: Jayant R. Sonar @ 2011-10-25 10:28 UTC (permalink / raw)
  To: st.lambert02; +Cc: gcc-help

The sequence that I follow while building an uClinux toolchain is like: 
1. Building ELF compiler (only Binutils and GCC, no libraries)
2. Building elf2flt tools (ELF)
3. Building uClinux kernel
4. Building uClibc variants
5. Building uClinux toolchain
6. Building elf2flt tools  (uClinux)

> When uClibc building is done, where should I install the uClibc
> libraries (libc.a, librt.a, etc...)
> and headers?

The uClibc libraries are to be installed at: 
prefix/<target>-uclinux/runtime/usr e.g. prefix/arm-uclinux/runtime/usr

One should copy both 'include' and 'lib' contents at this path.
You may need to create appropriate folders for multiple variants e.g. I copy 
non-PIC libraries at above path whereas PIC libraries in the separate 
subfolder at the same path.

Thanks and Regards,
Jayant


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-25 10:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-19 10:25 Building a uclibc based toolchain stl
2011-10-25 10:28 Jayant R. Sonar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).