From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,98cc30e2d0a8b661,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-02 16:45:18 PST Path: archiver1.google.com!news2.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Cross compiler GCC-3.2.3 & gnat-5.0 Date: Fri, 03 Oct 2003 00:45:14 +0100 Message-ID: NNTP-Posting-Host: abyss2.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.demon.co.uk 1065138315 20267 62.49.62.197 (2 Oct 2003 23:45:15 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 2 Oct 2003 23:45:15 +0000 (UTC) User-Agent: Pan/0.13.4 (She had eyes like strange sins.) Xref: archiver1.google.com comp.lang.ada:136 Date: 2003-10-03T00:45:14+01:00 List-Id: Hi, I'm trying to cross compile a basic MIPS-GNAT compiler. Here is what I've done: tar -xjpf /usr/portage/distfiles/gcc-3.2.3.tar.bz2 cd gcc-3.2.3/gcc/ tar -xjpf /usr/portage/distfiles/gnat-5.0_pre20030822.tar.bz2 mv gnat-5.0_pre20030822 ada cd .. patch -p0 < gcc/ada/gcc-32.dif touch gcc/cstamp-h.in touch gcc/ada/[es]info.h touch gcc/ada/nmake.ad[bs] cd ../build-gcc-3.2.3 ../gcc-3.2.3/configure --prefix=/opt/mips-gnat/ --target=mips-elf --enable-languages=c,c++,ada --disable-nls 2>&1|tee conflog.txt make 2>&1|tee makelog.txt Basically, I've got a bit further, but still the compilation stops with the folowing: cp -p ../../../gcc-3.2.3/gcc/ada/einfo.ads ../../../gcc-3.2.3/gcc/ada/einfo.adb ../../../gcc-3.2.3/gcc/ada/xeinfo.adb bldtools (cd bldtools; gnatmake -q xeinfo ; ./xeinfo ../einfo.h ) gcc -c -DIN_GCC -DCROSS_COMPILE `echo -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I- -I. -I.. -I../../../gcc-3.2.3/gcc/ada -I../../../gcc-3.2.3/gcc/ada/.. -I../../../gcc-3.2.3/gcc/ada/../config -I../../../gcc-3.2.3/gcc/ada/../../include ../../../gcc-3.2.3/gcc/ada/targtyps.c \ -o targtyps.o gcc -c -DIN_GCC -DCROSS_COMPILE `echo -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I- -I. -I.. -I../../../gcc-3.2.3/gcc/ada -I../../../gcc-3.2.3/gcc/ada/.. -I../../../gcc-3.2.3/gcc/ada/../config -I../../../gcc-3.2.3/gcc/ada/../../include ../../../gcc-3.2.3/gcc/ada/decl.c \ -o decl.o ../../../gcc-3.2.3/gcc/ada/decl.c: In function `gnat_to_gnu_entity': ../../../gcc-3.2.3/gcc/ada/decl.c:2288: warning: comparison between signed and unsigned ../../../gcc-3.2.3/gcc/ada/decl.c:2999: warning: comparison between signed and unsigned ../../../gcc-3.2.3/gcc/ada/decl.c: In function `make_type_from_size': ../../../gcc-3.2.3/gcc/ada/decl.c:6039: warning: comparison between signed and unsigned ../../../gcc-3.2.3/gcc/ada/decl.c:6048: warning: comparison between signed and unsigned ../../../gcc-3.2.3/gcc/ada/decl.c: In function `check_ok_for_atomic': ../../../gcc-3.2.3/gcc/ada/decl.c:6162: warning: comparison between signed and unsigned gcc -c -DIN_GCC -DCROSS_COMPILE `echo -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I- -I. -I.. -I../../../gcc-3.2.3/gcc/ada -I../../../gcc-3.2.3/gcc/ada/.. -I../../../gcc-3.2.3/gcc/ada/../config -I../../../gcc-3.2.3/gcc/ada/../../include ../../../gcc-3.2.3/gcc/ada/misc.c \ -o misc.o gcc -c -DIN_GCC -DCROSS_COMPILE `echo -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I- -I. -I.. -I../../../gcc-3.2.3/gcc/ada -I../../../gcc-3.2.3/gcc/ada/.. -I../../../gcc-3.2.3/gcc/ada/../config -I../../../gcc-3.2.3/gcc/ada/../../include ../../../gcc-3.2.3/gcc/ada/utils.c \ -o utils.o gcc -c -DIN_GCC -DCROSS_COMPILE `echo -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I- -I. -I.. -I../../../gcc-3.2.3/gcc/ada -I../../../gcc-3.2.3/gcc/ada/.. -I../../../gcc-3.2.3/gcc/ada/../config -I../../../gcc-3.2.3/gcc/ada/../../include ../../../gcc-3.2.3/gcc/ada/utils2.c \ -o utils2.o ../../../gcc-3.2.3/gcc/ada/utils2.c: In function `build_constructor': ../../../gcc-3.2.3/gcc/ada/utils2.c:1558: warning: implicit declaration of function `initializer_constant_valid_p' gcc -c -DIN_GCC -DCROSS_COMPILE `echo -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I- -I. -I.. -I../../../gcc-3.2.3/gcc/ada -I../../../gcc-3.2.3/gcc/ada/.. -I../../../gcc-3.2.3/gcc/ada/../config -I../../../gcc-3.2.3/gcc/ada/../../include ../../../gcc-3.2.3/gcc/ada/trans.c \ -o trans.o ../../../gcc-3.2.3/gcc/ada/trans.c: In function `tree_transform': ../../../gcc-3.2.3/gcc/ada/trans.c:2773: warning: assignment discards `const' from pointer target type gcc -c -DIN_GCC -DCROSS_COMPILE `echo -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I- -I. -I.. -I../../../gcc-3.2.3/gcc/ada -I../../../gcc-3.2.3/gcc/ada/.. -I../../../gcc-3.2.3/gcc/ada/../config -I../../../gcc-3.2.3/gcc/ada/../../include ../../../gcc-3.2.3/gcc/ada/cuintp.c \ -o cuintp.o gcc -c -DIN_GCC -DCROSS_COMPILE `echo -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I- -I. -I.. -I../../../gcc-3.2.3/gcc/ada -I../../../gcc-3.2.3/gcc/ada/.. -I../../../gcc-3.2.3/gcc/ada/../config -I../../../gcc-3.2.3/gcc/ada/../../include ../../../gcc-3.2.3/gcc/ada/argv.c \ -o argv.o gcc -c -DIN_GCC -DCROSS_COMPILE `echo -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` \ -I- -I. -I.. -I../../../gcc-3.2.3/gcc/ada -I../../../gcc-3.2.3/gcc/ada/.. -I../../../gcc-3.2.3/gcc/ada/../config -I../../../gcc-3.2.3/gcc/ada/../../include ../../../gcc-3.2.3/gcc/ada/raise.c -o raise.o gcc -c -DIN_GCC -DCROSS_COMPILE `echo -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` \ -I- -I. -I.. -I../../../gcc-3.2.3/gcc/ada -I../../../gcc-3.2.3/gcc/ada/.. -I../../../gcc-3.2.3/gcc/ada/../config -I../../../gcc-3.2.3/gcc/ada/../../include ../../../gcc-3.2.3/gcc/ada/init.c -o init.o gcc -c -DIN_GCC -DCROSS_COMPILE `echo -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I- -I. -I.. -I../../../gcc-3.2.3/gcc/ada -I../../../gcc-3.2.3/gcc/ada/.. -I../../../gcc-3.2.3/gcc/ada/../config -I../../../gcc-3.2.3/gcc/ada/../../include \ -fno-omit-frame-pointer ../../../gcc-3.2.3/gcc/ada/tracebak.c -o tracebak.o ../../../gcc-3.2.3/gcc/ada/tracebak.c: In function `__gnat_backtrace': ../../../gcc-3.2.3/gcc/ada/tracebak.c:386: warning: unsigned value < 0 is always 0 gcc -DIN_GCC -DCROSS_COMPILE `echo -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -o ../gnat1 b_gnat1.o adadecode.o adaint.o cstreams.o cio.o targtyps.o decl.o misc.o utils.o utils2.o trans.o cuintp.o argv.o raise.o init.o tracebak.o ada.o a-charac.o a-chlat1.o a-except.o a-ioexce.o s-memory.o s-carun8.o s-casuti.o s-strcom.o s-purexc.o s-htable.o s-traceb.o s-mastop.o s-except.o ali.o alloc.o atree.o butil.o casing.o checks.o comperr.o csets.o cstand.o debug.o debug_a.o einfo.o elists.o errout.o erroutc.o err_vars.o eval_fat.o exp_attr.o exp_ch11.o exp_ch12.o exp_ch13.o exp_ch2.o exp_ch3.o exp_ch4.o exp_ch5.o exp_ch6.o exp_ch7.o exp_ch8.o exp_ch9.o exp_code.o exp_dbug.o exp_disp.o exp_dist.o exp_fixd.o exp_aggr.o exp_imgv.o exp_intr.o exp_pakd.o exp_prag.o exp_smem.o exp_strm.o exp_tss.o exp_util.o exp_vfpt.o expander.o fname.o fname-uf.o fmap.o freeze.o frontend.o gnat.o g-hesora.o g-htable.o g-os_lib.o g-speche.o g-string.o s-crc32.o get_targ.o gnatvsn.o hlo.o hostparm.o impunit.o interfac.o itypes.o inline.o krunch.o lib.o layout.o lib-load.o lib-util.o lib-xref.o lib-writ.o live.o namet.o nlists.o nmake.o opt.o osint.o osint-c.o output.o par.o prep.o prepcomp.o repinfo.o restrict.o rident.o rtsfind.o s-assert.o s-parame.o s-stache.o s-stalib.o s-imgenu.o s-stoele.o s-soflin.o s-traent.o s-exctab.o s-secsta.o s-wchcnv.o s-wchcon.o s-wchjis.o s-unstyp.o scans.o scng.o scn.o sdefault.o sem.o sem_aggr.o sem_attr.o sem_cat.o sem_ch10.o sem_ch11.o sem_ch12.o sem_ch13.o sem_ch2.o sem_ch3.o sem_ch4.o sem_ch5.o sem_ch6.o sem_ch7.o sem_ch8.o sem_ch9.o sem_case.o sem_disp.o sem_dist.o sem_elab.o sem_elim.o sem_eval.o sem_intr.o sem_maps.o sem_mech.o sem_prag.o sem_res.o sem_smem.o sem_type.o sem_util.o sem_vfpt.o sem_warn.o sinfo-cn.o sinfo.o sinput.o sinput-d.o sinput-l.o snames.o sprint.o stand.o stringt.o style.o styleg.o styleg-c.o switch.o switch-c.o stylesw.o validsw.o system.o table.o targparm.o tbuild.o tree_gen.o tree_io.o treepr.o treeprs.o ttypef.o ttypes.o types.o uintp.o uname.o urealp.o usage.o widechar.o back_end.o gnat1drv.o ../prefix.o ../main.o ../attribs.o ../libbackend.a ../../libiberty/libiberty.a rm -f ../stamp-gnatlib2 ../stamp-tools make[2]: Leaving directory `/usr/src/mine/mips-3.2/build-gcc-3.2.3/gcc/ada' make -C ada "AR_FLAGS_FOR_TARGET=" "AR_CREATE_FOR_TARGET=mips-elf-ar rc" "AR_EXTRACT_FOR_TARGET=mips-elf-ar x" "AR_FOR_TARGET=mips-elf-ar" "BISON=bison" "BISONFLAGS=" "CFLAGS=-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional " "DESTDIR=" "GCC_FOR_TARGET=/usr/src/mine/mips-3.2/build-gcc-3.2.3/gcc/xgcc -B/usr/src/mine/mips-3.2/build-gcc-3.2.3/gcc/ -B/opt/mips-gnat//mips-elf/bin/ -B/opt/mips-gnat//mips-elf/lib/ -isystem /opt/mips-gnat//mips-elf/include" "LDFLAGS=" "FLEX=flex" "FLEXFLAGS=" "LN=ln" "LN_S=ln -s" "MAKEINFO=makeinfo " "MAKEINFOFLAGS=" "MAKEOVERRIDES=" "RANLIB_FOR_TARGET=mips-elf-ranlib" "RANLIB_TEST_FOR_TARGET=[ -f mips-elf-ranlib ] || ( [ "i686-pc-linux-gnu" = "mips-unknown-elf" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" "SHELL=/bin/sh" "exeext=" "build_exeext=" "objext=.o" "exec_prefix=/opt/mips-gnat/" "prefix=/opt/mips-gnat/" "local_prefix=/usr/local" "gxx_include_dir=/opt/mips-gnat//lib/gcc-lib/mips-elf/3.2.3/../../../..`echo /opt/mips-gnat/ | sed -e 's|^/opt/mips-gnat/||' -e 's|/[^/]*|/..|g'`/include/c++/3.2.3" "build_tooldir=/opt/mips-gnat//mips-elf" "gcc_tooldir=/opt/mips-gnat//lib/gcc-lib/mips-elf/3.2.3/../../../../mips-elf" "bindir=/opt/mips-gnat//bin" "libsubdir=/opt/mips-gnat//lib/gcc-lib/mips-elf/3.2.3" "datadir=/opt/mips-gnat//share" "localedir=/opt/mips-gnat//share/locale" "CC=`echo gcc | sed -e 's|^ *[^ /][^ /]*/|%&|' -e 's| -B| -B%|g' -e 's|% *[^- /]|%&|g' -e 's|%% *|../|g' -e 's|%||g'`" "STAGE_PREFIX=`echo | sed -e 's|^ *[^ /][^ /]*/|%&|' -e 's| -B| -B%|g' -e 's|% *[^- /]|%&|g' -e 's|%% *|../|g' -e 's|%||g'`" "ADA_FOR_BUILD=" "ADA_INCLUDE_DIR=/opt/mips-gnat//lib/gcc-lib/mips-elf/3.2.3/adainclude" "ADA_RTL_OBJ_DIR=/opt/mips-gnat//lib/gcc-lib/mips-elf/3.2.3/adalib" "ADAFLAGS=-gnatpg -gnata" "ADA_FOR_TARGET=" "INSTALL_DATA=/bin/sh /usr/src/mine/mips-3.2/gcc-3.2.3/install-sh -c -m 644" "INSTALL_PROGRAM=/bin/sh /usr/src/mine/mips-3.2/gcc-3.2.3/install-sh -c " \ ../gnatbind make[2]: Entering directory `/usr/src/mine/mips-3.2/build-gcc-3.2.3/gcc/ada' gcc -c -DIN_GCC -DCROSS_COMPILE `echo -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I- -I. -I.. -I../../../gcc-3.2.3/gcc/ada -I../../../gcc-3.2.3/gcc/ada/.. -I../../../gcc-3.2.3/gcc/ada/../config -I../../../gcc-3.2.3/gcc/ada/../../include ../../../gcc-3.2.3/gcc/ada/exit.c \ -o exit.o make[2]: *** No rule to make target `../../../gcc-3.2.3/gcc/ada/config/mips/ecoff.h', needed by `final.o'. Stop. make[2]: Leaving directory `/usr/src/mine/mips-3.2/build-gcc-3.2.3/gcc/ada' make[1]: *** [gnatbind] Error 2 make[1]: Leaving directory `/usr/src/mine/mips-3.2/build-gcc-3.2.3/gcc' make: *** [all-gcc] Error 2 Does anyone know what this is going on about? It should be using ELF not ECOFF :-( Thanks, Luke.