| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <004e01c19980$0ddc75a0$928e1941@alleluja> |
| From: | "hongxun lee" <lee DOT 1801 AT osu DOT edu> |
| To: | "cygwin mailing list" <cygwin AT cygwin DOT com> |
| Subject: | Ada compiler: gnat-3.13p-i686-pc-linux-gnu-bin |
| Date: | Wed, 9 Jan 2002 21:39:35 -0500 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook Express 6.00.2600.0000 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
------=_NextPart_000_0049_01C19956.21E5CCB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Has anybody installed gnat-3.13p-i686-pc-linux-gnu-bin on your Cygwin or
similar unix os?
I ran its setup script (named 'doconfig', originally in Csh, and i just
changed the first line to Tcsh since Csh is not included in Cygwin
distribution yet) on Cygwin, and the err msg is:
$./doconfig
./xgcc: 1: Syntax error: "(" unexpected
./xgcc: 1: Syntax error: "(" unexpected
What have i done wrong?
The script 'doconfig' is attached. Sorry for inconvience.
------=_NextPart_000_0049_01C19956.21E5CCB0
Content-Type: application/octet-stream;
name="doconfig.dat"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="doconfig.dat"
#!/bin/tcsh -f
set basever =3D `./xgcc -dumpversion`
set machine =3D `./xgcc -dumpmachine`
set outname =3D doinstall
set tmpout =3D tmp-doinstall
rm -f $tmpout
#clear
cat << EOF
This script is provided to simplify the installation of the $machine
binary version of the GNAT Ada 95 compiler which is now maintained by
Ada Core Technologies. For information on commerical support please
contact sales AT gnat DOT com.
This script asks a few questions about how you want GNAT configured
and then creates a file in this directory which can then be invoked
to do the actual installation. Running this configuration script will
not modify anything anywhere else in your system. You can break
out of it or run it multiple times before doing the actual =
installation.
Hit RETURN to continue.
EOF
set x =3D $<
#clear
cat << EOF
There are 2 options for installation:
2) Install GCC C compiler and GNAT files in the standard GNAT =
locations.
(Note: This includes directories under /usr/gnat. On most
systems, this requires root permission).
3) Install GCC C compiler and GNAT files in non-standard locations
that you will specify.
Options 2 provides simplest and most flexible use of GNAT.
EOF
while (1)
echo Type 2, or 3 "(then RETURN)" to choose an option:
set answer =3D $<
switch ($answer)
case [2]:
goto install-std
breaksw
case [3]:
goto install-non
breaksw
endsw
end
# --------------------------- Option 2 selected -----------------------
install-std:
# clear
set prefix =3D /usr/gnat
set bindir =3D $prefix/bin
set libsubdir =3D $prefix/lib/gcc-lib/$machine/$basever
mv -f .gnat_wrapper .gnat_wrapper.old
if ( -d $libsubdir ) goto no-stdinstall
cat << EOF
The installation in the GCC standard locations will install:
In $bindir :
gcc gnatbind gnatbl gnatchop gnatfind gnatkr gnatls gnatlink =
gnatmake
gnatmem gnatprep gnatpsta gnatpsys gnatxref gcov gdb gdbtk
gnatelim gnatstub addr2line objdump
In $libsubdir :
gnat1 cc1 cpp ld libgcc.a specs
and libgthreads.a
In $libsubdir/adainclude :
The source files of the RTL
In $libsubdir/adalib :
The object & ali files of the RTL
and libgnat.a
EOF
echo make ins-all bindir=3D$prefix/bin >$tmpout
goto fin
no-stdinstall:
cat << EOF
Some gcc-$basever files were found. They should be removed before
using this option, or you should choose another option.
EOF
rm -f $outname
exit 1
# --------------------------- Option 3 selected -----------------------
install-non:
clear
cat << EOF
To install GNAT is a non-standard location you need to specify a
base directory. All the files will be installed in subdirectories
that are created under this directory.
Specify the base directory you want to use for installation:
EOF
set basedir =3D $<
while (1)
if ( X =3D=3D X`echo $basedir|sed -n -e 's%^/.*%/%p'`) then
set basedir =3D `pwd`/$basedir
endif
echo " " The base directory is $basedir
echo " " To accept this choice enter RETURN.
echo " " Otherwise type a new name.
set answer =3D $<
if ( X$answer =3D=3D X ) break
set basedir =3D $answer
end
clear
set prefix =3D $basedir
set bindir =3D $prefix/bin
set libsubdir =3D $prefix/lib/gcc-lib/$machine/$basever
mv -f .gnat_wrapper.old .gnat_wrapper
cat << EOF
The installation of GNAT will install:
In $bindir :
gcc gnatbind gnatbl gnatchop gnatfind gnatkr gnatls gnatlink =
gnatmake
gnatmem gnatprep gnatpsta gnatpsys gnatxref gcov gdb gdbtk
gnatelim gnatstub addr2line objdump
In $libsubdir :
gnat1 cc1 cpp ld libgcc.a specs
and libgthreads.a
In $libsubdir/adainclude :
The source files of the RTL
In $libsubdir/adalib :
The object & ali files of the RTL
and libgnat.a
EOF
echo make ins-all prefix=3D$prefix >$tmpout
echo "echo Warning: this file is obsolete and does nothing." > =
env-vals
cp env-vals env-vals.sh
cat << EOF
The files env-vals & env_vals.sh have been created for upward
compatibility with previous GNAT versions, but they are *not* =
needed.
EOF
# ------- fin -------
fin:
rm -f $outname
mv $tmpout $outname
chmod +x $outname
echo Configuration complete. Run $outname to do the installation.
echo DO NOT FORGET: put $bindir at the front of your PATH
echo ""
exit
------=_NextPart_000_0049_01C19956.21E5CCB0
Content-Type: text/plain; charset=us-ascii
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
------=_NextPart_000_0049_01C19956.21E5CCB0--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |