This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Problems with 2.95 19990712 (prerelease) on sparc-sun-solaris2.6


During bootstrap (using the native compiler), fix-header prints
tons of messages like this:

--------
fixproto: populating `include'
/home/brane/eval/egcs/build/egcs/gcc/include/curses.h:5: warning: #include_next
in primary source file
fix-header: In file included from /usr/include/sys/types.h:19,
                 from /usr/include/sys/time.h:71,
                 from /usr/include/time.h:93,
                 from /usr/include/wchar.h:13,
                 from /usr/include/widec.h:30,
                 from /usr/include/curses.h:23,
                 from /home/brane/eval/egcs/build/egcs/gcc/include/curses.h:5,
                 from /home/brane/eval/egcs/build/egcs/gcc/include/curses.h:5:
/usr/include/sys/isa_defs.h:340: #error "ISA not supported"
fix-header: In file included from /usr/include/limits.h:19,
                 from /home/brane/eval/egcs/build/egcs/gcc/include/limits.h:117,
                 from /home/brane/eval/egcs/build/egcs/gcc/include/syslimits.h:7
,
                 from /home/brane/eval/egcs/build/egcs/gcc/include/limits.h:11:
/usr/include/sys/isa_defs.h:340: #error "ISA not supported"
--------

The problem seems to be a missing `-Dsparc' or `-D__sparc';
sys/isa_defs.h looks essentially like this:

--------
#ifndef _SYS_ISA_DEFS_H
#define _SYS_ISA_DEFS_H

#ifdef  __cplusplus
extern "C" {
#endif

...

#if defined(__i386) || defined(i386)
...
#if !defined(__i386)
#define __i386
#endif

...

#elif defined(__ppc)

...

#elif defined(__sparc) || defined(sparc)

/*
 * Make sure that the ANSI-C "politically correct" symbol is defined.
 */
#if !defined(__sparc)
#define __sparc
#endif
...
#if defined(__sparcv8) && defined(__sparcv9)
#error  "SPARC Versions 8 and 9 are mutually exclusive choices"
#endif
...
#if !defined(__sparcv9) && !defined(__sparcv8)
#define __sparcv8
#endif

...

#if defined(__sparcv8)

...

#elif defined(__sparcv9)

...

#else
#error  "unknown SPARC version"
#endif
...
#else
#error "ISA not supported"
#endif

#ifdef  __cplusplus
}
#endif

#endif  /* _SYS_ISA_DEFS_H */
--------

    Brane

--
Branko Čibej                 <branko.cibej@hermes.si>
HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia
voice: (+386 61) 186 53 49   fax: (+386 61) 186 52 70



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