View previous topic :: View next topic |
Author |
Message |
Martux Veteran
Joined: 04 Feb 2005 Posts: 1917
|
Posted: Fri Oct 22, 2010 6:28 pm Post subject: gentoo-sources-2.6.36 fails |
|
|
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 |
|
|
kompak n00b
Joined: 22 Oct 2010 Posts: 8 Location: Finland
|
Posted: Fri Oct 22, 2010 7:06 pm Post subject: |
|
|
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 |
|
|
Martux Veteran
Joined: 04 Feb 2005 Posts: 1917
|
Posted: Fri Oct 22, 2010 7:18 pm Post subject: |
|
|
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 |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Fri Oct 22, 2010 7:19 pm Post subject: |
|
|
That's normal for the binary blob drivers. You have to wait for nvidia now. |
|
Back to top |
|
|
kompak n00b
Joined: 22 Oct 2010 Posts: 8 Location: Finland
|
Posted: Fri Oct 22, 2010 7:26 pm Post subject: |
|
|
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 |
|
|
Martux Veteran
Joined: 04 Feb 2005 Posts: 1917
|
Posted: Fri Oct 22, 2010 7:27 pm Post subject: |
|
|
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 |
|
|
papu l33t
Joined: 25 Jan 2008 Posts: 707 Location: Sota algun pi o alzina...
|
Posted: Fri Oct 22, 2010 10:37 pm Post subject: |
|
|
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. _________________ "~amd64" --cpu 7700 non-x --DDR5 2x16GB 6000MHz --gpu RX 470 |
|
Back to top |
|
|
Randy Andy Veteran
Joined: 19 Jun 2007 Posts: 1148 Location: /dev/koelsch
|
Posted: Sat Oct 23, 2010 3:17 pm Post subject: |
|
|
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 |
|
|
ferg Guru
Joined: 15 Nov 2002 Posts: 536 Location: Cambridge, UK
|
Posted: Sun Dec 12, 2010 11:27 am Post subject: |
|
|
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 |
|
|
MalleRIM Guru
Joined: 23 Jul 2007 Posts: 563 Location: China
|
Posted: Tue Dec 21, 2010 6:36 am Post subject: |
|
|
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 |
|
|
ferg Guru
Joined: 15 Nov 2002 Posts: 536 Location: Cambridge, UK
|
Posted: Tue Dec 21, 2010 9:04 am Post subject: |
|
|
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 |
|
|
Dimitri001 n00b
Joined: 28 Jun 2007 Posts: 2
|
Posted: Mon Jan 03, 2011 12:41 pm Post subject: |
|
|
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 |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
|