Compiler-Error while compiling GCC 2.95.2 under LynxOS 2.5.1

Roland Ortloff roland.ortloff@daimlerchrysler.com
Mon Jan 10 23:32:00 GMT 2000


Hello,

we try to compile GCC 2.95.2 under LynxOS 2.5.1.

Configuring worked perfectly, but when "making" it,
we get the following error:

smart> make
make[2]: Nothing to be done for `all'.
make all-recursive
Making all in intl
make[3]: Nothing to be done for `all'.
Making all in lib
make[3]: Nothing to be done for `all'.
Making all in makeinfo
make[3]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
gcc  -DIN_GCC -DHAIFA    -g -O2  -DHAVE_CONFIG_H    -I. -I../../srcdir/gcc
-I../../srcdir/gcc/config -I../../srcdir/gcc/../include \

-DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/rs6000-unknown-lynxos2.5.1/2.95.2/inc
lude\" \

-DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/rs6000-unknown-lynxos2.5.1/2.95
.2/../../../..`echo /usr/local | sed -e 's|^/usr/local||' -e
's|/[^/]*|/..|g'`/include/g++-\" \
  -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \

-DCROSS_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/rs6000-unknown-lynxos2.5.1/2.95.2/.
./../../../rs6000-unknown-lynxos2.5.1/sys-include\" \

-DTOOL_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/rs6000-unknown-lynxos2.5.1/2.95.2/..
/../../../rs6000-unknown-lynxos2.5.1/include\" \
  -c `echo ../../srcdir/gcc/cccp.c | sed 's,^\./,,'`
In file included from ../../srcdir/gcc/config/rs6000/lynx.h:52,
                 from tm.h:5,
                 from ../../srcdir/gcc/config/rs6000/xm-lynx.h:35,
                 from config.h:8,
                 from ../../srcdir/gcc/cccp.c:21:
../../srcdir/gcc/config/rs6000/rs6000.h:53: warning: `CPP_SPEC' redefined
../../srcdir/gcc/config/lynx.h:31: warning: this is the location of the
previous definition
In file included from ../../srcdir/gcc/system.h:189,
                 from ../../srcdir/gcc/cccp.c:23:
/usr/lib/gcc-lib/ppc-unknown-lynxos2.5/2.7-96q1/../../../../include/sys/time.h:2
1: warning: #warning Using <time.h> instead of <sys/time.h>
In file included from
/usr/lib/gcc-lib/ppc-unknown-lynxos2.5/2.7-96q1/../../../../include/sys/wait.h:1
8,
                 from ../../srcdir/gcc/system.h:237,
                 from ../../srcdir/gcc/cccp.c:23:
../../srcdir/gcc/resource.h:33: error: syntax error before `HARD_REG_SET'
../../srcdir/gcc/resource.h:36: error: syntax error before `struct'
../../srcdir/gcc/resource.h:37: error: syntax error before `struct'
../../srcdir/gcc/resource.h:39: error: syntax error before `struct'
../../srcdir/gcc/resource.h:40: warning: parameter names (without types) in
function declaration
../../srcdir/gcc/resource.h:41: warning: parameter names (without types) in
function declaration
../../srcdir/gcc/resource.h:42: error: syntax error before `int'
../../srcdir/gcc/resource.h:43: warning: parameter names (without types) in
function declaration
../../srcdir/gcc/resource.h:45: error: syntax error before `find_free_register'
../../srcdir/gcc/resource.h:45: error: syntax error before `char'
../../srcdir/gcc/resource.h:46: warning: data definition has no type or
storageclass
In file included from ../../srcdir/gcc/system.h:237,
                 from ../../srcdir/gcc/cccp.c:23:
/usr/lib/gcc-lib/ppc-unknown-lynxos2.5/2.7-96q1/../../../../include/sys/wait.h:9
9: warning: `struct rusage' declared inside parameter list
/usr/lib/gcc-lib/ppc-unknown-lynxos2.5/2.7-96q1/../../../../include/sys/wait.h:9
9: warning: its scope is only this definition or declaration,
/usr/lib/gcc-lib/ppc-unknown-lynxos2.5/2.7-96q1/../../../../include/sys/wait.h:9
9: warning: which is probably not what you want.
make[1]: *** [cccp.o] Error 1
make: *** [all-gcc] Error 2
smart>


It seems that HARD_REG_SET is now known.

Any help would be greatly appreciated.

Thank you very much in advance,

Roland Ortloff



More information about the Gcc-bugs mailing list