Re: Missing Makefile
On Fri, 2013-08-23 at 13:14 -0400, Jerry Stuckle wrote: > It's only been about 46 years since I wrote my first program, > using flowcharts and punched cards. Hahaha, you old "bastard". I guess I'm a younker compared to you :p. My fist software was programmed using 65xx Assembler, so you likely was already a dino, when I slip out of the egg :p. I was born in 1966, you likely was born when human kind wasn't aware how to build transistors :D. Btw. I was an audio engineer working for a known company, building one of the most use vacuum microphones. It's still used today, as on of the best microphones :). But who I'm, to disagree with somebody from a generation, that teach me how to be a good engineer :). The problem for you?! Now you're bound to ethics! You have no choice! You have to become a member of the Linux community! Manipulative technique? No old man! You have no choice! You must join Linuxland! Period! :), Ralf -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1377279520.1952.95.camel@archlinux
Re: Missing Makefile
On 8/23/2013 12:57 PM, Ralf Mardorf wrote: :) You'll still find "DR DOS" on my Atari ST's ~ 42 MiB HDD ;). My Atari has got an 80286 hardware emulator. I won't call this "the dark side", but a sign of the times ;). I have the impression that you are a dino, as I'm ;). We are the losers :D! Not born to late, but born to early ;). Naw, I'm not a dino. My great-great-many-generations- grandkids might have been, though :) But no, I wasn't born too early. The rest of the world was born too late! It's only been about 46 years since I wrote my first program, using flowcharts and punched cards. Your disagreement is correct, I just sharpen it "a little bit", I completely agree with you. I'm sure you are aware, how nice it is, when Linux is an _interest_ only (I don't like the term "hobby"). Yes, I would agree, your wording is much better. Thanks for the correction. Please, please join a Linux community! I'm working on it. Got 3 linux VB's on this system right now, running different combinations so I can play with things. Jerry -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/52179880.6020...@attglobal.net
Re: Missing Makefile
:) You'll still find "DR DOS" on my Atari ST's ~ 42 MiB HDD ;). My Atari has got an 80286 hardware emulator. I won't call this "the dark side", but a sign of the times ;). I have the impression that you are a dino, as I'm ;). We are the losers :D! Not born to late, but born to early ;). Your disagreement is correct, I just sharpen it "a little bit", I completely agree with you. I'm sure you are aware, how nice it is, when Linux is an _interest_ only (I don't like the term "hobby"). Please, please join a Linux community! -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1377277030.1952.78.camel@archlinux
Re: Missing Makefile
On 8/23/2013 11:50 AM, Ralf Mardorf wrote: _Unfortunately_ in real live, when we need to earn an honest penny, Linux is 99,% of all user cases completely unusable excepted of servers. The people who now will mention that this isn't true, claim that they made a living with using Linux only, are likely people with a research assignment and/or teaching assignment or their job is to be daughter or son, born in a rich family ;). With respect, I must disagree with this. Although I'm still fairly new to Linux (actually been playing with it for a couple of years, but only as a side), I find it much more usable for many things than other things out there. It's much more configurable and doesn't have to carry the weight of a huge graphic system if you don't need that, for instance. I thought it would be a much better replacement for OS/2 on this system than others. However, I anyway decided to use Linux only and to drop jobs where standard technology is needed, but nobody can expect that everybody will do the same. If everybody would do it, our societies would run into serious issues ;). Even my decision isn't based on anything that has to do with Linux ;), I'm just sick of working as an engineer, following fashions I don't like and today prefer to do social work ... but I'm jobless now, so t doesn't work that good ;). Yes, when IBM dropped OS/2 I had to find another means of subsistence. :) At that time, there were basically a couple of choices - web services or the dark side, so I chose web services. Been doing that for quite a while, not. This call was a complete surprise to me - I thought I was the last one using OS/2 (at least until the bearings on the hard disk dies a few months back). I've actually had a Linux VPS going for several years; I can't say I understand everything about running the server, but it works and is secure (heck - any trained monkey can follow directions!). I thought this would give me a chance to get further into Linux, but it just didn't work out. IOW you don't need to explain your reasons for "ignoring" Linux, most on this list are living in reality and not in Linux pony land ;). I don't think most are living in "Linux pony land" - but from reading this list I think most people here are using it more for hobby/home use and not to make a living. Now there's nothing wrong with that - but there are additional restrictions placed on you when you have to show a profit. Those restrictions aren't there when you're not paying someone by the hour and can spend as much time as you care to playing with things. I know - that's how I'm learning Linux :) Jerry -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/52178f3c.7080...@attglobal.net
Re: Missing Makefile
_Unfortunately_ in real live, when we need to earn an honest penny, Linux is 99,% of all user cases completely unusable excepted of servers. The people who now will mention that this isn't true, claim that they made a living with using Linux only, are likely people with a research assignment and/or teaching assignment or their job is to be daughter or son, born in a rich family ;). However, I anyway decided to use Linux only and to drop jobs where standard technology is needed, but nobody can expect that everybody will do the same. If everybody would do it, our societies would run into serious issues ;). Even my decision isn't based on anything that has to do with Linux ;), I'm just sick of working as an engineer, following fashions I don't like and today prefer to do social work ... but I'm jobless now, so t doesn't work that good ;). IOW you don't need to explain your reasons for "ignoring" Linux, most on this list are living in reality and not in Linux pony land ;). -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1377273003.1952.43.camel@archlinux
Re: Missing Makefile
On 8/23/2013 10:40 AM, Ralf Mardorf wrote: On Thu, 2013-08-22 at 12:02 -0400, Jerry Stuckle wrote: I tried it with dkms installed also, with no change. Hi Jerry, today I read the whole thread. The common way to build modules for a kernel is to use dkms and I experienced it as always working for me. How did you run dkms and what output did you get? Did you only install dkms and then run another command ;)? On Fri, 2013-08-23 at 09:28 -0400, Jerry Stuckle wrote: I really appreciate the offer, but we've had to move on. I know a good part of the problem is my unfamiliarity with Linux. That's your choice, but you unlikely will become familiar with Linux, when you move on ignoring Linux. However, if you one day should have time and be interested how to use dkms, than ask again, but provide the dkms command you run and it's output, to help us, to help you. Regards, Ralf Ralf, Yes, I did have DKMS installed, but don't remember exactly what I did at the time. But this is not a hobby project. There is a limit on how much time (both calendar and financially) we can spend trying to get something to work. It has been decided that since we can get a Windows driver working in fairly short time, that is the way things will be done. As I said - the original (OS/2 based) controller has been running fine for probably 15 years or more, but there is significant concern that in the case of failure, it will not be possible to repair it. So a more modern solution is required. As an old OS/2 programmer (which is why I got involved - I didn't write the original code but can understand how it works), I pushed for Linux as a better solution. However, that will not happen now, and there is no interest in further pursuit of a Linux solution. It's a shame - I think the code is pretty close to what's needed (it is the first shot, after all). One other thing - I don't believe DKMS is required at this time. This is a dedicated controller which will not be constantly updated with new kernels. And if a new kernel is installed, there will be significant testing done offline before being placed online. Part of that testing will be to rebuild the all code necessary, including this module (there is other application layer code involved, but this is the only kernel module). Jerry -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/5217806e.5020...@attglobal.net
Re: Missing Makefile
On Thu, 2013-08-22 at 12:02 -0400, Jerry Stuckle wrote: > I tried it with dkms installed also, with no change. Hi Jerry, today I read the whole thread. The common way to build modules for a kernel is to use dkms and I experienced it as always working for me. How did you run dkms and what output did you get? Did you only install dkms and then run another command ;)? On Fri, 2013-08-23 at 09:28 -0400, Jerry Stuckle wrote: > I really appreciate the offer, but we've had to move on. > > I know a good part of the problem is my unfamiliarity with Linux. That's your choice, but you unlikely will become familiar with Linux, when you move on ignoring Linux. However, if you one day should have time and be interested how to use dkms, than ask again, but provide the dkms command you run and it's output, to help us, to help you. Regards, Ralf -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1377268843.1952.31.camel@archlinux
Re: Missing Makefile
On 8/23/2013 12:36 AM, Kailash wrote: On Thursday 22 August 2013 09:32 PM, Jerry Stuckle wrote: On 8/22/2013 1:50 AM, Kailash wrote: On Monday 05 August 2013 08:10 AM, Jerry Stuckle wrote: On 8/4/2013 5:22 PM, Tom H wrote: On Sat, 03 Aug 2013 22:11:16 -0400, Jerry Stuckle wrote: > On 8/3/2013 10:30 AM, Tom H wrote: >> >> Do the following four symlinks exist on your box >> (for 3.2 of course). >> >> /lib/modules/3.10-1-amd64/build -> >> /usr/src/linux-headers-3.10-1-amd64 >> >> /lib/modules/3.10-1-amd64/source -> >> /usr/src/linux-headers-3.10-1-common >> >> /usr/src/linux-headers-3.10-1-amd64/scripts -> >> /usr/lib/linux-kbuild-3.10/scripts >> >> /usr/src/linux-headers-3.10-1-common/scripts -> >> /usr/lib/linux-kbuild-3.10/scripts > > Yes, all of the symlinks are there. Any other ideas? None given that the only clue is "I can't run make" and "everything else is OK." Your broken setup might be fixed by re-installing linux-headers and linux-kbuild. Thanks, but I've already done that twice. It's got me. Guess I'm going to have to just dump this system and start from scratch. Fortunately, it's only a test system I built to test the new module(s). Hi Jerry, Reinstalling the system won't help. I used packages.debian.org to figure this out and followed the solution listed here: http://forums.debian.net/viewtopic.php?f=5&t=62877&sid=fa12a2b8afd8827ef9ce71e8826d049f&start=15 Have you installed the package dkms? This in turn should install the package linux-kbuild-3.2 which includes the needed scripts. Sincerely, Kailash Thanks, Kailash, but I've already seen that (and several other) solutions. linux-kbuild-3.2 is installed. I tried it with dkms installed also, with no change. Meanwhile, since we haven't been able to get this working, we may have to do it under Windows. And I hate windows, but we have to get this working. The old OS/2 system is on it's last legs. Hi Jerry, If you don't mind, I'd like to look at some things if you're still up for it. I'll try and do a repro on my end. Could you post the contents of your sources.list file? Also could you show a listing of the relevant packages installed? Thanks, Kailash Kailash, I really appreciate the offer, but we've had to move on. We've got a Windows driver written, and will be testing it soon (when some other equipment becomes available). Not a great solution, IMHO, but we do what's necessary. I know a good part of the problem is my unfamiliarity with Linux. I prefer it to Windows for many things, but in this case it was a matter of time and economics; we spent a lot of time (which means money) trying to figure out why it wasn't working. Finally we had to go another route. Maybe in the future; I don't know. It's not my call. Jerry -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/52176374.3040...@attglobal.net
Re: Missing Makefile
On Thursday 22 August 2013 09:32 PM, Jerry Stuckle wrote: > On 8/22/2013 1:50 AM, Kailash wrote: >> On Monday 05 August 2013 08:10 AM, Jerry Stuckle wrote: >>> On 8/4/2013 5:22 PM, Tom H wrote: On Sat, 03 Aug 2013 22:11:16 -0400, Jerry Stuckle wrote: > On 8/3/2013 10:30 AM, Tom H wrote: >> >> Do the following four symlinks exist on your box >> (for 3.2 of course). >> >> /lib/modules/3.10-1-amd64/build -> >> /usr/src/linux-headers-3.10-1-amd64 >> >> /lib/modules/3.10-1-amd64/source -> >> /usr/src/linux-headers-3.10-1-common >> >> /usr/src/linux-headers-3.10-1-amd64/scripts -> >> /usr/lib/linux-kbuild-3.10/scripts >> >> /usr/src/linux-headers-3.10-1-common/scripts -> >> /usr/lib/linux-kbuild-3.10/scripts > > Yes, all of the symlinks are there. Any other ideas? None given that the only clue is "I can't run make" and "everything else is OK." Your broken setup might be fixed by re-installing linux-headers and linux-kbuild. >>> >>> Thanks, but I've already done that twice. It's got me. >>> >>> Guess I'm going to have to just dump this system and start from scratch. >>> Fortunately, it's only a test system I built to test the new >>> module(s). >>> >>> >> Hi Jerry, >> >> Reinstalling the system won't help. >> >> I used packages.debian.org to figure this out and followed the solution >> listed here: >> http://forums.debian.net/viewtopic.php?f=5&t=62877&sid=fa12a2b8afd8827ef9ce71e8826d049f&start=15 >> >> >> Have you installed the package dkms? >> >> This in turn should install the package linux-kbuild-3.2 which includes >> the needed scripts. >> >> Sincerely, >> Kailash >> >> > > Thanks, Kailash, but I've already seen that (and several other) > solutions. linux-kbuild-3.2 is installed. I tried it with dkms > installed also, with no change. > > Meanwhile, since we haven't been able to get this working, we may have > to do it under Windows. And I hate windows, but we have to get this > working. The old OS/2 system is on it's last legs. > > Hi Jerry, If you don't mind, I'd like to look at some things if you're still up for it. I'll try and do a repro on my end. Could you post the contents of your sources.list file? Also could you show a listing of the relevant packages installed? Thanks, Kailash -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/5216e6d4.1020...@gmail.com
Re: Missing Makefile
On 8/22/2013 1:50 AM, Kailash wrote: On Monday 05 August 2013 08:10 AM, Jerry Stuckle wrote: On 8/4/2013 5:22 PM, Tom H wrote: On Sat, 03 Aug 2013 22:11:16 -0400, Jerry Stuckle wrote: > On 8/3/2013 10:30 AM, Tom H wrote: >> >> Do the following four symlinks exist on your box >> (for 3.2 of course). >> >> /lib/modules/3.10-1-amd64/build -> >> /usr/src/linux-headers-3.10-1-amd64 >> >> /lib/modules/3.10-1-amd64/source -> >> /usr/src/linux-headers-3.10-1-common >> >> /usr/src/linux-headers-3.10-1-amd64/scripts -> >> /usr/lib/linux-kbuild-3.10/scripts >> >> /usr/src/linux-headers-3.10-1-common/scripts -> >> /usr/lib/linux-kbuild-3.10/scripts > > Yes, all of the symlinks are there. Any other ideas? None given that the only clue is "I can't run make" and "everything else is OK." Your broken setup might be fixed by re-installing linux-headers and linux-kbuild. Thanks, but I've already done that twice. It's got me. Guess I'm going to have to just dump this system and start from scratch. Fortunately, it's only a test system I built to test the new module(s). Hi Jerry, Reinstalling the system won't help. I used packages.debian.org to figure this out and followed the solution listed here: http://forums.debian.net/viewtopic.php?f=5&t=62877&sid=fa12a2b8afd8827ef9ce71e8826d049f&start=15 Have you installed the package dkms? This in turn should install the package linux-kbuild-3.2 which includes the needed scripts. Sincerely, Kailash Thanks, Kailash, but I've already seen that (and several other) solutions. linux-kbuild-3.2 is installed. I tried it with dkms installed also, with no change. Meanwhile, since we haven't been able to get this working, we may have to do it under Windows. And I hate windows, but we have to get this working. The old OS/2 system is on it's last legs. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/52163612.2020...@attglobal.net
Re: Missing Makefile
On Monday 05 August 2013 08:10 AM, Jerry Stuckle wrote: > On 8/4/2013 5:22 PM, Tom H wrote: >> On Sat, 03 Aug 2013 22:11:16 -0400, Jerry Stuckle wrote: >> > On 8/3/2013 10:30 AM, Tom H wrote: >> >> >> >> Do the following four symlinks exist on your box >> >> (for 3.2 of course). >> >> >> >> /lib/modules/3.10-1-amd64/build -> >> >> /usr/src/linux-headers-3.10-1-amd64 >> >> >> >> /lib/modules/3.10-1-amd64/source -> >> >> /usr/src/linux-headers-3.10-1-common >> >> >> >> /usr/src/linux-headers-3.10-1-amd64/scripts -> >> >> /usr/lib/linux-kbuild-3.10/scripts >> >> >> >> /usr/src/linux-headers-3.10-1-common/scripts -> >> >> /usr/lib/linux-kbuild-3.10/scripts >> > >> > Yes, all of the symlinks are there. Any other ideas? >> >> None given that the only clue is "I can't run make" and "everything else >> is OK." >> >> Your broken setup might be fixed by re-installing linux-headers and >> linux-kbuild. >> >> > > Thanks, but I've already done that twice. It's got me. > > Guess I'm going to have to just dump this system and start from scratch. > Fortunately, it's only a test system I built to test the new module(s). > > Hi Jerry, Reinstalling the system won't help. I used packages.debian.org to figure this out and followed the solution listed here: http://forums.debian.net/viewtopic.php?f=5&t=62877&sid=fa12a2b8afd8827ef9ce71e8826d049f&start=15 Have you installed the package dkms? This in turn should install the package linux-kbuild-3.2 which includes the needed scripts. Sincerely, Kailash -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/5215a6a2.2080...@gmail.com
Re: Missing Makefile
On 8/4/2013 5:22 PM, Tom H wrote: On Sat, 03 Aug 2013 22:11:16 -0400, Jerry Stuckle wrote: > On 8/3/2013 10:30 AM, Tom H wrote: >> >> Do the following four symlinks exist on your box >> (for 3.2 of course). >> >> /lib/modules/3.10-1-amd64/build -> >> /usr/src/linux-headers-3.10-1-amd64 >> >> /lib/modules/3.10-1-amd64/source -> >> /usr/src/linux-headers-3.10-1-common >> >> /usr/src/linux-headers-3.10-1-amd64/scripts -> >> /usr/lib/linux-kbuild-3.10/scripts >> >> /usr/src/linux-headers-3.10-1-common/scripts -> >> /usr/lib/linux-kbuild-3.10/scripts > > Yes, all of the symlinks are there. Any other ideas? None given that the only clue is "I can't run make" and "everything else is OK." Your broken setup might be fixed by re-installing linux-headers and linux-kbuild. Thanks, but I've already done that twice. It's got me. Guess I'm going to have to just dump this system and start from scratch. Fortunately, it's only a test system I built to test the new module(s). -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/51ff1097.2060...@attglobal.net
Re: Missing Makefile
On 8/4/2013 5:49 PM, david...@ling.ohio-state.edu wrote: On Wed, 31 Jul 2013, Jerry Stuckle wrote: Hi, all, I was sent here by the debian-devel list people. Hopefully someone here can help me. I'm trying to compile my first module for Debian (right now it doesn't do anything - one step at a time ). My makefile is: obj-m = mymodule.o KVERSION = $(shell uname -r) all: make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules clean: make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean When I try to run make, I get the following: make -C /lib/modules/3.2.0-4-amd64/build M-/home/jerry modules the 'M-' instead of 'M='. where did that come from? -wes make[1]: Entering directory `/usr/src/linux-headers-3.2.0-4-amd64' /usr/src/linux-headers-3.2.0-4-common/scripts/Makefile.build:44: /usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile: No such file or directory make[5]: *** No rule to make target `/usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile'. Stop. Sorry, that was my error when I was typing the message in (I'm not posting from the failing system). Jerry -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/51ff1040.30...@attglobal.net
Re: Missing Makefile
On Wed, 31 Jul 2013, Jerry Stuckle wrote: Hi, all, I was sent here by the debian-devel list people. Hopefully someone here can help me. I'm trying to compile my first module for Debian (right now it doesn't do anything - one step at a time ). My makefile is: obj-m = mymodule.o KVERSION = $(shell uname -r) all: make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules clean: make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean When I try to run make, I get the following: make -C /lib/modules/3.2.0-4-amd64/build M-/home/jerry modules the 'M-' instead of 'M='. where did that come from? -wes make[1]: Entering directory `/usr/src/linux-headers-3.2.0-4-amd64' /usr/src/linux-headers-3.2.0-4-common/scripts/Makefile.build:44: /usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile: No such file or directory make[5]: *** No rule to make target `/usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile'. Stop. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/alpine.deb.2.00.1308041744080.32...@brutus.ling.ohio-state.edu
Re: Missing Makefile
On Sat, 03 Aug 2013 22:11:16 -0400, Jerry Stuckle wrote: > On 8/3/2013 10:30 AM, Tom H wrote: >> >> Do the following four symlinks exist on your box >> (for 3.2 of course). >> >> /lib/modules/3.10-1-amd64/build -> >> /usr/src/linux-headers-3.10-1-amd64 >> >> /lib/modules/3.10-1-amd64/source -> >> /usr/src/linux-headers-3.10-1-common >> >> /usr/src/linux-headers-3.10-1-amd64/scripts -> >> /usr/lib/linux-kbuild-3.10/scripts >> >> /usr/src/linux-headers-3.10-1-common/scripts -> >> /usr/lib/linux-kbuild-3.10/scripts > > Yes, all of the symlinks are there. Any other ideas? None given that the only clue is "I can't run make" and "everything else is OK." Your broken setup might be fixed by re-installing linux-headers and linux-kbuild. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/51fec611.7010...@gmail.com
Re: Missing Makefile
On 8/3/2013 10:30 AM, Tom H wrote: On Fri, 02 Aug 2013 19:59:57 -0400 > Thanks for trying to help. You're welcome. > No, the make fails with a missing Makefile, as indicated > in my original post. Do the following four symlinks exist on your box (for 3.2 of course). /lib/modules/3.10-1-amd64/build -> /usr/src/linux-headers-3.10-1-amd64 /lib/modules/3.10-1-amd64/source -> /usr/src/linux-headers-3.10-1-common /usr/src/linux-headers-3.10-1-amd64/scripts -> /usr/lib/linux-kbuild-3.10/scripts /usr/src/linux-headers-3.10-1-common/scripts -> /usr/lib/linux-kbuild-3.10/scripts Tom, Yes, all of the symlinks are there. Any other ideas? Jerry -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/51fdb844.7040...@attglobal.net
Re: Re: Missing Makefile
On Fri, 02 Aug 2013 19:59:57 -0400 > Thanks for trying to help. You're welcome. > No, the make fails with a missing Makefile, as indicated > in my original post. Do the following four symlinks exist on your box (for 3.2 of course). /lib/modules/3.10-1-amd64/build -> /usr/src/linux-headers-3.10-1-amd64 /lib/modules/3.10-1-amd64/source -> /usr/src/linux-headers-3.10-1-common /usr/src/linux-headers-3.10-1-amd64/scripts -> /usr/lib/linux-kbuild-3.10/scripts /usr/src/linux-headers-3.10-1-common/scripts -> /usr/lib/linux-kbuild-3.10/scripts -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/51fd1416.5020...@gmail.com
Re: Missing Makefile
On 8/2/2013 4:01 PM, Tom H wrote: This is on sid, not wheezy (I don't have a wheezy box with compilation tools installed). [root@localhost:/usr/src/jstuckle]# aptitude search -F '%c %p %v %V' linux-image-3 i linux-image-3.10-1-amd64 3.10.3-1 3.10.3-1 p linux-image-3.10-1-amd64-dbg 3.10.3-1 [root@localhost:/usr/src/jstuckle]# aptitude search -F '%c %p %v %V' linux-headers-3 p linux-headers-3.10-1-all 3.10.3-1 p linux-headers-3.10-1-all-amd64 3.10.3-1 i linux-headers-3.10-1-amd64 3.10.3-1 3.10.3-1 i linux-headers-3.10-1-common 3.10.3-1 3.10.3-1 [root@localhost:/usr/src/jstuckle]# aptitude search -F '%c %p %v %V' linux-kbuild-3 i linux-kbuild-3.10 3.10-2 3.10-2 [root@localhost:/usr/src/jstuckle]# ls /usr/src/linux-headers-3.10-1-common/scripts basic depmod.sh genksyms Makefile.build makelst namespace.pl bin2c gcc-goto.sh kallsyms Makefile.clean mksysmap patch-kernel checkincludes.pl gcc-version.sh Kbuild.include Makefile.host mkuboot.sh pnmtologo checkstack.pl gcc-x86_32-has-stack-protector.sh kconfig Makefile.lib mkversion setlocalversion checkversion.pl gcc-x86_64-has-stack-protector.sh kernel-doc Makefile.modinst mod ver_linux conmakehash gen_initramfs_list.sh Lindent Makefile.modpost module-common.lds [root@localhost:/usr/src/jstuckle]# stat /usr/src/linux-headers-3.10-1-common/scripts File: ‘/usr/src/linux-headers-3.10-1-common/scripts’ -> ‘../../lib/linux-kbuild-3.10/scripts’ I can compile a basic module using your Makefile. Can you? [root@localhost:/usr/src/jstuckle]# ls Makefile mymodule.c [root@localhost:/usr/src/jstuckle]# cat Makefile obj-m = mymodule.o KVERSION = $(shell uname -r) all: make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules clean: make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean [root@localhost:/usr/src/jstuckle]# cat mymodule.c #include #include MODULE_LICENSE("GPL"); int init_module(void) { printk(KERN_ALERT "Hello world\n"); return 0; } void cleanup_module(void) { printk(KERN_ALERT "Goodbye world\n"); } [root@localhost:/usr/src/jstuckle]# make make -C /lib/modules/3.10-1-amd64/build M=/usr/src/jstuckle modules make[1]: Entering directory `/usr/src/linux-headers-3.10-1-amd64' CC [M] /usr/src/jstuckle/mymodule.o Building modules, stage 2. MODPOST 1 modules CC /usr/src/jstuckle/mymodule.mod.o LD [M] /usr/src/jstuckle/mymodule.ko make[1]: Leaving directory `/usr/src/linux-headers-3.10-1-amd64' [root@localhost:/usr/src/jstuckle]# ls Makefile modules.order Module.symvers mymodule.c mymodule.ko mymodule.mod.c mymodule.mod.o mymodule.o [root@localhost:/usr/src/jstuckle]# insmod mymodule.ko [root@localhost:/usr/src/jstuckle]# grep mymodule /proc/modules mymodule 12388 0 - Live 0xa02e5000 (PO) Tom, Thanks for trying to help. No, the make fails with a missing Makefile, as indicated in my original post. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/51fc47fd.6030...@attglobal.net
Re: Missing Makefile
On Thu, 01 Aug 2013 09:30:31 -0400, Jerry Stuckle wrote > On 7/31/2013 11:12 PM, Tom H wrote: >> On Tue, 30 Jul 2013 23:05:01 -0400, Jerry Stuckle wrote: >>> >>> I'm trying to compile my first module for Debian. >>> >>> My makefile is: >>> >>> obj-m = mymodule.o >>> KVERSION = $(shell uname -r) >>> all: >>> make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules >>> clean: >>> make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean >>> >>> When I try to run make, I get the following: >>> >>> make -C /lib/modules/3.2.0-4-amd64/build M-/home/jerry modules >>> make[1]: Entering directory `/usr/src/linux-headers-3.2.0-4-amd64' >>> /usr/src/linux-headers-3.2.0-4-common/scripts/Makefile.build:44: >>> /usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile: No such >>> file or directory make[5]: *** No rule to make target >>> `/usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile'. Stop. >> >> That is true - >> /usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile does not >> exist. >> >> Is linux-kbuild-3.2 installed? >> >> "/usr/src/linux-headers-3.2.0-4-common/scripts" is a link to >> "/lib/modules/linux-kbuild-3.2/scripts". > > Thanks for the response. Yes, linux-kbuild-3.2 is installed (and the > symlink is correct). This is on sid, not wheezy (I don't have a wheezy box with compilation tools installed). [root@localhost:/usr/src/jstuckle]# aptitude search -F '%c %p %v %V' linux-image-3 i linux-image-3.10-1-amd64 3.10.3-1 3.10.3-1 p linux-image-3.10-1-amd64-dbg 3.10.3-1 [root@localhost:/usr/src/jstuckle]# aptitude search -F '%c %p %v %V' linux-headers-3 p linux-headers-3.10-1-all 3.10.3-1 p linux-headers-3.10-1-all-amd64 3.10.3-1 i linux-headers-3.10-1-amd64 3.10.3-1 3.10.3-1 i linux-headers-3.10-1-common 3.10.3-1 3.10.3-1 [root@localhost:/usr/src/jstuckle]# aptitude search -F '%c %p %v %V' linux-kbuild-3 i linux-kbuild-3.10 3.10-2 3.10-2 [root@localhost:/usr/src/jstuckle]# ls /usr/src/linux-headers-3.10-1-common/scripts basic depmod.sh genksyms Makefile.build makelst namespace.pl bin2c gcc-goto.sh kallsyms Makefile.clean mksysmap patch-kernel checkincludes.pl gcc-version.sh Kbuild.include Makefile.host mkuboot.sh pnmtologo checkstack.pl gcc-x86_32-has-stack-protector.sh kconfig Makefile.lib mkversion setlocalversion checkversion.pl gcc-x86_64-has-stack-protector.sh kernel-doc Makefile.modinst mod ver_linux conmakehash gen_initramfs_list.sh Lindent Makefile.modpost module-common.lds [root@localhost:/usr/src/jstuckle]# stat /usr/src/linux-headers-3.10-1-common/scripts File: ‘/usr/src/linux-headers-3.10-1-common/scripts’ -> ‘../../lib/linux-kbuild-3.10/scripts’ I can compile a basic module using your Makefile. Can you? [root@localhost:/usr/src/jstuckle]# ls Makefile mymodule.c [root@localhost:/usr/src/jstuckle]# cat Makefile obj-m = mymodule.o KVERSION = $(shell uname -r) all: make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules clean: make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean [root@localhost:/usr/src/jstuckle]# cat mymodule.c #include #include MODULE_LICENSE("GPL"); int init_module(void) { printk(KERN_ALERT "Hello world\n"); return 0; } void cleanup_module(void) { printk(KERN_ALERT "Goodbye world\n"); } [root@localhost:/usr/src/jstuckle]# make make -C /lib/modules/3.10-1-amd64/build M=/usr/src/jstuckle modules make[1]: Entering directory `/usr/src/linux-headers-3.10-1-amd64' CC [M] /usr/src/jstuckle/mymodule.o Building modules, stage 2. MODPOST 1 modules CC /usr/src/jstuckle/mymodule.mod.o LD [M] /usr/src/jstuckle/mymodule.ko make[1]: Leaving directory `/usr/src/linux-headers-3.10-1-amd64' [root@localhost:/usr/src/jstuckle]# ls Makefile modules.order Module.symvers mymodule.c mymodule.ko mymodule.mod.c mymodule.mod.o mymodule.o [root@localhost:/usr/src/jstuckle]# insmod mymodule.ko [root@localhost:/usr/src/jstuckle]# grep mymodule /proc/modules mymodule 12388 0 - Live 0xa02e5000 (PO) -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/51fc0ffc.7060...@gmail.com
Re: Missing Makefile
On 7/31/2013 11:12 PM, Tom H wrote: On Tue, 30 Jul 2013 23:05:01 -0400, Jerry Stuckle wrote: > > I'm trying to compile my first module for Debian. > > My makefile is: > > obj-m = mymodule.o > KVERSION = $(shell uname -r) > all: > make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules > clean: > make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean > > When I try to run make, I get the following: > > make -C /lib/modules/3.2.0-4-amd64/build M-/home/jerry modules > make[1]: Entering directory `/usr/src/linux-headers-3.2.0-4-amd64' > /usr/src/linux-headers-3.2.0-4-common/scripts/Makefile.build:44: > /usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile: No such > file or directory make[5]: *** No rule to make target > `/usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile'. Stop. > > That is true - > /usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile does not > exist. Is linux-kbuild-3.2 installed? "/usr/src/linux-headers-3.2.0-4-common/scripts" is a link to "/lib/modules/linux-kbuild-3.2/scripts". Tom, Thanks for the response. Yes, linux-kbuild-3.2 is installed (and the symlink is correct). Jerry -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/51fa62f7.1050...@attglobal.net
Re: Missing Makefile
On Tue, 30 Jul 2013 23:05:01 -0400, Jerry Stuckle wrote: > > I'm trying to compile my first module for Debian. > > My makefile is: > > obj-m = mymodule.o > KVERSION = $(shell uname -r) > all: > make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules > clean: > make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean > > When I try to run make, I get the following: > > make -C /lib/modules/3.2.0-4-amd64/build M-/home/jerry modules > make[1]: Entering directory `/usr/src/linux-headers-3.2.0-4-amd64' > /usr/src/linux-headers-3.2.0-4-common/scripts/Makefile.build:44: > /usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile: No such > file or directory make[5]: *** No rule to make target > `/usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile'. Stop. > > That is true - > /usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile does not > exist. Is linux-kbuild-3.2 installed? "/usr/src/linux-headers-3.2.0-4-common/scripts" is a link to "/lib/modules/linux-kbuild-3.2/scripts". -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/51f9d215.4080...@gmail.com
Missing Makefile
Hi, all, I was sent here by the debian-devel list people. Hopefully someone here can help me. I'm trying to compile my first module for Debian (right now it doesn't do anything - one step at a time ). My makefile is: obj-m = mymodule.o KVERSION = $(shell uname -r) all: make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules clean: make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean When I try to run make, I get the following: make -C /lib/modules/3.2.0-4-amd64/build M-/home/jerry modules make[1]: Entering directory `/usr/src/linux-headers-3.2.0-4-amd64' /usr/src/linux-headers-3.2.0-4-common/scripts/Makefile.build:44: /usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile: No such file or directory make[5]: *** No rule to make target `/usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile'. Stop. That is true - /usr/src/linux-headers-3.2.0-4-common/scripts/basic/Makefile does not exist. I've googled for the problem and seen several others with similar problems (including a bug on the Debian list), but nothing stands out. I seem to have all of the packages needed, have run m-a update and m-a prepare, all with no change. Has anyone seen this? Any idea what I'm doing wrong? TIA -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/51f969ec.3070...@attglobal.net