[Xorp-hackers] Compile failed @ asyncio.cc on MIPS64/Linux/GCC3.4.3

RTP Techie rtp.techie at gmail.com
Tue Sep 2 15:38:05 PDT 2008


Hi,
 I just downloaded the XORP 1.5 and was trying to compile it. I was able to
compile it with no problem on native Linux EL3 using GCC 3.4.5
But when I try to cross compile it for mips64 using GCC 3.4.3 (that is the
tool chain that we are using on the embedded system).
I got the following compilatin errors and hope if anyone knows how to
address it:



gmake[3]: Entering directory `/export/home/cmchan/dev/xorp-1.5/libxorp' /bin/sh
../libtool --tag=CXX   --mode=compile
/export/crosstools/mvl40/mips64/fp_be/bin/mips64_fp_be-g++ -DHAVE_CONFIG_H
-I. -I.. -I..  -I/export/crosstools/mvl40/mips64/fp_be/include -mtune=sb1
-mabi=n32  -I/export/crosstools/mvl40/mips64/fp_be/include -mtune=sb1
-mabi=n32 -g -Werror -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith
-Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -MT asyncio.lo
-MD -MP -MF .deps/asyncio.Tpo -c -o asyncio.lo asyncio.cc
 /export/crosstools/mvl40/mips64/fp_be/bin/mips64_fp_be-g++ -DHAVE_CONFIG_H
-I. -I.. -I.. -I/export/crosstools/mvl40/mips64/fp_be/include -mtune=sb1
-mabi=n32 -I/export/crosstools/mvl40/mips64/fp_be/include -mtune=sb1
-mabi=n32 -g -Werror -W -Wall -Wwrite-strings -Wcast-qual -Wpointer-arith
-Wcast-align -Woverloaded-virtual -ftemplate-depth-25 -pipe -MT asyncio.lo
-MD -MP -MF .deps/asyncio.Tpo -c asyncio.cc -o asyncio.o
In file included from
/export/crosstools/mvl40/mips64/fp_be/bin/../lib/gcc/mips64-montavista-linux/3.4.3/../../../../target/usr/include/c++/3.4.3/new:41,
                 from ../libxorp/xorp.h:64,
                 from asyncio.cc:22:
/export/crosstools/mvl40/mips64/fp_be/bin/../lib/gcc/mips64-montavista-linux/3.4.3/../../../../target/usr/include/c++/3.4.3/cstddef:53:
error: expected unqualified-id before "unsigned"
/export/crosstools/mvl40/mips64/fp_be/bin/../lib/gcc/mips64-montavista-linux/3.4.3/../../../../target/usr/include/c++/3.4.3/cstddef:53:
error: expected `;' before "unsigned"
In file included from ../libxorp/xorp.h:64,
                 from asyncio.cc:22:
/export/crosstools/mvl40/mips64/fp_be/bin/../lib/gcc/mips64-montavista-linux/3.4.3/../../../../target/usr/include/c++/3.4.3/new:84:
error: declaration of `operator new' as non-function
/export/crosstools/mvl40/mips64/fp_be/bin/../lib/gcc/mips64-montavista-linux/3.4.3/../../../../target/usr/include/c++/3.4.3/new:84:
error: expected unqualified-id before "unsigned"

Thanks,
RT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-hackers/attachments/20080902/d9b00340/attachment.html 


More information about the Xorp-hackers mailing list