Re: linux-next: s390 build failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 20 Mar 2009 11:00:22 +0100
Ingo Molnar <mingo@xxxxxxx> wrote:
> Btw., my cross-build scripts fail on s390 on latest -git, with:
> 
>  Assembler messages:
>  FATAL: can't create scripts/mod/.tmp_empty.o: Invalid bfd target
>  make[3]: *** [scripts/mod/empty.o] Error 2
>  make[3]: *** Waiting for unfinished jobs....

Haven't seen this yet.

> have i made some mistake in setting them up? I have this cross build 
> environment:
> 
> aldebaran:~/linux/linux> /opt/crossgcc/cross/bin/s390-linux-gcc -v
> Using built-in specs.
> Target: s390-linux
> Configured with: /home/mingo/work/projects/crossgcc/gcc/configure 
> --target=s390-linux --enable-targets=all 
> --prefix=/opt/crossgcc/cross --enable-languages=c --without-headers 
> --enable-sjlj-exceptions --with-system-libunwind --disable-nls 
> --disable-threads --disable-shared --disable-libmudflap 
> --disable-libssp --disable-libgomp --disable-decimal-float 
> --enable-checking=release
> Thread model: single
> gcc version 4.3.3 20081123 (prerelease) (GCC) 
> aldebaran:~/linux/linux> /opt/crossgcc/cross/bin/s390-linux-ld -v
> GNU ld (GNU Binutils) 2.19

ah, it's probably that you specified --target=s390-linux , that will
build a 32 bit compiler, not a 64 bit one. You probably want
s390x-ibm-linux. That gcc version can build both 32 and 64 bit binaries.

Latest cross compiler I have on my notebook that works:

heiko@osiris:~> s390x-ibm-linux-gcc-4.3.1 -v
Using built-in specs.
Target: s390x-ibm-linux
Configured with: ../gcc-4.3.1/configure --prefix=/home/heiko/cross/
--disable-nls --disable-checking --enable-languages=c
--target=s390x-ibm-linux --disable-threads --disable-shared
--without-headers --disable-libmudflap --disable-libssp
--disable-multilib --disable-libunwind-exceptions --disable-libgomp
--disable-werror --program-prefix=s390x-4.3.1-
Thread model: single gcc
version 4.3.1 (GCC) 


heiko@osiris:~> s390x-4.3.1-ld -v    
GNU ld (Linux/GNU Binutils) 2.19.51.0.1.20090106

> and i use:
> 
> CROSS="CROSS_COMPILE=$ARCH-linux-"
> 
> make O=$BUILDDIR $CROSS ARCH=$ARCH mrproper defconfig
> 
> where ARCH=s390 in this case.

should work.
--
To unsubscribe from this list: send the line "unsubscribe linux-next" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux