* powerpc allnoconfig
@ 2009-03-03 1:19 Andrew Morton
2009-03-03 2:31 ` Michael Neuling
0 siblings, 1 reply; 14+ messages in thread
From: Andrew Morton @ 2009-03-03 1:19 UTC (permalink / raw)
To: linuxppc-dev
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: powerpc allnoconfig
2009-03-03 1:19 powerpc allnoconfig Andrew Morton
@ 2009-03-03 2:31 ` Michael Neuling
2009-03-03 2:40 ` Andrew Morton
0 siblings, 1 reply; 14+ messages in thread
From: Michael Neuling @ 2009-03-03 2:31 UTC (permalink / raw)
To: Andrew Morton; +Cc: linuxppc-dev
> 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
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: powerpc allnoconfig
2009-03-03 2:31 ` Michael Neuling
@ 2009-03-03 2:40 ` Andrew Morton
2009-03-03 2:52 ` Stephen Rothwell
0 siblings, 1 reply; 14+ messages in thread
From: Andrew Morton @ 2009-03-03 2:40 UTC (permalink / raw)
To: Michael Neuling; +Cc: linuxppc-dev
On Tue, 03 Mar 2009 13:31:10 +1100 Michael Neuling <mikey@neuling.org> wrote:
> > 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
>
> I can't replicate this with Linus' latest tree with gcc 4.3 or 4.0.
ho hum.
> 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.c
scripts/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**
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: powerpc allnoconfig
2009-03-03 2:40 ` Andrew Morton
@ 2009-03-03 2:52 ` Stephen Rothwell
2009-03-03 2:55 ` Andrew Morton
0 siblings, 1 reply; 14+ messages in thread
From: Stephen Rothwell @ 2009-03-03 2:52 UTC (permalink / raw)
To: Andrew Morton; +Cc: linuxppc-dev, Michael Neuling
[-- Attachment #1: Type: text/plain, Size: 520 bytes --]
Hi Andrew,
On Mon, 2 Mar 2009 18:40:49 -0800 Andrew Morton <akpm@linux-foundation.org> wrote:
>
> 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?
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: powerpc allnoconfig
2009-03-03 2:52 ` Stephen Rothwell
@ 2009-03-03 2:55 ` Andrew Morton
2009-03-03 3:19 ` Stephen Rothwell
0 siblings, 1 reply; 14+ messages in thread
From: Andrew Morton @ 2009-03-03 2:55 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: linuxppc-dev, Michael Neuling
On Tue, 3 Mar 2009 13:52:03 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> Hi Andrew,
>
> On Mon, 2 Mar 2009 18:40:49 -0800 Andrew Morton <akpm@linux-foundation.org> wrote:
> >
> > 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
> 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.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: powerpc allnoconfig
2009-03-03 2:55 ` Andrew Morton
@ 2009-03-03 3:19 ` Stephen Rothwell
2009-03-03 4:08 ` Andrew Morton
0 siblings, 1 reply; 14+ messages in thread
From: Stephen Rothwell @ 2009-03-03 3:19 UTC (permalink / raw)
To: Andrew Morton; +Cc: linuxppc-dev, Michael Neuling
[-- Attachment #1: Type: text/plain, Size: 1567 bytes --]
Hi Andrew,
On Mon, 2 Mar 2009 18:55:14 -0800 Andrew Morton <akpm@linux-foundation.org> wrote:
>
> 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
>
> > 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 :-)
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: powerpc allnoconfig
2009-03-03 3:19 ` Stephen Rothwell
@ 2009-03-03 4:08 ` Andrew Morton
2009-03-03 4:40 ` Stephen Rothwell
2009-03-03 10:14 ` Geert Uytterhoeven
0 siblings, 2 replies; 14+ messages in thread
From: Andrew Morton @ 2009-03-03 4:08 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: linuxppc-dev, Michael Neuling
On Tue, 3 Mar 2009 14:19:05 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> Hi Andrew,
>
> On Mon, 2 Mar 2009 18:55:14 -0800 Andrew Morton <akpm@linux-foundation.org> wrote:
> >
> > 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
> >
> > > 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.
> 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 :-)
didn't. Oh well.
It seems odd that it breaks an allnoconfig build, whereas defconfig and
allmodconfig are OK.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: powerpc allnoconfig
2009-03-03 4:08 ` Andrew Morton
@ 2009-03-03 4:40 ` Stephen Rothwell
2009-03-03 5:38 ` Andrew Morton
2009-03-03 10:14 ` Geert Uytterhoeven
1 sibling, 1 reply; 14+ messages in thread
From: Stephen Rothwell @ 2009-03-03 4:40 UTC (permalink / raw)
To: Andrew Morton; +Cc: linuxppc-dev, Michael Neuling
[-- Attachment #1: Type: text/plain, Size: 1598 bytes --]
Hi Andrew,
On Mon, 2 Mar 2009 20:08:09 -0800 Andrew Morton <akpm@linux-foundation.org> wrote:
>
> > 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.
Ah, ok.
> > 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
> 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.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: powerpc allnoconfig
2009-03-03 4:40 ` Stephen Rothwell
@ 2009-03-03 5:38 ` Andrew Morton
2009-03-03 6:22 ` Stephen Rothwell
0 siblings, 1 reply; 14+ messages in thread
From: Andrew Morton @ 2009-03-03 5:38 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: linuxppc-dev, Michael Neuling
On Tue, 3 Mar 2009 15:40:43 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> Hi Andrew,
>
> On Mon, 2 Mar 2009 20:08:09 -0800 Andrew Morton <akpm@linux-foundation.org> wrote:
> >
> > > 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.
>
> Ah, ok.
>
> > > let us know if that works :-)
> >
> > didn't. Oh well.
>
> Rats!
>
> I think we need a better bug report :-)
> Kernel version?
Current mainline.
> What error do you get now?
Same as before.
> 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.
Oh. Well that will tear it.
How does one prepare a powerpc64 allnoconfig?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: powerpc allnoconfig
2009-03-03 5:38 ` Andrew Morton
@ 2009-03-03 6:22 ` Stephen Rothwell
2009-03-03 6:35 ` Andrew Morton
0 siblings, 1 reply; 14+ messages in thread
From: Stephen Rothwell @ 2009-03-03 6:22 UTC (permalink / raw)
To: Andrew Morton; +Cc: linuxppc-dev, Michael Neuling
[-- Attachment #1: Type: text/plain, Size: 4046 bytes --]
Hi Andrew,
On Mon, 2 Mar 2009 21:38:01 -0800 Andrew Morton <akpm@linux-foundation.org> wrote:
>
> > I think we need a better bug report :-)
> > Kernel version?
>
> Current mainline.
>
> > What error do you get now?
>
> Same as before.
>
> > 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.
>
> 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.)
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: powerpc allnoconfig
2009-03-03 6:22 ` Stephen Rothwell
@ 2009-03-03 6:35 ` Andrew Morton
0 siblings, 0 replies; 14+ messages in thread
From: Andrew Morton @ 2009-03-03 6:35 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: linuxppc-dev, Michael Neuling
On Tue, 3 Mar 2009 17:22:32 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> So, I can only imagine it is your toolchain that is letting you down.
hrm. I blame Rusty.
> What is your host machine?
x86_64/FCx
> 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.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: powerpc allnoconfig
2009-03-03 4:08 ` Andrew Morton
2009-03-03 4:40 ` Stephen Rothwell
@ 2009-03-03 10:14 ` Geert Uytterhoeven
2009-03-03 16:56 ` Andrew Morton
1 sibling, 1 reply; 14+ messages in thread
From: Geert Uytterhoeven @ 2009-03-03 10:14 UTC (permalink / raw)
To: Andrew Morton; +Cc: Stephen Rothwell, Michael Neuling, linuxppc-dev
On Mon, 2 Mar 2009, Andrew Morton wrote:
> On Tue, 3 Mar 2009 14:19:05 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> > On Mon, 2 Mar 2009 18:55:14 -0800 Andrew Morton <akpm@linux-foundation.org> wrote:
> > > 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
> > >
> > > > 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.
>
> > 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 :-)
>
> 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: Geert.Uytterhoeven@sonycom.com
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: powerpc allnoconfig
2009-03-03 10:14 ` Geert Uytterhoeven
@ 2009-03-03 16:56 ` Andrew Morton
2009-03-03 19:05 ` Peter Bergner
0 siblings, 1 reply; 14+ messages in thread
From: Andrew Morton @ 2009-03-03 16:56 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Stephen Rothwell, Michael Neuling, linuxppc-dev
On Tue, 3 Mar 2009 11:14:04 +0100 (CET) Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> wrote:
> > > 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.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: powerpc allnoconfig
2009-03-03 16:56 ` Andrew Morton
@ 2009-03-03 19:05 ` Peter Bergner
0 siblings, 0 replies; 14+ messages in thread
From: Peter Bergner @ 2009-03-03 19:05 UTC (permalink / raw)
To: Andrew Morton
Cc: Geert Uytterhoeven, Stephen Rothwell, Michael Neuling,
linuxppc-dev
On Tue, 2009-03-03 at 08:56 -0800, Andrew Morton wrote:
> On Tue, 3 Mar 2009 11:14:04 +0100 (CET) Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> wrote:
>
> > > > 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
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
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2009-03-03 19:05 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-03 1:19 powerpc allnoconfig Andrew Morton
2009-03-03 2:31 ` Michael Neuling
2009-03-03 2:40 ` Andrew Morton
2009-03-03 2:52 ` Stephen Rothwell
2009-03-03 2:55 ` Andrew Morton
2009-03-03 3:19 ` Stephen Rothwell
2009-03-03 4:08 ` Andrew Morton
2009-03-03 4:40 ` Stephen Rothwell
2009-03-03 5:38 ` Andrew Morton
2009-03-03 6:22 ` Stephen Rothwell
2009-03-03 6:35 ` Andrew Morton
2009-03-03 10:14 ` Geert Uytterhoeven
2009-03-03 16:56 ` Andrew Morton
2009-03-03 19:05 ` Peter Bergner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).