Opened 4 years ago

Closed 4 years ago

#61251 closed update (fixed)

Update mingw-gcc to 10.2.0

Reported by: Gcenx Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: x86_64-w64-mingw32-gcc

Description

I’ve opened pull-requests for mingw-w64 and mingw-binutils ports along with crossgcc to includes gcc 10.2.0

I’ve quickly attempted this but the build eventually fails with a log that’s 60+ MB, didn’t have time to open a draft before heading to work

Change History (6)

comment:1 Changed 4 years ago by mojca (Mojca Miklavec)

(Assuming you don't run out of time) most often the only relevant part of the log is within the last 100-200 lines or so. I usually search for something like error: in the log and only extract that part with a bunch of lines before and after.

comment:2 Changed 4 years ago by Gcenx

Here is the section

:info:build /opt/local/var/macports/build/_Users_gcenx_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32-gcc/work/gcc-10.2.0/libgomp/target.c: In function ‘gomp_map_vars_internal’:
:info:build /opt/local/var/macports/build/_Users_gcenx_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32-gcc/work/gcc-10.2.0/libgomp/target.c:1228:21: error: unknown conversion type character ‘l’ in format [-Werror=format=]
:info:build  1228 |         gomp_fatal ("present clause: !acc_is_present (%p, "
:info:build       |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build In file included from /opt/local/var/macports/build/_Users_gcenx_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32-gcc/work/gcc-10.2.0/libgomp/target.c:36:
:info:build /opt/local/i686-w64-mingw32/include/inttypes.h:36:18: note: format string is defined here
:info:build    36 | #define PRIu64 "llu"
:info:build       |                  ^
:info:build /opt/local/var/macports/build/_Users_gcenx_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32-gcc/work/gcc-10.2.0/libgomp/target.c:1228:21: error: unknown conversion type character ‘l’ in format [-Werror=format=]
:info:build  1228 |         gomp_fatal ("present clause: !acc_is_present (%p, "
:info:build       |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build In file included from /opt/local/var/macports/build/_Users_gcenx_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32-gcc/work/gcc-10.2.0/libgomp/target.c:36:
:info:build /opt/local/i686-w64-mingw32/include/inttypes.h:37:18: note: format string is defined here
:info:build    37 | #define PRIx64 "llx"
:info:build       |                  ^
:info:build /opt/local/var/macports/build/_Users_gcenx_ports_cross_i686-w64-mingw32-gcc/i686-w64-mingw32-gcc/work/gcc-10.2.0/libgomp/target.c:1228:21: error: too many arguments for format [-Werror=format-extra-args]
:info:build  1228 |         gomp_fatal ("present clause: !acc_is_present (%p, "
:info:build       |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

As the entire log it too large for a gist etc I've compress and uploaded it to my MEGA is needed here is a link to the entire log https://mega.nz/file/SYhAzawS#4xvjeBZ1DzZy2_5o93-b-elYIywr6p2TD6vLGUoWJAQ

comment:3 Changed 4 years ago by Gcenx

Removing --enable-libgomp resulted into i686-w64-mingw32-gcc completing, but I'm not sure what the implications of not having this option enabled as I see Arch ARU package does have this enabled.

Brew doesn't use this option for there package of mingw-w64-v7.0.0, so I'm conflicted if it's required or not

Last edited 4 years ago by Gcenx (previous) (diff)

comment:5 Changed 4 years ago by Gcenx

Thanks for the input @kencu, I’ll try adding 0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch

Won’t get chance to do this until later tonight.

comment:6 Changed 4 years ago by Gcenx <38226388+Gcenx@…>

Resolution: fixed
Status: assignedclosed

In 2beaf7276a2318f766fdbd9f7d0809bf85cb5269/macports-ports (master):

mingw-w64-gcc: Update to 10.2.0

Closes: #61251

Note: See TracTickets for help on using tickets.