* compilation problem with kernel 2.6.15
@ 2006-03-28 14:37 Krishna
2006-03-28 19:09 ` James E Wilson
2006-03-28 23:06 ` peter fuerst
0 siblings, 2 replies; 8+ messages in thread
From: Krishna @ 2006-03-28 14:37 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 3721 bytes --]
I tried to cross compile kernel 2.6.15 for BCM1480. Please tell me what the following error indicates:
Using /home/ssf/bdcom/linux-mips-kernels/linux-2.6.15 as source for kernel
GEN /home/ssf/bdcom/linux-mips-kernels/linux-mips-kernel-2.6.15/Makefile
CHK include/linux/version.h
UPD include/linux/version.h
SYMLINK include/asm -> include/asm-mips
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
GEN /home/ssf/bdcom/linux-mips-kernels/linux-mips-kernel-2.6.15/Makefile
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/mconf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/mips/Kconfig
#
# using defaults found in .config
#
SPLIT include/linux/autoconf.h -> include/config/*
CC arch/mips/kernel/asm-offsets.s
GEN include/asm-mips/asm-offsets.h
HOSTCC scripts/genksyms/genksyms.o
SHIPPED scripts/genksyms/lex.c
SHIPPED scripts/genksyms/parse.h
SHIPPED scripts/genksyms/keywords.c
HOSTCC scripts/genksyms/lex.o
SHIPPED scripts/genksyms/parse.c
HOSTCC scripts/genksyms/parse.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
HOSTCC scripts/pnmtologo
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c
CC init/main.o
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
CC init/do_mounts.o
In file included from /home/ssf/bdcom/linux-mips-kernels/linux-2.6.15/include/li
nux/nfs_fs.h:15,
from /home/ssf/bdcom/linux-mips-kernels/linux-2.6.15/init/do_mo
unts.c:12:
/home/ssf/bdcom/linux-mips-kernels/linux-2.6.15/include/linux/pagemap.h: In func
tion ΓÇÿfault_in_pages_readableΓÇÖ:
/home/ssf/bdcom/linux-mips-kernels/linux-2.6.15/include/linux/pagemap.h:237: err
or: read-only variable ΓÇÿ__gu_valΓÇÖ used as ΓÇÿasmΓÇÖ output
/home/ssf/bdcom/linux-mips-kernels/linux-2.6.15/include/linux/pagemap.h:237: err
or: read-only variable ΓÇÿ__gu_valΓÇÖ used as ΓÇÿasmΓÇÖ output
/home/ssf/bdcom/linux-mips-kernels/linux-2.6.15/include/linux/pagemap.h:237: err
or: read-only variable ΓÇÿ__gu_valΓÇÖ used as ΓÇÿasmΓÇÖ output
/home/ssf/bdcom/linux-mips-kernels/linux-2.6.15/include/linux/pagemap.h:237: err
or: read-only variable ΓÇÿ__gu_valΓÇÖ used as ΓÇÿasmΓÇÖ output
/home/ssf/bdcom/linux-mips-kernels/linux-2.6.15/include/linux/pagemap.h:243: err
or: read-only variable ΓÇÿ__gu_valΓÇÖ used as ΓÇÿasmΓÇÖ output
/home/ssf/bdcom/linux-mips-kernels/linux-2.6.15/include/linux/pagemap.h:243: err
or: read-only variable ΓÇÿ__gu_valΓÇÖ used as ΓÇÿasmΓÇÖ output
/home/ssf/bdcom/linux-mips-kernels/linux-2.6.15/include/linux/pagemap.h:243: err
or: read-only variable ΓÇÿ__gu_valΓÇÖ used as ΓÇÿasmΓÇÖ output
/home/ssf/bdcom/linux-mips-kernels/linux-2.6.15/include/linux/pagemap.h:243: err
or: read-only variable ΓÇÿ__gu_valΓÇÖ used as ΓÇÿasmΓÇÖ output
make[2]: *** [init/do_mounts.o] Error 1
make[1]: *** [init] Error 2
make: *** [_all] Error 2
Thanks and Regards,
Krishna
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
[-- Attachment #2: Type: text/html, Size: 4802 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: compilation problem with kernel 2.6.15
2006-03-28 14:37 Krishna
@ 2006-03-28 19:09 ` James E Wilson
2006-03-29 11:49 ` Krishna
2006-03-28 23:06 ` peter fuerst
1 sibling, 1 reply; 8+ messages in thread
From: James E Wilson @ 2006-03-28 19:09 UTC (permalink / raw)
To: dhunjukrishna; +Cc: linux-mips
On Tue, 2006-03-28 at 06:37, Krishna wrote:
> err
> or: read-only variable ΓÇÿ__gu_valΓÇÖ used as ΓÇÿasmΓÇÖ output
This means a new error check in gcc has found a latent kernel bug.
It is also sometimes the case that a new linux kernel finds a latent gcc
bug.
Note, in general, key parts of linux such as the kernel, glibc, and gcc,
often have such heavy dependencies on each other that you can not pick
and choose random versions. If you want to use a particular kernel
version, then there are often particular glibc and gcc versions you
should use with it, otherwise you are likely to run into trouble.
This link:
http://www.linux-mips.org/wiki/Toolchains#Prologue
recommends gcc-3.4. And if you follow the "recommended" link to
http://www.linux-mips.org/wiki/GCC
it specifically recommends against use of gcc-4.1 for compiling the
linux kernel, as this hasn't been well tested yet.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: compilation problem with kernel 2.6.15
2006-03-28 14:37 Krishna
2006-03-28 19:09 ` James E Wilson
@ 2006-03-28 23:06 ` peter fuerst
2006-03-29 1:00 ` Atsushi Nemoto
1 sibling, 1 reply; 8+ messages in thread
From: peter fuerst @ 2006-03-28 23:06 UTC (permalink / raw)
To: linux-mips
On Tue, 28 Mar 2006, Krishna wrote:
> Date: Tue, 28 Mar 2006 06:37:08 -0800 (PST)
> From: Krishna <dhunjukrishna@yahoo.com>
> Reply-To: dhunjukrishna@gmail.com
> To: linux-mips@linux-mips.org
> Subject: compilation problem with kernel 2.6.15
>
> I tried to cross compile kernel 2.6.15 for BCM1480. Please tell me what the following error indicates:
> ...
Hi !
You are trying to use gcc 4.2, aren't you ?
`fault_in_pages_readable' is defined as follows:
fault_in_pages_readable(const char __user *uaddr, int size)
{
volatile char c;
int ret;
ret = __get_user(c, uaddr);
...
}
this invokes the __get_user_nocheck(c,uaddr,sizeof(*uaddr)) macro:
#define __get_user_nocheck(x,ptr,size) \
({ \
__typeof(*(ptr)) __gu_val = (__typeof(*(ptr))) 0; \
... \
})
defining `__gu_val' of type `const char', which gcc 4.2 (don't know about 4.1)
no longer accepts as asm-output (lvalue). At least until this macro will be
changed, you should switch back to gcc 4.0.
kind regards
pf
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: compilation problem with kernel 2.6.15
2006-03-28 23:06 ` peter fuerst
@ 2006-03-29 1:00 ` Atsushi Nemoto
0 siblings, 0 replies; 8+ messages in thread
From: Atsushi Nemoto @ 2006-03-29 1:00 UTC (permalink / raw)
To: pf; +Cc: linux-mips
>>>>> On Wed, 29 Mar 2006 01:06:48 +0200 (CEST), peter fuerst <pf@net.alphadv.de> said:
> defining `__gu_val' of type `const char', which gcc 4.2 (don't know
> about 4.1) no longer accepts as asm-output (lvalue). At least until
> this macro will be changed, you should switch back to gcc 4.0.
This is same as gcc 4.1 and the macro in kernel 2.6.16 has been fixed
already. This issue was discussed several times in linux-mips ML.
---
Atsushi Nemoto
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: compilation problem with kernel 2.6.15
2006-03-28 19:09 ` James E Wilson
@ 2006-03-29 11:49 ` Krishna
2006-03-29 22:33 ` James E Wilson
0 siblings, 1 reply; 8+ messages in thread
From: Krishna @ 2006-03-29 11:49 UTC (permalink / raw)
To: James E Wilson; +Cc: Ralf Baechle, Linux-MIPS
[-- Attachment #1: Type: text/plain, Size: 2704 bytes --]
I downloaded the exact tools and followed exact procedure suggested in http://www.linux-mips.org/wiki/Toolchains#Prologue. But while trying to cross compile the kernel 2.6.15 got the following error:
(root@Jamuna:/home/ssf/bdcom/linux-mips-kernels/linux-2.6.15)# make O=/home/ssf
/bdcom/linux-mips-kernels/linux-mips-kernel-2.6.15 ARCH=mips CROSS_COMPILE=mips
el-unknown-linux-gnu-
Using /home/ssf/bdcom/linux-mips-kernels/linux-2.6.15 as source for kernel
GEN /home/ssf/bdcom/linux-mips-kernels/linux-mips-kernel-2.6.15/Makefile
CHK include/linux/version.h
CC arch/mips/kernel/asm-offsets.s
GEN include/asm-mips/asm-offsets.h
CC scripts/mod/empty.o
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
CC init/main.o
CHK include/linux/compile.h
SKIPPED include/linux/compile.h
CC init/version.o
CC init/do_mounts.o
CC init/do_mounts_rd.o
CC init/do_mounts_initrd.o
CC init/do_mounts_md.o
LD init/mounts.o
CC init/initramfs.o
CC init/calibrate.o
LD init/built-in.o
CHK usr/initramfs_list
/home/ssf/bdcom/linux-mips-kernels/linux-2.6.15/scripts/gen_initramfs_list.sh:
Cannot open 'y'
make[2]: *** [usr/initramfs_list] Error 1
make[1]: *** [usr] Error 2
make: *** [_all] Error 2
can anyone suggest me what is the problem here?
Thanks in advance,
Krishna
James E Wilson <wilson@specifix.com> wrote:
On Tue, 2006-03-28 at 06:37, Krishna wrote:
> err
> or: read-only variable ÎÃÿ__gu_valÎÃà used as ÎÃÿasmÎÃà output
This means a new error check in gcc has found a latent kernel bug.
It is also sometimes the case that a new linux kernel finds a latent gcc
bug.
Note, in general, key parts of linux such as the kernel, glibc, and gcc,
often have such heavy dependencies on each other that you can not pick
and choose random versions. If you want to use a particular kernel
version, then there are often particular glibc and gcc versions you
should use with it, otherwise you are likely to run into trouble.
This link:
http://www.linux-mips.org/wiki/Toolchains#Prologue
recommends gcc-3.4. And if you follow the "recommended" link to
http://www.linux-mips.org/wiki/GCC
it specifically recommends against use of gcc-4.1 for compiling the
linux kernel, as this hasn't been well tested yet.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com
*Krishna*
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
[-- Attachment #2: Type: text/html, Size: 11231 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: compilation problem with kernel 2.6.15
2006-03-29 11:49 ` Krishna
@ 2006-03-29 22:33 ` James E Wilson
0 siblings, 0 replies; 8+ messages in thread
From: James E Wilson @ 2006-03-29 22:33 UTC (permalink / raw)
To: dhunjukrishna; +Cc: Ralf Baechle, Linux-MIPS
On Wed, 2006-03-29 at 03:49, Krishna wrote:
> CHK usr/initramfs_list
>
> /home/ssf/bdcom/linux-mips-kernels/linux-2.6.15/scripts/gen_initramfs_list.sh:
> Cannot open 'y'
Use the command
make V=1
to get slightly more useful make output.
If this doesn't show anything wrong, then try running the script
manually with shell tracing turned on.
cd scripts
sh -x gen_initramfs_list.sh
This doesn't look like a compiler issue. It looks more like an issue
with your system, or with the kernel sources that you have extracted.
The only thing happening here is that a shell script is being run from
make. I don't see how this could have happened unless something is
wrong with your system.
What OS name and version are you using? What shell program and
version? What make program and version?
--
Jim Wilson, GNU Tools Support, http://www.specifix.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* compilation problem with kernel 2.6.15
@ 2006-03-30 9:13 Krishna
2006-03-30 13:32 ` Ralf Baechle
0 siblings, 1 reply; 8+ messages in thread
From: Krishna @ 2006-03-30 9:13 UTC (permalink / raw)
To: Linux-MIPS
[-- Attachment #1: Type: text/plain, Size: 1293 bytes --]
While trying to cross compile kernel 2.6.15 for BCM1480
Ii got the following error:
CC arch/mips/kernel/signal.o
CC arch/mips/kernel/syscall.o
CC arch/mips/kernel/time.o
CC arch/mips/kernel/traps.o
CC arch/mips/kernel/unaligned.o
CC arch/mips/kernel/mips_ksyms.o
CC arch/mips/kernel/module.o
AS arch/mips/kernel/r4k_fpu.o
AS arch/mips/kernel/r4k_switch.o
CC arch/mips/kernel/smp.o
CC arch/mips/kernel/smp_mt.o
/home/ssf/bdcom/linux-mips-kernels/linux-2.6.15/arch/mips/kernel/smp_mt.c: In fu
nction `prom_prepare_cpus':
/home/ssf/bdcom/linux-mips-kernels/linux-2.6.15/arch/mips/kernel/smp_mt.c:276: e
rror: `IRQ_PER_CPU' undeclared (first use in this function)
/home/ssf/bdcom/linux-mips-kernels/linux-2.6.15/arch/mips/kernel/smp_mt.c:276: e
rror: (Each undeclared identifier is reported only once
/home/ssf/bdcom/linux-mips-kernels/linux-2.6.15/arch/mips/kernel/smp_mt.c:276: e
rror: for each function it appears in.)
make[2]: *** [arch/mips/kernel/smp_mt.o] Error 1
make[1]: *** [arch/mips/kernel] Error 2
make: *** [_all] Error 2
Please anyone help me to solve this problem.
Krishna
---------------------------------
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
[-- Attachment #2: Type: text/html, Size: 1890 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: compilation problem with kernel 2.6.15
2006-03-30 9:13 compilation problem with kernel 2.6.15 Krishna
@ 2006-03-30 13:32 ` Ralf Baechle
0 siblings, 0 replies; 8+ messages in thread
From: Ralf Baechle @ 2006-03-30 13:32 UTC (permalink / raw)
To: dhunjukrishna; +Cc: Linux-MIPS
On Thu, Mar 30, 2006 at 01:13:13AM -0800, Krishna wrote:
Disable CONFIG_MIPS_MT.
Ralf
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-03-30 13:22 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-30 9:13 compilation problem with kernel 2.6.15 Krishna
2006-03-30 13:32 ` Ralf Baechle
-- strict thread matches above, loose matches on Subject: below --
2006-03-28 14:37 Krishna
2006-03-28 19:09 ` James E Wilson
2006-03-29 11:49 ` Krishna
2006-03-29 22:33 ` James E Wilson
2006-03-28 23:06 ` peter fuerst
2006-03-29 1:00 ` Atsushi Nemoto
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.