www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Website builds are failing randomly

reply Vladimir Panteleev <thecybershadow.lists gmail.com> writes:
See e.g.:


The build fails because DMD fails to find the file 

I can reproduce the problem with:

digger build --with=website "master   2020-05-11 00:00:00"

The failing dlang.org/posix.mak command is:

.generated/stable_dmd-2.088.0/dmd2/linux/bin64/dub build 

It does fail when ran directly.

With -v, we can see that Dub runs the following DMD command:

.generated/stable_dmd-2.088.0/dmd2/linux/bin64/dmd -lib 
FFC/libdmd_parser.a -debug -g -w -version=NoBackend -version=GC -version=NoMain
-version=MARS -version=DdocOptions -version=IsExecutable
-version=Have_dmd_parser -version=Have_dmd_lexer -version=Have_dmd_root
-I../dmd/src/ -J../dmd/generated/dub ../dmd/src/dmd/astbase.d
../dmd/src/dmd/parse.d ../dmd/src/dmd/permissivevisitor.d
../dmd/src/dmd/strictvisitor.d ../dmd/src/dmd/transitivevisitor.d -vcolumns

Note that it indeed does not contain the -J switch needed for DMD 
to find default_ddoc_theme.ddoc.

dlang.org/ddoc/dub.sdl contains:

dependency "dmd" path="../../dmd"

and, ../../dmd/dub.sdl contains:

dependency ":frontend" version="*"
subPackage {
   name "frontend"
   stringImportPaths "res"

I don't see the problem. Seems to be a Dub bug?

Also worth noting that src/dmd/doc.d, the DMD file which performs 
the string import, is never mentioned in dub.sdl.
May 11
parent Vladimir Panteleev <thecybershadow.lists gmail.com> writes:
On Monday, 11 May 2020 at 18:54:27 UTC, Vladimir Panteleev wrote:
 See e.g.:

My mistake, these failures aren't actually random, just recent. https://github.com/dlang/dmd/pull/11125#issuecomment-626901284 https://github.com/dlang/dmd/pull/11131
May 11