Re: [vpp-dev] Make pkg-rpm seems to be failing...

2017-03-19 Thread otroan

> On 19 Mar 2017, at 05:03, Burt Silverman  wrote:
> 
> I may have found it. Install python2-rpm-macros from yum.  Also install 
> python-rpm-macros. It's looking good.
> 
> Hopefully Ed or Ole can make sure those are part of the install-deps: unlike 
> some other things, these are not so easy to find.

Hmm, so https://gerrit.fd.io/r/#/c/5781/
isn't sufficient?

Best regards,
Ole


> 
> Burt
> 
> On Sat, Mar 18, 2017 at 6:10 PM, Jon Loeliger  wrote:
> 
> 
> On Fri, Mar 17, 2017 at 6:33 PM, Burt Silverman  wrote:
> It probably worked during a 12 hour window. I think Neale then made a 2nd 
> change incompatible with the earlier change.
> 
> Burt
> 
> Well, yeah, maybe.  But after doing the .end_node dance,
> I'm back to the %py2_build problem on a CentOS RPM build
> of "make pkg-rpm".
> 
> That's building commit:
> 
> commit 898273fbb588811824bb27ad0ef203d358a7121a
> Author: Neale Ranns 
> Date:   Sat Mar 18 02:57:38 2017 -0700
> 
> Check change in unnumbered setting before updating IP enabled state
> 
> Using "make bootstrap; make build-release; make pkg-rpm".
> 
> HTH,
> jdl
> 
> 
> ___
> vpp-dev mailing list
> vpp-dev@lists.fd.io
> https://lists.fd.io/mailman/listinfo/vpp-dev



signature.asc
Description: Message signed with OpenPGP
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] Make pkg-rpm seems to be failing...

2017-03-19 Thread Burt Silverman
Ugh, I made a terrible bone head mistake... Possibly I never ran make
install-dep. Even if I had, I was unaware that it is a good idea to run it
again, just to be sure, in a case like this. I probably thought it was like
make bootstrap, where running a 2nd time doesn't help. Apologies to Ed and
Ole for misinformation. So, Jon, were you in the same boat with me --
didn't do a double check of make install-dep? I guess so, because you still
had the problem after Ole's fix.

Burt

On Sun, Mar 19, 2017 at 7:26 AM,  wrote:

>
> > On 19 Mar 2017, at 05:03, Burt Silverman  wrote:
> >
> > I may have found it. Install python2-rpm-macros from yum.  Also install
> python-rpm-macros. It's looking good.
> >
> > Hopefully Ed or Ole can make sure those are part of the install-deps:
> unlike some other things, these are not so easy to find.
>
> Hmm, so https://gerrit.fd.io/r/#/c/5781/
> isn't sufficient?
>
> Best regards,
> Ole
>
>
> >
> > Burt
> >
> > On Sat, Mar 18, 2017 at 6:10 PM, Jon Loeliger  wrote:
> >
> >
> > On Fri, Mar 17, 2017 at 6:33 PM, Burt Silverman 
> wrote:
> > It probably worked during a 12 hour window. I think Neale then made a
> 2nd change incompatible with the earlier change.
> >
> > Burt
> >
> > Well, yeah, maybe.  But after doing the .end_node dance,
> > I'm back to the %py2_build problem on a CentOS RPM build
> > of "make pkg-rpm".
> >
> > That's building commit:
> >
> > commit 898273fbb588811824bb27ad0ef203d358a7121a
> > Author: Neale Ranns 
> > Date:   Sat Mar 18 02:57:38 2017 -0700
> >
> > Check change in unnumbered setting before updating IP enabled state
> >
> > Using "make bootstrap; make build-release; make pkg-rpm".
> >
> > HTH,
> > jdl
> >
> >
> > ___
> > vpp-dev mailing list
> > vpp-dev@lists.fd.io
> > https://lists.fd.io/mailman/listinfo/vpp-dev
>
>
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] problems in mips32

2017-03-19 Thread 薛欣颖


According to your suggestion,I re-write "clib_calljmp" in longjmp.S,and it also 
passes test_longjmp.c;but it doesn't work in vpp, still segmentation fault when 
excute a system call.

At last time, I saving return address(ra) and old stack-pointer(old sp) in 
register s6 and s7, this time I saved them in new stack.

I don't think Ra and old stack is the key of the question, becuase the function 
crashes before it returns. 

Here is the code;

.text
.global clib_calljmp
.align 4;
.ent clib_calljmp,0;
.type clib_calljmp,@function
clib_calljmp:

move $10, $29 //sp->t2  backup old sp   
li   $9, 4 //t1 = 4
subu $8, $6, $9  //t0 = a2 - t1 new sp -4
move $29, $8 //t0->sp  write new sp in register sp

addiu $29,$29,-8
sw   $31,4($29)  //push ra
sw   $10,0($29)  //push old stack   

move $25, $4  //a0->t9 new function
move $4, $5 //a1->a0 new function arg
jalr $25  //jump
nop

lw   $31,4($29)   //pop ra   
lw   $29,0($29)   //pop old stack
jr   $31  //return
.end clib_calljmp;

Regards,
Xinying Xue
 
From: Dave Barach (dbarach)
Date: 2017-03-16 21:03
To: 薛欣颖; vpp-dev
Subject: RE: [vpp-dev] problems in mips32
Please make sure that src/vppinfra/test_longjmp.c passes before you move on. 
You’ve undoubtedly pickled the stack and/or one or more of the registers. 
Clib_calljmp is always the source of subsequent issues. 
 
The code you wrote belongs in longjmp.S. Trying to write clib_calljmp(...) in C 
/ doing the dirty work in an asm volatile makes it all but inevitable that GCC 
will get in the way.   
 
Even though it’s been a long time since I wrote MIPS assembler code: I don’t 
see where you’re saving clib_calljmp’s return address and old stack-pointer on 
the new stack.  
 
If you expect people to even try to help you with assembly code, comments are 
essential. 
 
Thanks… Dave
 
From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of ???
Sent: Wednesday, March 15, 2017 9:52 PM
To: vpp-dev 
Subject: [vpp-dev] problems in mips32
 
 
Guys,
 
I'm looking forward to run vpp in mips32 arch,but problem was caused by 
"clib_calljmp","clib_setjmp" and "clib_longjmp". There is no code for mips32 in 
vpp, so I wrote them by myself, and they worked very well in my test program, 
However,when I run vpp with them, segmentation fault was happend when excute a 
system call like "open","SYS_clock_gettime",etc.

The "stack" in "clib_calljmp" was alloced by "clib_mem_alloc_aligned", It is 
strange that if I did not use "clib_mem_alloc_aligned" but with "malloc", the 
problem is still there but less happened. Sometimes it occurs, but sometimes 
it's ok.

Here is the code I worte for mips32.

uword clib_calljmp (uword (*func) (uword func_arg), uword func_arg, void *stack)
{
 unsigned long ret=0;
 __asm__ volatile (
".set push \n" 
"move $23, $29\n" 
"li   $9, 4\n\t"
"subu $8, %3, $9\n\t"
"sll  $8, $8, 0\n\t"
"move $29, $8\n\t"
"move $9, %1\n\t"  
"move $4, %2\n\t" 
"move $25,$9\n\t"
"move $22, $31\n\t"  
"jalr.hb $25\n\t" 
"nop\n\t"
 "move %0, $2\n\t"
"move $29,$23\n"
"move $31, $22\n\t"   
".set pop\n" 
:"=r"(ret)
:"r"(func),"r"(func_arg),"r"(stack)
:"$8","$9","$23","$22"
);
 return ret;
}



Thanks,
Xinying Xue
 
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev