Building GlibC for TriCore

View: New views
3 Messages — Rating Filter:   Alert me  

Building GlibC for TriCore

by u0606029 :: Rate this Message:

| View Threaded | Show Only this Message

Hello,

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?

Is it possible for glibc to be built using non-gcc compilers at all? I had tried building newlib and dietlibc but i couldnt.

Thanks in advance,
Cheers,
RV

Re: Building GlibC for TriCore

by Petr Baudis-2 :: Rate this Message:

| View Threaded | Show Only this Message

  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

Re: Building GlibC for TriCore

by u0606029 :: Rate this Message:

| View Threaded | Show Only this Message

Hi Petr,

Thank you very much for your reply.

I had already tried CC=tricore-gcc before ./configure but it had no effect. The configure log still showed that GCC was being used over tricore-gcc.

Also, I guess the problem is because of the OS and Architecture dependent parts of Glibc that needs modification. I am not very sure of how to go about it but I will figure it out i guess. At least, now I have more direction!

Thanks again,
Regards,
RV





Petr Baudis-2 wrote:
  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