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,b70281e9df653875 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-05 21:25:19 PST Message-ID: <3FA9DA39.3090607@nowhere.com> Date: Thu, 06 Nov 2003 13:20:57 +0800 From: Adrian Hoe User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:0.9.4.1) Gecko/20020518 Netscape6/6.2.3 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: gcc/gnat 3.3 References: <3f8fff8b$1_1@news.tm.net.my> <3f98ec41_1@news.tm.net.my> <3f9ded55$1_2@news.tm.net.my> <3f9e8c01$1_2@news.tm.net.my> <_MDnb.37361$mZ5.190069@attbi_s54> <3fa348e4$1_1@news.tm.net.my> <3FA621A2.8020205@nowhere.com> <3FA9D6D1.9050803@nowhere.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 219.95.190.26 X-Original-NNTP-Posting-Host: 219.95.190.26 X-Trace: news.tm.net.my 1068096236 219.95.190.26 (6 Nov 2003 13:23:56 +0800) Organization: TMnet Malaysia Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.mathworks.com!news-out.cwix.com!newsfeed.cwix.com!news1.tm.net.my Xref: archiver1.google.com comp.lang.ada:2118 Date: 2003-11-06T13:20:57+08:00 List-Id: Adrian Hoe wrote: > Andreas Almroth wrote: > >> >> I only say: Use GNU make. >> The Makefiles are in some cases using gmake only contructs. I believe it >> is also mentioned in the build documentation... >> >> Godd luck building it! Should not be hard now, as the configure script >> found ada. >> > > > > Argh! I mixed up both "make" and "gmake". I was so used to "make". > > > Now it began to compile but not for long. I encountered the following > problems: > > rm -rf libbackend.a > ar rc libbackend.a alias.o bb-reorder.o bitmap.o builtins.o > caller-save.o calls.o cfg.o cfganal.o cfgbuild.o cfgcleanup.o > cfglayout.o cfgloop.o cfgrtl.o combine.o conflict.o convert.o cse.o > cselib.o dbxout.o debug.o df.o diagnostic.o doloop.o dominance.o > dwarf2asm.o dwarf2out.o dwarfout.o emit-rtl.o except.o explow.o expmed.o > expr.o final.o flow.o fold-const.o function.o gcse.o genrtl.o > ggc-common.o global.o graph.o gtype-desc.o haifa-sched.o hashtable.o > hooks.o ifcvt.o insn-attrtab.o insn-emit.o insn-extract.o insn-opinit.o > insn-output.o insn-peep.o insn-recog.o integrate.o intl.o jump.o > langhooks.o lcm.o lists.o local-alloc.o loop.o mbchar.o optabs.o > params.o predict.o print-rtl.o print-tree.o profile.o ra.o ra-build.o > ra-colorize.o ra-debug.o ra-rewrite.o real.o recog.o reg-stack.o > regclass.o regmove.o regrename.o reload.o reload1.o reorg.o resource.o > rtl.o rtlanal.o rtl-error.o sbitmap.o sched-deps.o sched-ebb.o > sched-rgn.o sched-vis.o sdbout.o sibcall.o simplify-rtx.o ssa.o > ssa-ccp.o ssa-dce.o stmt.o stor-layout.o stringpool.o timevar.o toplev.o > tracer.o tree.o tree-dump.o tree-inline.o unroll.o varasm.o varray.o > version.o vmsdbgout.o xcoffout.o et-forest.o ggc-page.o sparc.o > ranlib libbackend.a > /opt/sfw/bin/gnat/gcc -g -DIN_GCC -W -Wall -Wwrite-strings > -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -DHAVE_CONFIG_H > -o cc1 \ > c-parse.o c-lang.o c-pretty-print.o attribs.o c-errors.o c-lex.o > c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o > c-opts.o c-format.o c-semantics.o c-objc-common.o c-dump.o libcpp.a > main.o libbackend.a ./intl/libintl.a ../libiberty/libiberty.a > Undefined first referenced > symbol in file > fibheap_delete_node libbackend.a(tracer.o) > physmem_total libbackend.a(ggc-common.o) > fibheap_empty libbackend.a(tracer.o) > htab_hash_string libbackend.a(dwarf2out.o) > fibheap_insert libbackend.a(tracer.o) > fibheap_new libbackend.a(tracer.o) > htab_create_alloc libbackend.a(cselib.o) > lbasename libcpp.a(cppfiles.o) > fibheap_delete libbackend.a(tracer.o) > fibheap_extract_min libbackend.a(tracer.o) > reconcat c-aux-info.o > ld: fatal: Symbol referencing errors. No output written to cc1 > gmake[1]: *** [cc1] Error 1 > gmake[1]: Leaving directory `/home/byhoe/download/gcc-3.3.2/gcc-3.3.2/obj' > gmake: *** [stage1_build] Error 2 > > > Do you have any idea how to solve this? I see that I am close but not so > close yet. :( > > > Thanks. :) These undefined symbols can be found in the C source files under the directory gcc-3.3.2/libiberty When I did gmake bootstrap, it gave me an error for missing libiberty.a. So I copied the file from one of the system lib directory. It seems like gcc bootstrap needs to compile those files in gcc-3.3.2/libiberty to produce libiberty.a. Is my assumption correct? If yes, how do I make libiberty? The Makefile does not have the lines to make libiberty.a How?-- Adrian Hoe m a i l b o x AT a d r i a n h o e . c o m