This is the mail archive of the gcc-help@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]

Fw: Cross-compiling gcc-2.95.2 for lynxOS


Hello,
I was trying to cross-compile gcc-2.95.2 for lynxOS 3.0.1, and i got this
error:

gcc -DCROSS_COMPILE -DIN_GCC   -DSVR4  -g -O2  -DHAVE_CONFIG_H    -I. -I../.
./..
/gcc/gcc-2.95.2/gcc -I../../../gcc/gcc-2.95.2/gcc/config -I../../../gcc/gcc-
2.95
.2/gcc/../include \
  -DGCC_INCLUDE_DIR=\"/sl16/sw/src//lib/gcc-lib/m68k-lynxos/2.95.2/include\"
\
  -DGPLUSPLUS_INCLUDE_DIR=\"/sl16/sw/src//lib/gcc-lib/m68k-lynxos/2.95.2/../
../.
./..`echo /sl16/sw/src/ | sed -e 's|^/sl16/sw/src/||' -e
's|/[^/]*|/..|g'`/inclu
de/g++-3\" \
  -DLOCAL_INCLUDE_DIR=\"/sl16/sw/src//include\" \
  -DCROSS_INCLUDE_DIR=\"/sl16/sw/src//lib/gcc-lib/m68k-lynxos/2.95.2/../../.
./..
/m68k-lynxos/sys-include\" \
  -DTOOL_INCLUDE_DIR=\"/sl16/sw/src//lib/gcc-lib/m68k-lynxos/2.95.2/../../..
/../
m68k-lynxos/include\" \
  -c `echo ../../../gcc/gcc-2.95.2/gcc/cccp.c | sed 's,^\./,,'`
In file included from ../../../gcc/gcc-2.95.2/gcc/system.h:189,
                 from ../../../gcc/gcc-2.95.2/gcc/cccp.c:23:
/lynx/ppc/3.0.1/ppc/usr/include/sys/time.h:21: warning: #warning Using
<time.h>
instead of <sys/time.h>
In file included from /lynx/ppc/3.0.1/ppc/usr/include/sys/wait.h:18,
                 from ../../../gcc/gcc-2.95.2/gcc/system.h:237,
                 from ../../../gcc/gcc-2.95.2/gcc/cccp.c:23:
../../../gcc/gcc-2.95.2/gcc/resource.h(33) : error: syntax error before
`HARD_RE
G_SET'
../../../gcc/gcc-2.95.2/gcc/resource.h(36) : error: syntax error before
`struct'
../../../gcc/gcc-2.95.2/gcc/resource.h(37) : error: syntax error before
`struct'
../../../gcc/gcc-2.95.2/gcc/resource.h(39) : error: syntax error before
`struct'
../../../gcc/gcc-2.95.2/gcc/resource.h(40) : warning: parameter names
(without t
ypes) in function declaration
../../../gcc/gcc-2.95.2/gcc/resource.h(41) : warning: parameter names
(without t
ypes) in function declaration
../../../gcc/gcc-2.95.2/gcc/resource.h(42) : error: syntax error before
`int'
../../../gcc/gcc-2.95.2/gcc/resource.h(43) : warning: parameter names
(without t
ypes) in function declaration
../../../gcc/gcc-2.95.2/gcc/resource.h(45) : error: syntax error before
`find_fr
ee_register'
../../../gcc/gcc-2.95.2/gcc/resource.h(45) : error: syntax error before
`char'
../../../gcc/gcc-2.95.2/gcc/resource.h(46) : warning: data definition has no
typ
e or storage class
In file included from ../../../gcc/gcc-2.95.2/gcc/system.h:237,
                 from ../../../gcc/gcc-2.95.2/gcc/cccp.c:23:
/lynx/ppc/3.0.1/ppc/usr/include/sys/wait.h(99) : warning: `struct rusage'
declar
ed inside parameter list
/lynx/ppc/3.0.1/ppc/usr/include/sys/wait.h(99) : warning: its scope is only
this
 definition or declaration,
/lynx/ppc/3.0.1/ppc/usr/include/sys/wait.h(99) : warning: which is probably
not
what you want.
make[1]: *** [cccp.o] Error 1
make: *** [all-gcc] Error 1

What could this be due to? I am using gcc 2.7-97r1 and 3.67-94q4 , and I am
on a system sparc-sun-solaris2.6 . First i've built successfully binutils
2.10.1 with the same configuration, and configuring with
"configure --target=m68k-lynxOS -v". Anyone can help?

Thanks,
Telmo


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