Opened 15 years ago
Closed 15 years ago
#20598 closed defect (fixed)
gnat-gcc +gnuada
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | krischik@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.1 |
Keywords: | Cc: | nerdling (Jeremy Lavergne) | |
Port: | gnat-gcc |
Description
Installing gnat-gcc +gnuada ends with
configure: error: C compiler cannot create executables
I believe it was your intention that I should download "the GnuAda compiler" from http://gnuada.sourceforge.net and install it prior to attempting to install the port with this variant. But I'm unclear specifically what file to download.
The port should detect if the required compiler is not installed, and exit with a more helpful error message telling the user what to do to fix it.
In addition, I assume the bootprefix change from r55182 needs to be reverted. If that's right, then it may be of benefit to add a comment to the portfile explaining why hardcoding /opt/local is necessary here (since it's usually undesirable, and someone might not realize it was intentional and replace it with ${prefix} again).
Change History (3)
comment:1 follow-up: 2 Changed 15 years ago by krischik@…
Status: | new → assigned |
---|
comment:2 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to krischik@…:
Ok, no problem - I do that - any tcl master who can tell what is the best way to detect if "${bootprefix}/bin/gnat" exists and (optionally) is user executable?
You could use file executable:
if {[file executable ${bootprefix}/bin/gnat]} { ... }
Ok, no problem - I do that - any tcl master who can tell what is the best way to detect if "${bootprefix}/bin/gnat" exists and (optionally) is user executable?
Of course there are quite a few messages allready like:
And port variants gnat-gcc will get them:
Which reminds me: When Dr. Kanonenko was asked "Who do you write your books for" and his answer was "For people who can read".