Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Programming and Hacking > Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th January 2021, 08:02   #1  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 697
Any links to the new Mingw-w64?

I need new Mingw-w64 / GCC toolchain for Windows 2021
Jamaika is offline   Reply With Quote
Old 11th January 2021, 22:37   #2  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351


AFAIK there is GCC 10.2.
GCC 10.3 and GCC 11 have not been released yet.
Am I missing something?
filler56789 is offline   Reply With Quote
Old 13th January 2021, 00:14   #3  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Nowadays, by far the easiest way to obtain the Mingw-w64 toolchain with GCC or Clang as well as the required build tools (bash, make, etc. pp.) is by using the MSYS2 project:
https://www.msys2.org/

Just install MSYS2 and then, within the MSYS2 shell, you need to install the Mingw-w64 toolchain once:
Code:
pacman -S mingw-w64-i686-toolchain
pacman -S mingw-w64-x86_64-toolchain
The same way you can add Clang, which generally works as a "drop-in replacement" for GCC and sometimes produces faster code and/or gives better diagnostic:
Code:
pacman -S mingw-w64-i686-clang
pacman -S mingw-w64-x86_64-clang
You probably want to install the "base-devel" meta package too:
Code:
pacman -S base-devel
From then on, in order to update everything to the latest version, all you need to do is:
Code:
pacman -Syu
If, for some reason, you don't want to use MSYS2, have a look at the WinLibs or Win-builds web-sites:
http://winlibs.com/
http://win-builds.org/doku.php

And, indeed, at this time, the latest "release" version of GCC is 10.2.0
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 13th January 2021 at 00:30.
LoRd_MuldeR is offline   Reply With Quote
Old 13th January 2021, 09:40   #4  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 697
Thanks boys. Rather, I meant the 2021 night versions. The user's Ma x265 page http://msystem.waw.pl/x265/ gcc build page has stopped publishing.
https://github.com/gcc-mirror/gcc
Jamaika is offline   Reply With Quote
Old 13th January 2021, 09:54   #5  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 697
Quote:
Originally Posted by LoRd_MuldeR View Post
And, indeed, at this time, the latest "release" version of GCC is 10.2.0
So I wonder about my builds.
GCC 10 prefers gnu++14
GCC 11 prefers gnu++17
Is it compatible with gnu++11 and can gnu++11 libraries libjpeg/libpng/libtiff/libwebp/aom be compiled in gnu++17/21?
https://github.com/GrokImageCompression/grok
https://github.com/link-u/cavif

Last edited by Jamaika; 13th January 2021 at 10:01.
Jamaika is offline   Reply With Quote
Old 13th January 2021, 17:10   #6  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by Jamaika View Post
So I wonder about my builds.
GCC 10 prefers gnu++14
GCC 11 prefers gnu++17
Is it compatible with gnu++11 and can gnu++11 libraries libjpeg/libpng/libtiff/libwebp/aom be compiled in gnu++17/21?
https://github.com/GrokImageCompression/grok
https://github.com/link-u/cavif
It is not unusual that the default for -std= changes between GCC major releases, but you can explicitly specify -std=gnu++14 in your CFLAGS, if you want the compiler to adhere to exactly that version

As far as source code is concerned, newer versions of the C++ standard (with or without GNU extensions) should be backward-compatible to older versions. Code written in C++14 (or even C++98) should compile with a C++17 compiler.

Binary compatibility is a different story. When it comes to C++, binaries compiled by different compiler versions (let alone different compilers) generally can not be mixed, because the C++ standard does not define an ABI.

Quote:
Rather, I meant the 2021 night versions
Another web-site offering "experimental" versions of MinGW/GCC (weekly snapshots) is here:
http://www.equation.com/servlet/equation.cmd?fa=fortran
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 13th January 2021 at 21:12.
LoRd_MuldeR is offline   Reply With Quote
Old 15th January 2021, 23:18   #7  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 697
I satisfied my curiosity with the 2021 version. I must say that it is impossible to compile the latest codecs with mingw.mutex and mingw.thread files. The pthread std::call_once functions are included.
Bugs with the latest fixes and delete _GLIBCXX_HAS_GTHREADS
https://github.com/gcc-mirror/gcc/co...45af3ecddaa3c3
https://github.com/gcc-mirror/gcc/co...a65eb70d79f41a
Code:
In file included from custom_memory.cc:25:
gav1/mingw.mutex.h:479:24: error: 'class mingw_stdthread::once_flag' conflicts with a previous declaration
  479 | using mingw_stdthread::once_flag;
      |                        ^~~~~~~~~
In file included from gav1/mingw.mutex.h:40,
                 from custom_memory.cc:25:
c:\msys1100\include\c++\11.0.0\mutex:673:10: note: previous declaration 'struct std::once_flag'
  673 |   struct once_flag
      |          ^~~~~~~~~
Code:
In file included from logging.cc:20:
../mingw.thread.h:330:24: error: 'class mingw_stdthread::thread' conflicts with a previous declaration
  330 | using mingw_stdthread::thread;
      |                        ^~~~~~
In file included from c:\msys1100\include\c++\11.0.0\thread:45,
                 from ../mingw.thread.h:28,
                 from logging.cc:20:
c:\msys1100\include\c++\11.0.0\bits\std_thread.h:62:9: note: previous declaration 'class std::thread'
   62 |   class thread
      |         ^~~~~~

Last edited by Jamaika; 16th January 2021 at 08:18.
Jamaika is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:04.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.