Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux: Kernel

i386 requires x86_64?

 

 

Linux kernel RSS feed   Index | Next | Previous | View Threaded


lkml at tlinx

Jan 30, 2006, 7:10 PM

Post #1 of 7 (546 views)
Permalink
i386 requires x86_64?

Generating a new kernel and wanted to delete the unrelated architectures.

Is the i386 supposed to depend on the the x86_64 architecture?

In file included from arch/i386/kernel/acpi/earlyquirk.c:8:
include/asm/pci-direct.h:1:35: asm-x86_64/pci-direct.h: No such file or
directory
arch/i386/kernel/acpi/earlyquirk.c: In function `check_acpi_pci':
arch/i386/kernel/acpi/earlyquirk.c:34: warning: implicit declaration of
function `read_pci_config'
make[2]: *** [arch/i386/kernel/acpi/earlyquirk.o] Error 1
make[1]: *** [arch/i386/kernel/acpi] Error 2
make: *** [arch/i386/kernel] Error 2
make: *** Waiting for unfinished jobs....

I'm generating for a pentium-3 based computer. Should that
include x86_64 bits?

Thanks,
Linda
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


rdunlap at xenotime

Jan 30, 2006, 7:31 PM

Post #2 of 7 (524 views)
Permalink
Re: i386 requires x86_64? [In reply to]

On Mon, 30 Jan 2006 19:10:42 -0800 L. A. Walsh wrote:

> Generating a new kernel and wanted to delete the unrelated architectures.
>
> Is the i386 supposed to depend on the the x86_64 architecture?
>
> In file included from arch/i386/kernel/acpi/earlyquirk.c:8:
> include/asm/pci-direct.h:1:35: asm-x86_64/pci-direct.h: No such file or
> directory
> arch/i386/kernel/acpi/earlyquirk.c: In function `check_acpi_pci':
> arch/i386/kernel/acpi/earlyquirk.c:34: warning: implicit declaration of
> function `read_pci_config'
> make[2]: *** [arch/i386/kernel/acpi/earlyquirk.o] Error 1
> make[1]: *** [arch/i386/kernel/acpi] Error 2
> make: *** [arch/i386/kernel] Error 2
> make: *** Waiting for unfinished jobs....
>
> I'm generating for a pentium-3 based computer. Should that
> include x86_64 bits?

Yes, there are bits in i386 that use x86_64 and there are
bits in x86_64 that use i386 code, so that the source code
won't have to be duplicated.


---
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


nish.aravamudan at gmail

Jan 30, 2006, 7:34 PM

Post #3 of 7 (526 views)
Permalink
Re: i386 requires x86_64? [In reply to]

On 1/30/06, L. A. Walsh <lkml [at] tlinx> wrote:
> Generating a new kernel and wanted to delete the unrelated architectures.
>
> Is the i386 supposed to depend on the the x86_64 architecture?
>
> In file included from arch/i386/kernel/acpi/earlyquirk.c:8:
> include/asm/pci-direct.h:1:35: asm-x86_64/pci-direct.h: No such file or
> directory

You didn't say which kernel, but it looks like you didn't do a make
clean/mrproper before trying to build just an i386 kernel? Did you
build an x86_64 kernel at some point from the same tree?

I think that include/asm is pointing to asm-x86_64, which, if you
removed it, is why the compiler can't find said file.

Thanks,
Nish
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


jesper.juhl at gmail

Jan 31, 2006, 12:54 AM

Post #4 of 7 (525 views)
Permalink
Re: i386 requires x86_64? [In reply to]

On 1/31/06, L. A. Walsh <lkml [at] tlinx> wrote:
> Generating a new kernel and wanted to delete the unrelated architectures.
>

Why bother deleting parts of the code?
The kernel you build will only contain code for the architecture you
build for anyway. Sure, the extra source takes up a little space on
disk but if that bothers you you could just delete (or tar+bzip2) the
entire source tree after you build and install your new kernel.

--
Jesper Juhl <jesper.juhl [at] gmail>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


rostedt at goodmis

Jan 31, 2006, 5:02 AM

Post #5 of 7 (517 views)
Permalink
Re: i386 requires x86_64? [In reply to]

On Mon, 2006-01-30 at 19:31 -0800, Randy.Dunlap wrote:

>
> Yes, there are bits in i386 that use x86_64 and there are
> bits in x86_64 that use i386 code, so that the source code
> won't have to be duplicated.

Perhaps we need an arch/x86_common that has this code. Not just to help
those that like to delete other archs, but also to make it easier for us
that might modify the code and know that this code is shared. It's
better design to have a arch/x86_common that is compiled with i386 and
x86_64 than to have code with - #include "../../x86_64/kernel/blah.c" -
in it.

-- Steve


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


rostedt at goodmis

Jan 31, 2006, 5:17 AM

Post #6 of 7 (529 views)
Permalink
Re: i386 requires x86_64? [In reply to]

On Tue, 2006-01-31 at 09:54 +0100, Jesper Juhl wrote:
> On 1/31/06, L. A. Walsh <lkml [at] tlinx> wrote:
> > Generating a new kernel and wanted to delete the unrelated architectures.
> >
>
> Why bother deleting parts of the code?
> The kernel you build will only contain code for the architecture you
> build for anyway. Sure, the extra source takes up a little space on
> disk but if that bothers you you could just delete (or tar+bzip2) the
> entire source tree after you build and install your new kernel.

I still have 1G boxes (and even an 800Meg) HD boxes that I sometimes
develop on. And these things are not very fast either, so doing the tar
bzip2 is also slow. So I have deleted not only archs, but drivers that
I don't need to work on these and to keep the code there.

Now, I mainly do the development on a bigger and faster machine, and
only do the make install via nfs. But that wasn't always an option.

-- Steve


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


lkml at tlinx

Jan 31, 2006, 6:56 PM

Post #7 of 7 (517 views)
Permalink
Re: i386 requires x86_64? [In reply to]

Steven Rostedt wrote:
> On Mon, 2006-01-30 at 19:31 -0800, Randy.Dunlap wrote:
>
>> Yes, there are bits in i386 that use x86_64 and there are
>> bits in x86_64 that use i386 code, so that the source code
>> won't have to be duplicated.
>>
> Perhaps we need an arch/x86_common that has this code. Not just to help
> those that like to delete other archs, but also to make it easier for us
> that might modify the code and know that this code is shared. It's
> better design to have a arch/x86_common that is compiled with i386 and
> x86_64 than to have code with - #include "../../x86_64/kernel/blah.c" -
> in it.
>
>
I'd tend to agree (unless it is a big problem).
It seems an unsound design principle to manually be
including code via direct references to a different architecture
tree.

Linda

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Linux kernel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.