www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - DMD 2.062 HEAD does not build for me

reply "Philippe Sigaud" <philippe.sigaud gmail.com> writes:
Since 2.061, I have a small script that downloads dmd, druntime 
and phobos from github and runs make. I worked flawlessly for the 
past two weeks, but since Sunday, g++ chokes on json.c:

g++ -m32  -c -Wno-deprecated -Wstrict-aliasing -D__pascal= 
-fno-exceptions -O2 -Iroot -DMARS=1 -DTARGET_LINUX=1 
-DDM_TARGET_CPU_X86=1 json.c

json.c: In member function ‘void 
JsonOut::propertyStorageClass(const char*, StorageClass)’:

json.c:396:34: warning: format ‘%lx’ expects argument of type 
‘long unsigned int’, but argument 2 has type ‘StorageClass {aka 
long long unsigned int}’ [-Wformat]


Since no one else seems to have problems and since I did not 
touch the script, can somebody explain to me why the build fails?
Jan 22 2013
next sibling parent "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Wed, Jan 23, 2013 at 07:28:12AM +0100, Philippe Sigaud wrote:
 Since 2.061, I have a small script that downloads dmd, druntime and
 phobos from github and runs make. I worked flawlessly for the past
 two weeks, but since Sunday, g++ chokes on json.c:
 
 g++ -m32  -c -Wno-deprecated -Wstrict-aliasing -D__pascal=
 -fno-exceptions -O2 -Iroot -DMARS=1 -DTARGET_LINUX=1
 -DDM_TARGET_CPU_X86=1 json.c
 
 json.c: In member function ‘void JsonOut::propertyStorageClass(const
 char*, StorageClass)’:
 
 json.c:396:34: warning: format ‘%lx’ expects argument of type ‘long
 unsigned int’, but argument 2 has type ‘StorageClass {aka long long
 unsigned int}’ [-Wformat]
 
 
 Since no one else seems to have problems and since I did not touch
 the script, can somebody explain to me why the build fails?
Run make clean first. <Rant about makefiles deleted ;-)> T -- Try to keep an open mind, but not so open your brain falls out. -- theboz
Jan 22 2013
prev sibling next sibling parent "Namespace" <rswhite4 googlemail.com> writes:
I had the same problems as you can read here:
http://forum.dlang.org/thread/rzvaprvvgdtwrnotovwx forum.dlang.org?page=3
Jan 23 2013
prev sibling next sibling parent "John Colvin" <john.loughran.colvin gmail.com> writes:
On Wednesday, 23 January 2013 at 06:28:14 UTC, Philippe Sigaud 
wrote:
 Since 2.061, I have a small script that downloads dmd, druntime 
 and phobos from github and runs make. I worked flawlessly for 
 the past two weeks, but since Sunday, g++ chokes on json.c:

 g++ -m32  -c -Wno-deprecated -Wstrict-aliasing -D__pascal= 
 -fno-exceptions -O2 -Iroot -DMARS=1 -DTARGET_LINUX=1 
 -DDM_TARGET_CPU_X86=1 json.c

 json.c: In member function ‘void 
 JsonOut::propertyStorageClass(const char*, StorageClass)’:

 json.c:396:34: warning: format ‘%lx’ expects argument of type 
 ‘long unsigned int’, but argument 2 has type ‘StorageClass {aka 
 long long unsigned int}’ [-Wformat]


 Since no one else seems to have problems and since I did not 
 touch the script, can somebody explain to me why the build 
 fails?
I have a similar script. Make clean tends to fix things, but occasionally I have had to delete everything and git clone again.
Jan 23 2013
prev sibling parent Philippe Sigaud <philippe.sigaud gmail.com> writes:
 Run make clean first.

 <Rant about makefiles deleted ;-)>
Ohhh, that worked perfectly! Thanks a lot!
Jan 23 2013