Make sure you've installed the Linux headers for the kernel you are using.
-- eq
mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE | MAP_32BIT, -1, 0);
now its better
Are you sure where you compiling is a 64bit machine?
===============
SunilKumar
------------------------------
http://in.linkedin.com/in/sunilkr86/
http://30d4.blogspot.in/
===============
I asked because 'r*' registers are only available in 64bit, so asm should compile on 64bit. I hope any flags are not forcing to make for 32bit.