FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 07-27-2012, 10:27 PM
Filipus Klutiero
 
Default Bug#683026: deb-pkg builds amd64 image package on i386

Package: debian-kernel-handbook
Version: 1.0.14
Severity: important

I followed the procedure for "Building a custom kernel from Debian
kernel source" on an i386 wheezy install. The resulting package is
targetted at the amd64 Debian architecture and cannot be installed on my
system (which is physically x86-64):



# LANG=C dpkg -i ../linux-image-3.4.4_3.4.4-1_amd64.deb
dpkg: error processing ../linux-image-3.4.4_3.4.4-1_amd64.deb (--install):
package architecture (amd64) does not match system (i386)
Errors were encountered while processing:
../linux-image-3.4.4_3.4.4-1_amd64.deb
root@vinci:/home/chealer/sources/linux-source-3.4#


I used the experimental linux. Most likely a package from linux is the
culprit, and not the handbook, but as I'm not sure which component is at
fault, I'm assigning to the handbook understanding someone more
knowledgeable will probably have to reassign. I configured the image
using make oldconfig, using the config from the stock image I'm
currently running, 3.2.0-3-amd64.


I'm not sure what conditions create this, but I suspect this wouldn't
happen on a 32 bits machine. If someone can identify the conditions,
feel free to adjust the severity.



--- System information. ---
Architecture: i386
Kernel: Linux 3.2.0-3-amd64

Debian Release: wheezy/sid
990 testing security.debian.org
990 testing debian.mirror.iweb.ca
500 unstable debian.mirror.iweb.ca
1 experimental debian.mirror.iweb.ca

--- Package information. ---
Package's Depends field is empty.

Recommends (Version) | Installed
==========================-+-===========
www-browser |


Package's Suggests field is empty.


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 501315CC.1010403@gmail.com">http://lists.debian.org/501315CC.1010403@gmail.com
 
Old 07-29-2012, 01:15 AM
Jonathan Nieder
 
Default Bug#683026: deb-pkg builds amd64 image package on i386

Hi Filipus,

Filipus Klutiero wrote:

> I followed the procedure for "Building a custom kernel from Debian
> kernel source" on an i386 wheezy install. The resulting package is
> targetted at the amd64 Debian architecture and cannot be installed
> on my system (which is physically x86-64):

Yes, the instructions in the kernel handbook left out the following
step:

dpkg --add-architecture amd64

Hope that helps,
Jonathan


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/20120729011550.GA3847@burratino
 
Old 07-30-2012, 04:08 AM
Filipus Klutiero
 
Default Bug#683026: deb-pkg builds amd64 image package on i386

On 2012-07-30 00:01, Jonathan Nieder wrote:

Hi Filipus,

Filipus Klutiero wrote:


thank you. This allowed me to install the package.

Glad I could help.


However, I'm not sure this should be a step. Perhaps this should
already be done. Or the package built should be i386; this should be
possible, since my current stock amd64 Linux image is for the i386
Debian architecture.

Those seem like useful things to think about in coming up with
appropriate text that accounts for

- the default architecture of the package being built being based
on the utsname ("uname -m") rather than anything more fancy

- the possibility of overriding that default architecture by tweaking
the KBUILD_DEBARCH envvar or ARCH makefile variable

- installing a kernel for a "foreign" architecture being a perfectly
normal and useful thing, especially in biarch situations
(s390/s390x, x32/amd64, etc)

Did you mean this to be a private reply?


Oh, I did not - sorry. Thanks


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 501608B8.2070109@gmail.com">http://lists.debian.org/501608B8.2070109@gmail.com
 

Thread Tools




All times are GMT. The time now is 09:24 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org