mingw-w64 / mingw-w64.github.io

mingw-w64.net web page contents (The new web page)
Other
572 stars 1.16k forks source link

SourceForge MinGW64-install.exe Broken #12

Open GustavBW opened 2 years ago

GustavBW commented 2 years ago

The installer is flawed and seems to be referencing a file location that no longer exists, or something in that manner. Link: https://sourceforge.net/projects/mingw-w64/

Biswa96 commented 2 years ago

Which file did you download? i.e. What is the name of the file?

GustavBW commented 2 years ago

I downloaded the mingw-w64-install.exe

GustavBW commented 2 years ago

The configuration i tried to use was: Version 8.1 Architecture x86_x64 Threads: win32 Exception: seh Build rev.: 0

PatrLind commented 2 years ago

I have the same issue, seems to be caused by the installer not following the 301 Moved Permanently HTTP redirect.

Here is the HTTP conversation as captured from Wireshark.

GET /projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/seh/x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z HTTP/1.0
User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98) 
Accept: */*
Host: sourceforge.net

HTTP/1.1 301 Moved Permanently
Date: Sat, 28 May 2022 21:01:20 GMT
Content-Type: text/html
Connection: close
Location: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/seh/x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z
CF-Cache-Status: DYNAMIC
Server: cloudflare
CF-RAY: 7129ecc7a8c598f0-ARN
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400

<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
<script defer src="https://static.cloudflareinsights.com/beacon.min.js/v652eace1692a40cfa3763df669d7439c1639079717194" integrity="sha512-Gi7xpJR8tSkrpF7aordPZQlW2DLtzUlZcumS8dMQjwDHEnw9I7ZLyiOj/6tZStRBGtGgN6ceN6cMH8z7etPGlw==" data-cf-beacon='{"rayId":"7129ecc7a8c598f0","token":"05ab2f27910c4db284f4fcdcd6948338","version":"2021.12.0","si":100}' crossorigin="anonymous"></script>
</body>
</html>

bild

niladrix719 commented 2 years ago

please fix it

Biswa96 commented 2 years ago

I have asked about this issue in mingw-w64 IRC. Here is the discussion

May 30 19:17:35 <Biswa96>   There is an issue with mingw-w64 installer https://github.com/mingw-w64/mingw-w64.github.io/issues/12
May 30 19:19:49 <jon_y> Biswa96: there's a workaround somewhere in the forum
May 30 19:20:54 <jon_y> Biswa96: https://sourceforge.net/p/mingw-w64/support-requests/125/
May 30 19:20:56 <minifox>   Title: MinGW-w64 - for 32 and 64 bit Windows / Support Requests / #125 "file was downloaded incorrectly" (at sourceforge.net)
May 30 19:22:47 <Biswa96>   Is not it possible to provide a new installer?
May 30 19:23:03 <jon_y> no, we didn't write it
May 30 19:23:17 <Biswa96>   closed source?
May 30 19:23:24 <jon_y> SF simply puts a link to what is think its the appropriate default download
May 30 19:23:37 <jon_y> no idea, I think it was made by nixman
May 30 19:26:12 <Biswa96>   Thanks.

The workaround in this thread https://sourceforge.net/p/mingw-w64/support-requests/125/ is not so convenient and I have not tried it.

Alternatively, if you want to install mingw-w64 toolchain feel free to use it from cygwin or msys2 environment.