Comments (6)
As mentioned in the Makefile:
XVM = sub-projects/allocators/xvmalloc-kmod
EXTRA_CFLAGS := -DCONFIG_RAMZSWAP_STATS \
-I$(PWD)/$(XVM) \
-g -Wall
XVM gives version of xvmalloc to use and extra flags adds it to include search
path.
The compilation works fine on my system. Not yet sure why its failing on your
system.
Original comment by [email protected]
on 4 Dec 2009 at 1:43
from compcache.
ok I see that now. My problem seem to be with $(PWD), after make -C
$(KERNEL_BUILD_PATH), the $(PWD) is obviously the kernel dir and not compcache
dir.
It seems that my make is not expanding $(PWD) before (see
-I/usr/src/linux-2.6.32/sub-projects/allocators/xvmalloc-kmod below). I have to
hardcode it to get compcache to compile.
make -f /usr/src/linux-2.6.32/scripts/Makefile.build obj=/tmp/compcache
gcc -Wp,-MD,/tmp/compcache/.ramzswap_drv.o.d -nostdinc -isystem
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include -Iinclude -Iinclude2
-I/usr/src/linux-2.6.32/include -I/usr/src/linux-2.6.32/arch/x86/include
-include
include/linux/autoconf.h -I/tmp/compcache -D__KERNEL__ -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Wno-format-security
-fno-delete-null-pointer-checks -Os -m64 -march=k8 -mno-red-zone -mcmodel=kernel
-funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement
-Wno-pointer-sign -fno-strict-overflow -DCONFIG_RAMZSWAP_STATS
-I/usr/src/linux-2.6.32/sub-projects/allocators/xvmalloc-kmod -g -Wall -DMODULE
-D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(ramzswap_drv)"
-D"KBUILD_MODNAME=KBUILD_STR(ramzswap)" -c -o /tmp/compcache/ramzswap_drv.o
/tmp/compcache/ramzswap_drv.c
Original comment by [email protected]
on 4 Dec 2009 at 10:16
from compcache.
/me wonders whats a more portable way to create such Makefile.
Original comment by [email protected]
on 12 Dec 2009 at 1:56
from compcache.
I am using gmake on Linux, I suppose you do too. I don't understand what you
mean by
"portable", we are suppose to be on the same platform using the same make (GNU
version), unless the version of gmake does matter.
$ make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for x86_64-pc-linux-gnu
Original comment by [email protected]
on 15 Dec 2009 at 6:24
from compcache.
I mentioned/ "portable" in a casual sense -- i meant how to create makefile
that runs
on, at least slightly, different environments. However, it looks like there is
zero
diff here. On my system:
$ make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for x86_64-redhat-linux-gnu
Original comment by [email protected]
on 15 Dec 2009 at 6:32
from compcache.
Original comment by [email protected]
on 12 Jan 2010 at 1:31
- Changed state: Done
from compcache.
Related Issues (20)
- zcache spurs Kernel warnings: HOT 5
- zram.num_devices parameter ignored in kernel 3.2.x HOT 4
- Zram Block IO error Linux 3.6 HOT 20
- Zram stats script reports wrong original size HOT 1
- zram gone from kernel 3.5.5 HOT 2
- kernel error writing on zram HOT 1
- Please add a summary on zram_stats
- System crash with swap on a zram device on a 32 bits system with kernel >= 3.6 HOT 3
- ramzswapd stats not getting updated in kernel 2.6.10
- Changing disk size on linux 3.8 broken.
- crash during zram-init if low on memory / kernel 3.8.2
- zram crash during restart on kernel 3.8.3
- ZRAM + Qemu + KSM = system hang HOT 1
- mkswap with 16KB page size fails HOT 1
- Failed to load zram kernel module on kernel 3.0.0-8-generic HOT 2
- Allow specifying numdevices during kernel config and as boot parameter and add the discard patch to the kernel HOT 3
- kernel BUG at /usr/src/linux-source-2.6.38/drivers/staging/zram/xvmalloc.c:433! HOT 1
- Patch for /sub-projects/scripts/git-diffc HOT 1
- discard/trim support ? HOT 3
- Snappy compression support HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compcache.