powerpc allnoconfig
make mrproper
make allnoconfig
make vmlinux
gives:
scripts/kconfig/conf -s arch/powerpc/Kconfig
CHK include/linux/version.h UPD include/linux/version.h CHK include/linux/utsrelease.h UPD include/linux/utsrelease.h SYMLINK include/asm -> include/asm-powerpc HOSTCC scripts/ihex2fw HOSTCC scripts/kallsyms HOSTCC scripts/conmakehash CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfig
scripts/mod/empty.c:1: error: -m64 requires a PowerPC64 cpu make[2]: *** [scripts/mod/empty.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [scripts] Error 2
Quoted 17 lines
make mrproper
make allnoconfig
make vmlinuxgives:
scripts/kconfig/conf-sarch/powerpc/KconfigCHK include/linux/version.h UPD include/linux/version.h CHK include/linux/utsrelease.h UPD include/linux/utsrelease.h SYMLINK include/asm -> include/asm-powerpc HOSTCC scripts/ihex2fw HOSTCC scripts/kallsyms HOSTCC scripts/conmakehash CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfig
Quoted 6 lines
scripts/mod/empty.c:1: error: -m64 requires a PowerPC64 cpu make[2]: *** [scripts/mod/empty.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [scripts] Error 2
I can't replicate this with Linus' latest tree with gcc 4.3 or 4.0.
What's your tool chain? Does it compile 32 or 64bit by default?
Mikey
Quoted 24 lines · On Tue, 03 Mar 2009 13:31:10 +1100 Michael Neuling <[email protected]> wrote:
Quoted 17 lines
make mrproper
make allnoconfig
make vmlinuxgives:
scripts/kconfig/conf-sarch/powerpc/KconfigCHK include/linux/version.h UPD include/linux/version.h CHK include/linux/utsrelease.h UPD include/linux/utsrelease.h SYMLINK include/asm -> include/asm-powerpc HOSTCC scripts/ihex2fw HOSTCC scripts/kallsyms HOSTCC scripts/conmakehash CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfigQuoted 6 lines
scripts/mod/empty.c:1: error: -m64 requires a PowerPC64 cpu make[2]: *** [scripts/mod/empty.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [scripts] Error 2
Quoted 1 line
I can't replicate this with Linus' latest tree with gcc 4.3 or 4.0.
ho hum.
Quoted 1 line
What's your tool chain? Does it compile 32 or 64bit by default?
It's a cross-compiler: http://userweb.kernel.org/~akpm/cross-compilers/
Here's a `make V=1':
rm -f include/config/kernel.release
echo 2.6.29-rc6 > include/config/kernel.release
set -e; : ' CHK include/linux/version.h'; mkdir -p include/linux/; (echo \#define LINUX_VERSION_CODE 132637; echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))';) < /usr/src/25/Makefile > include/linux/version.h.tmp; if [ -r include/linux/version.h ] && cmp -s include/linux/version.h include/linux/version.h.tmp; then rm -f include/linux/version.h.tmp; else : ' UPD include/linux/version.h'; mv -f include/linux/version.h.tmp include/linux/version.h; fi set -e; : ' CHK include/linux/utsrelease.h'; mkdir -p include/linux/; if [ `echo -n "2.6.29-rc6" | wc -c ` -gt 64 ]; then echo '"2.6.29-rc6" exceeds 64 characters' >&2; exit 1; fi; (echo \#define UTS_RELEASE \"2.6.29-rc6\";) < include/config/kernel.release > include/linux/utsrelease.h.tmp; if [ -r include/linux/utsrelease.h ] && cmp -s include/linux/utsrelease.h include/linux/utsrelease.h.tmp; then rm -f include/linux/utsrelease.h.tmp; else : ' UPD include/linux/utsrelease.h'; mv -f include/linux/utsrelease.h.tmp include/linux/utsrelease.h; fi
set -e; if [ -L include/asm ]; then asmlink=readlink include/asm | cut -d '-' -f 2; if [ "$asmlink" != "powerpc" ]; then echo "ERROR: the symlink include/asm points to asm-$asmlink but asm-powerpc was expected"; echo " set ARCH or save .config and run 'make mrproper' to fix it"; exit 1; fi; test -e $asmlink || rm include/asm; elif [ -d include/asm ]; then echo "ERROR: include/asm is a directory but a symlink was expected"; exit 1; fi
make -f scripts/Makefile.build obj=scripts/basic
if [ ! -L include/asm ]; then : ' SYMLINK include/asm -> include/asm-powerpc'; if [ ! -d include/asm-powerpc ]; then mkdir -p include/asm-powerpc; fi; ln -fsn asm-powerpc include/asm; fi
mkdir -p .tmp_versions
make -f scripts/Makefile.build obj=scripts
make -f scripts/Makefile.build obj=scripts/mod
/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc64-unknown-linux-gnu/bin/powerpc64-unknown-linux-gnu-gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -isystem /opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc64-unknown-linux-gnu/lib/gcc/powerpc64-unknown-linux-gnu/4.1.0/./include -Iinclude -I/usr/src/25/arch/powerpc/include -include include/linux/autoconf.h -D__KERNEL__ -Iarch/powerpc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -msoft-float -pipe -Iarch/powerpc -ffixed-r2 -mmultiple -mno-altivec -mno-spe -mspe=no -funit-at-a-time -mno-string -mcpu=powerpc -Wa,-maltivec -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(empty)" -D"KBUILD_MODNAME=KBUILD_STR(empty)" -c -o scripts/mod/empty.o scripts/mod/empty.cscripts/mod/empty.c:1: error: -m64 requires a PowerPC64 cpu
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
**FAILED**
Hi Andrew,
Quoted 2 lines · On Mon, 2 Mar 2009 18:40:49 -0800 Andrew Morton <[email protected]>…
It's a cross-compiler: http://userweb.kernel.org/~akpm/cross-compilers/
What does "/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc64-unknown-linux-gnu/bin/powerpc64-unknown-linux-gnu-gcc -v" say?
I suspect you have a 64 bit only compiler and allnoconfig produces a 32 bit kernel. Is this a new error?
Signature · 3 lines
Cheers, Stephen Rothwell [email protected] http://www.canb.auug.org.au/~sfr/
Quoted 8 lines · On Tue, 3 Mar 2009 13:52:03 +1100 Stephen Rothwell <[email protected]> wrote:
Hi Andrew,
Quoted 2 lines · On Mon, 2 Mar 2009 18:40:49 -0800 Andrew Morton <[email protected]>…
It's a cross-compiler: http://userweb.kernel.org/~akpm/cross-compilers/
What does "
/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc64-unknown-linux-gnu/bin/powerpc64-unknown-linux-gnu-gcc-v" say?
Using built-in specs.
Target: powerpc64-unknown-linux-gnu
Configured with: /home/axboe/crosstool-0.43/build/powerpc64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/gcc-4.1.0/configure --target=powerpc64-unknown-linux-gnu --host=x86_64-host_unknown-linux-gnu --prefix=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc64-unknown-linux-gnu --disable-multilib --with-sysroot=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc64-unknown-linux-gnu/powerpc64-unknown-linux-gnu/sys-root --with-local-prefix=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc64-unknown-linux-gnu/powerpc64-unknown-linux-gnu/sys-root --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c --enable-shared --enable-c99 --enable-long-long Thread model: posix
gcc version 4.1.0
Quoted 2 lines
I suspect you have a 64 bit only compiler and allnoconfig produces a 32 bit kernel. Is this a new error?
2.6.28 does the same thing. I don't recall having tested allnoconfig for ages if at all, so I don't know if it's a regression.
Hi Andrew,
Quoted 7 lines · On Mon, 2 Mar 2009 18:55:14 -0800 Andrew Morton <[email protected]>…
Using built-in specs.
Target: powerpc64-unknown-linux-gnu
Configured with:/home/axboe/crosstool-0.43/build/powerpc64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/gcc-4.1.0/configure--target=powerpc64-unknown-linux-gnu --host=x86_64-host_unknown-linux-gnu --prefix=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc64-unknown-linux-gnu --disable-multilib --with-sysroot=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc64-unknown-linux-gnu/powerpc64-unknown-linux-gnu/sys-root --with-local-prefix=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc64-unknown-linux-gnu/powerpc64-unknown-linux-gnu/sys-root --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c --enable-shared --enable-c99 --enable-long-long Thread model: posix
gcc version 4.1.0
Quoted 5 lines
Quoted 2 lines
I suspect you have a 64 bit only compiler and allnoconfig produces a 32 bit kernel. Is this a new error?
2.6.28 does the same thing. I don't recall having tested allnoconfig for ages if at all, so I don't know if it's a regression.
Right, you have a 64 bit only compiler. Also it is version 4.1.0 which we now black ban (I think). You need to either build a biarch cross compiler (--enable-targets=all) or try:
$ cat >xxx <<EOF CONFIG_PPC64=y EOF $ KCONFIG_ALLCONFIG=xxx make allnoconfig $ make vmlinux
let us know if that works :-)
Signature · 3 lines
Cheers, Stephen Rothwell [email protected] http://www.canb.auug.org.au/~sfr/
Quoted 10 lines · On Tue, 3 Mar 2009 14:19:05 +1100 Stephen Rothwell <[email protected]> wrote:
Hi Andrew,
Quoted 7 lines · On Mon, 2 Mar 2009 18:55:14 -0800 Andrew Morton <[email protected]>…
Using built-in specs.
Target: powerpc64-unknown-linux-gnu
Configured with:/home/axboe/crosstool-0.43/build/powerpc64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/gcc-4.1.0/configure--target=powerpc64-unknown-linux-gnu --host=x86_64-host_unknown-linux-gnu --prefix=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc64-unknown-linux-gnu --disable-multilib --with-sysroot=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc64-unknown-linux-gnu/powerpc64-unknown-linux-gnu/sys-root --with-local-prefix=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc64-unknown-linux-gnu/powerpc64-unknown-linux-gnu/sys-root --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c --enable-shared --enable-c99 --enable-long-long Thread model: posix
gcc version 4.1.0
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
I suspect you have a 64 bit only compiler and allnoconfig produces a 32 bit kernel. Is this a new error?
2.6.28 does the same thing. I don't recall having tested allnoconfig for ages if at all, so I don't know if it's a regression.
Right, you have a 64 bit only compiler. Also it is version 4.1.0 which we now black ban (I think).
Probably. But I only use it for compilation testing, so the `Your version of gcc miscompiles the __weak directive' thing is a pointless PITA, so I patch it out.
Quoted 9 lines
You need to either build a biarch cross compiler (--enable-targets=all) or try:
$ cat >xxx <<EOF CONFIG_PPC64=y EOF $ KCONFIG_ALLCONFIG=xxx make allnoconfig $ make vmlinuxlet us know if that works :-)
didn't. Oh well.
It seems odd that it breaks an allnoconfig build, whereas defconfig and allmodconfig are OK.
Hi Andrew,
Quoted 6 lines · On Mon, 2 Mar 2009 20:08:09 -0800 Andrew Morton <[email protected]>…
Quoted 2 lines
Right, you have a 64 bit only compiler. Also it is version 4.1.0 which we now black ban (I think).
Probably. But I only use it for compilation testing, so the `Your version of gcc miscompiles the
__weakdirective' thing is a pointless PITA, so I patch it out.
Ah, ok.
Quoted 3 lines
Quoted 1 line
let us know if that works :-)
didn't. Oh well.
Rats!
I think we need a better bug report :-)
Kernel version? What error do you get now?
It works for me:
$ /home/sfr/kernels/cross/bin/powerpc64-linux-gcc -v Using built-in specs. Target: powerpc64-linux Configured with: /home/sfr/kernels/tools/gcc-4.3.2/configure --target=powerpc64-linux --enable-targets=all --prefix=/home/sfr/kernels/cross --with-mpfr=/usr --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.2 (GCC) $ git describe --all tags/next-20090302
also Linus' recent tree works:
$ git describe v2.6.29-rc6-216-g778ef1e
Quoted 2 lines
It seems odd that it breaks an allnoconfig build, whereas defconfig and allmodconfig are OK.
allmodconfig and defconfig turn CONFIG_PPC64 on. allnoconfig turns it off so you are trying to build a 32 bit kernel with a 64 bit compiler.
Signature · 3 lines
Cheers, Stephen Rothwell [email protected] http://www.canb.auug.org.au/~sfr/
Quoted 12 lines · On Tue, 3 Mar 2009 15:40:43 +1100 Stephen Rothwell <[email protected]> wrote:
Hi Andrew,
Quoted 6 lines · On Mon, 2 Mar 2009 20:08:09 -0800 Andrew Morton <[email protected]>…
Quoted 2 lines
Right, you have a 64 bit only compiler. Also it is version 4.1.0 which we now black ban (I think).
Probably. But I only use it for compilation testing, so the `Your version of gcc miscompiles the
__weakdirective' thing is a pointless PITA, so I patch it out.Ah, ok.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
let us know if that works :-)
didn't. Oh well.
Rats!
I think we need a better bug report :-)
Kernel version?
Current mainline.
Quoted 1 line
What error do you get now?
Same as before.
Quoted 2 lines
allmodconfig and defconfig turn
CONFIG_PPC64on. allnoconfig turns it off so you are trying to build a 32 bit kernel with a 64 bit compiler.
Oh. Well that will tear it.
How does one prepare a powerpc64 allnoconfig?
Hi Andrew,
Quoted 8 lines · On Mon, 2 Mar 2009 21:38:01 -0800 Andrew Morton <[email protected]>…
Quoted 3 lines
I think we need a better bug report :-)
Kernel version?Current mainline.
Quoted 1 line
What error do you get now?
Quoted 8 lines
Same as before.
Quoted 2 lines
allmodconfig and defconfig turn
CONFIG_PPC64on. allnoconfig turns it off so you are trying to build a 32 bit kernel with a 64 bit compiler.Oh. Well that will tear it.
How does one prepare a powerpc64 allnoconfig?
Like above.
See this is what happens for me:
$ git describe v2.6.29-rc6-305-g2450cf5 $ /home/sfr/kernels/cross/bin/powerpc64-linux-gcc -v Using built-in specs. Target: powerpc64-linux Configured with: /home/sfr/kernels/tools/gcc-4.3.2/configure --target=powerpc64-linux --enable-targets=all --prefix=/home/sfr/kernels/cross --with-mpfr=/usr --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.2 (GCC) $ mkdir ../powerpc_allnoconfig $ echo CONFIG_PPC64=y >../powerpc64_allnoconfig $ KCONFIG_ALLCONFIG=../powerpc64_allnoconfig make O=../powerpc_allnoconfig ARCH=powerpc CROSS_COMPILE=/home/sfr/kernels/cross/bin/powerpc64-linux- allnoconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/docproc HOSTCC scripts/basic/hash GEN /home/sfr/kernels/powerpc_allnoconfig/Makefile HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/kxgettext.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/lex.zconf.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf -n arch/powerpc/Kconfig # # configuration written to .config # $ make O=../powerpc_allnoconfig ARCH=powerpc CROSS_COMPILE=/home/sfr/kernels/cross/bin/powerpc64-linux- vmlinux GEN /home/sfr/kernels/powerpc_allnoconfig/Makefile scripts/kconfig/conf -s arch/powerpc/Kconfig Using /home/sfr/kernels/work as source for kernel GEN /home/sfr/kernels/powerpc_allnoconfig/Makefile CHK include/linux/version.h UPD include/linux/version.h CHK include/linux/utsrelease.h UPD include/linux/utsrelease.h SYMLINK include/asm -> include/asm-powerpc CC kernel/bounds.s GEN include/linux/bounds.h CC arch/powerpc/kernel/asm-offsets.s GEN include/asm/asm-offsets.h CALL /home/sfr/kernels/work/scripts/checksyscalls.sh CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfig MKELF scripts/mod/elfconfig.h HOSTCC scripts/mod/file2alias.o . . . CC kernel/sysctl.o /home/sfr/kernels/work/kernel/sysctl.c:103: warning: 'one' defined but not used . . . LD vmlinux.o MODPOST vmlinux.o WARNING: modpost: Found 2 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=y' GEN .version CHK include/linux/compile.h UPD include/linux/compile.h CC init/version.o LD init/built-in.o LD .tmp_vmlinux1 KSYM .tmp_kallsyms1.S AS .tmp_kallsyms1.o LD .tmp_vmlinux2 KSYM .tmp_kallsyms2.S AS .tmp_kallsyms2.o LD vmlinux SYSMAP System.map SYSMAP .tmp_System.map $ grep CONFIG_PPC64 ../powerpc_allnoconfig/.config CONFIG_PPC64=y $ file ../powerpc_allnoconfig/vmlinux ../powerpc_allnoconfig/vmlinux: ELF 64-bit MSB executable, 64-bit PowerPC or cisco 7500, version 1 (SYSV), statically linked, not stripped
So, I can only imagine it is your toolchain that is letting you down. What is your host machine? Can I send you a new toolchain? (Mine are only good for building kernels - they have no libraries - they are build by a script I got from Segher Boessenkool.)
Signature · 3 lines
Cheers, Stephen Rothwell [email protected] http://www.canb.auug.org.au/~sfr/
Quoted 1 line · On Tue, 3 Mar 2009 17:22:32 +1100 Stephen Rothwell <[email protected]> wrote:
So, I can only imagine it is your toolchain that is letting you down.
hrm. I blame Rusty.
Quoted 1 line
What is your host machine?
x86_64/FCx
Quoted 3 lines
Can I send you a new toolchain? (Mine are only
good for building kernels - they have no libraries - they are build by a script I got from Segher Boessenkool.)
It's OK - I don't really care and as long as it's OK on a realistic build setup, I guess we're good.
Quoted 28 lines · Andrew Morton
Quoted 7 lines · On Tue, 3 Mar 2009 14:19:05 +1100 Stephen Rothwell <[email protected]> wrote:
Quoted 6 lines · On Mon, 2 Mar 2009 18:55:14 -0800 Andrew Morton <[email protected]>…
Using built-in specs.
Target: powerpc64-unknown-linux-gnu
Configured with:/home/axboe/crosstool-0.43/build/powerpc64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/gcc-4.1.0/configure--target=powerpc64-unknown-linux-gnu --host=x86_64-host_unknown-linux-gnu --prefix=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc64-unknown-linux-gnu --disable-multilib --with-sysroot=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc64-unknown-linux-gnu/powerpc64-unknown-linux-gnu/sys-root --with-local-prefix=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc64-unknown-linux-gnu/powerpc64-unknown-linux-gnu/sys-root --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c --enable-shared --enable-c99 --enable-long-long Thread model: posix
gcc version 4.1.0Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
I suspect you have a 64 bit only compiler and allnoconfig produces a 32 bit kernel. Is this a new error?
2.6.28 does the same thing. I don't recall having tested allnoconfig for ages if at all, so I don't know if it's a regression.
Right, you have a 64 bit only compiler. Also it is version 4.1.0 which we now black ban (I think).
Probably. But I only use it for compilation testing, so the `Your version of gcc miscompiles the
__weakdirective' thing is a pointless PITA, so I patch it out.Quoted 8 lines
You need to either build a biarch cross compiler (--enable-targets=all) or try:
$ cat >xxx <<EOF CONFIG_PPC64=y EOF $ KCONFIG_ALLCONFIG=xxx make allnoconfig $ make vmlinux
Quoted 3 lines
Quoted 1 line
let us know if that works :-)
didn't. Oh well.
Does allnoconfig work if you force the compiler to be 32-bit, like
make CC="powerpc64-unknown-linux-gnu-gcc -m32"
? This is what I'm using to compile ppc32 kernels with the Cell SDK ppu-gcc43, which defaults to -m64 (BTW, I also had to add "-mcpu=440" for gcc 4.3.2, which I didn't need for the banned 4.1.1).
With kind regards,
Geert Uytterhoeven
Software Architect
Sony Techsoft Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
Phone: +32 (0)2 700 8453 Fax: +32 (0)2 700 8622 E-mail: [email protected] Internet: http://www.sony-europe.com/
A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010
Quoted 7 lines · On Tue, 3 Mar 2009 11:14:04 +0100 (CET) Geert Uytterhoeven…
Quoted 3 lines
Quoted 1 line
let us know if that works :-)
didn't. Oh well.
Does allnoconfig work if you force the compiler to be 32-bit, like
make CC="powerpc64-unknown-linux-gnu-gcc -m32"
Nope:
scripts/mod/empty.c:1: error: -m64 requires a PowerPC64 cpu
I have a 32-bit-only gcc and `allnoconfig' secretly switches your CPU from 64-bit to 32-bit.
Quoted 6 lines · Andrew Morton
Quoted 4 lines · On Tue, 3 Mar 2009 11:14:04 +0100 (CET) Geert Uytterhoeven…
Quoted 3 lines
Quoted 1 line
let us know if that works :-)
didn't. Oh well.
Quoted 7 lines
Quoted 3 lines
Does allnoconfig work if you force the compiler to be 32-bit, like
make CC="powerpc64-unknown-linux-gnu-gcc -m32"Nope:
scripts/mod/empty.c:1: error: -m64 requires a PowerPC64 cpu
To build a biarch compiler that defaults to 32-bit, try adding the option --with-cpu=default32 to your GCC configure options. You also shouldn't need --enable-targets=all. We haven't used that option for ages when building powerpc64-linux enabled GCCs.
Peter