makefile.gcc is possibly corrupt (Issue #22802)

74 views
Skip to first unread message

FDMuir

unread,
Sep 15, 2022, 8:27:26 PM9/15/22
to wx-...@googlegroups.com, Subscribed

On a Windows 10 64-bit platform, I attempt to build a 64-bit widgets library, using GCC 8.1, using the following command:
mingw32-make.exe -f makefile.gcc -j3 CFG=x64 BUILD=Release >out10 2>err10. Both SHARED and MONOLITHIC are set to 1 in config.gcc

The build ends with a library containing 7 A-Format subroutines and a RSP file named wxmsw32u_gcc_custom.dll.rsp. There should be two DLL files named wxmsw32u_gcc_custom.dll and wxmsw32u_gl_custom.dll.

This behavior occurs for any number of mingw32-make.exe executables. wxWidgets-3.2.0 and wxWidgets-3.2.1 are both exhibiting this behavior. Never had this problem with previous releases of wxWidgets.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/22802@github.com>

VZ

unread,
Sep 15, 2022, 8:36:43 PM9/15/22
to wx-...@googlegroups.com, Subscribed

Did you see

NOTE: For parallel builds, i.e. using -jN make option, please run mingw32-make -jN ... setup_h first and then rerun the full make command without setup_h at the end to work around a bug in the current makefiles.

in the manual?

I suspect your build fails due to a race condition in this makefile with -j, but it's really difficult to be sure because you don't show the contents of your out10 and err10 files, which would be rather useful for diagnosing the problem.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/22802/1248788520@github.com>

PB

unread,
Sep 16, 2022, 2:08:36 AM9/16/22
to wx-...@googlegroups.com, Subscribed

... Both SHARED and MONOLITHIC are set to 1 in config.gcc

This is a IMO a bad choice, as both these settings can be easily altered from a build command line. Did you try building without modifying any wxWidgets files (and also with default build settings) and if so, with what results?

The official binaries available for download were built with MinGW using GCC 8.1 in both 32- and 64-bits with the makefile, apparently with no problems. wxWidgets AppVeyor CI builds the library with makefile using MinGW with ancient GCC 5.3. I build wxWidgets with makefile and MinGW all the time (although using recent 64-bit MinGW/GCC versions), never observed any such issue.

I have also just tried to make a clean build of unmodified wxWidgets 3.2.1 source with mingw-64 i686-8.1.0-posix-sjlj-rt_v6-rev0 installation using the standard procedure, i.e.:

PATH=C:\Program Files (x86)\mingw-w64\i686-8.1.0-posix-sjlj-rt_v6-rev0\mingw32\bin;%PATH%

mingw32-make -f makefile.gcc setup_h SHARED=1 MONOLITHIC=1 BUILD=release SHELL=cmd.exe
mingw32-make -j2 -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release SHELL=cmd.exe

with no problems whatsoever.

To conclude, the issue is very likely with your setup. Did you not also write on C::B forums "I am unable to build any GNU/GCC libraries on a 64-bit Windows 10 platform."?


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/22802/1248955307@github.com>

FDMuir

unread,
Sep 16, 2022, 7:54:36 PM9/16/22
to wx-...@googlegroups.com, Subscribed

I used ‘setup_h’ in my commands using parallel processes. I also had to issue the command twice before any processes started. Made me doubt id ‘setup_h’ was still in effect.

Yes, I created that topic on C::B forums. I’ll close it.

It looks like all my failures to build wxWidgets where caused by my setup. I replaced Mingw64 with Mingw64 x86_x64-8.1.0-release-win32-seh-rt_v6-rev0. The online installer at Sourceforge still isn’t working correctly

I ran the command “mingw32-make.exe -f makefile.gcc CFG=x64 BUILD=Release >out10 2>err10”, after removing -j3, in a developer’s command prompt window. I got the library I expected. I am currently running that command again after removing BUILD=Release. I expect to get the normal library. I’ll try parallel processes later.

My apologies for submitting an erroneous complaint.


From: PB
Sent: Thursday, September 15, 2022 11:09 PM
To: wxWidgets/wxWidgets
Cc: FDMuir; Author
Subject: Re: [wxWidgets/wxWidgets] makefile.gcc is possibly corrupt (Issue#22802)

... Both SHARED and MONOLITHIC are set to 1 in config.gcc
This is a IMO a bad choice, as both these settings can be easily altered from a build command line. Did you try building without modifying any wxWidgets files (and also with default build settings) and if so, with what results?
The official binaries available for download were built with MinGW using GCC 8.1 in both 32- and 64-bits with the makefile, apparently with no problems. wxWidgets AppVeyor CI builds the library with makefile using MinGW with ancient GCC 5.3. I build wxWidgets with makefile and MinGW all the time (although using recent 64-bit MinGW/GCC versions), never observed any such issue.
I have also just tried to make a clean build of unmodified wxWidgets 3.2.1 source with mingw-64 i686-8.1.0-posix-sjlj-rt_v6-rev0 installation using the standard procedure, i.e.:
PATH=C:\Program Files (x86)\mingw-w64\i686-8.1.0-posix-sjlj-rt_v6-rev0\mingw32\bin;%PATH%

mingw32-make -f makefile.gcc setup_h SHARED=1 MONOLITHIC=1 BUILD=release SHELL=cmd.exe
mingw32-make -j2 -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release SHELL=cmd.exe
with no problems whatsoever.
To conclude, the issue is very likely with your setup. Did you not also write on C::B forums "I am unable to build any GNU/GCC libraries on a 64-bit Windows 10 platform."?

Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/22802/1249942481@github.com>

VZ

unread,
Sep 17, 2022, 8:57:45 AM9/17/22
to wx-...@googlegroups.com, Subscribed

Closed #22802 as not planned.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/22802/issue_event/7407640950@github.com>

Reply all
Reply to author
Forward
0 new messages