This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/13350] New: Units to Sources Mapping Files
- From: "alexis at m2osw dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Dec 2003 06:45:40 -0000
- Subject: [Bug ada/13350] New: Units to Sources Mapping Files
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Trying to have sources in ADA is seperate folders. I ran in the rather
common problem of telling the compiler where it will find the units.
Reading the doc, I found the "Units to Sources Mapping Files" where
you speak of "PATH" instead of "PATH and FILENAME" (also, in your
example you show a fully qualified path when relative paths are
acceptable).
Anyway, the following is the output if the destination "PATH" is
a "PATH" per my definition (i.e. not a path + filename). My map
was only including ".." for the path (Actually, you have the filename
on the 2nd line of the map file!!!)
Finally, reading the doc. I thought you needed one file map, not
one per specifiction and body (i.e. a map file can include only
three line, the following three lines are ignored).
Thought the compiler shouldn't crash but instead say nicely
that it expected a filename, I think the doc. could be slightly
improved.
Hope this help.
Alexis Wilke
gcc -c -gnatemgnat.map tst_prgfile.adb
+===========================GNAT BUG DETECTED==============================+
| 3.2 20020903 (3.2-7) (i386-redhat-linux-gnu) Program_Error sinput.adb:400|
| No source file position information available |
| Please submit a bug report, see http://gcc.gnu.org/bugs.html. |
| Include the entire contents of this bug box in the report. |
| Include the exact gcc or gnatmake command that you entered. |
| Also include sources listed below in gnatchop format |
| (concatenated together with no headers between files). |
+==========================================================================+
Please include these source files with error report
tst_prgfile.adb
list may be incomplete
compilation abandoned
gnatmake: "tst_prgfile.adb" compilation error
gnat.map:
ada_program_file%s
ada_program_file.ads
..
ada_program_file%b
ada_program_file.adb
..
--
Summary: Units to Sources Mapping Files
Product: gcc
Version: 3.2
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: alexis at m2osw dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i386-redhat-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13350