This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: math.h compile error (gcc-2.95.3 + newlib-1.11.0)


On Tue, Sep 16, 2003 at 06:15:01PM +0200, Toralf Lund wrote:
> I'm now actually down to one error message for my port to gcc cross 
> compiler ;-) In the C code, that is; some of the assembler still needs 
> to be changed.
> 
> Anyhow, I get:
> 
> In file included from track.c:44:
> /usr/lib/gcc-lib/m68k-coff/2.95.3/../../../../m68k-coff/include/math.h:26: 
> syntax error before `union'
> /usr/lib/gcc-lib/m68k-coff/2.95.3/../../../../m68k-coff/include/math.h:26: 
> warning: array `__infinity' assumed to have one element
> 
> Where math.h line 26 is
> 
> extern __IMPORT const union __dmath __infinity[];
> 
> That's when compiling with  -traditional -fno-builtin -m68000, and using 
> gcc version is 2.95.3/newlib 1.11.0 (target m68k-coff.)
> 
> Now, how do I get out of this one?
If I were you, I'd do the following:
* compile with gcc's -save-temps option to get the preprocessed source
* look in the preprocessed source if __IMPORT becomes anything useful 
  (I have a hunch that it doesn't)

My hunch would be that __IMPORT is not defined. Try defining it to something
reasonable if it isn't. Otherwise, try posting the preprocessed source (or 
rather putting it on the web somewhere and posting the URL - preprocessed 
source tends to get big).

HTH

rlc

-- 
Logic doesn't apply to the real world.
		-- Marvin Minsky

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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