Mailinglist Archive: opensuse (1702 mails)
|< Previous||Next >|
Re: [opensuse] Kernel Compiling
- From: Richard <ricreig@xxxxxxxxx>
- Date: Wed, 9 Sep 2009 16:30:00 -0400
- Message-id: <200909091630.00914.ricreig@xxxxxxxxx>
On Wed September 9 2009 2:53:29 pm you wrote:
On Wed September 9 2009 4:34:38 am ne... wrote:
On Wed, Sep 9, 2009 at 09:20, Richard<ricreig@xxxxxxxxx> wrote:
On Wed September 9 2009 4:13:58 am Heinz Diehl wrote:
At Wed, 9 Sep 2009 03:17:08 -0400,
/usr/include/bits/socket.h:334:24: error: asm/socket.h: No such file orThis means your installed kernel sources are broken (incomplete).
In the include directory, you will find various 'asm-xxx' directories.
Try making a
sym link to the one you are compiling for e.g. ln -s ../asm-alpha ../asm
This might or might not work. I haven't needed to compile a kernel in the
last 3 years so I'm not to scratch with this stuff.
Thanks for the hint, but no combination of links would work. I put 'ln -s
../asm-generic ../asm in ...
/usr/src/<kernel I was trying to build>/
/usr/src/<kernel I was trying to build>/include
/usr/src/<kernel I was trying to build>/include/asm-generic
...and a few others
...replaced '../asm-generic' with the name of the assembler ...
'ln -s /usr/bin/as86 ./asm' and variations of that theme
Unfortunately, the error message was the same with all tries. No difference.
I tried with 4 other kernel source directories, one of which was created by
extracting from a *.tgz tarball. Nada, still the *exact* same error
when using 'make <anything>'
I'm stumped, but I thank you for your responses.
Thanks for the reply John,
Ok, so you are in total thrash mode here, putting links all over the place
where they don't belong.
I removed each link after trying and receiving the failure. Either the link
is being put
in the wrong place, or the link I was trying to create was pointing to the
wrong thing :(
Its seriously time to consider a do-over. Un-install the sources clean upFirst, is /usr/src/<kernel source files> the right path?
the directories and start again.
2nd, given the directory structure, what would the correct link be AND
where should the link go, eg, the directory to create the link in?
Have you checked your "sys" environmental thingie?contents of /usr/src/linux ---> ptr to lrwxrwxrwx 1 root root 12
the message: /usr/include/bits/socket.h:334:24: error: asm/socket.h:
seems to suggest its looking for a asm subdirectory in /usr/include/bits/
2009-09-09 01:06 linux -> linux-2.6.30
drwxrwxrwx 24 root root 4096 2009-06-09 23:05 arch
drwxrwxrwx 2 root root 4096 2009-06-09 23:05 block
-rwxrwxrwx 1 root root 18693 2009-06-09 23:05 COPYING
-rwxrwxrwx 1 root root 93847 2009-06-09 23:05 CREDITS
drwxrwxrwx 3 root root 4096 2009-06-09 23:05 crypto
drwxrwxrwx 83 root root 12288 2009-06-09 23:05 Documentation
drwxrwxrwx 84 root root 4096 2009-06-09 23:05 drivers
drwxrwxrwx 33 root root 4096 2009-06-09 23:05 firmware
drwxrwxrwx 70 root root 4096 2009-06-09 23:05 fs
drwxrwxrwx 20 root root 4096 2009-09-09 05:12 include
drwxrwxrwx 2 root root 4096 2009-06-09 23:05 init
drwxrwxrwx 2 root root 4096 2009-06-09 23:05 ipc
-rwxrwxrwx 1 root root 2430 2009-06-09 23:05 Kbuild
drwxrwxrwx 6 root root 4096 2009-06-09 23:05 kernel
drwxrwxrwx 6 root root 4096 2009-06-09 23:05 lib
-rwxrwxrwx 1 root root 148271 2009-06-09 23:05 MAINTAINERS
-rwxrwxrwx 1 root root 55126 2009-06-09 23:05 Makefile
-rwxrwxrwx 1 root root 55126 2009-06-09 23:05 Makefile.bkorig
drwxrwxrwx 2 root root 4096 2009-06-09 23:05 mm
drwxrwxrwx 47 root root 4096 2009-06-09 23:05 net
-rwxrwxrwx 1 root root 17080 2009-06-09 23:05 README
-rwxrwxrwx 1 root root 3172 2009-06-09 23:05 REPORTING-BUGS
drwxrwxrwx 7 root root 4096 2009-06-09 23:05 samples
drwxrwxrwx 12 root root 4096 2009-06-09 23:05 scripts
drwxrwxrwx 7 root root 4096 2009-06-09 23:05 security
drwxrwxrwx 21 root root 4096 2009-06-09 23:05 sound
drwxrwxrwx 2 root root 4096 2009-06-09 23:05 usr
drwxrwxrwx 3 root root 4096 2009-06-09 23:05 virt
I don't see a /asm/ directory anywhere?
I tried to find */asm/* with no results searching the entire 2.5TB on my raid
as well as all of / (root) and NFS mounts.
I have an assembler 'bin86' installed which supplies /bin/as86. I also have
yasm installed which provides /bin/yasm.
I can successfully compile stuff on my 10.3 machine but this was the first time
I have tried on the 11.1 machine
in my other room. As I want to upgrade the 10.3 machine soon, and as it has a
'Rocket Raid' controller, not
supported directly by SuSE, I have to recompile it's driver and do a modprobe
to install it, then a mkinitd to include
it when I reboot. Without that module, I lose half of my 2.5 TB disk space.
That machine has 9 drives on it, 4 on the
RR controller and 5 on the MBd controller, 4 IDE and 1 SATA. Has worked well
for years. I wanted to get another
controller and expand my bedroom computer to 2.5TB from 1.0TB it has now. The
RR controller works really well
and if I can compile the driver, I will do the upgrade. Compiling the kernel
is optional, but it gives me a chance to
remove support for devices and other unneeded features. I normally start off
with a 'make oldconfig' to get a file
that has all the working options, then I can go through it and zap/change
things and then compile the kernel, install
it as an alternate, for testing, and if it works the way I want, then I can
insert the RR driver and mkinitd it so when I
reboot, if I have the new RR controller, my 2nd raidd will be online by the
time it finishes rebooting, and with the
smaller, but still funtional kernel.
I just tried to 'make' a couple of small projects....all end with the same
error. Removing the sources doesn't seem
to be the answer. I just am at a loss as to *why* make wants to do anything
with asm.sockets in the first place BEFORE
doing anything other than creating a copy of the old configs in the existing
It won't even do a 'make clean' without the error. I have tried to reinstall
ALL software by reloading the RPMs and
forceing the install and replacing whatever files it perceives as already
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
|< Previous||Next >|