From: Brian P. <bri...@tu...> - 2005-01-29 17:39:23
|
Abhijit Gadgil wrote: > --- Abhijit Gadgil <gab...@ya...> wrote: > > >>Date: Sat, 29 Jan 2005 05:49:30 -0800 (PST) >>From: Abhijit Gadgil <gab...@ya...> >>Subject: Re: [Chromium-users] Build for Chromium with debug support fails on >>AMD64 >>To: Abhijit Gadgil <gab...@ya...> >> >> >>Sorry, read RELEASE=0 below and USE_DMX=1 >> >>-abhijit >> >>--- Abhijit Gadgil <gab...@ya...> wrote: >> >> >>>Hi all, >>> >>>While trying to compile chromium with RELEASE=1 in options.mk, I am getting >>>following error in the compilation of zpix SPU. Has anyone faced this >> >>problem >> >>>before? Whats the fix? >>> >>>Compiling zpixspu.c >>>zpixspu.c: In function `zpixDrawPixels': >>>zpixspu.c:475: warning: cast from pointer to integer of different size >>>zpixspu.c:475: warning: cast from pointer to integer of different size >>>zpixspu.c: In function `zpixZPix': >>>zpixspu.c:778: warning: cast from pointer to integer of different size >>>zpixspu.c:778: warning: cast from pointer to integer of different size >>>gmake[3]: *** [../../built/zpixspu/Linux/zpixspu.o] Error 1 >>>gmake[2]: *** [dep] Error 2 >>>gmake[1]: *** [zpix.subdir] Error 2 >>>make: *** [spu.subdir] Error 2 >>> >>>Line 475 reads : >>>CRASSERT( (GLuint) p_run >= (GLuint) &(p_plebuf->data) ); >>> >>>I believe a pointer is being dereferenced as GLUint, which is causing >>>problems >>>due to different sizes? Probably. Are you working on a 64-bit system? Try replacing those two assertions with these: CRASSERT((void *) p_run >= (void *) &(p_plebuf->data)); CRASSERT((int) sizeof(PLEbuf) <= (char *) p_run - (char *) p_plebuf); -Brian |