Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117446 - genkernel doesn't compile gentoo-sources correctly
Summary: genkernel doesn't compile gentoo-sources correctly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: Sparc64 Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
: 117445 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-02 06:35 UTC by Alan Hourihane
Modified: 2006-01-27 12:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Hourihane 2006-01-02 06:35:38 UTC
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.
Comment 1 Alan Hourihane 2006-01-02 06:36:00 UTC
*** Bug 117445 has been marked as a duplicate of this bug. ***
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2006-01-02 11:17:44 UTC
What genkernel command line are you using?
Comment 3 Alan Hourihane 2006-01-02 11:27:55 UTC
genkernel --no-clean all
Comment 4 Alan Hourihane 2006-01-02 11:33:57 UTC
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.
Comment 5 Gustavo Zacarias (RETIRED) gentoo-dev 2006-01-25 13:02:15 UTC
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...
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2006-01-25 15:12:26 UTC
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... ;]
Comment 7 Alan Hourihane 2006-01-26 00:44:46 UTC
Absolutely. I'll grab it later today and give it a whirl.
Comment 8 Alan Hourihane 2006-01-27 06:21:45 UTC
3.3.11_pre6 built my 2.6.13 kernel fine.

Just trying building 2.6.15-r1 now.

Thanks
Comment 9 Alan Hourihane 2006-01-27 07:28:15 UTC
yup, 2.6.15-r1 builds fine too!
Comment 10 Chris Gianelloni (RETIRED) gentoo-dev 2006-01-27 12:28:42 UTC
Cool... =]