[Issue 18145] New: Phobos makefile incorrectly sets --dip1000 for DMD when BUILD=debug
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 30 01:10:14 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=18145
Issue ID: 18145
Summary: Phobos makefile incorrectly sets --dip1000 for DMD
when BUILD=debug
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: jack at jackstouffer.com
DMD can't be built with DIP1000 and neither can Phobos. DIP1000 shouldn't be
set in either case
$ make -j16 -f posix.mak BUILD=debug std/algorithm/iteration.test
/Library/Developer/CommandLineTools/usr/bin/make -C ../druntime -f posix.mak
MODEL=64 DMD=../dmd/generated/osx/debug/64/dmd OS=osx BUILD=debug
make -C ../dmd/src -f posix.mak BUILD=debug OS=osx MODEL=64
no cpu specified, assuming X86
CC="c++" dmd -lib -of../generated/osx/debug/64/lexer.a -m64
-J../generated/osx/debug/64 -L-lstdc++ -version=MARS -fPIC -w -de -g -debug
dmd/console.d dmd/entity.d dmd/errors.d dmd/globals.d dmd/id.d dmd/identifier.d
dmd/lexer.d dmd/tokens.d dmd/utf.d dmd/root/array.d dmd/root/ctfloat.d
dmd/root/file.d dmd/root/filename.d dmd/root/outbuffer.d dmd/root/port.d
dmd/root/rmem.d dmd/root/rootobject.d dmd/root/stringtable.d dmd/root/hash.d
dmd/root/stringtable.d(48): Error: returning cast(char*)(&this + 16L) escapes a
reference to parameter this, perhaps annotate with return
dmd/root/stringtable.d(58): Error: returning cast(const(char)*)(&this + 16L)
escapes a reference to parameter this, perhaps annotate with return
make[2]: *** [../generated/osx/debug/64/lexer.a] Error 1
make[1]: *** [../dmd/generated/osx/debug/64/dmd] Error 2
make: *** [../druntime/generated/osx/debug/64/libdruntime.a] Error 2
--
More information about the Digitalmars-d-bugs
mailing list