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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c29b14f3223f3446,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.8.135 with SMTP id r7mr23472169pba.8.1319378314718; Sun, 23 Oct 2011 06:58:34 -0700 (PDT) Path: c1ni3844pbr.0!nntp.google.com!news2.google.com!goblin2!goblin1!goblin.stu.neva.ru!feeder.news-service.com!tudelft.nl!txtfeed1.tudelft.nl!dedekind.zen.co.uk!zen.net.uk!hamilton.zen.co.uk!shaftesbury.zen.co.uk.POSTED!not-for-mail Date: Sun, 23 Oct 2011 14:59:03 +0100 From: Mark Murray User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Bootstrapping Gnu ADA onto FreeBSD/AMD64-CURRENT Message-ID: <4ea41d89$0$2553$da0feed9@news.zen.co.uk> Organization: Zen Internet NNTP-Posting-Host: 8423de54.news.zen.co.uk X-Trace: DXC=j1i\Xi?7BIUC_bB@9K;lY_nok4Z\ Hi all "AMD64" is what FreeBSD calls "X86_64". Hopefully this version of this question hasn't been asked too many times before! I'm building GCC-4.7 with Ada on FreeBSD/AMD64 with some success. I used an earlier version of FreeBSD's GNAT port (no longer available on more recent FreeBSD's) as the bootstrap compiler; this installs the binaries into /usr/local/bin/gcc44. After a minor fix, this compiler works fine _as_long_as_ the above directory is first in the path. If the above directory is NOT first in the path, then gnatmake uses gcc off the path, finding the local gcc in /usr/bin/gcc, which, because its not Ada-aware, fails. After GCC+Ada is built and installed into ${PREFIX}/bin (PREFIX is /usr/local here) the same problem exists with the newly compiled gnatmake (in /usr/local/bin); it runs "gcc", gets the one off the path in /usr/bin and breaks. Questions: 1) How do I get build gcc-4.7 such that the ${PREFIX}/bin/gnat* bits "know" that gcc${SUFFIX} or ${PREFIX}/ is to be used, and not the first "gcc" it finds on the path? Rearranging the path is not a permanent option, its OK for bootstrapping; "gcc" is "system gcc", if I want other gcc then I'd like to ask for that specifically with (say) "gcc47". 2) The rest of gcc built fine with a ${SUFFIX} of "47", so I get ${PREFIX}/bin/gcc47 etc. How do I get the same with ${PREFIX}/bin/gnat* and friends? Thanks! M -- Mark "No Nickname" Murray Notable nebbish, extreme generalist.