Re: [Plplot-devel] Vastly improved configuration of Ada interface and examples for PLplot. Please test!

2007-03-15 Thread Orion Poplawski
Alan W. Irwin wrote:
 On 2007-03-14 17:09-0600 Orion Poplawski wrote:
 
 I'm having trouble on Fedora 6 and development, which use gnat 4.1.1 and
 4.1.2.  First off, libgnat appears to be /usr/lib/libgnat-4.1.so.
 
 Also, it appears to be picking up my CFLAGS and passing that to the
 gnatmake line:
 
 I have just committed tentative fixes for both issues.
 
 To deal with the first issue our build system now first looks for gnat then
 for gnat-4.1. (Version numbers in the root of library names cause on-going
 build system maintenance issues, but I guess we are stuck with this.)
 

My question is, since it does not appear that you directly specify 
libgnat anywhere in the make commands, why even look for it?

 To deal with the second issue, I have used the -cargs option for gnatmake
 (which should just pass on the content of FLAGS to the gcc compiler and
 not the Ada binder or linker).

This appears to work.

-- 
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA DivisionFAX: 303-415-9702
3380 Mitchell Lane  [EMAIL PROTECTED]
Boulder, CO 80301  http://www.cora.nwra.com

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel


Re: [Plplot-devel] Ada fixups for our CMake build system

2007-03-15 Thread Alan W. Irwin
On 2007-03-14 18:20-0700 Alan W. Irwin wrote:

 I have just now finally figured out how to use the first form of TRY_COMPILE
 for the Ada language testing.  This makes the Ada language test similar to
 any add_executable with Ada.  Thus, any changes to the Ada build rules (such
 as the one I just put in for the http://macada.org/ users [e.g., Jerry] on
 Mac OS X) automatically get used now for the Ada language test.

 I believe (since I am an optimist) that this should be the last change Jerry
 needs so he can build the Ada interface to PLplot and run the Ada examples
 with ctest on his Mac OS X/macada.org platform.  But if something more is
 needed, I am confident we will be able to figure it out.

Well, I was too optimistic. :-)

Jerry continued to have problems, but he kindly sent me a really clear
script of exactly what he did + full cmake.out results which eliminated all
sorts of possibilities and eventually lead me to look in minute detail at
what happens on Linux. If you force verbose output for the TRY_COMPILE step
it turns out the TRY_COMPILE is still not working correctly! In the Linux
case it manages to escape the problem and return success even though a
nonsensical command was used rather than a test of an Ada build.  On Mac OS
X it completely fails to escape the TRY_COMPILE problem and returns a
failure.

For now, I have temporarily replaced this non-working test with something
innocuous that should always return success on all platforms.  After all,
testing the Ada builder in a complicated (and poorly documented!)
TRY_COMPILE environment is a refinement, and for now it is probably better
to let Ada errors show up under an ordinary make or ctest environment
instead where everything is much better understood.

Jerry, please let me know whether this simplifying change allows you to
proceed further.

Also, I wish to thank you publicly for giving me especially clear test
results which helped me to discover this on-going problem with testing the
Ada builder under a TRY_COMPILE environment.

Alan
__
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__

Linux-powered Science
__

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel