RTP Techie <[EMAIL PROTECTED]> wrote:

> 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:

It looks like some of the C++ header files generate those errors.
Could you try to compile the following simple C++ program using the
mips64_fp_be-g++ compiler:

#include <new>
#include <iostream>

int
main()
{
    return (0);
}


First try to do it without any extra arguments:
/export/crosstools/mvl40/mips64/fp_be/bin/mips64_fp_be-g++ test.cc

Then try it with the -I/export/crosstools/mvl40/mips64/fp_be/include
g++ argument.

This will help us narrow our focus on the problem.

Pavlin

P.S. Have you modified file libxorp/asyncio.cc?
The first error below referes to file xorph.h included from
asyncio.cc line 22, but in the XORP-1.5 source code the actual line
where xorp.h is included is 20.


> 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
> _______________________________________________
> Xorp-hackers mailing list
> [email protected]
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers

_______________________________________________
Xorp-hackers mailing list
[email protected]
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers

Reply via email to