retitle 676775: FTBFS when built on wrongly configured chroots
severity 676775 minor
thanks

On Sat, Jun 09, 2012 at 03:29:06PM +0400, Michael Tokarev wrote:
> On 09.06.2012 13:43, Aurelien Jarno wrote:
> []
> > I am not able to reproduce the issue. I have tried on two different
> > machines, and they are not using the prefix at all:
> 
> This is not the case on, say, partch.debian.org, where I tried to
> build it.  All build-deps are satisfied, yet:
> 
> (squeeze-powerpc-dchroot)mjt@partch:~/openbios-ppc-1.0+svn1047$ 
> ./config/scripts/switch-arch builtin-ppc
> Configuring OpenBIOS on ppc64 for builtin-ppc
> Initializing build tree obj-ppc...ok.
> Creating target Makefile...ok.
> Creating config files...ok.
> (squeeze-powerpc-dchroot)mjt@partch:~/openbios-ppc-1.0+svn1047$ cat 
> obj-ppc/config.mak
> ARCH=ppc
> TARGET=powerpc-linux-gnu-
> CFLAGS=-msoft-float -fno-builtin-bcopy -fno-builtin-log2
> AS_FLAGS=
> HOSTARCH?=ppc64
> CROSSCFLAGS=-DSWAP_ENDIANNESS -DNATIVE_BITWIDTH_EQUALS_HOST_BITWIDTH
> VERSION="1.0"
> 
> Note the setting of TARGET variable.
> 
> Here's the relevant piece of sh -x ./config/scripts/switch-arch builtin-ppc
> 
> ...
> + BASEARCH=ppc
> + select_prefix powerpc
> + type powerpc-linux-gnu-gcc
> + return
> ...
> 
> This is because /usr/bin/powerpc-linux-gnu-gcc exists and
> belong to gcc package.
> 
> Does /usr/bin/powerpc-linux-gnu-gcc not exist on your build
> machine?  If it does't exist, the function will select native
> gcc in the next step, and compile will go fine.
> 

I have tried on partch.debian.org and identified that the chroot is
wrongly configured. The chroot is not run under linux32, which is
supposed to be the case on machines where the kernel bitness is
different than the userspace bitness.

HOSTARCH is therefore defined as ppc64 instead of powerpc, and the
script therefore enables cross-compilation (including the
powerpc-linux-* prefixes) instead of native compilation.

I'll fix that in a future upload, but that's therefore definitely not
a serious bug.

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to