From: Renier M. <re...@us...> - 2007-02-02 18:39:00
|
It seems the problem is with lines that use g_array_index() from glib library. I've inspected the lines in src/event.c (lines 263 and 410) and the casting is done correctly. Must be way that glib typelessly stores the array. Any objections in eliminating the -Wcast-align warning flag? I'm also evaluating removing -Werror when creating the release tarball. Any tips on how to do this on "make dist"? Saludos, --Renier ope...@li... wrote on 02/02/2007 01:31:29 PM: > Please consider making the enclosed change to the source tree. The > build fails in the same way on ia64. > > -------- Forwarded Message -------- > > From: ext...@no... > > To: Bry...@hp... > > Subject: RE: [Fwd: Re: [Openhpi-devel] openHPI Compilation error] > > Date: Thu, 1 Feb 2007 15:47:38 -0600 > > > > Hi Bryan, > > > > Thank you very much for the help. I tried with removing only > > -Wcast-align option from configure.ac file and it compiled without any > > errors. Morning just as a temporory fix I removed the -Werror option and > > could able to build without any errors. > > > > Thanks & Regards, > > Sudheendra. > > > > > > -----Original Message----- > > From: ext Bryan Sutula [mailto:Bry...@hp...] > > Sent: Thursday, February 01, 2007 12:13 PM > > To: Sudheendra Rao (EXT-Wipro/MtView) > > Subject: [Fwd: Re: [Openhpi-devel] openHPI Compilation error] > > > > Tried to post this to the list but am having technical trouble...sending > > directly to you for now. > > > > Bryan > > > > -------- Forwarded Message -------- > > > From: Bryan Sutula <Bry...@hp...> > > > Reply-To: Bry...@hp... > > > To: ope...@li... > > > Subject: Re: [Openhpi-devel] openHPI Compilation error > > > Date: Thu, 01 Feb 2007 12:39:41 -0700 > > > > > > On Thu, 2007-02-01 at 13:23 -0600, ext...@no... wrote: > > > > I am trying to cross compile openHPI (version 2.8) on mips64 , I > > > > am getting the following error: > > > > > > > > mips64-octeon-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. > > > > -I../include -I../utils -I../utils -I > > > > /home/sudhee/libtool-1.5.22/libltdl > > > > -I/home/sudhee/e2fsprogs-1.39/lib -O2 -pthread > > > > -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include > > > > -Wall -Wmissing-prototypes -Wmissing-declarations > > > > -Wstrict-prototypes -Wpointer-arith -Wformat=2 -Wformat-security > > > > -Wformat-nonliteral -Wno-format-y2k -Wcast-qual -Wcast-align > > > > -Wno-strict-aliasing -Wno-unused-value -Werror -D_GNU_SOURCE > > > > -D_REENTRANT -fexceptions -O2 -pthread -I/usr/local/include/glib-2.0 > > > > > > -I/usr/local/lib/glib-2.0/include -Wall -Wmissing-prototypes > > > > -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith > > > > -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-format-y2k > > > > -Wcast-qual -Wcast-align -Wno-strict-aliasing -Wno-unused-value > > > > -Werror -D_GNU_SOURCE -D_REENTRANT -fexceptions -MT event.lo -MD -MP > > > > > > -MF .deps/event.Tpo -c event.c -fPIC -DPIC -o .libs/event.o > > > > > > > > cc1: warnings being treated as errors > > > > event.c: In function 'process_hpi_event': > > > > event.c:236: warning: cast increases required alignment of target > > > > type > > > > event.c: In function 'oh_process_events': > > > > event.c:410: warning: cast increases required alignment of target > > > > type > > > > make[3]: *** [event.lo] Error 1 > > > > make[3]: Leaving directory > > > > `/home/sudhee/hpi/new-hpi/openhpi-2.8.0/src' > > > > make[2]: *** [all-recursive] Error 1 > > > > make[2]: Leaving directory > > > > `/home/sudhee/hpi/new-hpi/openhpi-2.8.0/src' > > > > make[1]: *** [all-recursive] Error 1 > > > > make[1]: Leaving directory `/home/sudhee/hpi/new-hpi/openhpi-2.8.0' > > > > make: *** [all] Error 2 > > > > mn:/home/sudhee/hpi/new-hpi/openhpi-2.8.0 # > > > > > > > > > > > > Could you please let me know the reason for this error and how to > > > > fix it. > > > > > > When I build for ia64, I have to remove -Wall and -Wcast-align as > > > follows: > > > > > > Index: openhpi/configure.ac > > > =================================================================== > > > --- openhpi/configure.ac (.../2.6.2) (revision 9536) > > > +++ openhpi/configure.ac (.../2.6.2-3) (revision 9536) > > > @@ -544,7 +544,6 @@ > > > dnl different sets here > > > > > > CC_WARNINGS="\ > > > - -Wall \ > > > -Wmissing-prototypes \ > > > -Wmissing-declarations \ > > > -Wstrict-prototypes \ > > > @@ -554,18 +553,15 @@ > > > -Wformat-nonliteral \ > > > -Wno-format-y2k \ > > > -Wcast-qual \ > > > - -Wcast-align \ > > > -Wno-strict-aliasing \ > > > -Werror " > > > > > > CXX_WARNINGS="\ > > > - -Wall \ > > > -Wpointer-arith \ > > > -Wformat=2 \ > > > -Wformat-security \ > > > -Wformat-nonliteral \ > > > -Wcast-qual \ > > > - -Wcast-align \ > > > -Wshadow \ > > > -Wwrite-strings \ > > > -Wredundant-decls \ > > > > > > You might see if that helps. > > > > > -- > Bryan Sutula <Bry...@hp...> > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Openhpi-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openhpi-devel |