[Xorp-hackers] XORP support for powerpc

Pullabhatla Vinod pvinod.sarma at freescale.com
Tue May 26 07:40:53 PDT 2015


Hi ,
I cross compiled XORP to powerpc .

Running XORP is giving me parse error . I am seeing the following messages : 

PARSE ERROR : [Template file : <PATH TO FILE> ] syntax error ; last symbol parsed was "bgp" .

I am seeing this error when I run xorp_rtrmgr and also xorpsh . 

What am I doing wrong . Please help me out

Thanks,
Vinod.


-----Original Message-----
From: Ben Greear [mailto:greearb at candelatech.com] 
Sent: Tuesday, May 05, 2015 8:35 PM
To: Sarma P. Vinod-B46178; xorp-hackers at icir.org
Subject: Re: [Xorp-hackers] XORP support for powerpc

You need to post full instructions for reproducing this, including exactly how to get and install the compile chain you are using if you want someone to do serious work to fix this.

In case you are not already using it, please use the xorp source from git, not the packaged tarballs.

Thanks,
Ben


On 05/04/2015 10:12 PM, pvinod.sarma at freescale.com wrote:
> Hi ,
>
> I am getting the following error while compiling XORP latetst version to powerpc64 paltform .
>
> Please help in solving this issue .
>
> I am trying to compile using the follwing command :
>
> scons build=powerpc64-fsl-linux CC=powerpc64-fsl-linux-gcc 
> CXX=powerpc64-fsl-linux-g++ STRIP=powerpc64-fsl-linux-strip 
> RANLIB=powerpc64-fsl-linux-ranlib CFLAGS=-I<INCLUDE> 
> LINKFLAGS=-L<LIB_PATH>
>
> powerpc64-fsl-linux-gnu/rtrmgr -Irtrmgr -I. 
> obj/powerpc64-fsl-linux-gnu/rtrmgr/lex.tplt.cc
>
> rtrmgr/template.ll:150:1: warning: "/*" within comment [-Wcomment]
>
>    * ftptype        = "A" | "I" | "D" | "a" | "i" | "d"
>
> ^
>
> rtrmgr/template.ll:155:2: error: #endif without #if
>
> RE_URL_FTPTYPE "A"|"I"|"D"|"a"|"i"|"d"
>
>    ^
>
> rtrmgr/template.ll: In function 'int tpltlex()':
>
> rtrmgr/template.ll:446:16: error: expected primary-expression before 
> ')' token
>
>      BEGIN(string);
>
>                  ^
>
> rtrmgr/template.ll:474:10: error: 'INITIAL' was not declared in this 
> scope
>
>      BEGIN(INITIAL);
>
>            ^
>
> rtrmgr/template.ll:481:7: error: 'comment' was not declared in this 
> scope
>
> "/*"   BEGIN(comment);
>
>         ^
>
> rtrmgr/template.ll:489:7: error: 'INITIAL' was not declared in this 
> scope
>
> <comment>"*"+"/" BEGIN(INITIAL);
>
>         ^
>
> rtrmgr/template.ll:491:7: error: 'one_liner' was not declared in this 
> scope
>
> "%%"    BEGIN(one_liner);
>
>         ^
>
> <stdout>:133:55: error: expected primary-expression before '+' token
>
> <stdout>:9466:6: note: in expansion of macro 'YY_STATE_EOF'
>
> scons: *** [obj/powerpc64-fsl-linux-gnu/rtrmgr/lex.tplt.o] Error 1
>
> scons: building terminated because of errors.
>
> Thanks,
>
> Vinod.
>
>
>
> _______________________________________________
> Xorp-hackers mailing list
> Xorp-hackers at icir.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers
>

--
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



More information about the Xorp-hackers mailing list