mfrw / compcache

Automatically exported from code.google.com/p/compcache
0 stars 0 forks source link

rzscontrol syntax error problem #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. patch the kernel 2.6.29(htc Tattoo)
2. add options 'ARCH=arm CROSS_COMPILER=arm-eabi-gcc' to all make command
3. cross compile ramzswap
4. insmod xvmalloc.ko; insmod ramzswap.ko disksize_kb=30720, it works well
4. run 'rzscontrol /dev/block/ramzswap0 -stats', it shows me 'rzscontrol:
1: Syntax error: "(" unexpected' error

What version of the product are you using? On what operating system?
compcache 0.6.2 for htc Tattoo(arm, 2.6.29)

Please provide any additional information below.
arm-eabi-gcc version: 4.4.0, compile compcache on debian squeeze.

Original issue reported on code.google.com by cn.fyo...@gmail.com on 22 Mar 2010 at 2:47

GoogleCodeExporter commented 9 years ago
Please close this issue. '*-gcc -static' should fix it. Thanks.

Original comment by cn.fyo...@gmail.com on 12 Apr 2010 at 12:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks for the fix! But I couldn't understand why 'static' is needed on ARM? 
Maybe I
should add this ARM specific hack to Makefile.

Original comment by nitingupta910@gmail.com on 27 May 2010 at 2:12

GoogleCodeExporter commented 9 years ago
I'm planning to get rid to rzscontrol and instead, make all stats and 
configurable parameters available through sysfs. Closing this issue.

Original comment by nitingupta910@gmail.com on 4 Jul 2010 at 2:37

GoogleCodeExporter commented 9 years ago
So this has been fixed?

I added -static switch to Makefile and nothing...

"@gcc -static -g -Wall -D_GNU_SOURCE rzscontrol.c -o rzscontrol -I ../include 
-I../.."

Original comment by crzyru...@gmail.com on 23 Jul 2010 at 1:21

GoogleCodeExporter commented 9 years ago
Same here - no matter what I've tried, I get the same syntax error - compiled 
it exactly as the instructions suggested - adding '-static' did nothing for me 
... this does not seem to be a 'compile' issue either, as I've taken an 
rzscontrol file from another ROM where it works, put it in mine, and I get the 
same error.  Is this expecting anything set in the environment, or perhaps a 
specific shell?

Original comment by ChevyNo1...@gmail.com on 6 Aug 2010 at 4:19

GoogleCodeExporter commented 9 years ago
I hope to release a new version of compcache that does not require rzscontrol. 
Its under testing and I hope to get it out really soon (few days).

Original comment by sachingu...@gmail.com on 6 Aug 2010 at 4:36

GoogleCodeExporter commented 9 years ago
Thanks for the quick response, will keep checking back!

Original comment by ChevyNo1...@gmail.com on 7 Aug 2010 at 5:35

GoogleCodeExporter commented 9 years ago
Obviously I'm not getting something quite right - rzscontrol (after compiling) 
runs fine on Ubuntu which means it compiled for Ubuntu and not ARM - what am I 
missing?  The ONLY thing I changed was Makefile in root dir to point to my 
kernel directory ...

Original comment by ChevyNo1...@gmail.com on 2 Feb 2011 at 6:31

GoogleCodeExporter commented 9 years ago
I am also having this problem.  I've tried -static and it does not fix the 
problem

Original comment by david.co...@gmail.com on 22 Aug 2011 at 9:20

GoogleCodeExporter commented 9 years ago
I got this to work by changing @gcc in sub-project/rzcontrol/Makefile to my 
specific compiler which happens to be arm-none-linux-gnueabi-gcc

Original comment by david.co...@gmail.com on 22 Aug 2011 at 9:26

GoogleCodeExporter commented 9 years ago
I should also mention -static was not needed

Original comment by david.co...@gmail.com on 22 Aug 2011 at 9:27

GoogleCodeExporter commented 9 years ago
The version of compcache (called zram) included in mainline (check staging-2.6 
tree) does not require rzscontrol and all configuration and stats are visible 
through sysfs. I'm no longer maintaining this old compcache-0.6.2 version, so 
can you please try mainline/staging tree version instead.

Original comment by nitingupta910@gmail.com on 24 Aug 2011 at 1:50