On Nov 30, 2008, at 10:27 PM, Orion Poplawski wrote: > Alan W. Irwin wrote: >> On 2008-11-29 14:57-0700 Orion Poplawski wrote: >> >> >>> Anything different between -DHAVE_ADA_2007=ON and -DENABLE_ada? >>> >> >> HAVE_ADA_2007 is quite different from ENABLE_ada. You don't have >> to specify >> -DENABLE_ada=ON anymore because it is ON by default (and turned off >> automatically if our build system cannot find a GNAT compiler on your >> system). HAVE_ADA_2007 ON or OFF simply specifies two different >> ways to >> build the Ada bindings and examples depending on whether your Ada >> compiler >> is ADA 2007 compliant or not. > > Hmm, with HAVE_ADA_2007 on I get a link failure for a missing > library - > libgnalasup.so. I think this is a Fedora gcc-gnat issue, so I filed a > bug here: https://bugzilla.redhat.com/show_bug.cgi?id=473811. > Compiled > fine without HAVE_ADA_2007. > > - orion > > There is a discussion of this matter on comp.lang.ada from April (of 2008, I think). This was supposedly fixed in the sources then. Background: the library libgnalasup.so or libgnalasup.a or whatever was added by AdaCore (the company that is the "commercial home" of GNAT, the GNU Ada compiler). In the character-challenged world of computers, gnalasup apparently stands for GNAT LAPACK Support. It is related to Ada 2005 because that compiler adds support for vector- matrix calculations but (at least in GNAT) farms it out to the BLAS and LAPACK libraries.
I was able to localize this problem and fix it by deleting a single line in the GNAT source. Here is the discussion thread at http://groups.google.com/group/comp.lang.ada/browse_thread/thread/ 73a6dbe06e1250ce/48dd95ab71c9efc1? hl=en&lnk=gst&q=libgnalasup#48dd95ab71c9efc1 Where a relevant part is this: >>>>> "Jerry" == Jerry <[EMAIL PROTECTED]> writes: Jerry> The upshot is that the file i-forbla.adb is edited to comment Jerry> out one line, so that after the edit we see this: Jerry> -- pragma Linker_Options ("-lgnalasup") Yes, I changed the GCC sources this morning to reference LAPACK and BLAS directly by default instead of gnalasup which is a repackaging of those libraries done by AdaCore. Sam -- Samuel Tardieu -- [EMAIL PROTECTED] -- http://www.rfc1149.net/ A perhaps obvious (at this point of the discussion) byproduct of using Ada 2005(7) in the GNAT version is that you will need to link BLAS and LAPACK libraries. FWIW, OS X supplies both C and Fortran versions of these by default. Ada can link to either version. Jerry ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel