Results 1 to 2 of 2
When I run dpkg-architecture it get:
DEB_BUILD_ARCH=i386
DEB_BUILD_ARCH_OS=linux
DEB_BUILD_ARCH_CPU=i386
DEB_BUILD_GNU_CPU=i486
DEB_BUILD_GNU_SYSTEM=linux-gnu
DEB_BUILD_GNU_TYPE=i486-linux-gnu
DEB_HOST_ARCH=i386
DEB_HOST_ARCH_OS=linux
DEB_HOST_ARCH_CPU=i386
DEB_HOST_GNU_CPU=i486
DEB_HOST_GNU_SYSTEM=linux-gnu
DEB_HOST_GNU_TYPE=i486-linux-gnu
...but my DEB_BUILD_GNU_TYPE should be i686-some-thing. It's from Debian's stooopid default i486 ...
- 11-11-2008 #1
[SOLVED] Fix problem with DEB_BUILD_GNU_TYPE=i486-linux-gnu , should be i686
When I run dpkg-architecture it get:
DEB_BUILD_ARCH=i386
DEB_BUILD_ARCH_OS=linux
DEB_BUILD_ARCH_CPU=i386
DEB_BUILD_GNU_CPU=i486
DEB_BUILD_GNU_SYSTEM=linux-gnu
DEB_BUILD_GNU_TYPE=i486-linux-gnu
DEB_HOST_ARCH=i386
DEB_HOST_ARCH_OS=linux
DEB_HOST_ARCH_CPU=i386
DEB_HOST_GNU_CPU=i486
DEB_HOST_GNU_SYSTEM=linux-gnu
DEB_HOST_GNU_TYPE=i486-linux-gnu
...but my DEB_BUILD_GNU_TYPE should be i686-some-thing. It's from Debian's stooopid default i486 opt settings. i486 is the worst opt there is! Worse than i386! What is wrong with the debian developers. Anyway I'm actually running an almost one-of-a-kind setup - with LinuxFromScratch v6.3 base and Debian 4.0 [etch] for the rest of it. I personally custom compiled and installed dpkg on the system and actually got X11 and KDE 3.5 to install from the main debian repository (it required making a mock-up of a basic /var/dpkg/status file to represent the package dependencies that are met from the LFS base install).
So I tried running "dpkg-architecture -f -ti686-linux-gnu" and got:
DEB_BUILD_ARCH=i386
DEB_BUILD_ARCH_OS=linux
DEB_BUILD_ARCH_CPU=i386
DEB_BUILD_GNU_CPU=i486
DEB_BUILD_GNU_SYSTEM=linux-gnu
DEB_BUILD_GNU_TYPE=i486-linux-gnu
DEB_HOST_ARCH=i386
DEB_HOST_ARCH_OS=linux
DEB_HOST_ARCH_CPU=i386
DEB_HOST_GNU_CPU=i686
DEB_HOST_GNU_SYSTEM=linux-gnu
DEB_HOST_GNU_TYPE=i686-linux-gnu
...However, the build system setting causes my C compiler (gcc) to claim it can't make an executable (but hello world compiles & runs fine otherwise).
output of "gcc -v" is:
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.1.2/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++
Thread model: posix
gcc version 4.1.2
output of "gcc --print-libgcc-file-name" is:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc.a
thanx, chris.
- 11-16-2008 #2
Well chris, that's a great question. You just edit your "/usr/share/dpkg/cputable" file. In the second column, change GNU name to be "i686" instead of "i486".



