www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - "don't know how to make 'src\unittest.d'" error while rebuilding

reply "Gleb" <s4mmael gmail.com> writes:
Hi folks!

I'm trying to recompile Phobos to work with curl under Win7 as 
described here: 
digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=161483

As far as I understand, I need to build druntime before building 
phobos, because phobos depends on druntime's libraries. So I make 
the following:
 cd dmd2\src\druntime
 make -f win32.mak unittest

 Error: don't know how to make 'src\unittest.d'

There is no such file dmd2\src\druntime\src\unittest.d. Could you please help me to resolve this issue? Thank you in advance for your advice, it's really appreciated.
Mar 29 2012
next sibling parent reply Dmitry Olshansky <dmitry.olsh gmail.com> writes:
On 29.03.2012 17:51, Gleb wrote:
 Hi folks!

 I'm trying to recompile Phobos to work with curl under Win7 as described
 here:
 digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=161483


 As far as I understand, I need to build druntime before building phobos,
 because phobos depends on druntime's libraries. So I make the following:
 cd dmd2\src\druntime
 make -f win32.mak unittest


make -f win32.mak Personally, I've never built unittest for druntime.
 and get an error:
 Error: don't know how to make 'src\unittest.d'

There is no such file dmd2\src\druntime\src\unittest.d. Could you please help me to resolve this issue? Thank you in advance for your advice, it's really appreciated.

-- Dmitry Olshansky
Mar 29 2012
parent Dmitry Olshansky <dmitry.olsh gmail.com> writes:
On 29.03.2012 20:51, Gleb wrote:
 Dmitry, thank you for your answer!

 On Thursday, 29 March 2012 at 13:57:05 UTC, Dmitry Olshansky wrote:
 This should work:

 make -f win32.mak

unittests but I can't built my program with new phobos.lib. An error message is as follows: OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html D:\UserFiles\D\dmd2\windows\bin\..\lib\phobos.lib(file) Error 42: Symbol Undefined _D3std10__fileinit9useWfuncsOb D:\UserFiles\D\dmd2\windows\bin\..\lib\phobos.lib(file) Error 42: Symbol Undefined _D3std10__fileinit12__ModuleInfoZ --- errorlevel 2 I have commented out all the code related with curl, so it is not because of curl . It looks like my new phobos.lib is somehow bad. I have no idea what does this error mean. Google didn't help. So I was trying to use unittests to find out what's wrong.

Don't forget to place new phobos.lib to dmd2\windows\lib as you are on win32. -- Dmitry Olshansky
Mar 29 2012
prev sibling next sibling parent "Gleb" <s4mmael gmail.com> writes:
Dmitry, thank you for your answer!

On Thursday, 29 March 2012 at 13:57:05 UTC, Dmitry Olshansky 
wrote:
 This should work:

 make -f win32.mak

without unittests but I can't built my program with new phobos.lib. An error message is as follows: OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html D:\UserFiles\D\dmd2\windows\bin\..\lib\phobos.lib(file) Error 42: Symbol Undefined _D3std10__fileinit9useWfuncsOb D:\UserFiles\D\dmd2\windows\bin\..\lib\phobos.lib(file) Error 42: Symbol Undefined _D3std10__fileinit12__ModuleInfoZ --- errorlevel 2 I have commented out all the code related with curl, so it is not because of curl . It looks like my new phobos.lib is somehow bad. I have no idea what does this error mean. Google didn't help. So I was trying to use unittests to find out what's wrong.
Mar 29 2012
prev sibling next sibling parent "Jesse Phillips" <Jessekphillips+D gmail.com> writes:
On Thursday, 29 March 2012 at 16:51:24 UTC, Gleb wrote:

 OPTLINK (R) for Win32  Release 8.00.12
 Copyright (C) Digital Mars 1989-2010  All rights reserved.
 http://www.digitalmars.com/ctg/optlink.html
 D:\UserFiles\D\dmd2\windows\bin\..\lib\phobos.lib(file)
  Error 42: Symbol Undefined _D3std10__fileinit9useWfuncsOb
 D:\UserFiles\D\dmd2\windows\bin\..\lib\phobos.lib(file)
  Error 42: Symbol Undefined _D3std10__fileinit12__ModuleInfoZ
 --- errorlevel 2

 I have commented out all the code related with curl, so it is 
 not because of curl . It looks like my new phobos.lib is 
 somehow bad.
 I have no idea what does this error mean. Google didn't help. 
 So I was trying to use unittests to find out what's wrong.

This is a linker error, it can't find phobos.lib. You can pass phobos2.lib on the commandline, I don't know the linker flags for optlink to find it. sc.ini is the configuration for it though.
Mar 29 2012
prev sibling next sibling parent "Gleb" <s4mmael gmail.com> writes:
Thank you for the answers.
Unfortunately, the program compiles correctly with the original
phobos.lib in dmd2\windows\lib, but does not compile with the new
one in the same directory.
Mar 29 2012
prev sibling next sibling parent "Brad Anderson" <eco gnuk.net> writes:
On Thursday, 29 March 2012 at 19:10:25 UTC, Gleb wrote:
 Thank you for the answers.
 Unfortunately, the program compiles correctly with the original
 phobos.lib in dmd2\windows\lib, but does not compile with the 
 new
 one in the same directory.

http://forum.dlang.org/post/mailman.1238.1333127999.4860.digitalmars-d puremagic.com Regards, Brad Anderson
Mar 30 2012
prev sibling parent "Gleb" <s4mmael gmail.com> writes:
On Friday, 30 March 2012 at 17:20:28 UTC, Brad Anderson wrote:
 http://forum.dlang.org/post/mailman.1238.1333127999.4860.digitalmars-d puremagic.com

Mar 30 2012