August 13, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10729



--- Comment #9 from Nils <nilsbossung@googlemail.com> 2013-08-13 06:23:37 PDT ---
(In reply to comment #4)
> > Maybe you are still link old phobos.lib (2.063 or earlier). After git head
> > rebuild, you would forgot to place the generated phobos.lib (in
> > dmd2\src\phobos\) on correct lib path (dmd2\windows\lib\phobos.lib by default).
> 
> I don't think so. Every time I finished rebuilding druntime and phobos, I always copy the new druntime.lib and phobos.lib into my dmd directory, replacing the old ones.
> 
> Anyway, I just repeated the compilation process, just to make sure. Here's the
> screencast of it:
> http://youtu.be/Fu1P0HGkZXA

In the video, you don't copy phobos.lib over: http://www.youtube.com/watch?v=Fu1P0HGkZXA&t=1m56s

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 13, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10729



--- Comment #10 from Nils <nilsbossung@googlemail.com> 2013-08-13 06:27:46 PDT ---
(In reply to comment #9)
> In the video, you don't copy phobos.lib over: http://www.youtube.com/watch?v=Fu1P0HGkZXA&t=1m56s

Forget about that, I got confused. You're doing make, make clean, make, copy. So, in the end you should be fine.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 14, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10729



--- Comment #11 from Andre Tampubolon <andre@lc.vlsm.org> 2013-08-14 00:00:07 PDT ---
> It seems to me that the issue is in your development environment. Sorry for my poor reply...

If this is the case then I guess the issue can be quite difficult to trace. Hmmm.. maybe you can give me some points to check regarding of my environment, so we can find out what the differences are between mine and yours, and hopefully one of them is the culprit?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 14, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10729


Maxim Fomin <maxim@maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxim@maxim-fomin.ru


--- Comment #12 from Maxim Fomin <maxim@maxim-fomin.ru> 2013-08-14 03:15:32 PDT ---
One way to test the issue is to compile dmd, druntime, phobos and hello object file in problematic environment and attach them here to test in working environments. If hello program is linkable and runnable in others environments, then problem is with your setup.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 19, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10729



--- Comment #13 from Andre Tampubolon <andre@lc.vlsm.org> 2013-08-19 02:27:29 PDT ---
(In reply to comment #12)
> One way to test the issue is to compile dmd, druntime, phobos and hello object file in problematic environment and attach them here to test in working environments. If hello program is linkable and runnable in others environments, then problem is with your setup.

I decided to wipe out dmd, druntime, and phobos directories and rebuild them.
While building phobos, I got this:
Error: cannot find source code for runtime library file 'object.d'
       dmd might not be correctly installed. Run 'dmd -man' for installation
instructions.
Specify path to file 'object.d' with -I switch

I could find both object.di and object_.d in druntime directory, but not object.d

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 19, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10729



--- Comment #14 from Maxim Fomin <maxim@maxim-fomin.ru> 2013-08-19 02:40:21 PDT ---
(In reply to comment #13)
> (In reply to comment #12)
> > One way to test the issue is to compile dmd, druntime, phobos and hello object file in problematic environment and attach them here to test in working environments. If hello program is linkable and runnable in others environments, then problem is with your setup.
> 
> I decided to wipe out dmd, druntime, and phobos directories and rebuild them.
> While building phobos, I got this:
> Error: cannot find source code for runtime library file 'object.d'
>        dmd might not be correctly installed. Run 'dmd -man' for installation
> instructions.

It seems that you indeed linked to old druntime.

> Specify path to file 'object.d' with -I switch
> 
> I could find both object.di and object_.d in druntime directory, but not object.d

It should be object_.d. You haven't setup path to druntime correctly.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 19, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10729



--- Comment #15 from Andre Tampubolon <andre@lc.vlsm.org> 2013-08-19 07:41:43 PDT ---
> It should be object_.d. You haven't setup path to druntime correctly.

I just realised that sc.ini is missing from dmd's bin directory. So I copied that file, and rebuild druntime and phobos once again. Of course I copied the new druntime and phobos directories, as well as druntime.lib and phobos.lib into dmd directory. Still failed to build even the simple hello world.

Anyway, this is my latest dmd build. Please give it a try. Maybe one of you could find if I did something wrong with it. http://www.mediafire.com/?z8gbeplhwumcogd

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 09, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10729


Nick Sabalausky <cbkbbejeap@mailinator.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cbkbbejeap@mailinator.com


--- Comment #16 from Nick Sabalausky <cbkbbejeap@mailinator.com> 2013-09-09 15:43:25 PDT ---
I seem to be having the same problem. Master works fine for me on OSX 10.7,
FreeBSD 9.1 (32-bit OS), and Debian 6 (both 32-bit OS and 64-bit OS). But on
Win7 (64-bit OS) I get the same problem as Andre:

http://forum.dlang.org/thread/20130829210040.00002184@unknown http://forum.dlang.org/thread/20130903205311.00003c40@unknown

To see if you can reproduce it, you can compile this script:

https://github.com/Abscissa/installer/blob/create-zip/create_dmd_release/create_dmd_release.d

...then remove all other DMDs from the path, and then run the script. For the purposes of this bug report, you can simply run the script like this:

mkdir junk
create_dmd_release master --extras=junk --only-32 -v

On other 32-bit-capable OSes that results in a working DMD toolchain. But (at least for me, I don't know about other people) on Windows, it fails the first time the newly-built phobos is used - when trying to build chmgen. You can then try to use the newly-built DMD toolchain (in [your temp dir]/.create_dmd_release/dmd/src), and it will fail to link even a basic hello world. But on other OSes it works fine, and using "v2.063.2" instead of "master" also results in a working DMD/phobos.

Just an idea: It is possible that maybe this issue *only* occurs on fresh checkouts/builds of DMD/druntime/phobos? Perhaps there's something incorrect or non-standard on the Windows systems where it *is* working, and that's the reason it's not failing for some people? Maybe it would start failing on those systems when using a completely fresh and isolated checkout/build? Just a crazy idea.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 13, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10729



--- Comment #17 from Andre Tampubolon <andre@lc.vlsm.org> 2013-09-13 00:30:25 PDT ---
I just pulled the latest updates and rebuild them again.
The canonical "hello world" program now only yields 1 error:
C:\Users\CSL-NB-064\Codes\D>dmd hello.d
OPTLINK (R) for Win32  Release 8.00.13
Copyright (C) Digital Mars 1989-2010  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
hello.obj(hello)
 Error 42: Symbol Undefined
_D3std9exception14__T7enforceTbZ7enforceFNaNfbLAxaAyakZb
--- errorlevel 1

Not surprisingly, more complex program will yield more errors :D


> I seem to be having the same problem. Master works fine for me on OSX 10.7,
> FreeBSD 9.1 (32-bit OS), and Debian 6 (both 32-bit OS and 64-bit OS). But on
> Win7 (64-bit OS) I get the same problem as Andre:
> 
> http://forum.dlang.org/thread/20130829210040.00002184@unknown http://forum.dlang.org/thread/20130903205311.00003c40@unknown
> 
> To see if you can reproduce it, you can compile this script:
> 
> https://github.com/Abscissa/installer/blob/create-zip/create_dmd_release/create_dmd_release.d
> 

The script could not be compiled:
C:\Users\CSL-NB-064\Desktop\blah>dmd create_dmd_release.d
OPTLINK (R) for Win32  Release 8.00.13
Copyright (C) Digital Mars 1989-2010  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std5array20__T8appenderTAyaTyaZ8appenderFNaNbNfZS3std5array17__T8AppenderTAyaZ8Appender
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std9algorithm36__T4findVAyaa6_61203d3d2062TAyaTAyaZ4findFNaNbAyaAyaZAya
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std9exception14__T7enforceTbZ7enforceFNaNfbLAxaAyakZb
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std4file6existsFNexAaZb
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std5array13__T5frontTyaZ5frontFNaNdNfAyaZw
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std4conv11__T2toTAyaZ11__T2toTAyaZ2toFNaNbNfAyaZAya
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std5range52__T3putTS3std5array17__T8AppenderTAyaZ8AppenderTAyaZ3putFNaNbNfKS3std5array17_
_T8AppenderTAyaZ8AppenderAyaZv
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std6string15StringException6__ctorMFNaNbNfAyaAyakC6object9ThrowableZC3std6string15StringE
xception
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std3utf12UTFException6__ctorMFNaNfAyakAyakC6object9ThrowableZC3std3utf12UTFException
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std4file7tempDirFNeZAya
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std9algorithm12__T3minTkTkZ3minFNaNbNfkkZk
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std4conv10parseErrorFNaNfLAyaAyakZC3std4conv13ConvException
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std9exception44__T9enforceExTC3std6format15FormatExceptionZ16__T9enforceExTbZ9enforceExFN
aNfbLAyaAyakZb
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std5range51__T3putTS3std5array17__T8AppenderTAyaZ8AppenderTxaZ3putFNaNbNfKS3std5array17__
T8AppenderTAyaZ8AppenderxaZv
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std6format62__T14ÇåìUnsignedTSÇäó5array17Çâí8AppenderTAyaZÇèÄaZÇÉ+FNaNbNfǺ-mKÇà®üçî18üäî
0FÇàìSpecÇäÓÇïÅkbZv
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std7process11environment7opIndexFNfxAaZAya
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std7process11environment3getFNfxAaAyaZAya
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std4conv11__T2toTAyaZ9__T2toTiZ2toFNaNfiZAya
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std4conv11__T2toTAyaZ9__T2toTkZ2toFNaNfkZAya
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std5regex8Bytecode6pairedMxFNdZS3std5regex8Bytecode
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std5regex8Bytecode7isStartMxFNdZb
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std5regex8Bytecode11indexOfPairMxFkZk
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std5regex8Bytecode6lengthMxFNdZk
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std5regex8Bytecode6isAtomMxFNdZb
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std5regex8Bytecode5isEndMxFNdZb
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std5regex8Bytecode4codeMxFNdZE3std5regex2IR
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std5regex8Bytecode7fromRawFkZS3std5regex8Bytecode
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std5regex8Bytecode14setBackrefenceMFZv
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std5regex8Bytecode4dataMxFNdZk
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std5regex8Bytecode7hotspotMxFNdZb
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std7process12executeShellFNexAaxHAyaAyaE3std7process6ConfigkZS3std7process133__T11execute
Impl820EA4D0911E9A98FB8E8770F2B3699C
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std4conv21__T4textTAyaTAyaTAyaZ4textFNaNbNfAyaAyaAyaZAya
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std4conv13ConvException6__ctorMFNaNbNfAyaAyakZC3std4conv13ConvException
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std4conv19__T4textTAyaTwTAyaZ4textFNaNfAyawAyaZAya
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std4conv21ConvOverflowException6__ctorMFNaNbNfAyaAyakZC3std4conv21ConvOverflowException
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std5regex8Bytecode8sequenceMxFNdZk
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std5regex11startOfLineFwbZb
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std8internal3uni22__T13CodepointTrieVi8Z13CodepointTrie7opIndexMxFNaNbNewZb
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std5array13__T5frontTxaZ5frontFNaNdNfAxaZw
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std5regex8Bytecode8localRefMxFNdZb
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std5regex9endOfLineFwbZb
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std5regex8wordTrieFNdZS3std8internal3uni22__T13CodepointTrieVi8Z13CodepointTrie
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std8internal3uni8Interval6__ctorMFNcNfwwZS3std8internal3uni8Interval
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std4conv11__T2toTAyaZ9__T2toTaZ2toFNaNfaZAya
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std5range50__T3putTS3std5array17__T8AppenderTAyaZ8AppenderTaZ3putFNaNbNfKS3std5array17__T
8AppenderTAyaZ8AppenderaZv
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std6format18__T10FormatSpecTaZ10FormatSpec6fillUpMFNaNfZv
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNbNcNfxAaZS3std6format18__T10FormatS
pecTaZ10FormatSpec
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std4conv9__T2toTiZ9__T2toTiZ2toFNaNbNfiZi
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std6format15FormatException6__ctorMFNaNbNfAyaAyakC6object9ThrowableZC3std6format15FormatE
xception
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std6format14__T9getNthIntZ9getNthIntFNaNfkZi
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std4conv17__T4textTAyaTAxaZ4textFNaNfAyaAxaZAya
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std5regex13wordCharacterFNdZS3std8internal3uni12CodepointSet
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std5regex8Bytecode11setLocalRefMFZv
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std8internal3uni22__T13CodepoÇâÖTrieVi8ZÇÅô11__xopEqualsFNfKxSÇ©-Ç++Zb
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std5regex8Bytecode6__ctorMFNcE3std5regex2IRkkZS3std5regex8Bytecode
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std5regex8Bytecode6__ctorMFNcE3std5regex2IRkZS3std5regex8Bytecode
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std9exception14__T7enforceTbZ7enforceFNaNfbLC6object9ThrowableZb
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std5regex8Bytecode12pairedLengthMxFNdZk
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std5regex10NamedGroup11__xopEqualsFKxS3std5regex10NamedGroupKxS3std5regex10NamedGroupZb
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std6format62__T11ÇåìValueTSÇäƒ5array17Çâ×8AppenderTAyaZÇèÄxhTaZÇì+FNaNfǺ+xhKÇà¬üçê18üäê0
FÇàìSpecÇä_ÇïÅZv
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std5array20__T8appenderTAxaTxaZ8appenderFNaNbNfZS3std5array17__T8AppenderTAxaZ8Appender
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std5array16__T8popFrontTxaZ8popFrontFNaNbNeKAxaZv
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std5array17__T8AppenderTAxaZ8Appender10__T3putTaZ3putMFNaNbNfaZv
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std6format62__T11ÇåìValueTSÇäƒ5array17Çâ×8AppenderTAyaZÇèÄxmTaZÇì+FNaNfǺ+xmKÇà¬üçê18üäê0
FÇàìSpecÇä_ÇïÅZv
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined _D3std4conv9__T2toTiZ10__T2toTxkZ2toFNaNfxkZi
create_dmd_release.obj(create_dmd_release)
 Error 42: Symbol Undefined
_D3std5stdio4File17lockingTextWriterMFZS3std5stdio4File17LockingTextWriter
--- errorlevel 66

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 13, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10729



--- Comment #18 from Nick Sabalausky <cbkbbejeap@mailinator.com> 2013-09-13 04:28:19 PDT ---
(In reply to comment #17)
> 
> The script could not be compiled:

Compile it with a working DMD, like v2.063.2. Then run it with

mkdir junk
create_dmd_release master --extras=junk --only-32 -v

It'll clone dmd/phobos/tools/etc master to a temp dir then try to compile them. I imagine you'll get the same result I did since you're having trouble getting a working dmd/phobos from master, too.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------