Using genkernel 3.3.10 to compile gentoo-sources 2.6.13-gentoo-r5 produces this when trying to build klibc... cc1: error: -m64 is not supported by this configuration cc1: error: -mlong-double-64 not allowed with -m64 genkernel seems to be using this.... "ARCH=sparc64 CROSS=sparc64-unknown-linux-gnu-" target This is on an Ultra60 sparc64 platform.
*** Bug 117445 has been marked as a duplicate of this bug. ***
What genkernel command line are you using?
genkernel --no-clean all
Here's genkernel's failure log.. * Copying config for successful build to /etc/kernels/kernel-config-sparc64-2.6.13-gentoo-r5 * klibc: >> Compiling... COMMAND: make -j2 CC="gcc" LD="ld" AS="as" ARCH=sparc64 CROSS=sparc64-unknown-linux-gnu- rm -f sparc64-unknown-linux-gnu-klibc.config echo 'ARCH=sparc64' >> sparc64-unknown-linux-gnu-klibc.config echo 'CROSS=sparc64-unknown-linux-gnu-' >> sparc64-unknown-linux-gnu-klibc.config echo 'KCROSS=sparc64-unknown-linux-gnu-' >> sparc64-unknown-linux-gnu-klibc.config echo 'CC=gcc' >> sparc64-unknown-linux-gnu-klibc.config echo 'LD=ld' >> sparc64-unknown-linux-gnu-klibc.config echo 'REQFLAGS=-m64 -mptr64 -D__KLIBC__=1 -D__KLIBC_MINOR__=1 -nostdlib -nostdinc -iwithprefix include' >> sparc64-unknown-linux-gnu-klibc.config echo 'OPTFLAGS=-Os' >> sparc64-unknown-linux-gnu-klibc.config echo 'LDFLAGS=-m elf64_sparc' >> sparc64-unknown-linux-gnu-klibc.config echo 'STRIP=sparc64-unknown-linux-gnu-strip' >> sparc64-unknown-linux-gnu-klibc.config echo 'STRIPFLAGS=--strip-all -R .comment -R .note' >> sparc64-unknown-linux-gnu-klibc.config echo 'EMAIN=-e main' >> sparc64-unknown-linux-gnu-klibc.config echo 'BITSIZE=64' >> sparc64-unknown-linux-gnu-klibc.config echo 'prefix=/var/tmp/genkernel/5738.11427.9769.4940/klibc-build/lib/klibc' >> sparc64-unknown-linux-gnu-klibc.config echo 'bindir=/var/tmp/genkernel/5738.11427.9769.4940/klibc-build/lib/klibc/sparc64-unknown-linux-gnu-bin' >> sparc64-unknown-linux-gnu-klibc.config echo 'libdir=/var/tmp/genkernel/5738.11427.9769.4940/klibc-build/lib/klibc/sparc64-unknown-linux-gnu-lib' >> sparc64-unknown-linux-gnu-klibc.config echo 'includedir=/var/tmp/genkernel/5738.11427.9769.4940/klibc-build/lib/klibc/sparc64-unknown-linux-gnu-include' >> sparc64-unknown-linux-gnu-klibc.config perl makeklcc.pl klcc.in sparc64-unknown-linux-gnu-klibc.config \ /usr/bin/perl > sparc64-unknown-linux-gnu-klcc || ( rm -f sparc64-unknown-linux-gnu-klcc ; exit 1 ) chmod a+x sparc64-unknown-linux-gnu-klcc make[1]: Entering directory `/var/tmp/genkernel/5738.11427.9769.4940/klibc-1.1.1/klibc' gcc -Wp,-MT,__static_init.o,-MD,./.__static_init.o.d -Os -m64 -mptr64 -D__KLIBC__=1 -D__KLIBC_MINOR__=1 -nostdlib -nostdinc -iwithprefix include -I../include/arch/sparc64 -I../include/bits64 -I../include -I../linux/include -I../linux/include2 -I../linux/include -I./zlib -I./zlib -DWITH_ERRLIST -W -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Winline -DDYNAMIC_CRC_TABLE -c -o __static_init.o __static_init.c cc1: error: -m64 is not supported by this configuration cc1: error: -mlong-double-64 not allowed with -m64 make[1]: *** [__static_init.o] Error 1 make[1]: Leaving directory `/var/tmp/genkernel/5738.11427.9769.4940/klibc-1.1.1/klibc' make: *** [all] Error 2 * Gentoo Linux Genkernel; Version 3.3.10 * Running with options: --no-clean all * ERROR: Failed to compile the "ARCH=sparc64 CROSS=sparc64-unknown-linux-gnu-" target... * -- Grepping log... -- * -- End log... -- * Please consult /var/log/genkernel.log for more information and any * errors that were reported above. * Report any genkernel bugs to bugs.gentoo.org and * assign your bug to genkernel@gentoo.org. Please include * as much information as you can in your bug report; attaching * /var/log/genkernel.log so that your issue can be dealt with effectively.
It's a known issue that genkernel can't do sparc64 2.6 kernels right yet, mostly because of broken stuff in klibc+udev. It's being worked on, patience grass hopper...
If you're crazy, you're more than welcome to assist with testing the ~sparc64 versions of genkernel (current 3.3.11_pre5) and working with gustavoz to get support working properly... ;]
Absolutely. I'll grab it later today and give it a whirl.
3.3.11_pre6 built my 2.6.13 kernel fine. Just trying building 2.6.15-r1 now. Thanks
yup, 2.6.15-r1 builds fine too!
Cool... =]