From: Alan W. I. <ir...@be...> - 2008-08-26 03:18:06
|
On 2008-08-25 17:24-0700 Jerry wrote: > Attached is a zip file with three short Ada files in it. They have a similar > structure to the problematic example 19 but do not call or link to any PLplot > stuff (despite the names of some things looking PLplot-y). > > Alan (or someone else with a 64-bit Ada compiler), if you would, please > unzip, cd to the directory, and type > > gnatmake ./x19a_temp.adb > > You should see two warnings but no errors. If it compiles... It does not compile on Linux. Here is the error message: irwin@raven> gnatmake ./x19a_temp.adb gcc-4.3 -c -I./ -I- ./x19a_temp.adb x19a_temp.adb:2:05: file "type_declaration.ads" not found gnatmake: "./x19a_temp.adb" compilation error There is something strange about how case is interpreted by gnatmake on Linux. Anyhow, I converted everything (file names and symbols inside the file) to lower-case type_declaration, and the result compiles. irwin@raven> gnatmake x19a_temp.adb gcc-4.3 -c x19a_temp.adb x19a_temp.adb:10:38: warning: type of argument "mapform19.x" is unconstrained array x19a_temp.adb:10:38: warning: foreign caller must pass bounds explicitly gcc-4.3 -c type_declaration.adb gnatbind -x x19a_temp.ali gnatlink x19a_temp.ali I have attached a compressed tarball with the corrected files for this test case that compiles on Linux (and hopefully MacOSX as well). We now have a working simple test case that generates the run-time error (at least on my 64-bit box with gnat version 4.3.1-2). irwin@raven> ./x19a_temp raised STORAGE_ERROR : stack overflow (or erroneous memory access) Jerry, did the compressed tarball attachment survive your ISP? If so does it compile and run properly for you? 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 libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |