https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78161

            Bug ID: 78161
           Summary: contrib/download_prerequisites fails on MacOS,
                    Lubuntu, and Windows
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: damian at sourceryinstitute dot org
  Target Milestone: ---

The latest contrib/download_prerequisites fails on every operating system on
which I've tried it, including the following:

MacOS 10.12 (Sierra)
Lubuntu Linux 16.04
Windows 10 Ubuntu subsystem (beta)

In each case, the curl command in the script appears to be spewing a binary
into stdout rather than to the intended file destination.  I'm working on a
patch to fix this and will submit it for review.  In the patch, I would like to
broaden the download program options to choose the first available in the
following order:

1. curl
2. wget
3. ftp

These will be tested with a condition such as

if type curl &> /dev/null then
  fetch=curl
elif type wget &> /dev/null then
  fetch=wget
elif type ftp &> /dev/null then
  fetch=ftp-url
fi

where ftp-url is a short script written to use ftp for anonymous download of
the target file and where the appropriate arguments will be added for each
download program before invoking it.  I'll test the script on the
aforementioned three operating systems before submitting it.

Damian

Reply via email to