URN Logo
UNIX Resources » Linux » Linux Forum » General Linux Discussions » Page.4 » Compiling Debian packages for Intel Pentium processor
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
Compiling Debian packages for Intel Pentium processor
Subject: Compiling Debian packages for Intel Pentium processor
Author: Mark Hobley    Posted: 2005-09-18 17:08:03    Length: 1,771 byte(s)
[Original] [Print] [Top]
I am trying to compile a Debian package from source using dpkg-buildpackage.
I require the resultant binary to be Intel Pentium compatible.

I keep getting an error "Unknown Debian architecture, you must specify GNU
system type."


$ dpkg-buildpackage -ai586 -rfakeroot
dpkg-buildpackage: source package is checkpw
dpkg-buildpackage: source version is 1.00-3
dpkg-buildpackage: source changed by Gerrit Pape [pape@smarden.org]
unknown Debian architecture i586, you must specify GNU system type, too at
/usr/bin/dpkg-architecture line 214.
unknown Debian architecture i586, you must specify GNU system type, too at
/usr/bin/dpkg-architecture line 214.
dpkg-buildpackage: unable to determine host architecture

$ dpkg-buildpackage -apentium -rfakeroot
dpkg-buildpackage: source package is checkpw
dpkg-buildpackage: source version is 1.00-3
dpkg-buildpackage: source changed by Gerrit Pape [pape@smarden.org]
unknown Debian architecture pentium, you must specify GNU system type, too at
/usr/bin/dpkg-architecture line 214.
unknown Debian architecture pentium, you must specify GNU system type, too at
/usr/bin/dpkg-architecture line 214.
dpkg-buildpackage: unable to determine host architecture


Thanks in advance to anyone who can help.

Regards,

Mark.

--
Mark Hobley
393 Quinton Road West
QUINTON
Birmingham
B32 1QE

Telephone: (0121) 247 1596
International: 0044 121 247 1596

Email: markhobley at hotpop dot donottypethisbit com

http://markhobley.yi.org/

[Original] [Print] [Top]
Subject: Compiling Debian packages for Intel Pentium processor
Author: Bill Marcum    Posted: 2005-09-18 22:12:00    Length: 1,082 byte(s)
[Original] [Print] [Top]
["Followup-To:" header set to comp.os.linux.]
On Sun, 18 Sep 2005 23:08:03 GMT, Mark Hobley
  [markhobley@hotpop.deletethisbit.com] wrote:
QUOTE
I am trying to compile a Debian package from source using dpkg-buildpackage.
I require the resultant binary to be Intel Pentium compatible.

I keep getting an error "Unknown Debian architecture, you must specify GNU
system type."

"i586" is not a Debian architecture (see the /usr/bin/dpkg-architecture

script.) Use "i386", and modify the debian/rules file to set compiler
options for 586 optimization, if you really need it. You might also
change the name of the package to include "586".

--
[xtifr] Athena Desktop Environment!  In your hearts, you *know* it's the
        right choice! :)
* Knghtbrd THWAPS xtifr

[Original] [Print] [Top]
Subject: Compiling Debian packages for Intel Pentium processor
Author: Mark Hobley    Posted: 2005-09-20 16:08:03    Length: 2,033 byte(s)
[Original] [Print] [Top]
In alt.comp.linux Bill Marcum [bmarcum@iglou.com] wrote:

QUOTE
"i586" is not a Debian architecture (see the /usr/bin/dpkg-architecture
script.) Use "i386", and modify the debian/rules file to set compiler
options for 586 optimization, if you really need it. You might also
change the name of the package to include "586".


Would this mean that I would have to change the debian/rules file for every
package ?

I really don't want to change the source code files at this stage, since I
 want to use the Debian sources as written.

Can't I set an environmental variable or change a config file, or pass a
parameter to the kernel, so that it pretends that it is a classic pentium
running at a very high speed ?

I need to frig gcc so that it only ever compiles for i586, and never
tries to detect the hardware architecture.
(I'll probably create a fork for this at some point in future.)

Some of my computers have AMD K6 or higher processors, and others have later
pentiums.

I never ever want AMD instructions, or instructions not recognized by a
classic pentium processor to appear in compiled code.

I do however want to use a full set of pentium instructions including the full
use of the match coprocessor instructions which are present on all pentium and
compatible computers.

Thanks in advance.

Mark.

--
Mark Hobley
393 Quinton Road West
QUINTON
Birmingham
B32 1QE

Telephone: (0121) 247 1596
International: 0044 121 247 1596

Email: markhobley at hotpop dot donottypethisbit com

http://markhobley.yi.org/

[Original] [Print] [Top]
Subject: Compiling Debian packages for Intel Pentium processor
Author: Mark Hobley    Posted: 2005-09-21 05:08:04    Length: 800 byte(s)
[Original] [Print] [Top]
In alt.comp.linux Mark Hobley [markhobley@hotpop.deletethisbit.com] wrote:
QUOTE

Would this mean that I would have to change the debian/rules file for every
package ?


What line do I have to change ?

Regards,

Mark.

--
Mark Hobley
393 Quinton Road West
QUINTON
Birmingham
B32 1QE

Telephone: (0121) 247 1596
International: 0044 121 247 1596

Email: markhobley at hotpop dot donottypethisbit com

http://markhobley.yi.org/

[Original] [Print] [Top]
Subject: Compiling Debian packages for Intel Pentium processor
Author: Mark Hobley    Posted: 2005-09-23 22:08:02    Length: 1,872 byte(s)
[Original] [Print] [Top]
In alt.comp.linux Mark Hobley [markhobley@hotpop.deletethisbit.com] wrote:
QUOTE
In alt.comp.linux Bill Marcum [bmarcum@iglou.com] wrote:

I really don't want to change the source code files at this stage, since I
want to use the Debian sources as written.

Can't I set an environmental variable or change a config file, or pass a
parameter to the kernel, so that it pretends that it is a classic pentium
running at a very high speed ?

I need to frig gcc so that it only ever compiles for i586, and never
tries to detect the hardware architecture.
(I'll probably create a fork for this at some point in future.)

Some of my computers have AMD K6 or higher processors, and others have later
pentiums.

I never ever want AMD instructions, or instructions not recognized by a
classic pentium processor to appear in compiled code.

I do however want to use a full set of pentium instructions including the full
use of the match coprocessor instructions which are present on all pentium and
compatible computers.


I think that I have found a kludge for this.

There appears to be a package called "pentium-builder", which acts as a
wrapper to the gnu compiler.

Regards,

Mark.

--
Mark Hobley
393 Quinton Road West
QUINTON
Birmingham
B32 1QE

Telephone: (0121) 247 1596
International: 0044 121 247 1596

Email: markhobley at hotpop dot donottypethisbit com

http://markhobley.yi.org/

[Original] [Print] [Top]
Subject: Compiling Debian packages for Intel Pentium processor
Author: Mathew McBride    Posted: 2005-10-07 07:33:08    Length: 1,903 byte(s)
[Original] [Print] [Top]
Theres a package called pentium-builder (or something similar) which
allows you to change GCC CFLAGS

apt-build also exists but my experiences with it are ugly and short
Mark Hobley wrote:
QUOTE
I am trying to compile a Debian package from source using dpkg-buildpackage.
I require the resultant binary to be Intel Pentium compatible.

I keep getting an error "Unknown Debian architecture, you must specify GNU
system type."


$ dpkg-buildpackage -ai586 -rfakeroot
dpkg-buildpackage: source package is checkpw
dpkg-buildpackage: source version is 1.00-3
dpkg-buildpackage: source changed by Gerrit Pape [pape@smarden.org
unknown Debian architecture i586, you must specify GNU system type, too at
/usr/bin/dpkg-architecture line 214.
unknown Debian architecture i586, you must specify GNU system type, too at
/usr/bin/dpkg-architecture line 214.
dpkg-buildpackage: unable to determine host architecture

$ dpkg-buildpackage -apentium -rfakeroot
dpkg-buildpackage: source package is checkpw
dpkg-buildpackage: source version is 1.00-3
dpkg-buildpackage: source changed by Gerrit Pape [pape@smarden.org
unknown Debian architecture pentium, you must specify GNU system type, too at
/usr/bin/dpkg-architecture line 214.
unknown Debian architecture pentium, you must specify GNU system type, too at
/usr/bin/dpkg-architecture line 214.
dpkg-buildpackage: unable to determine host architecture


Thanks in advance to anyone who can help.

Regards,

Mark.


SPAMTRAP: iwantfreemeds@spamcollection.bionicmessage.net

[Original] [Print] [Top]
« Previous thread
PureFTPd virtual users question
General Linux Discussions
Page. 4
Next thread »
Internet appliance?
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 12:16:09, cost 0.027472972869873 ms.