Opened 3 years ago
Closed 3 years ago
#62901 closed defect (fixed)
crossgcc-1.0.tcl required compilers needs updating
Reported by: | Gcenx | Owned by: | mojca (Mojca Miklavec) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | kencu (Ken) | |
Port: | crossgcc |
Description
I've noticed that i686-w64-mingw32-gcc/x86_64-w64-mingw32-gcc binaries are not compiling for anything below 10.10 accoring to https://www.gnu.org/software/gcc/gcc-11/changes.html a newer compiler is required.
Not opened a pull-request as I'm not sure the best way to handle this.
Change History (8)
comment:1 Changed 3 years ago by mojca (Mojca Miklavec)
Cc: | kencu added |
---|
comment:2 Changed 3 years ago by mojca (Mojca Miklavec)
My suggestion would be to copy the code for compiler blacklist from the gcc11
port to the crossgcc-1.0
PortGroup and conditionally enable the blacklisting only if the GCC version is 11.0 or newer.
comment:3 Changed 3 years ago by Gcenx
Oh I didn’t check it gcc11 was compiling below 10.10, with that being the case then wouldn’t it make more sense to add a fallback of gcc10.3 into the mingw-gcc ports?
comment:4 Changed 3 years ago by mojca (Mojca Miklavec)
Doing an
if macOS version < 10.10 then use gcc 10.3 else use gcc 11.1
sound like a valid option, but picking the right compiler sounds easy enough that it doesn't seem worth the troubles to have to maintain multiple versions of gcc in tons of cross-compilers that we are shipping.
comment:5 Changed 3 years ago by Gcenx
I must have misread the above thinking gcc11 didn’t compile below 10.10.
Yeah don’t wanna split gcc versions within mingw-gcc if possible.
comment:6 Changed 3 years ago by kencu (Ken)
Indeed, Iain tells me that gcc11 compiles on everything back to 10.4 Tiger, but it requires a c++11 compiler to build now, so there will be at least one stepping stone compiler to use.
comment:7 Changed 3 years ago by Gcenx
The pull-request to resolve the gcc problem is https://github.com/macports/macports-ports/pull/11039
And another for mingw-ctr issue https://github.com/macports/macports-ports/pull/11113
comment:8 Changed 3 years ago by Gcenx
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
At the moment it neither compiles on arm nor on < 10.10
But we do have a working gcc 11:
I'm not sure to which part of the changes you were referring. The requirement to use a C++11 capable compiler to build gcc? This should be solvable by properly tweaking the compiler selection.