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]

gcc-3.4.3 cross cygwin -> rs6000-lynx


When trying to build above mentioned cross, I get a few hundred errors.

This is the configuration (from config.status):
# ./configure  --target=rs6000-lynxos --prefix=/lynx
--enable-languages=ada,c --disable-nls --enable-threads=gnat
--enable-version-s
pecific-runtime-libs --with-headers=/lynx/targetfiles/include
--with-libs=/lynx/targetfiles/lib --disable-multilib --with-gnu-as --w
ith-gnu-ld
--with-gcc-version-trigger=/cygdrive/m/CML/Gcc/gcc-3.4.3/gcc/version.c


This is what happens:

make[1]: Entering directory `/cygdrive/m/CML/Gcc/gcc-3.4.3/gcc'
echo "/* This file is machine generated.  Do not edit.  */" > tmp-gtyp.h
echo "static const char *const srcdir = "  >> tmp-gtyp.h
echo "\".\"" >> tmp-gtyp.h
echo ";" >> tmp-gtyp.h
echo "static const char *const lang_files[] = {" >> tmp-gtyp.h
ll="./ada/ada-tree.h  ./ada/gigi.h  ./ada/decl.c  ./ada/trans.c
./ada/utils.c  ./c-lang.c  ./c-parse.in  ./c-tree.h  ./c-decl.c  ./
c-common.c  ./c-common.h  ./c-pragma.c  ./c-objc-common.c "; \
for f in $ll; do \
echo "\"$f\", "; done >> tmp-gtyp.h
echo "NULL};" >> tmp-gtyp.h
echo "static const char *const langs_for_lang_files[] = {" >> tmp-gtyp.h
ff="ada  ada  ada  ada  ada  c  c  c  c  c  c  c  c "; \
for f in $ff; do \
echo "\"$f\", " ; done  >> tmp-gtyp.h
echo "NULL};" >> tmp-gtyp.h
echo "static const char *const all_files[] = {" >> tmp-gtyp.h
gf="./input.h ./coretypes.h ./cpplib.h auto-host.h ./../include/ansidecl.h
./config/i386/xm-cygwin.h ./config/svr3.h ./config/lynx.h
 ./config/rs6000/lynxbase.h ./config/rs6000/rs6000.h ./config/rs6000/lynx.h
./defaults.h ./../include/hashtab.h ./../include/splay-t
ree.h ./bitmap.h ./coverage.c ./function.h  ./rtl.h ./optabs.h ./tree.h
./libfuncs.h ./hashtable.h ./real.h ./varray.h ./insn-addr.h
 ./cselib.h ./basic-block.h  ./cgraph.h ./c-common.h ./c-tree.h ./alias.c
./bitmap.c ./cselib.c ./cgraph.c ./dbxout.c ./dwarf2out.c
./dwarf2asm.c ./emit-rtl.c ./except.c ./explow.c ./expr.c ./fold-const.c
./function.c ./gcse.c ./integrate.c ./lists.c ./optabs.c ./
profile.c ./ra-build.c ./regclass.c ./reg-stack.c ./cfglayout.c
./langhooks.c ./sdbout.c ./stmt.c ./stor-layout.c ./stringpool.c ./t
ree.c ./varasm.c ./config/rs6000/rs6000.c ./ada/ada-tree.h ./ada/gigi.h
./ada/decl.c ./ada/trans.c ./ada/utils.c ./c-lang.c ./c-pars
e.in ./c-tree.h ./c-decl.c ./c-common.c ./c-common.h ./c-pragma.c
./c-objc-common.c"; \
for f in $gf; do \
echo "\"$f\", "; done >> tmp-gtyp.h
echo " NULL};" >> tmp-gtyp.h
echo "static const char *const lang_dir_names[] = { \"c\", " >> tmp-gtyp.h
gf="ada"; \
for l in $gf; do \
echo "\"$l\", "; done >> tmp-gtyp.h
echo "NULL};" >> tmp-gtyp.h
/bin/sh ./move-if-change tmp-gtyp.h gtyp-gen.h
gtyp-gen.h is unchanged
gcc -c   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
    -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I. -I./. -I./../include
insn-conditions.c
insn-conditions.c:62: error: `DEFAULT_ABI' undeclared here (not in a
function)
.
.
.
insn-conditions.c:538: error: (near initialization for
`insn_conditions[141]')
insn-conditions.c:540: error: `TARGET_OBJECT_FORMAT' undeclared here (not in
a function)
insn-conditions.c:540: error: `TARGET_OBJECT_FORMAT' undeclared here (not in
a function)
insn-conditions.c:540: error: initializer element is not constant
insn-conditions.c:540: error: (near initialization for
`insn_conditions[142].value')

What do I have to do in order to get DEFAULT_ABI and TARGET_OBJECT_FORMAT
defined correctly??
I guess that they both depend on the same (missing) thing.

Erlo Haugen
System Software Engineer
Aerospace & Defense

Terma A/S
Vasekær 12
2730 Herlev
Denmark

T +45 8743 6000 
T +45 4594 9851 (direct)
F +45 8743 6001 
E elh@terma.com 
w www.terma.com 
____________________________________________________________________

Attention: 

This e-mail (and attachment(s), if any) - intended 
for the addressee(s) only - may contain confidential, 
copyright, or legally privileged information or material, 
and no one else is authorized to read, print, store, copy, 
forward, or otherwise use or disclose any part of its 
contents or attachment(s) in any form. If you have 
received this e-mail in error, please notify me by 
telephone or return e-mail, and delete this e-mail
and attachment(s). Thank you.

E-mail sent over the Internet can be tampered with. 
Therefore, neither Terma nor the sender of this e-mail 
assumes any responsibility for the contents of this e-mail.
____________________________________________________________________
 

------
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]