Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

change DEB_BUILD_GNU_TYPE to i686-linux-gnu

102 views
Skip to first unread message

topher...@gmail.com

unread,
Nov 11, 2008, 2:40:13 PM11/11/08
to
I installed dpkg on top of a non-debian (bare) GNU/Linux system and
that system outputs :

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

...for gcc -v

Everything besides building Debian packages from source works great.
"hello world" compiles and executes fine.

In a nutshell, I need to change the DEB_BUILD_GNU_TYPE permanently to
i686-pc-linux-gnu or i686-linux-gnu. I tried "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

...but the build gnu type is unchanged and causes the building of
Debian source packages to fail, with an error that compiler can not
make an executable (even though it really can usually).

topher...@gmail.com

unread,
Nov 28, 2008, 10:06:34 PM11/28/08
to
Apparently you just edit your "/usr/share/dpkg/cputable" file. In the
second column, change GNU name to be "i686" instead of "i486".
Setting some paths might help too. Like adding "/usr/lib/gcc/i686-pc-
linux-gnu/4.1.2" or whatever to LDPATH
0 new messages