[AWS] Trouble compiling AWS on WinXP
Colwell, Samuel C @ VTC
SColwell at vtc.vsc.edu
Mon Jan 18 01:00:44 CET 2010
Pascal,
I've been fiddling with this a bit more to try to narrow down where the issue is. I made a hello world program in C:\temp named hello.adb. It compiles fine with gnatmake from a normal windows cmd prompt:
--------------------
C:\temp>gnatmake hello.adb
gcc -c hello.adb
gnatbind -x hello.ali
gnatlink hello.ali
C:\temp>hello
Hi There!
------------------
When I run the same command from /cygdrive/c/temp I get the same error I'm experiencing when I try to make AWS:
-----------------
$ gnatmake hello.adb
gcc -c hello.adb
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
gnatmake: "hello.adb" compilation error
-----------------
The commands you asked me to run appear to say that the gnatmake I'm running in both environments should be the same executable, yet it works from a windows CMD shell, but not from the Cygwin bash shell.
The outputs for the commands you listed are:
--------------------
$ gnatls -v
GNATLS GPL 2009 (20090519)
Copyright (C) 1997-2009, Free Software Foundation, Inc.
Source Search Path:
<Current_Directory>
C:/GNAT/2009/lib/gcc/i686-pc-mingw32/4.3.4/adainclude/
Object Search Path:
<Current_Directory>
C:/GNAT/2009/lib/gcc/i686-pc-mingw32/4.3.4/adalib/
Project Search Path:
<Current_Directory>
C:\GNAT\2009\lib\gnat\
-------------------
$ which gcc
/cygdrive/c/GNAT/2009/bin/gcc
-------------------
$ which gnatmake
/cygdrive/c/GNAT/2009/bin/gnatmake
------------------
________________________________________
From: aws-bounces at lists.adacore.com [aws-bounces at lists.adacore.com] On Behalf Of Pascal Obry [pascal at obry.net]
Sent: Sunday, January 17, 2010 4:04 PM
To: aws at lists.adacore.com
Subject: Re: [AWS] Trouble compiling AWS on WinXP
Sam,
> ---------------------------------------------------
> User at imac-win /cygdrive/c/aws_src$ make setup
> Setup conversion support
> gcc -c -I- -gnatA C:\aws_src\config\src\test_uconv.adb
>
> This application has requested the Runtime to terminate it in an unusual way.
> Please contact the application's support team for more information.
> gnatmake: "c:\aws_src\config\src\test_uconv.adb" compilation error
> make[2]: *** [../src/aws-translator-conversion.adb] Error 4
> make[1]: *** [config_setup] Error 2
> make: *** [setup_debug_static] Error 2
> ---------------------------------------------------
Hum, this is quite a big problem. It seems that your compiler is not
working properly. What is the ouptut for:
$ gnatls -v
$ which gcc
$ which gnatmake
> The version of make I'm using is:
>
> ---------------------------------------------------
> User at imac-win /cygdrive/c/aws_src$ make --version
> GNU Make 3.81
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
>
> This program built for i686-pc-cygwin
> ---------------------------------------------------
Fine, I'm using this version of make too.
> I'd also enjoy any suggestions on how to bring the library, pre-compiled
> to the various workstations. The reason for this is that the
> students may not have access to Cygwin or MSYS on the lab machines.
I would just install AWS:
$ make prefix=/path/to/install
$ make setup build install
And tar/zip the install directory (/path/to/install). This should work fine.
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net - http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B
_______________________________________________
AWS mailing list
AWS at lists.adacore.com
/no-more-mailman.html
More information about the AWS
mailing list