This is the mail archive of the newlib@sourceware.cygnus.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: TenDRA C and newlib


"Pedro F. Giffuni" wrote:
> 
> Hello;
> 
> The README file says I should report bugs on this address, and while the
> attached logs are not exactly bugs, they show relevant portability
> problems when building with something different from gcc.
> 
> TenDRA C is a compiler with interesting portability features and I did a
> simple experiment to see what this strict compiler would find on the
> latest version of newlib.

It looks to me that that configuration is not right for the build.

tcc -DPACKAGE=\"newlib\" -DVERSION=\"1.8.2\"  -I. -I. -O2
-DMISSING_SYSCALL_NAMES -I../../targ-include -I.././../libc/include
-fno-builtin      -g -c atoi.c
"atoi.c", line 1: Error:
  [ISO 6.8.2]: Can't open included file, 'no-builtin'.

This indicates to me that you are passing -fno-builtin to tcc.  This is
a
gcc option and apparently causing tcc to preinclude a header file.  
I can't speak to the other options causing tcc problems.  

As a secondary issue, I don't know what host/target the tcc you are
using is
configured for and what you configured newlib for.  It is quite possible
that
the tcc configuration != the newlib configuration.

I think what you are doing could prove interesting but so far you aren't 
really compiling code yet.  You still have compiler invocation
differences
to address.

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]