Re: Syscall_32.tbl Missing From Kernel Source

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/16/2016 12:44 PM, Stephen Morris wrote:
On 16/03/16 19:25, Stephen Morris wrote:
Hi,

    I am trying to compile the kernel from the source for kernel
4.4.3-300 but the compile is failing even though I have downloaded
kcbench to get the module source code. I have looked in
arch/x86/entry/syscalls in the kernel source and syscall_32.tbl is not
there, all that is in that directory is Makefile. Have I downloaded
the wrong source package, or should I just try and find where it has
been placed in the kcbench-data directory and copy it over?


regards,

Steve

I copied the syscall_32.tbl module across to the kernel from where the
kcbench_data package installed it to, but the compile then fails on the
next module from the kcbench_data package. Why are these not in the
kernel, or is there another place that I need to update to reflect that
the necessary source has been installed and where it is, that the
package install is not updating?

I'm not having any issues (well, so far).

1. I downloaded the kernel source RPM from a Fedora mirror to my /tmp
directory. If you want the exact commands I used:

	$ cd /tmp
$ wget http://mirrors.kernel.org/fedora/updates/23/SRPMS/k/kernel-4.4.4-301.fc23.src.rpm

2. As myself (not a privileged user), I just did:

	$ cd /tmp
	$ rpm -ivp kernel-4.4.4-301.fc23.src.rpm

to install it in my rpmbuild directory tree. It whined about some items
I needed to build it, so I downloaded and installed them:

$ sudo dnf install audit-libs-devel binutils-devel bison elfutils-devel flex hmaccalc newt-devel numactl-devel pciutils-devel pesign

3. Next, I did:

	$ cd ~/rpmbuild/SPECS
	$ rpmbuild -bp kernel.spec

This builds the initial stuff required to configure the kernel itself,
applies the patches, etc. and puts the results in

	~/rpmbuild/BUILD/kernel-4.4.fc23

You'll see two directories inside the one I mention above. The one
named "linux-4.4.4-301.fc23.x86_64" is the Fedora-specific one (with
Fedora-specific patches). The one named "vanilla-4.4" is the one
straight from kernel.org (without Fedora-specific patches and the
like). Use the Fedora-specific one.

4. Next, I did:

	$ cd ~/rpmbuild/BUILD/kernel-4.4.fc23/linux-4.4.4-301.fc23.x86_64
	$ make xconfig

Made my changes and saved the resulting ".config" file.

4. Next, I did:

	make

At this point, it starts building the kernel. It's still building right
now (I'm using my poor little 4-core i5 laptop with only 8G of RAM),
but so far I've not seen any issues like you're having.

It's been a while since I built a kernel, but this is more-or-less what
I've done in the past. I hope it helps.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
-    I'm telling you that the kernel is stable not because it's a    -
-    kernel, but because I refuse to listen to arguments like this.  -
-                                              -- Linus Torvalds     -
----------------------------------------------------------------------
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux