[Xorp-hackers] compile error on MIPS
Atanu Ghosh
atanu@ICSI.Berkeley.EDU
Fri, 27 May 2005 13:29:04 -0700
Hi,
Some code has just been checked into cvs that should fix this specific
problem:
<http://xorpc.icir.org/cgi-bin/cvsweb.cgi/xorp/libxorp/heap.cc>
<http://xorpc.icir.org/cgi-bin/cvsweb.cgi/xorp/libxorp/heap.hh>
<http://xorpc.icir.org/cgi-bin/cvsweb.cgi/xorp/libxorp/timer.cc>
<http://xorpc.icir.org/cgi-bin/cvsweb.cgi/xorp/libxorp/timer.hh>
Atanu.
>>>>> "Suresh" == Suresh Satapati <satapati@gmail.com> writes:
Suresh> Hello,
Suresh> I was trying to build for linux on MIPS, and my build fails with
Suresh> the following errors :-
Suresh> /libxorp/heap.cc
Suresh> heap.cc:129: warning: cast from `char*' to `int*' increases required alignment
Suresh> heap.cc:132: warning: cast from `char*' to `int*' increases required alignment
Suresh> heap.cc:152: warning: cast from `char*' to `int*' increases required alignment
Suresh> heap.cc:163: warning: cast from `char*' to `int*' increases required alignment
Suresh> heap.cc:169: warning: cast from `char*' to `int*' increases required alignment
Suresh> heap.cc:200: warning: cast from `char*' to `int*' increases required alignment
Suresh> heap.cc:206: warning: cast from `char*' to `int*' increases required alignment
Suresh> heap.cc:215: warning: cast from `char*' to `int*' increases required alignment
Suresh> heap.cc:221: warning: cast from `char*' to `int*' increases required alignment
Suresh> /mrt/random.c
Suresh> random.c:461: warning: cast increases required alignment of target type
Suresh> random.c:526: warning: cast increases required alignment of target type
Suresh> My g++ compiler options for MIPS are:
Suresh> MIPS Options -mabicalls -march=cpu-type
Suresh> -mtune=cpu=type -mcpu=cpu-type -membedded-data
Suresh> -muninit-const-in-rodata -membedded-pic -mfp32
Suresh> -mfp64 -mfused-madd -mno-fused-madd -mgas -mgp32
Suresh> -mgp64 -mgpopt -mhalf-pic -mhard-float -mint64
Suresh> -mips1 -mips2 -mips3 -mips4 -mlong64 -mlong32
Suresh> -mlong-calls -mmemcpy -mmips-as -mmips-tfile -mno-
Suresh> abicalls -mno-embedded-data -mno-uninit-const-in-
Suresh> rodata -mno-embedded-pic -mno-gpopt -mno-long-calls
Suresh> -mno-memcpy -mno-mips-tfile -mno-rnames -mno-stats
Suresh> -mrnames -msoft-float -m4650 -msingle-float -mmad
Suresh> -mstats -EL -EB -G num -nocpp -mabi=32 -mabi=n32
Suresh> -mabi=64 -mabi=eabi -mfix7000 -mno-crt0 -mflush-
Suresh> func=func -mno-flush-func -mbranch-likely -mno-
Suresh> branch-likely
Suresh> I am not sure any of the above will help. How do I get around this ?
Suresh> Thanks in advance
Suresh> Suresh..
Suresh> _______________________________________________
Suresh> Xorp-hackers mailing list
Suresh> Xorp-hackers@icir.org
Suresh> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers