Bug 2079 – Phobos unit tests fail assertion on std/std/string.d

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
PowerPC
OS
Mac OS X
Creation time
2008-05-07T22:37:34Z
Last change time
2021-02-14T17:30:55Z
Assigned to
Iain Buclaw
Creator
Leo Singer

Attachments

IDFilenameSummaryContent-TypeSize
255fail.txtOutput from make commandtext/plain6674

Comments

Comment #0 by aronnax — 2008-05-07T22:37:34Z
I ran the command: $ make check-target-libphobos Building from Subversion with gcc 4.1.2 on Mac OS X 10.5.2, the Phobos unit tests fail with the following error message: Error: AssertError Failure ../.././libphobos/std/string.d(222) See attached log of the build.
Comment #1 by aronnax — 2008-05-07T22:38:12Z
Created attachment 255 Output from make command
Comment #2 by aronnax — 2008-05-08T04:24:06Z
You just have to add d/clone.dmd.o to D_DMD_OBJS on line 169 of Make-lang.in, and that fixes the problem. Here's a patch: Index: Make-lang.in =================================================================== --- Make-lang.in (revision 219) +++ Make-lang.in (working copy) @@ -167,7 +167,7 @@ cp $(D_DRIVER_NAME)$(exeext) $(D_DRIVER_NAME)-cross$(exeext) D_DMD_OBJS = \ - d/access.dmd.o d/array.dmd.o d/attrib.dmd.o d/cast.dmd.o d/class.dmd.o d/cond.dmd.o d/constfold.dmd.o d/dchar.dmd.o d/declaration.dmd.o d/delegatize.dmd.o d/doc.dmd.o \ + d/access.dmd.o d/array.dmd.o d/attrib.dmd.o d/cast.dmd.o d/class.dmd.o d/clone.dmd.o d/cond.dmd.o d/constfold.dmd.o d/dchar.dmd.o d/declaration.dmd.o d/delegatize.dmd.o d/doc.dmd.o \ d/dsymbol.dmd.o d/dump.dmd.o d/entity.dmd.o d/enum.dmd.o d/expression.dmd.o d/func.dmd.o d/gnuc.dmd.o d/hdrgen.dmd.o d/html.dmd.o d/identifier.dmd.o d/import.dmd.o \ d/init.dmd.o d/inline.dmd.o d/interpret.dmd.o d/lexer.dmd.o d/lstring.dmd.o d/macro.dmd.o d/mangle.dmd.o d/mars.dmd.o d/mem.dmd.o d/mtype.dmd.o d/module.dmd.o d/opover.dmd.o d/optimize.dmd.o d/parse.dmd.o \ d/root.dmd.o d/scope.dmd.o d/statement.dmd.o d/staticassert.dmd.o d/stringtable.dmd.o d/struct.dmd.o d/template.dmd.o \
Comment #3 by ibuclaw — 2010-08-13T05:09:27Z
Just looking, d/clone.dmd.o is already added to the Make-lang.in objects. Closing
Comment #4 by dlang-bot — 2021-01-21T08:44:16Z
dlang/dub pull request #2081 "Allow adding dflags on dependencies when using SDL format" was merged into stable: - cfd4fd801468a46cd599dda476c19bbd9f093237 by Ömer Faruk IRMAK: Allow adding dflags on dependencies when using SDL format Fixes #2079 https://github.com/dlang/dub/pull/2081
Comment #5 by dlang-bot — 2021-02-14T17:30:55Z
dlang/dub pull request #2106 "merge stable" was merged into master: - d43fbae49752d309ba822ecfbe80322496c13130 by Ömer Faruk IRMAK: Allow adding dflags on dependencies when using SDL format Fixes #2079 https://github.com/dlang/dub/pull/2106