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: 103376,84ebb57fe3fa097c X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail From: "Dwight Schauer" Newsgroups: comp.lang.ada Subject: Re: Help with getting GNAT Ada running on 64-bit Gentoo Linux Date: 26 Mar 2005 00:45:50 -0800 Organization: http://groups.google.com Message-ID: <1111826750.382122.170630@f14g2000cwb.googlegroups.com> References: <412BCB7B.9010905@ig.com.br> <1109468833.465022.175590@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: 64.219.100.33 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1111826755 15349 127.0.0.1 (26 Mar 2005 08:45:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 26 Mar 2005 08:45:55 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: f14g2000cwb.googlegroups.com; posting-host=64.219.100.33; posting-account=58QzDA0AAABR06_6VzJX-T8uIly0bWp4 Xref: g2news1.google.com comp.lang.ada:10018 Date: 2005-03-26T00:45:50-08:00 List-Id: I checked out GCC from CVS on a Fedora Core 3 X86_64 box. I bootstrapped GCC 4.0.0 20050325 (prerelease) with full gnat/ada support using gnatgcc (GCC) 3.4.3 20050227 (Red Hat 3.4.3-22.fc3) . I installed it to an alternate directory. (Not /usr). I copied it over to my gentoo amd64 box (a no multilib profile) and after a bit of mucking around was able to get the same bootstrap working on Gentoo. I had to symlink gnatgcc to gcc in the alternate bin directory, as some parts of the compile were using gcc rather than the CC or ADAC variable and were breaking as result. I put that alternate bin directory as the first one in executeable path in my build script. Since the gcc symlink is in the path first, the one in /usr/bin is not used. I was able to successfully bootstrap again on Gentoo amd64 using the gnatgcc built on Gentoo amd64. I've not tried to make a Gentoo ebuild for it yet. Here is the script I used to build it: #!/bin/bash function bye { exit ${1} } function die { echo "*** ${1}" echo "*** error at line ${BASH_LINENO[$i]}" echo "*** fatal" bye -1 } S=../../gcc-cvs/gcc #export PATH=/opt/local-tools/host-gcc-ada-3.4.3/bin:${PATH} #export CC=/opt/local-tools/host-gcc-ada-3.4.3/bin/gnatgcc #export ADAC=/opt/local-tools/host-gcc-ada-3.4.3/bin/gnatgcc export PATH=/opt/local-tools/host-gnat-cvs-gcc4/bin:${PATH} #export PATH=/opt/local-tools/host-gnat-cvs/bin:${PATH} #export CC=/opt/local-tools/host-gnat-cvs/bin/gnatgcc #export ADAC=/opt/local-tools/host-gnat-cvs/bin/gnatgcc INSTALL_PREFIX=/opt/local-tools TARGET_COMPILER=host-gnat-cvs-gcc4-native PREFIX=${INSTALL_PREFIX}/${TARGET_COMPILER} function configure_gnat { ${S}/configure --prefix=${PREFIX} \ --program-prefix=gnat \ --enable-languages="c,ada" \ --enable-libada \ --with-gcc \ --with-gnu-ld \ --with-gnu-as \ --enable-threads=posix \ --disable-shared \ --with-system-zlib \ --disable-nls \ --libdir=${PREFIX}/lib/ada \ --libexecdir=${PREFIX}/libexec/ada \ --mandir=${PREFIX}/share/man \ --infodir=${PREFIX}/share/info \ --disable-multilib \ || die "configure failed" } configure_gnat make bootstrap || die "bootstrap failed" ##make -C gcc gnatlib_and_tools || die "gnatlib_and_tools failed" make -C gcc/ada gnatlib || die "gnatlib" make || die "make" make install || die "make install" echo '****' echo done echo '****'