Linux Kernel v2.6.34 Compilation error on Ubuntu 16.04
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I am freshman in the Kernel development. I am trying to install Linux Kernel v2.6.34 on Ubuntu 16.04, because most of the books explains this version that's why I think it is a good start. My ultimate goal is to understand and modify memory management (especially in the latest Kernel). During compilation I have encountered with the following errors.
/home/irfan/kernel/linux-2.6.34/arch/x86/include/asm/percpu.h:204:33: note: in expansion of macro ‘percpu_to_op’
#define percpu_write(var, val) percpu_to_op("mov", var, val)
^
/home/irfan/kernel/linux-2.6.34/arch/x86/include/asm/irq_regs.h:26:2: note: in expansion of macro ‘percpu_write’
percpu_write(irq_regs, new_regs);
^
arch/x86/kernel/quirks.c: In function ‘ich_force_enable_hpet’:
arch/x86/kernel/quirks.c:98:2: warning: parameter names (without types) in function declaration
u32 uninitialized_var(rcba);
^
arch/x86/kernel/quirks.c:104:36: error: ‘rcba’ undeclared (first use in this function)
pci_read_config_dword(dev, 0xF0, &rcba);
^
arch/x86/kernel/quirks.c:104:36: note: each undeclared identifier is reported only once for each function it appears in
arch/x86/kernel/quirks.c: In function ‘old_ich_force_hpet_resume’:
arch/x86/kernel/quirks.c:188:2: warning: parameter names (without types) in function declaration
u32 uninitialized_var(gen_cntl);
^
arch/x86/kernel/quirks.c:193:43: error: ‘gen_cntl’ undeclared (first use in this function)
pci_read_config_dword(cached_dev, 0xD0, &gen_cntl);
^
arch/x86/kernel/quirks.c: In function ‘old_ich_force_enable_hpet’:
arch/x86/kernel/quirks.c:210:2: warning: parameter names (without types) in function declaration
u32 uninitialized_var(gen_cntl);
^
arch/x86/kernel/quirks.c:215:36: error: ‘gen_cntl’ undeclared (first use in this function)
pci_read_config_dword(dev, 0xD0, &gen_cntl);
^
arch/x86/kernel/quirks.c: In function ‘vt8237_force_enable_hpet’:
arch/x86/kernel/quirks.c:301:2: warning: parameter names (without types) in function declaration
u32 uninitialized_var(val);
^
arch/x86/kernel/quirks.c:311:36: error: ‘val’ undeclared (first use in this function)
pci_read_config_dword(dev, 0x68, &val);
^
arch/x86/kernel/quirks.c: In function ‘nvidia_force_enable_hpet’:
arch/x86/kernel/quirks.c:426:2: warning: parameter names (without types) in function declaration
u32 uninitialized_var(val);
^
arch/x86/kernel/quirks.c:437:36: error: ‘val’ undeclared (first use in this function)
pci_read_config_dword(dev, 0x44, &val);
^
scripts/Makefile.build:230: recipe for target 'arch/x86/kernel/quirks.o' failed
make[2]: *** [arch/x86/kernel/quirks.o] Error 1
scripts/Makefile.build:366: recipe for target 'arch/x86/kernel' failed
make[1]: *** [arch/x86/kernel] Error 2
Makefile:884: recipe for target 'arch/x86' failed
make: *** [arch/x86] Error 2
I tried, but I didn't success, nor I found any material/help about this error.
drivers software-installation kernel compiling gcc
add a comment |
I am freshman in the Kernel development. I am trying to install Linux Kernel v2.6.34 on Ubuntu 16.04, because most of the books explains this version that's why I think it is a good start. My ultimate goal is to understand and modify memory management (especially in the latest Kernel). During compilation I have encountered with the following errors.
/home/irfan/kernel/linux-2.6.34/arch/x86/include/asm/percpu.h:204:33: note: in expansion of macro ‘percpu_to_op’
#define percpu_write(var, val) percpu_to_op("mov", var, val)
^
/home/irfan/kernel/linux-2.6.34/arch/x86/include/asm/irq_regs.h:26:2: note: in expansion of macro ‘percpu_write’
percpu_write(irq_regs, new_regs);
^
arch/x86/kernel/quirks.c: In function ‘ich_force_enable_hpet’:
arch/x86/kernel/quirks.c:98:2: warning: parameter names (without types) in function declaration
u32 uninitialized_var(rcba);
^
arch/x86/kernel/quirks.c:104:36: error: ‘rcba’ undeclared (first use in this function)
pci_read_config_dword(dev, 0xF0, &rcba);
^
arch/x86/kernel/quirks.c:104:36: note: each undeclared identifier is reported only once for each function it appears in
arch/x86/kernel/quirks.c: In function ‘old_ich_force_hpet_resume’:
arch/x86/kernel/quirks.c:188:2: warning: parameter names (without types) in function declaration
u32 uninitialized_var(gen_cntl);
^
arch/x86/kernel/quirks.c:193:43: error: ‘gen_cntl’ undeclared (first use in this function)
pci_read_config_dword(cached_dev, 0xD0, &gen_cntl);
^
arch/x86/kernel/quirks.c: In function ‘old_ich_force_enable_hpet’:
arch/x86/kernel/quirks.c:210:2: warning: parameter names (without types) in function declaration
u32 uninitialized_var(gen_cntl);
^
arch/x86/kernel/quirks.c:215:36: error: ‘gen_cntl’ undeclared (first use in this function)
pci_read_config_dword(dev, 0xD0, &gen_cntl);
^
arch/x86/kernel/quirks.c: In function ‘vt8237_force_enable_hpet’:
arch/x86/kernel/quirks.c:301:2: warning: parameter names (without types) in function declaration
u32 uninitialized_var(val);
^
arch/x86/kernel/quirks.c:311:36: error: ‘val’ undeclared (first use in this function)
pci_read_config_dword(dev, 0x68, &val);
^
arch/x86/kernel/quirks.c: In function ‘nvidia_force_enable_hpet’:
arch/x86/kernel/quirks.c:426:2: warning: parameter names (without types) in function declaration
u32 uninitialized_var(val);
^
arch/x86/kernel/quirks.c:437:36: error: ‘val’ undeclared (first use in this function)
pci_read_config_dword(dev, 0x44, &val);
^
scripts/Makefile.build:230: recipe for target 'arch/x86/kernel/quirks.o' failed
make[2]: *** [arch/x86/kernel/quirks.o] Error 1
scripts/Makefile.build:366: recipe for target 'arch/x86/kernel' failed
make[1]: *** [arch/x86/kernel] Error 2
Makefile:884: recipe for target 'arch/x86' failed
make: *** [arch/x86] Error 2
I tried, but I didn't success, nor I found any material/help about this error.
drivers software-installation kernel compiling gcc
add a comment |
I am freshman in the Kernel development. I am trying to install Linux Kernel v2.6.34 on Ubuntu 16.04, because most of the books explains this version that's why I think it is a good start. My ultimate goal is to understand and modify memory management (especially in the latest Kernel). During compilation I have encountered with the following errors.
/home/irfan/kernel/linux-2.6.34/arch/x86/include/asm/percpu.h:204:33: note: in expansion of macro ‘percpu_to_op’
#define percpu_write(var, val) percpu_to_op("mov", var, val)
^
/home/irfan/kernel/linux-2.6.34/arch/x86/include/asm/irq_regs.h:26:2: note: in expansion of macro ‘percpu_write’
percpu_write(irq_regs, new_regs);
^
arch/x86/kernel/quirks.c: In function ‘ich_force_enable_hpet’:
arch/x86/kernel/quirks.c:98:2: warning: parameter names (without types) in function declaration
u32 uninitialized_var(rcba);
^
arch/x86/kernel/quirks.c:104:36: error: ‘rcba’ undeclared (first use in this function)
pci_read_config_dword(dev, 0xF0, &rcba);
^
arch/x86/kernel/quirks.c:104:36: note: each undeclared identifier is reported only once for each function it appears in
arch/x86/kernel/quirks.c: In function ‘old_ich_force_hpet_resume’:
arch/x86/kernel/quirks.c:188:2: warning: parameter names (without types) in function declaration
u32 uninitialized_var(gen_cntl);
^
arch/x86/kernel/quirks.c:193:43: error: ‘gen_cntl’ undeclared (first use in this function)
pci_read_config_dword(cached_dev, 0xD0, &gen_cntl);
^
arch/x86/kernel/quirks.c: In function ‘old_ich_force_enable_hpet’:
arch/x86/kernel/quirks.c:210:2: warning: parameter names (without types) in function declaration
u32 uninitialized_var(gen_cntl);
^
arch/x86/kernel/quirks.c:215:36: error: ‘gen_cntl’ undeclared (first use in this function)
pci_read_config_dword(dev, 0xD0, &gen_cntl);
^
arch/x86/kernel/quirks.c: In function ‘vt8237_force_enable_hpet’:
arch/x86/kernel/quirks.c:301:2: warning: parameter names (without types) in function declaration
u32 uninitialized_var(val);
^
arch/x86/kernel/quirks.c:311:36: error: ‘val’ undeclared (first use in this function)
pci_read_config_dword(dev, 0x68, &val);
^
arch/x86/kernel/quirks.c: In function ‘nvidia_force_enable_hpet’:
arch/x86/kernel/quirks.c:426:2: warning: parameter names (without types) in function declaration
u32 uninitialized_var(val);
^
arch/x86/kernel/quirks.c:437:36: error: ‘val’ undeclared (first use in this function)
pci_read_config_dword(dev, 0x44, &val);
^
scripts/Makefile.build:230: recipe for target 'arch/x86/kernel/quirks.o' failed
make[2]: *** [arch/x86/kernel/quirks.o] Error 1
scripts/Makefile.build:366: recipe for target 'arch/x86/kernel' failed
make[1]: *** [arch/x86/kernel] Error 2
Makefile:884: recipe for target 'arch/x86' failed
make: *** [arch/x86] Error 2
I tried, but I didn't success, nor I found any material/help about this error.
drivers software-installation kernel compiling gcc
I am freshman in the Kernel development. I am trying to install Linux Kernel v2.6.34 on Ubuntu 16.04, because most of the books explains this version that's why I think it is a good start. My ultimate goal is to understand and modify memory management (especially in the latest Kernel). During compilation I have encountered with the following errors.
/home/irfan/kernel/linux-2.6.34/arch/x86/include/asm/percpu.h:204:33: note: in expansion of macro ‘percpu_to_op’
#define percpu_write(var, val) percpu_to_op("mov", var, val)
^
/home/irfan/kernel/linux-2.6.34/arch/x86/include/asm/irq_regs.h:26:2: note: in expansion of macro ‘percpu_write’
percpu_write(irq_regs, new_regs);
^
arch/x86/kernel/quirks.c: In function ‘ich_force_enable_hpet’:
arch/x86/kernel/quirks.c:98:2: warning: parameter names (without types) in function declaration
u32 uninitialized_var(rcba);
^
arch/x86/kernel/quirks.c:104:36: error: ‘rcba’ undeclared (first use in this function)
pci_read_config_dword(dev, 0xF0, &rcba);
^
arch/x86/kernel/quirks.c:104:36: note: each undeclared identifier is reported only once for each function it appears in
arch/x86/kernel/quirks.c: In function ‘old_ich_force_hpet_resume’:
arch/x86/kernel/quirks.c:188:2: warning: parameter names (without types) in function declaration
u32 uninitialized_var(gen_cntl);
^
arch/x86/kernel/quirks.c:193:43: error: ‘gen_cntl’ undeclared (first use in this function)
pci_read_config_dword(cached_dev, 0xD0, &gen_cntl);
^
arch/x86/kernel/quirks.c: In function ‘old_ich_force_enable_hpet’:
arch/x86/kernel/quirks.c:210:2: warning: parameter names (without types) in function declaration
u32 uninitialized_var(gen_cntl);
^
arch/x86/kernel/quirks.c:215:36: error: ‘gen_cntl’ undeclared (first use in this function)
pci_read_config_dword(dev, 0xD0, &gen_cntl);
^
arch/x86/kernel/quirks.c: In function ‘vt8237_force_enable_hpet’:
arch/x86/kernel/quirks.c:301:2: warning: parameter names (without types) in function declaration
u32 uninitialized_var(val);
^
arch/x86/kernel/quirks.c:311:36: error: ‘val’ undeclared (first use in this function)
pci_read_config_dword(dev, 0x68, &val);
^
arch/x86/kernel/quirks.c: In function ‘nvidia_force_enable_hpet’:
arch/x86/kernel/quirks.c:426:2: warning: parameter names (without types) in function declaration
u32 uninitialized_var(val);
^
arch/x86/kernel/quirks.c:437:36: error: ‘val’ undeclared (first use in this function)
pci_read_config_dword(dev, 0x44, &val);
^
scripts/Makefile.build:230: recipe for target 'arch/x86/kernel/quirks.o' failed
make[2]: *** [arch/x86/kernel/quirks.o] Error 1
scripts/Makefile.build:366: recipe for target 'arch/x86/kernel' failed
make[1]: *** [arch/x86/kernel] Error 2
Makefile:884: recipe for target 'arch/x86' failed
make: *** [arch/x86] Error 2
I tried, but I didn't success, nor I found any material/help about this error.
drivers software-installation kernel compiling gcc
drivers software-installation kernel compiling gcc
asked 2 mins ago
IrfanullahIrfanullah
112
112
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1138758%2flinux-kernel-v2-6-34-compilation-error-on-ubuntu-16-04%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1138758%2flinux-kernel-v2-6-34-compilation-error-on-ubuntu-16-04%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown