Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"cc1: error: invalid option `medlow'" when compiling kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
trevor_m_wilson
n00b
n00b


Joined: 20 Sep 2003
Posts: 5

PostPosted: Wed Oct 25, 2006 7:07 pm    Post subject: "cc1: error: invalid option `medlow'" when compili Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum