www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - "Optlink is on github"? No, it's just a mean joke from Walter!

reply Denis Shelomovskij <verylonglogin.reg gmail.com> writes:
1. DM C++ compiler source is required to build Optlink.
2. C++ compiler is not open-source.
3. You can not build Optlink.
4. Walter isn't going to change anything

1. "Optlink is on github" announce

Ready for review: new std.uni

http://forum.dlang.org/thread/kcppa1$30b9$1 digitalmars.com?page=5#post-kd03at:2425op:241:40digitalmars.com

  (


-- 
Денис В. Шеломовский
Denis V. Shelomovskij
Mar 18 2013
next sibling parent Denis Shelomovskij <verylonglogin.reg gmail.com> writes:
Sorry, accidentally Ctrl+Enter sent the main post malformed. The last 


-- 
Денис В. Шеломовский
Denis V. Shelomovskij
Mar 18 2013
prev sibling next sibling parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 3/18/2013 3:34 PM, Denis Shelomovskij wrote:
 1. DM C++ compiler source is required to build Optlink.
 2. C++ compiler is not open-source.
 3. You can not build Optlink.
 4. Walter isn't going to change anything

 1. "Optlink is on github" announce

 Ready for review: new std.uni

 http://forum.dlang.org/thread/kcppa1$30b9$1 digitalmars.com?page=5#post-kd03at:2425op:241:40digitalmars.com
If someone wants to do a pull req to remove the dependence on scio.h, I'll pull it.
Mar 18 2013
parent reply Denis Shelomovskij <verylonglogin.reg gmail.com> writes:
19.03.2013 4:58, Walter Bright пишет:
 On 3/18/2013 3:34 PM, Denis Shelomovskij wrote:
 1. DM C++ compiler source is required to build Optlink.
 2. C++ compiler is not open-source.
 3. You can not build Optlink.
 4. Walter isn't going to change anything

 1. "Optlink is on github" announce

 Ready for review: new std.uni

 http://forum.dlang.org/thread/kcppa1$30b9$1 digitalmars.com?page=5#post-kd03at:2425op:241:40digitalmars.com
If someone wants to do a pull req to remove the dependence on scio.h, I'll pull it.
Yes, just remove the dependency on file you have no sources of... But here we are: https://github.com/DigitalMars/optlink/pull/4 So, everything works now! No, it's a joke. ))) Optlink is surely propected from being compiled by dmc's ICE: --- dmc -c newlibc -NTPASS1_TEXT -I..\common -r -N_ -o -o.\OBJNT\newlibc.obj Internal error: cgcod.c 750 --- -- Денис В. Шеломовский Denis V. Shelomovskij
Mar 19 2013
parent reply Denis Shelomovskij <verylonglogin.reg gmail.com> writes:
19.03.2013 17:40, Denis Shelomovskij пишет:
 So, everything works now!
 No, it's a joke. )))
 Optlink is surely propected from being compiled by dmc's ICE:
 ---
 dmc -c newlibc -NTPASS1_TEXT -I..\common -r -N_ -o -o.\OBJNT\newlibc.obj
 Internal error: cgcod.c 750
 ---
The ICE is disappeared with other `dm.exe` but even with https://github.com/DigitalMars/optlink/pull/5 there are still make errors: --- D:\D\dm\bin\linkold /SILENT /NOI /NOERROR ..\slrNT OPTLINK (R) for Win32 Release 8.00.5 Copyright (C) Digital Mars 1989-2009 All rights reserved. http://www.digitalmars.com/ctg/optlink.html LINK.def(0) : Error 2: File Not Found LINK.def NMAKE : fatal error U1077: 'D:\D\dm\bin\linkold.EXE' : return code '0x1' Stop. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\nmake.EXE"' : return code '0x2' Stop. --- -- Денис В. Шеломовский Denis V. Shelomovskij
Mar 19 2013
parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 3/19/2013 7:00 AM, Denis Shelomovskij wrote:
 LINK.def(0) : Error 2: File Not Found LINK.def
It's there now.
Mar 19 2013
parent reply Denis Shelomovskij <verylonglogin.reg gmail.com> writes:
19.03.2013 22:31, Walter Bright пишет:
 On 3/19/2013 7:00 AM, Denis Shelomovskij wrote:
 LINK.def(0) : Error 2: File Not Found LINK.def
It's there now.
Dear Walter Bright, could you please test Optlink to be buildable not only with your machine configuration? If dummy (empty) file isn't created as os2link\OBJ\LNKX.EXE you get this: --- ... cd ..\OS2LINK cd OBJNT copy ..\OBJ\LNKX.EXE>nul NMAKE : fatal error U1077: 'copy' : return code '0x1' Stop. --- If dummy is created you get this: --- ... cd ..\OS2LINK cd OBJNT copy ..\OBJ\LNKX.EXE>nul D:\D\dm\bin\linkold /SILENT /NOI /NOERROR ..\slrNT OPTLINK (R) for Win32 Release 8.00.5 Copyright (C) Digital Mars 1989-2009 All rights reserved. http://www.digitalmars.com/ctg/optlink.html SLRLOAD.lib Warning 2: File Not Found SLRLOAD.lib ..\..\LIBNT\COMMON.lib(PASS1) Error 42: Symbol Undefined SLRLOAD_ENTRY ..\..\LIBNT\COMMON.lib(PASS1) Error 42: Symbol Undefined SLRLOAD_BOX_ENTRY NMAKE : fatal error U1077: 'D:\D\dm\bin\linkold.EXE' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin \nmake.EXE"' : return code '0x2' Stop. --- -- Денис В. Шеломовский Denis V. Shelomovskij
Mar 20 2013
next sibling parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 3/20/2013 12:40 AM, Denis Shelomovskij wrote:
 19.03.2013 22:31, Walter Bright пишет:
 On 3/19/2013 7:00 AM, Denis Shelomovskij wrote:
 LINK.def(0) : Error 2: File Not Found LINK.def
It's there now.
Dear Walter Bright, could you please test Optlink to be buildable not only with your machine configuration? If dummy (empty) file isn't created as os2link\OBJ\LNKX.EXE you get this: --- ... cd ..\OS2LINK cd OBJNT copy ..\OBJ\LNKX.EXE>nul NMAKE : fatal error U1077: 'copy' : return code '0x1' Stop. --- If dummy is created you get this: --- ... cd ..\OS2LINK cd OBJNT copy ..\OBJ\LNKX.EXE>nul D:\D\dm\bin\linkold /SILENT /NOI /NOERROR ..\slrNT
The link line is in optdll.mak and should be: OPTLINK: $(DIRS) cd ..\OS2LINK $(DM)\bin\link $(OBJ)\* ..\appload\slrload,$(OBJ)\link.exe,$(OBJ)\link.map,..\LIBNT\ $(LIBS)/CO/MAP/DET/XREF/NOI/EXETYPE:NT; -imagecfg -a 0x1 $(OBJ)\link.exe
 OPTLINK (R) for Win32  Release 8.00.5
 Copyright (C) Digital Mars 1989-2009  All rights reserved.
 http://www.digitalmars.com/ctg/optlink.html
 SLRLOAD.lib
   Warning 2: File Not Found SLRLOAD.lib
 ..\..\LIBNT\COMMON.lib(PASS1)
   Error 42: Symbol Undefined SLRLOAD_ENTRY
 ..\..\LIBNT\COMMON.lib(PASS1)
   Error 42: Symbol Undefined SLRLOAD_BOX_ENTRY
 NMAKE : fatal error U1077: 'D:\D\dm\bin\linkold.EXE' : return code '0x2'
 Stop.
 NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\bin
 \nmake.EXE"' : return code '0x2'
 Stop.
 ---
Mar 20 2013
parent Denis Shelomovskij <verylonglogin.reg gmail.com> writes:
20.03.2013 12:42, Walter Bright пишет:
 On 3/20/2013 12:40 AM, Denis Shelomovskij wrote:
 19.03.2013 22:31, Walter Bright пишет:
 On 3/19/2013 7:00 AM, Denis Shelomovskij wrote:
 LINK.def(0) : Error 2: File Not Found LINK.def
It's there now.
Dear Walter Bright, could you please test Optlink to be buildable not only with your machine configuration? If dummy (empty) file isn't created as os2link\OBJ\LNKX.EXE you get this: --- ... cd ..\OS2LINK cd OBJNT copy ..\OBJ\LNKX.EXE>nul NMAKE : fatal error U1077: 'copy' : return code '0x1' Stop. --- If dummy is created you get this: --- ... cd ..\OS2LINK cd OBJNT copy ..\OBJ\LNKX.EXE>nul D:\D\dm\bin\linkold /SILENT /NOI /NOERROR ..\slrNT
The link line is in optdll.mak and should be: OPTLINK: $(DIRS) cd ..\OS2LINK $(DM)\bin\link $(OBJ)\* ..\appload\slrload,$(OBJ)\link.exe,$(OBJ)\link.map,..\LIBNT\ $(LIBS)/CO/MAP/DET/XREF/NOI/EXETYPE:NT; -imagecfg -a 0x1 $(OBJ)\link.exe
 OPTLINK (R) for Win32  Release 8.00.5
 Copyright (C) Digital Mars 1989-2009  All rights reserved.
 http://www.digitalmars.com/ctg/optlink.html
 SLRLOAD.lib
   Warning 2: File Not Found SLRLOAD.lib
 ..\..\LIBNT\COMMON.lib(PASS1)
   Error 42: Symbol Undefined SLRLOAD_ENTRY
 ..\..\LIBNT\COMMON.lib(PASS1)
   Error 42: Symbol Undefined SLRLOAD_BOX_ENTRY
 NMAKE : fatal error U1077: 'D:\D\dm\bin\linkold.EXE' : return code '0x2'
 Stop.
 NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
 9.0\VC\bin
 \nmake.EXE"' : return code '0x2'
 Stop.
 ---
This is not what happens when you run `build.bat` as the failing target is `OS2LNK` from `optdll.mak`. But running `build_optlink.bat` really makes `OPTLINK` target from `optdll.mak`, triggers your proposed line and works fine, so I'm happy now as I'm able to build the linker. But why is there `build.bat`, what does it build and why does it fail? -- Денис В. Шеломовский Denis V. Shelomovskij
Mar 20 2013
prev sibling parent reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
On 3/20/13, Denis Shelomovskij <verylonglogin.reg gmail.com> wrote:
 Dear Walter Bright,
 could you please test Optlink to be buildable not only with your machine
 configuration?
This[1] should have taken care of that. Although it still needed DMC source for scio.h, but it did build on my machine. [1] https://github.com/DigitalMars/optlink/pull/2
Mar 20 2013
parent reply Denis Shelomovskij <verylonglogin.reg gmail.com> writes:
20.03.2013 13:34, Andrej Mitrovic пишет:
 On 3/20/13, Denis Shelomovskij <verylonglogin.reg gmail.com> wrote:
 Dear Walter Bright,
 could you please test Optlink to be buildable not only with your machine
 configuration?
This[1] should have taken care of that. Although it still needed DMC source for scio.h, but it did build on my machine. [1] https://github.com/DigitalMars/optlink/pull/2
This[1] is already merged so I don't understand your point. -- Денис В. Шеломовский Denis V. Shelomovskij
Mar 20 2013
next sibling parent Denis Shelomovskij <verylonglogin.reg gmail.com> writes:
20.03.2013 21:12, Denis Shelomovskij пишет:
 20.03.2013 13:34, Andrej Mitrovic пишет:
 On 3/20/13, Denis Shelomovskij <verylonglogin.reg gmail.com> wrote:
 Dear Walter Bright,
 could you please test Optlink to be buildable not only with your machine
 configuration?
This[1] should have taken care of that. Although it still needed DMC source for scio.h, but it did build on my machine. [1] https://github.com/DigitalMars/optlink/pull/2
This[1] is already merged so I don't understand your point.
Also as I wrote dependencies on DM C++ compiler source are removed in https://github.com/DigitalMars/optlink/pull/4 -- Денис В. Шеломовский Denis V. Shelomovskij
Mar 20 2013
prev sibling parent reply Denis Shelomovskij <verylonglogin.reg gmail.com> writes:
20.03.2013 21:12, Denis Shelomovskij пишет:
 20.03.2013 13:34, Andrej Mitrovic пишет:
 On 3/20/13, Denis Shelomovskij <verylonglogin.reg gmail.com> wrote:
 Dear Walter Bright,
 could you please test Optlink to be buildable not only with your machine
 configuration?
This[1] should have taken care of that. Although it still needed DMC source for scio.h, but it did build on my machine. [1] https://github.com/DigitalMars/optlink/pull/2
This[1] is already merged so I don't understand your point.
I see now that one have to run `build_optlink.bat`, not `build.bat`. And it wasn't obvious to me and no one told me it or at least to carefully -- Денис В. Шеломовский Denis V. Shelomovskij
Mar 20 2013
parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
On 3/20/13, Denis Shelomovskij <verylonglogin.reg gmail.com> wrote:
 I see now that one have to run `build_optlink.bat`, not `build.bat`. And
 it wasn't obvious to me and no one told me it or at least to carefully

Also make sure to get imagecfg.exe to avoid hangs when running Optlink. See https://github.com/DigitalMars/optlink/pull/2#issuecomment-13684595
Mar 20 2013
prev sibling parent Denis Shelomovskij <verylonglogin.reg gmail.com> writes:
19.03.2013 2:34, Denis Shelomovskij пишет:
 1. DM C++ compiler source is required to build Optlink.
 2. C++ compiler is not open-source.
 3. You can not build Optlink.
 4. Walter isn't going to change anything
It works now! Thanks be to God! http://deoma-cmd.ru/files/other/images/Optlink-Issue%207139-in-Visual-Studio.png -- Денис В. Шеломовский Denis V. Shelomovskij
Mar 21 2013