I was able to build btier 0.9.9.9 on Debian 7.0 (Wheezy) w/customer 3.2.28 kernel, but the install failed because it was assuming that btier_setup was in the current directory rather than in cli/:
root@zapazoid:/usr/src/btier-0.9.9.9# make
cd kernel/btier; make
make[1]: Entering directory `/usr/src/btier-0.9.9.9/kernel/btier'
make -Wall -C /lib/modules/3.7.0+/build SUBDIRS=/usr/src/btier-0.9.9.9/kernel/btier M=/usr/src/btier-0.9.9.9/kernel/btier modules
make[2]: Entering directory `/usr/src/linux-bcache'
Building modules, stage 2.
MODPOST 1 modules
make[2]: Leaving directory `/usr/src/linux-bcache'
make[1]: Leaving directory `/usr/src/btier-0.9.9.9/kernel/btier'
gcc -O2 -D_FILE_OFFSET_BITS=64 cli/btier_setup.c -o cli/btier_setup
gcc -O2 tools/writetest.c -o tools/writetest
root@zapazoid:/usr/src/btier-0.9.9.9# make install
cd kernel/btier; make install
make[1]: Entering directory `/usr/src/btier-0.9.9.9/kernel/btier'
install -D -m 755 btier.ko /lib/modules/`uname -r`/kernel/drivers/block/btier.ko
depmod -a
make[1]: Leaving directory `/usr/src/btier-0.9.9.9/kernel/btier'
cd ../..
install -D -m 755 btier_setup /sbin/btier_setup
install: cannot stat `btier_setup': No such file or directory
make: *** [install] Error 1
I was NOT able to build btier 0.9.9.9 on Debian 6.0.7 (Squeeze) w/its standard 2.6.32 kernel. Running make didn't produce any errors, but it didn't build the kernel module.
hydra:/usr/local/src/btier-0.9.9.9# make
cd kernel/btier; make
make[1]: Entering directory `/usr/local/src/btier-0.9.9.9/kernel/btier'
make -Wall -C /lib/modules/2.6.32-5-amd64/build SUBDIRS=/usr/local/src/btier-0.9.9.9/kernel/btier M=/usr/local/src/btier-0.9.9.9/kernel/btier modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.32-5-amd64'
make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-5-amd64'
make[1]: Leaving directory `/usr/local/src/btier-0.9.9.9/kernel/btier'
gcc -O2 -D_FILE_OFFSET_BITS=64 cli/btier_setup.c -o cli/btier_setup
gcc -O2 tools/writetest.c -o tools/writetest
hydra:/usr/local/src/btier-0.9.9.9# make install
cd kernel/btier; make install
make[1]: Entering directory `/usr/local/src/btier-0.9.9.9/kernel/btier'
install -D -m 755 btier.ko /lib/modules/`uname -r`/kernel/drivers/block/btier.ko
install: cannot stat `btier.ko': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/local/src/btier-0.9.9.9/kernel/btier'
make: *** [install] Error 2
Both machines are using make v3.81, if that matters. Any idea what the difference may be? Does it just not work with the older kernel build system?
-davidc
Last edit: David Clymer 2013-03-01
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Op 1 mrt. 2013 om 20:57 heeft "David Clymer" vezult@users.sf.net het volgende geschreven:
I was able to build btier 0.9.9.9 on Debian 7.0 (Wheezy) w/customer 3.2.28 kernel, but the install failed because it was assuming that btier_setup was in the current directory rather than in cli/:
You are not the first to report this.
I simply forgot to change this.
root@zapazoid:/usr/src/btier-0.9.9.9# make
cd kernel/btier; make
make[1]: Entering directory /usr/src/btier-0.9.9.9/kernel/btier'
make -Wall -C /lib/modules/3.7.0+/build SUBDIRS=/usr/src/btier-0.9.9.9/kernel/btier M=/usr/src/btier-0.9.9.9/kernel/btier modules
make[2]: Entering directory/usr/src/linux-bcache'
Building modules, stage 2.
MODPOST 1 modules
make[2]: Leaving directory /usr/src/linux-bcache'
make[1]: Leaving directory/usr/src/btier-0.9.9.9/kernel/btier'
gcc -O2 -D_FILE_OFFSET_BITS=64 cli/btier_setup.c -o cli/btier_setup
gcc -O2 tools/writetest.c -o tools/writetest
root@zapazoid:/usr/src/btier-0.9.9.9# make install
cd kernel/btier; make install
make[1]: Entering directory /usr/src/btier-0.9.9.9/kernel/btier'
install -D -m 755 btier.ko /lib/modules/uname -r/kernel/drivers/block/btier.ko
depmod -a
make[1]: Leaving directory/usr/src/btier-0.9.9.9/kernel/btier'
cd ../..
install -D -m 755 btier_setup /sbin/btier_setup
install: cannot stat `btier_setup': No such file or directory
make: *** [install] Error 1
I was NOT able to build btier 0.9.9.9 on Debian 6.0.7 (Squeeze) w/its standard 2.6.32 kernel. Running make didn't produce any errors, but it didn't build the kernel module.
Strange, I am able to compile on Ubuntu with 2.6.32
So it really should work with this kernel.
It looks like the kernel sources are not installed or not used?
Instead it uses kernel-headers?
hydra:/usr/local/src/btier-0.9.9.9# make
cd kernel/btier; make
make[1]: Entering directory /usr/local/src/btier-0.9.9.9/kernel/btier' make -Wall -C /lib/modules/2.6.32-5-amd64/build SUBDIRS=/usr/local/src/btier-0.9.9.9/kernel/btier M=/usr/local/src/btier-0.9.9.9/kernel/btier modules make[2]: Entering directory/usr/src/linux-headers-2.6.32-5-amd64'
make[2]: Leaving directory /usr/src/linux-headers-2.6.32-5-amd64' make[1]: Leaving directory/usr/local/src/btier-0.9.9.9/kernel/btier'
gcc -O2 -D_FILE_OFFSET_BITS=64 cli/btier_setup.c -o cli/btier_setup
gcc -O2 tools/writetest.c -o tools/writetest
hydra:/usr/local/src/btier-0.9.9.9# make install
cd kernel/btier; make install
make[1]: Entering directory /usr/local/src/btier-0.9.9.9/kernel/btier' install -D -m 755 btier.ko /lib/modules/uname -r/kernel/drivers/block/btier.ko install: cannot statbtier.ko': No such file or directory
make[1]: [install] Error 1
make[1]: Leaving directory `/usr/local/src/btier-0.9.9.9/kernel/btier'
make: [install] Error 2
Both machines are using make v3.81, if that matters. Any idea what the difference may be? Does it just not work with the older kernel build system?
The changes below allow btier to build properly for me on debian 6.0.7. This also includes fixes for the install, so that btier_setup is copied properly, and the btier_setup man page is viewable by anyone:
Apparently my reply didn't make it to the list, so here it is again:
Yes. This patch allows me to successfully build and install btier 0.9.9.9 on Debian versions 6.0.7 (default kernel 2.6.32-5-amd64 w/kernel-headers), and Debian 7.0 using a custom 3.2 kernel & source, as well as with the standard 3.2.0-4-amd64 kernel (w/ kernel-headers).
I'm actually using btier on Debian 6.0.7, but on the other two systems I have only built and installed it.
I was able to build btier 0.9.9.9 on Debian 7.0 (Wheezy) w/customer 3.2.28 kernel, but the install failed because it was assuming that btier_setup was in the current directory rather than in cli/:
I was NOT able to build btier 0.9.9.9 on Debian 6.0.7 (Squeeze) w/its standard 2.6.32 kernel. Running make didn't produce any errors, but it didn't build the kernel module.
Both machines are using make v3.81, if that matters. Any idea what the difference may be? Does it just not work with the older kernel build system?
-davidc
Last edit: David Clymer 2013-03-01
Hi David,
Comment inline.
Op 1 mrt. 2013 om 20:57 heeft "David Clymer" vezult@users.sf.net het volgende geschreven:
Strange, I am able to compile on Ubuntu with 2.6.32
So it really should work with this kernel.
It looks like the kernel sources are not installed or not used?
Instead it uses kernel-headers?
Right.
linux-headers-*
are installed, but the sources are not. In fact, installinglinux-source-*
does not allow the sources to build.Is there some reason
linux-headers
would be insufficient?Last edit: David Clymer 2013-03-02
The changes below allow btier to build properly for me on debian 6.0.7. This also includes fixes for the install, so that btier_setup is copied properly, and the btier_setup man page is viewable by anyone:
Last edit: David Clymer 2013-03-02
Hi David,
Thanks for the patch.
Can you confirm the the attached code works/builds on all your systems?
Thanks in advance,
Mark
On 03/02/2013 05:55 AM, David Clymer wrote:
Apparently my reply didn't make it to the list, so here it is again:
Yes. This patch allows me to successfully build and install btier 0.9.9.9 on Debian versions 6.0.7 (default kernel 2.6.32-5-amd64 w/kernel-headers), and Debian 7.0 using a custom 3.2 kernel & source, as well as with the standard 3.2.0-4-amd64 kernel (w/ kernel-headers).
I'm actually using btier on Debian 6.0.7, but on the other two systems I have only built and installed it.
The patch I've used in each case is:
This includes changes to successfully install btier_setup, and to ensure that the btier_setup man page can be read by any user.
-davidc