Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo-sources-2.6.36 fails
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
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1744
Location: Mannheim, Germany

PostPosted: Fri Oct 22, 2010 6:28 pm    Post subject: gentoo-sources-2.6.36 fails Reply with quote

with error:
Code:

/usr/src/linux-2.6.36-gentoo/arch/x86/Makefile:81: stack protector enabled but no compiler support
make: ngcc: Kommando nicht gefunden              <<<<< means "command not found"
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  HOSTCC  scripts/kallsyms
  CC      scripts/mod/empty.o
/bin/sh: ngcc: command not found
make[2]: *** [scripts/mod/empty.o] Error 127
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
  CC      kernel/bounds.s
/bin/sh: ngcc: command not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Fehler 2
make: *** Warte auf noch nicht beendete Prozesse...
make: *** [scripts] Fehler 2

_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
kompak
n00b
n00b


Joined: 22 Oct 2010
Posts: 8
Location: Finland

PostPosted: Fri Oct 22, 2010 7:06 pm    Post subject: Reply with quote

I got the exact same error. Try setting CONFIG_CROSS_COMPILE="n" to CONFIG_CROSS_COMPILE="" in your .config. Apparently they changed something that made old configs incompatible with .36. Works for me.
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1744
Location: Mannheim, Germany

PostPosted: Fri Oct 22, 2010 7:18 pm    Post subject: Reply with quote

It compiles then.
But now I get an error with nvidia-drivers-256.53:
Code:

make[4]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel] Error 2
make[2]: *** [sub-make] Fehler 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Fehler 1
make: *** [module] Fehler 2
emake failed
 * ERROR: x11-drivers/nvidia-drivers-256.53 failed:
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux             SYSOUT=/lib/modules/2.6.36-gentoo/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4202:  Called linux-mod_src_compile
 *   environment, line 3112:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                                    CROSS_COMPILE=${CHOST}-                                          LDFLAGS=\"$(get_abi_LDFLAGS)\"                                                ${BUILD_FIXES}                               ${BUILD_PARAMS}                                          ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *
 * If you need support, post the output of 'emerge --info =x11-drivers/nvidia-drivers-256.53',
 * the complete build log and the output of 'emerge -pqv =x11-drivers/nvidia-drivers-256.53'.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/temp/environment'.
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/'

_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 2440
Location: UK

PostPosted: Fri Oct 22, 2010 7:19 pm    Post subject: Reply with quote

That's normal for the binary blob drivers. You have to wait for nvidia now.
_________________
runit-init howto | Overlay
Back to top
View user's profile Send private message
kompak
n00b
n00b


Joined: 22 Oct 2010
Posts: 8
Location: Finland

PostPosted: Fri Oct 22, 2010 7:26 pm    Post subject: Reply with quote

Are you on x86 or amd64? Also are you crosscompiling?
Code:
CROSS_COMPILE=x86_64-pc-linux-gnu-

That seems to be broken so possibly still a kernel config problem.
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1744
Location: Mannheim, Germany

PostPosted: Fri Oct 22, 2010 7:27 pm    Post subject: Reply with quote

Well, it seems to work with the masked nvidia-drivers-260.19.12.
Investigating how stable this will be...
Thanks for your help.
_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
papu
Guru
Guru


Joined: 25 Jan 2008
Posts: 390
Location: Sota algun pi de l'empordà

PostPosted: Fri Oct 22, 2010 10:37 pm    Post subject: Reply with quote

kompak wrote:
I got the exact same error. Try setting CONFIG_CROSS_COMPILE="n" to CONFIG_CROSS_COMPILE="" in your .config. Apparently they changed something that made old configs incompatible with .36. Works for me.
I HAD the same problem and now it works doing what you said.

what does confing_cross_compile means and what's it for?


thanks, adéu.
_________________
--Intel i5 3570k --Asrock z77 ext. 4 --Skill 32GB dd3 --Radeon r9 270 --S.O Gentoo & Win 64bits
Back to top
View user's profile Send private message
Randy Andy
Veteran
Veteran


Joined: 19 Jun 2007
Posts: 1059
Location: /dev/koelsch

PostPosted: Sat Oct 23, 2010 3:17 pm    Post subject: Reply with quote

Hmm,
this error should be fixed by; since:
Quote:

author Yegor Yefremov <yegorslists@googlemail.com>

Wed, 4 Aug 2010 12:16:15 +0000 (14:16 +0200)

committer Michal Marek <mmarek@suse.cz>

Tue, 10 Aug 2010 11:19:44 +0000 (13:19 +0200)

as you can read into the Changelog for kernel 2.6.36, but it doesn't seem to work for us.
I have had this problem too, for the first time, althogh it works with the same settings for the 2.6.35 branch on my 32 and 64 bit boxes.

More details what's the intension of this feature:

Quote:

# Cross compiling and selecting different set of gcc/bin-utils

171 # ---------------------------------------------------------------------------

172 #

173 # When performing cross compilation for other architectures ARCH shall be set

174 # to the target architecture. (See arch/* for the possibilities).

175 # ARCH can be set during invocation of make:

176 # make ARCH=ia64

177 # Another way is to have ARCH set in the environment.

178 # The default ARCH is the host where make is executed.

179

180 # CROSS_COMPILE specify the prefix used for all executables used

181 # during compilation. Only gcc and related bin-utils executables

182 # are prefixed with $(CROSS_COMPILE).

183 # CROSS_COMPILE can be set on the command line

184 # make CROSS_COMPILE=ia64-linux-

185 # Alternatively CROSS_COMPILE can be set in the environment.

186 # A third alternative is to store a setting in .config so that plain

187 # "make" in the configured kernel build directory always uses that.

188 # Default value for CROSS_COMPILE is not to prefix executables

189 # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile

190 export KBUILD_BUILDHOST := $(SUBARCH)

191 ARCH ?= $(SUBARCH)

192 CROSS_COMPILE ?= $(CONFIG_CROSS_COMPILE:"%"=%)

193

194 # Architecture as present in compile.h

195 UTS_MACHINE := $(ARCH)

196 SRCARCH := $(ARCH)

197

198 # Additional ARCH settings for x86

199 ifeq ($(ARCH),i386)

200 SRCARCH := x86

201 endif

202 ifeq ($(ARCH),x86_64)

203 SRCARCH := x86

204 endif
snip...

My sources of this information:
http://git390.marist.edu/cgi-bin/gitweb.cgi?p=linux-2.6.git;a=commit;h=235caa235cb6f88fd04bc58a288f45463e5361c7
http://git390.marist.edu/cgi-bin/gitweb.cgi?p=linux-2.6.git;a=blob;f=Makefile;hb=235caa235cb6f88fd04bc58a288f45463e5361c7

Regards, Andy.
_________________
If you want to see a Distro done right, compile it yourself!
Back to top
View user's profile Send private message
ferg
Guru
Guru


Joined: 15 Nov 2002
Posts: 434
Location: Cambridge, UK

PostPosted: Sun Dec 12, 2010 11:27 am    Post subject: Reply with quote

Is there any update to this issue?

By setting
Code:
 CONFIG_CROSS_COMPILE="n"
to
Code:
CONFIG_CROSS_COMPILE=""
I can get the kernel to compile although I still see this error:

Code:
make: ngcc: Command not found


Cheers
Ferg
_________________
Climb up it, kayak down it + make sure it runs on GNU/Linux
"cease to exist, giving my goodbye, drive my car into the ocean,
you think I'm dead, but i sail away, on a wave of mutilation!"
Back to top
View user's profile Send private message
MalleRIM
Guru
Guru


Joined: 23 Jul 2007
Posts: 540
Location: Germany

PostPosted: Tue Dec 21, 2010 6:36 am    Post subject: Reply with quote

That's because of the leftovers of the failed builds. Try "make clean" and then make, you won't get that error anymore.
Back to top
View user's profile Send private message
ferg
Guru
Guru


Joined: 15 Nov 2002
Posts: 434
Location: Cambridge, UK

PostPosted: Tue Dec 21, 2010 9:04 am    Post subject: Reply with quote

MalleRIM wrote:
That's because of the leftovers of the failed builds. Try "make clean" and then make, you won't get that error anymore.

Thanks for that!
_________________
Climb up it, kayak down it + make sure it runs on GNU/Linux
"cease to exist, giving my goodbye, drive my car into the ocean,
you think I'm dead, but i sail away, on a wave of mutilation!"
Back to top
View user's profile Send private message
Dimitri001
n00b
n00b


Joined: 28 Jun 2007
Posts: 2

PostPosted: Mon Jan 03, 2011 12:41 pm    Post subject: Reply with quote

With me this error came up because I used "make oldconfig" and answered "n" to the new option "cross-compile prefix" (or something similar).
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 5734
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Mon Jan 03, 2011 8:02 pm    Post subject: Reply with quote

Dimitri001 wrote:
With me this error came up because I used "make oldconfig" and answered "n" to the new option "cross-compile prefix" (or something similar).


for me it's:


Quote:
cat /usr/src/linux/.config | grep CROSS
CONFIG_CROSS_COMPILE=""


so probably it shouldn't be y or n but empty ("")
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.3.0-r2
2.6.37.2_plus_v1: BFS, CFS,THP,compaction, zcache or TOI
Hardcore Linux user since 2004 :D
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