trevor_m_wilson n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Sep 2003 Posts: 5
|
Posted: Wed Oct 25, 2006 7:07 pm Post subject: "cc1: error: invalid option `medlow'" when compili |
|
|
My kernel (2.6.17-gentoo-r5) compiles fine when I just type "make", but if I try to use ccache or distcc, or in any way specify which CC to use, I get this error:
fuux linux # make CC="gcc"
CHK include/linux/version.h
CC arch/sparc64/kernel/asm-offsets.s
cc1: error: invalid option `medlow'
make[1]: *** [arch/sparc64/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
Here is my system info:
fuux linux # uname -a
Linux fuux 2.6.17-gentoo-r5 #9 SMP Mon Oct 23 23:37:43 PDT 2006 sparc64 sun4u GNU/Linux
I think what is happening is that make is not invoking the correct gcc to produce 64-bit code. But I can't figure out what the kernel Makefile does normally, so perhaps someone can tell me what the correct CC is if I want to use ccache or distcc? I should add that ccache and distcc both get along fine with portage on this system, so they are probably installed and configured correctly.
Thanks in advance!
--Trevor |
|