|
[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]
|
|
[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:
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]
|
|
[Original]
[Print]
[Top]
|
In alt.comp.linux Bill Marcum [bmarcum@iglou.com] wrote:
"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]
|
|
[Original]
[Print]
[Top]
|
In alt.comp.linux Mark Hobley [markhobley@hotpop.deletethisbit.com] wrote:
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]
|
|
[Original]
[Print]
[Top]
|
In alt.comp.linux Mark Hobley [markhobley@hotpop.deletethisbit.com] wrote:
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]
|
|
[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:
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]
|
|