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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,5f14691e88205f0c,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!i10g2000yqh.googlegroups.com!not-for-mail From: Tom Newsgroups: comp.lang.ada Subject: Building GNAT Date: Mon, 3 May 2010 08:04:28 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 173.29.157.41 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1272899068 32406 127.0.0.1 (3 May 2010 15:04:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 3 May 2010 15:04:28 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i10g2000yqh.googlegroups.com; posting-host=173.29.157.41; posting-account=cl5BOgoAAABrMbXC_XIqL102qJaIFR34 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:11303 Date: 2010-05-03T08:04:28-07:00 List-Id: Is this an appropriate forum for discussing GNAT build problems? I am attempting to build a GNAT cross compiler targeting bare metal PowerPC platforms. After successfully getting past binutils, the first pass of GCC, and Newlib, I'm getting stuck on the final pass of GCC and GNAT. When linking gnatmake, the linker is throwing a bunch of undefined references from osint.adb (such as __gnat_is_writable_file_attr). See log below. Many of the challenges I've had to this point have been around this use of and sockets, neither of which are needed on my target platform. Is there any way to configure GNAT not to build all this OS related stuff? Recent discussions I've have with some of the issues encountered so far: http://comments.gmane.org/gmane.comp.lib.newlib/6132 http://comments.gmane.org/gmane.comp.gcc.help/32672 Thanks for any help! -Tom gcc -c -I./ -I/usr/lib/gcc/i486-linux-gnu/4.4.3/adalib/../adainclude - I/usr/lib/gcc/i486-linux-gnu/4.4.3/adalib/ -I. -I/home/e0082888/build- powerpc-eabi/gcc-4.5.0/gcc/ada -g -O2 -W -Wall -Wwrite-strings - Wstrict-prototypes -Wmissing-prototypes -gnatpg -gnata -I- /home/ e0082888/build-powerpc-eabi/gcc-4.5.0/gcc/ada/prj-strt.adb gnatbind -I/usr/lib/gcc/i486-linux-gnu/4.4.3/adalib/../adainclude -I/ usr/lib/gcc/i486-linux-gnu/4.4.3/adalib/ -I. -I/home/e0082888/build- powerpc-eabi/gcc-4.5.0/gcc/ada -static -x gnatmake gnatlink -v gnatmake -o ../../gnatmake \ --GCC="gcc -static-libgcc -I/usr/lib/gcc/i486-linux-gnu/4.4.3/ adalib/../adainclude -I/usr/lib/gcc/i486-linux-gnu/4.4.3/adalib/ -I. - I/home/e0082888/build-powerpc-eabi/gcc-4.5.0/gcc/ada" ../../ prefix.o ../../version.o targext.o link.o ../../../libiberty/ libiberty.a GNATLINK 4.4.3 Copyright (C) 1995-2008, Free Software Foundation, Inc. gcc -c -gnatA -gnatWb -gnatiw -static-libgcc -I/usr/lib/gcc/i486-linux- gnu/4.4.3/adalib/../adainclude -I/usr/lib/gcc/i486-linux-gnu/4.4.3/ adalib/ -I. -I/home/e0082888/build-powerpc-eabi/gcc-4.5.0/gcc/ada - gnatws /home/e0082888/build-powerpc-eabi/build-gcc/gcc/ada/tools/ b~gnatmake.adb /usr/bin/gcc b~gnatmake.o ../../prefix.o ../../version.o targext.o link.o ./alloc.o ./debug.o ./gnatvsn.o ./gnatmake.o ./rident.o ./ sfn_scan.o ./types.o ./hostparm.o ./krunch.o ./csets.o ./output.o ./ stylesw.o ./tree_io.o ./stand.o ./opt.o ./table.o ./stringt.o ./ binderr.o ./fname.o ./fname-sf.o ./fmap.o ./ali.o ./switch.o ./ sdefault.o ./sinput-c.o ./snames.o ./targparm.o ./osint.o ./butil.o ./ tempdir.o ./uintp.o ./err_vars.o ./erroutc.o ./urealp.o ./scans.o ./ mlib-utl.o ./mlib-fil.o ./mlib-tgt-specific.o ./prj-attr-pm.o ./prj- com.o ./prj-attr.o ./mlib-tgt.o ./mlib.o ./prj-env.o ./prj-ext.o ./prj- pp.o ./prj-util.o ./makeutl.o ./atree.o ./sinfo.o ./einfo.o ./ uname.o ./lib.o ./styleg.o ./nlists.o ./mlib-prj.o ./switch-m.o ./ usage.o ./makeusg.o ./widechar.o ./sinput.o ./fname-uf.o ./namet.o ./ osint-m.o ./scng.o ./casing.o ./ali-util.o ./errutil.o ./make.o ./prj- err.o ./sinput-p.o ./prj-strt.o ./prj-proc.o ./prj-part.o ./prj- pars.o ./prj-dect.o ./prj-conf.o ./prj-tree.o ./prj-nmsc.o ./prj.o - o ../../gnatmake ../../../libiberty/libiberty.a -L./ -L/usr/lib/gcc/ i486-linux-gnu/4.4.3/adalib/../adainclude/ -L/usr/lib/gcc/i486-linux- gnu/4.4.3/adalib/ -L./ -L/home/e0082888/build-powerpc-eabi/gcc-4.5.0/ gcc/ada/ -L/usr/lib/gcc/i486-linux-gnu/4.4.3/adalib/ /usr/lib/gcc/i486- linux-gnu/4.4.3/adalib/libgnat.a -static-libgcc -static-libgcc -I/usr/ lib/gcc/i486-linux-gnu/4.4.3/adalib/../adainclude -I/usr/lib/gcc/i486- linux-gnu/4.4.3/adalib/ -I. -I/home/e0082888/build-powerpc-eabi/ gcc-4.5.0/gcc/ada ./osint.o: In function `osint__is_writable_file': /home/e0082888/build-powerpc-eabi/gcc-4.5.0/gcc/ada/osint.adb:1767: undefined reference to `__gnat_is_writable_file_attr' ./osint.o: In function `osint__is_symbolic_link': /home/e0082888/build-powerpc-eabi/gcc-4.5.0/gcc/ada/osint.adb:1754: undefined reference to `__gnat_is_symbolic_link_attr' ./osint.o: In function `osint__is_regular_file': /home/e0082888/build-powerpc-eabi/gcc-4.5.0/gcc/ada/osint.adb:1741: undefined reference to `__gnat_is_regular_file_attr' /home/e0082888/build-powerpc-eabi/gcc-4.5.0/gcc/ada/osint.adb:1741: undefined reference to `__gnat_is_regular_file_attr'