From dmuysers at hotmail.com Sat Aug 10 17:04:02 2019 From: dmuysers at hotmail.com (dirk muysers) Date: Sat, 10 Aug 2019 15:04:02 +0000 Subject: [M3devel] Impossible to compile for Windows Message-ID: Windows 7 Pro, AMD64 Compile with "vcvarsamd64_x86.bat" Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\>cd C:/users/dirk/dropbox/projects/libum3/tools/maketables/src C:\Users\Dirk\Dropbox\projects\libum3\tools\maketables\src>cm3 --- building in ..\NT386 --- -> linking Maketables.exe "C:\Users\Public\programs\cm3\bin\config\NT.common", line 1349: quake runtime er ror: link failed, see C:\Users\Dirk\Dropbox\projects\libum3\tools\maketables\NT3 86\Maketables.lst for more information --procedure-- -line- -file--- error -- m3_link 1349 C:\Users\Public\programs\cm3\bin\config\NT.common program -- include_dir 8 C:\Users\Dirk\Dropbox\projects\libum3\tools\maketables\sr c\m3makefile 4 C:\Users\Dirk\Dropbox\projects\libum3\tools\maketables\NT 386\m3make.args Fatal Error: procedure "m3_link" defined in "C:\Users\Public\programs\cm3\bin\cm 3.cfg" failed. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Maketables.lst Type: application/octet-stream Size: 945 bytes Desc: Maketables.lst URL: From vvm at tut.by Sat Aug 10 22:18:00 2019 From: vvm at tut.by (vvm at tut.by) Date: Sat, 10 Aug 2019 23:18:00 +0300 Subject: [M3devel] Impossible to compile for Windows In-Reply-To: References: Message-ID: <232071565468280@vla4-d1c3bcedfacb.qloud-c.yandex.net> An HTML attachment was scrubbed... URL: From jayk123 at hotmail.com Mon Aug 12 07:26:53 2019 From: jayk123 at hotmail.com (Jay K) Date: Mon, 12 Aug 2019 05:26:53 +0000 Subject: [M3devel] Impossible to compile for Windows In-Reply-To: References: Message-ID: -delayload:wsock32.dll -delayload:advapi32.dll ? -delayload:gdi32.dll ? -delayload:netapi32.dll ? -delayload:user32.dll ? -delayload:comctl32.dll ? -delayload:rpcrt4.dll ? -delayload:iphlpapid.dll ? delayimp.lib ? Just remove those options wherever they are. Should I just remove them in master? They really usually work, but very rarely do not -- for example they don't work with linker before Visual C++ 5.0. Perhaps this is a micro optimization from ancient times. I put it in. I know what it is. But maybe it isn't worth it? - Jay -------------- next part -------------- An HTML attachment was scrubbed... URL: From jayk123 at hotmail.com Mon Aug 26 01:42:21 2019 From: jayk123 at hotmail.com (Jay K) Date: Sun, 25 Aug 2019 23:42:21 +0000 Subject: [M3devel] Compiling for Windows In-Reply-To: References: Message-ID: What are the errors? What is the behavior? Is the problem that I just fixed, the defaulting to pre-2015 vs. 2015 or newer? - Jay ________________________________ From: dirk muysers Sent: Sunday, August 25, 2019 3:55 PM To: Jay K Subject: Compiling for Windows Ever since I updated Visual Studio to its 2019 version, I can't run cm3 anymore. I am running Windows 7.1 Pro on AMD64 and my compiler is cm3-min_NT386-d5.10.0-VC2015-20160102 I don't really need Visual Studio, for the few occasion I need to compile C, I use Pelles C or TCC (Tiny C Compiler) My machine is thoroughly polluted with Microsoft development software I don't really need, to mention a few: MS Windows SDK for for Windows 7 MS Visual Studio Installer MS Visual C++ 2013 Redistributable (x64) 12.0.40649 MS Visual C++ 2013 Redistributable (x86) 12.0.40649 MS Visual C++ 2015-2019 Redistributable (x64) 12.0.40649 MS Visual C++ 2015-2019 Redistributable (x86) 12.0.40649 Windows Software Development Kit Windows 10.0.17763.132 Windows Software Development Kit Windows 10.0.18362.1 Windows SDK AddOn Visual Studio Build Tools 2019 not to talk about SQL Server (20 packages) and .NET Can you please tell me WHICH of the above is REALLY needed to run cm3, so I can uninstall all the rest. Thanks in advance. Dirk Muysers -------------- next part -------------- An HTML attachment was scrubbed... URL: From jayk123 at hotmail.com Mon Aug 26 11:37:21 2019 From: jayk123 at hotmail.com (Jay K) Date: Mon, 26 Aug 2019 09:37:21 +0000 Subject: [M3devel] Compiling for Windows In-Reply-To: References: , Message-ID: How do you not have delayimp.lib? Well, you can try removing these lines: https://github.com/modula3/cm3/blob/8cb25e9a8b8ae5c58e0c584017e60dab6afe6a17/m3-sys/cminstall/src/config-no-install/NT.common#L1199 It "just" a startup optimization to avoid loading unused .dlls. Your toolset seems maybe broken. It is hard to know what you need installed. Not much. You don't need the x64/amd64 stuff for Modula-3, but other things maybe. You certainly don't need SQL Server. You really don't need much. You need for this kinda thing to work: hello.c: include windows.h include stdio.h int main() { printf("%d\n", IsDebuggerPresent()) ; } cl -MD -Zi hello.c .\hello.exe - Jay ________________________________ From: dirk muysers Sent: Monday, August 26, 2019 9:06 AM To: Jay K Subject: Re: Compiling for Windows >> What are the errors? What is the behavior? After deleting and reloading cm3-min-x86-d5.10.0-VC2015-20160102 vcvarsamd64_x86.bat: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. c:\Users\Dirk\Dropbox\projects\libum3\tools\maketables\src>c:/users/public/progr ams/cm3-min-x86-d5.10.0-VC2015-20160102/bin/cm3 --- building in ..\NT386 --- -> linking Maketables.exe "c:/users/public/programs/cm3-min-x86-d5.10.0-VC2015-20160102/bin\config\NT.comm on", line 1232: quake runtime error: link failed, see c:\Users\Dirk\Dropbox\proj ects\libum3\tools\maketables\NT386\Maketables.lst for more information --procedure-- -line- -file--- error -- m3_link 1232 c:/users/public/programs/cm3-min-x86-d5.10.0-VC2015-20160 102/bin\config\NT.common program -- include_dir 8 c:\Users\Dirk\Dropbox\projects\libum3\tools\maketables\sr c\m3makefile 4 c:\Users\Dirk\Dropbox\projects\libum3\tools\maketables\NT 386\m3make.args Fatal Error: procedure "m3_link" defined in "c:/users/public/programs/cm3-min-x8 6-d5.10.0-VC2015-20160102/bin\cm3.cfg" failed. Maketables.lst: Microsoft (R) Incremental Linker Version 14.21.27702.2 Copyright (C) Microsoft Corporation. All rights reserved. -out:Maketables.exe -subsystem:console -entry:mainCRTStartup -nodefaultlib -debug -incremental:no -opt:ref -delayload:ws2_32.dll -delayload:advapi32.dll -delayload:gdi32.dll -delayload:netapi32.dll -delayload:user32.dll -delayload:comctl32.dll -delayload:rpcrt4.dll -delayload:iphlpapid.dll delayimp.lib _m3main.obj Main.mo Common.io Common.mo Loader.io Loader.mo Editor.io Editor.mo Printer.io Printer.mo c:\users\public\programs\cm3-min-x86-d5.10.0-VC2015-20160102\pkg\libm3\NT386\m3.lib.sa c:\users\public\programs\cm3-min-x86-d5.10.0-VC2015-20160102\pkg\m3core\NT386\m3core.lib.sa iphlpapi.lib rpcrt4.lib winspool.lib comctl32.lib ws2_32.lib comdlg32.lib netapi32.lib gdi32.lib user32.lib advapi32.lib kernel32.lib msvcrt.lib LINK : fatal error LNK1181: cannot open input file 'delayimp.lib' On 26/08/2019 01:42:24, Jay K wrote: What are the errors? What is the behavior? Is the problem that I just fixed, the defaulting to pre-2015 vs. 2015 or newer? - Jay ________________________________ From: dirk muysers Sent: Sunday, August 25, 2019 3:55 PM To: Jay K Subject: Compiling for Windows Ever since I updated Visual Studio to its 2019 version, I can't run cm3 anymore. I am running Windows 7.1 Pro on AMD64 and my compiler is cm3-min_NT386-d5.10.0-VC2015-20160102 I don't really need Visual Studio, for the few occasion I need to compile C, I use Pelles C or TCC (Tiny C Compiler) My machine is thoroughly polluted with Microsoft development software I don't really need, to mention a few: MS Windows SDK for for Windows 7 MS Visual Studio Installer MS Visual C++ 2013 Redistributable (x64) 12.0.40649 MS Visual C++ 2013 Redistributable (x86) 12.0.40649 MS Visual C++ 2015-2019 Redistributable (x64) 12.0.40649 MS Visual C++ 2015-2019 Redistributable (x86) 12.0.40649 Windows Software Development Kit Windows 10.0.17763.132 Windows Software Development Kit Windows 10.0.18362.1 Windows SDK AddOn Visual Studio Build Tools 2019 not to talk about SQL Server (20 packages) and .NET Can you please tell me WHICH of the above is REALLY needed to run cm3, so I can uninstall all the rest. Thanks in advance. Dirk Muysers -------------- next part -------------- An HTML attachment was scrubbed... URL: From rcoleburn at comcast.net Mon Aug 26 18:39:24 2019 From: rcoleburn at comcast.net (Randy Coleburn) Date: Mon, 26 Aug 2019 12:39:24 -0400 Subject: [M3devel] Compiling for Windows In-Reply-To: References: Message-ID: <4EEAD9EF-ECB8-4F92-A63A-D4A96BE7BAE7@comcast.net> I want to get back into using CM3 on Windows. I?ve spent a lot of time over various intervals and tried various editions of Visual Studio, but nothing works for me. Can someone please give us a known starting point and directions on how to: 1. Obtain latest working source and minimum working 64-bit compiler for Windows 10. 2. Specs on exactly what version of Visual Studio is required. 3. Directions on how to rebuild everything when source code is updated so that it still works on Windows 10. Thanks in advance. ?Randy Coleburn Sent from my iPad > On Aug 26, 2019, at 5:37 AM, Jay K wrote: > > How do you not have delayimp.lib? > > Well, you can try removing these lines: > > https://github.com/modula3/cm3/blob/8cb25e9a8b8ae5c58e0c584017e60dab6afe6a17/m3-sys/cminstall/src/config-no-install/NT.common#L1199 > > It "just" a startup optimization to avoid loading unused .dlls. > > Your toolset seems maybe broken. > > It is hard to know what you need installed. Not much. > You don't need the x64/amd64 stuff for Modula-3, but other things maybe. > You certainly don't need SQL Server. > You really don't need much. > You need for this kinda thing to work: > > hello.c: > > include windows.h > include stdio.h > > int main() > { > printf("%d\n", IsDebuggerPresent()) ; > } > > > cl -MD -Zi hello.c > .\hello.exe > > - Jay > > From: dirk muysers > Sent: Monday, August 26, 2019 9:06 AM > To: Jay K > Subject: Re: Compiling for Windows > > >> What are the errors? What is the behavior? > > After deleting and reloading cm3-min-x86-d5.10.0-VC2015-20160102 > vcvarsamd64_x86.bat: > Microsoft Windows [Version 6.1.7601] > Copyright (c) 2009 Microsoft Corporation. All rights reserved. > c:\Users\Dirk\Dropbox\projects\libum3\tools\maketables\src>c:/users/public/progr > ams/cm3-min-x86-d5.10.0-VC2015-20160102/bin/cm3 > --- building in ..\NT386 --- > -> linking Maketables.exe > "c:/users/public/programs/cm3-min-x86-d5.10.0-VC2015-20160102/bin\config\NT.comm > on", line 1232: quake runtime error: link failed, see c:\Users\Dirk\Dropbox\proj > ects\libum3\tools\maketables\NT386\Maketables.lst for more information > --procedure-- -line- -file--- > error -- > m3_link 1232 c:/users/public/programs/cm3-min-x86-d5.10.0-VC2015-20160 > 102/bin\config\NT.common > program -- > include_dir 8 c:\Users\Dirk\Dropbox\projects\libum3\tools\maketables\sr > c\m3makefile > 4 c:\Users\Dirk\Dropbox\projects\libum3\tools\maketables\NT > 386\m3make.args > Fatal Error: procedure "m3_link" defined in "c:/users/public/programs/cm3-min-x8 > 6-d5.10.0-VC2015-20160102/bin\cm3.cfg" failed. > > Maketables.lst: > Microsoft (R) Incremental Linker Version 14.21.27702.2 > Copyright (C) Microsoft Corporation. All rights reserved. > > -out:Maketables.exe > -subsystem:console > -entry:mainCRTStartup > -nodefaultlib > -debug > -incremental:no > -opt:ref > -delayload:ws2_32.dll > -delayload:advapi32.dll > -delayload:gdi32.dll > -delayload:netapi32.dll > -delayload:user32.dll > -delayload:comctl32.dll > -delayload:rpcrt4.dll > -delayload:iphlpapid.dll > delayimp.lib > _m3main.obj > Main.mo > Common.io > Common.mo > Loader.io > Loader.mo > Editor.io > Editor.mo > Printer.io > Printer.mo > c:\users\public\programs\cm3-min-x86-d5.10.0-VC2015-20160102\pkg\libm3\NT386\m3.lib.sa > c:\users\public\programs\cm3-min-x86-d5.10.0-VC2015-20160102\pkg\m3core\NT386\m3core.lib.sa > iphlpapi.lib > rpcrt4.lib > winspool.lib > comctl32.lib > ws2_32.lib > comdlg32.lib > netapi32.lib > gdi32.lib > user32.lib > advapi32.lib > kernel32.lib > msvcrt.lib > LINK : fatal error LNK1181: cannot open input file 'delayimp.lib' >> On 26/08/2019 01:42:24, Jay K wrote: >> >> What are the errors? What is the behavior? >> Is the problem that I just fixed, the defaulting to pre-2015 vs. 2015 or newer? >> >> - Jay >> >> From: dirk muysers >> Sent: Sunday, August 25, 2019 3:55 PM >> To: Jay K >> Subject: Compiling for Windows >> >> Ever since I updated Visual Studio to its 2019 version, I can't run cm3 anymore. >> >> I am running Windows 7.1 Pro on AMD64 and my compiler is >> >> cm3-min_NT386-d5.10.0-VC2015-20160102 >> >> I don't really need Visual Studio, for the few occasion I need to compile C, I use Pelles C or TCC (Tiny C Compiler) >> >> My machine is thoroughly polluted with Microsoft development software I don't really need, to mention a few: >> >> MS Windows SDK for for Windows 7 >> MS Visual Studio Installer >> MS Visual C++ 2013 Redistributable (x64) 12.0.40649 >> MS Visual C++ 2013 Redistributable (x86) 12.0.40649 >> MS Visual C++ 2015-2019 Redistributable (x64) 12.0.40649 >> MS Visual C++ 2015-2019 Redistributable (x86) 12.0.40649 >> Windows Software Development Kit Windows 10.0.17763.132 >> Windows Software Development Kit Windows 10.0.18362.1 >> Windows SDK AddOn >> Visual Studio Build Tools 2019 >> >> not to talk about SQL Server (20 packages) and .NET >> >> Can you please tell me WHICH of the above is REALLY needed to run cm3, so I can uninstall all the rest. >> >> Thanks in advance. >> Dirk Muysers > _______________________________________________ > M3devel mailing list > M3devel at elegosoft.com > https://m3lists.elegosoft.com/mailman/listinfo/m3devel -------------- next part -------------- An HTML attachment was scrubbed... URL: From vvm at tut.by Thu Aug 29 17:37:30 2019 From: vvm at tut.by (vvm at tut.by) Date: Thu, 29 Aug 2019 18:37:30 +0300 Subject: [M3devel] cm3-min-AMD64_NT-d5.10.0-VC141-20190602_Unicode_VVMtutby_Edt ( and cm3-min VC110 ) Re: Compiling for Windows In-Reply-To: <4EEAD9EF-ECB8-4F92-A63A-D4A96BE7BAE7@comcast.net> References: <4EEAD9EF-ECB8-4F92-A63A-D4A96BE7BAE7@comcast.net> Message-ID: <3688911567093050@sas2-22600713dea1.qloud-c.yandex.net> An HTML attachment was scrubbed... URL: