On Mon, Apr 18, 2011 at 10:56:11AM +0300, Sertac TULLUK wrote:
> Dear Netsurf developers,
> 
> Firstly, I want to thank you for making such modular web browser.
> 
> I have an embedded device with arm926EJ-s chipset, which is using 
> simple linux framebuffer. And I want to port Netsurf to my device.
> 
> I passed many sequences, but I finally stuck on compiling libnsfb 
> with arm-linux-gcc.  When I compile it with my GCC, it compiles 
> perfectly. but when I compile it with my cross-tool: arm-linux gcc, I 
> get following error:
> 
> root@ubuntu:/home/stulluk/dev/MRH-1202/MRH-1201/netsurf/libnsfb# make
>  COMPILE: src/libnsfb.c
> cc1: error: unrecognized command line option "-Wno-overlength-strings"
> make: *** [build-Linux-Linux-release-lib-static/src_libnsfb.o] Error 1
> root@ubuntu:/home/stulluk/dev/MRH-1202/MRH-1201/netsurf/libnsfb#

Which version of GCC are you using?

> And then, I disable with #-Wno-overlength-strings, but this time I 
> get another error as below:
> 
> 
> root@ubuntu:/home/stulluk/dev/MRH-1202/MRH-1201/netsurf/libnsfb# make
>  COMPILE: src/libnsfb.c
>  COMPILE: src/cursor.c
>  COMPILE: src/plot/api.c
>  COMPILE: src/plot/util.c
>  COMPILE: src/plot/generic.c
>  COMPILE: src/plot/32bpp.c
> src/plot/32bpp.c: In function `get_xy_loc':
> src/plot/32bpp.c:26: warning: cast increases required alignment of target type
> make: *** [build-Linux-Linux-release-lib-static/src_plot_32bpp.o] Error 1

Replacing the (uint32_t *) with (void *) on line 26 of src/plot/32bpp.c 
should prevent that warning being generated. If that is the case, let us 
know and we'll fix that in SVN.

HTH,


John.

Reply via email to