This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
Re: Building GlibC for TriCore
- From: Petr Baudis <pasky at suse dot cz>
- To: u0606029 <surajraghavendran at gmail dot com>
- Cc: glibc-bugs at sourceware dot org
- Date: Mon, 23 Mar 2009 10:33:36 +0100
- Subject: Re: Building GlibC for TriCore
- References: <22653461.post@talk.nabble.com>
Hi!
On Sun, Mar 22, 2009 at 07:37:39PM -0700, u0606029 wrote:
> I am working on a T-Kernel RTOS based TriCore system. I have the tricore-gcc
> installed in my system. I wish to build glibc using tricore-gcc instead of
> normal gcc as I want to download the glibc library on to the board. However,
> I am not able to change the configuration option while building glibc, to
> use tricore-gcc over gcc. Could you help me regarding this?
Just export CC=tricore-gcc at the beginning of the build process
should do the job, I think (or CC=tricore-gcc ./configure ...).
> Is it possible for glibc to be built using non-gcc compilers at all? I had
> tried building newlib and dietlibc but i couldnt.
No, you need to use gcc or gcc-compatible compiler.
However, overally what you want is not easy - main parts of glibc are
the architecture-dependent and OS-dependent layers. These will not
appear magically, you need to program T-Kernel interface and
TriCore-specific routines. If T-Kernel is not POSIX compatible (I have
no idea), this could become a very complex process, even. Frankly,
I don't think you fare well if you started having trouble so early
in the process.
Please use the libc-help@ mailinglist in case you have further
questions.
--
Petr "Pasky" Baudis
The average, healthy, well-adjusted adult gets up at seven-thirty
in the morning feeling just terrible. -- Jean Kerr