Thread overview | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
March 29, 2012 "don't know how to make 'src\unittest.d'" error while rebuilding Phobos | ||||
---|---|---|---|---|
| ||||
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 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. |
March 29, 2012 Re: "don't know how to make 'src\unittest.d'" error while rebuilding Phobos | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gleb | 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 This should work: 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 |
March 29, 2012 Re: "don't know how to make 'src\unittest.d'" error while rebuilding Phobos | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dmitry Olshansky | 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 I've already gave this a try. I managed to get phobos built 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. |
March 29, 2012 Re: "don't know how to make 'src\unittest.d'" error while rebuilding Phobos | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gleb | 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.
|
March 29, 2012 Re: "don't know how to make 'src\unittest.d'" error while rebuilding Phobos | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gleb | 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 > I've already gave this a try. I managed to get phobos built 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. Don't forget to place new phobos.lib to dmd2\windows\lib as you are on win32. -- Dmitry Olshansky |
March 29, 2012 Re: "don't know how to make 'src\unittest.d'" error while rebuilding Phobos | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dmitry Olshansky | 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. |
March 30, 2012 Re: "don't know how to make 'src\unittest.d'" error while rebuilding Phobos | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gleb | 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 |
March 30, 2012 Re: "don't know how to make 'src\unittest.d'" error while rebuilding Phobos | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson | 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
Thank you very much! Problem is solved, curl works great!
|
Copyright © 1999-2021 by the D Language Foundation