From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 24 Mar 2006 07:35:33 +0000 (GMT) Received: from web53506.mail.yahoo.com ([206.190.37.67]:19321 "HELO web53506.mail.yahoo.com") by ftp.linux-mips.org with SMTP id S8133596AbWCXHfZ (ORCPT ); Fri, 24 Mar 2006 07:35:25 +0000 Received: (qmail 53363 invoked by uid 60001); 24 Mar 2006 07:45:21 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=uKgkco7km8Kz1uI4d4ouLtVL17XKXF4iA09PnWlSRQuWPob6CFZ8WlnyNoTNFWZPfkkMHMZOJ2KUdVqYOwulh+trGw3TtcfyfKTYWFx1YftrVAr/rEpQ4czaVDEchdqBF66PNrYWdEC9UJ8dFUFRrwCGifPUwFD3PXF8yDifL/o= ; Message-ID: <20060324074521.53361.qmail@web53506.mail.yahoo.com> Received: from [203.145.155.11] by web53506.mail.yahoo.com via HTTP; Thu, 23 Mar 2006 23:45:21 PST Date: Thu, 23 Mar 2006 23:45:21 -0800 (PST) From: Krishna Reply-To: dhunjukrishna@gmail.com Subject: Compilation problem with kernel 2.4.16 To: linux-mips@linux-mips.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1703484411-1143186321=:53036" Content-Transfer-Encoding: 8bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 10917 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: dhunjukrishna@yahoo.com Precedence: bulk X-list: linux-mips --0-1703484411-1143186321=:53036 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, I have been trying to cross compile Linux/MIPS kernel verison 2.4.16 with the specifix's sibyte cross compiler (sb1-elf cross compilers for x86 linux hosts) for BCM 1480 Broadcom board. I have set the path for cross compiler properly in make file even then the compilation failed. Then we tried adding parameter " -Tcfe.ld" (which is must for compilation) in compilation command (as has been suggested by broadcom) still unble to get it done correctly. Wondering what else we need to change in make file. Or else is there any other cross compiler for BCM 1480 (than specifix one) that we can use. Anyone suggest me the proper way for compiling the kernel with the above cross compiler. Thanks and Regards Krishna --------------------------------- New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. --0-1703484411-1143186321=:53036 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
Hi,
 
I have been trying to cross compile Linux/MIPS kernel verison 2.4.16 with the specifix's sibyte cross compiler (sb1-elf cross compilers for x86 linux hosts) for BCM 1480 Broadcom board. I have set the path for cross compiler properly in make file even then the compilation failed. Then we tried adding parameter " -Tcfe.ld" (which is must for compilation) in compilation command (as has been suggested by broadcom) still unble to get it done correctly. Wondering what else we need to change in make file. Or else is there any other cross compiler for BCM 1480 (than specifix one) that we can use. Anyone suggest me the proper way for compiling the kernel with the above cross compiler.
 
Thanks and Regards
Krishna


New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. --0-1703484411-1143186321=:53036-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 24 Mar 2006 08:00:25 +0000 (GMT) Received: from www.haninternet.co.kr ([211.63.64.4]:31760 "EHLO www.haninternet.co.kr") by ftp.linux-mips.org with ESMTP id S8133596AbWCXIAP (ORCPT ); Fri, 24 Mar 2006 08:00:15 +0000 Received: from [211.63.70.179] ([211.63.70.179]) by www.haninternet.co.kr (8.9.3/8.9.3) with ESMTP id RAA22206; Fri, 24 Mar 2006 17:07:54 +0900 Subject: Re: Compilation problem with kernel 2.4.16 From: Gowri Satish Adimulam Reply-To: gowri@bitel.co.kr To: dhunjukrishna@gmail.com Cc: linux-mips@linux-mips.org In-Reply-To: <20060324074521.53361.qmail@web53506.mail.yahoo.com> References: <20060324074521.53361.qmail@web53506.mail.yahoo.com> Content-Type: text/plain Organization: Bitel Co Ltd Date: Fri, 24 Mar 2006 17:09:50 +0900 Message-Id: <1143187790.3249.28.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 10918 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: gowri@bitel.co.kr Precedence: bulk X-list: linux-mips Hi, could you post the error message , so that group members can analyse and post you correct solution. Gowri On Thu, 2006-03-23 at 23:45 -0800, Krishna wrote: > Hi, > > I have been trying to cross compile Linux/MIPS kernel verison 2.4.16 > with the specifix's sibyte cross compiler (sb1-elf cross compilers for > x86 linux hosts) for BCM 1480 Broadcom board. I have set the path for > cross compiler properly in make file even then the compilation failed. > Then we tried adding parameter " -Tcfe.ld" (which is must for > compilation) in compilation command (as has been suggested by > broadcom) still unble to get it done correctly. Wondering what else we > need to change in make file. Or else is there any other cross compiler > for BCM 1480 (than specifix one) that we can use. Anyone suggest me > the proper way for compiling the kernel with the above cross > compiler. > > Thanks and Regards > Krishna > > ______________________________________________________________________ > New Yahoo! Messenger with Voice. Call regular phones from your PC and > save big. From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 24 Mar 2006 08:18:56 +0000 (GMT) Received: from web53506.mail.yahoo.com ([206.190.37.67]:10608 "HELO web53506.mail.yahoo.com") by ftp.linux-mips.org with SMTP id S8133529AbWCXISp (ORCPT ); Fri, 24 Mar 2006 08:18:45 +0000 Received: (qmail 68471 invoked by uid 60001); 24 Mar 2006 08:28:42 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=RdovN1EdZy6zPc0F1b4360HWggzOr2pjBPmq36sYcsKJZGg42GHnKr3/+yi3Yvebf6jU0oYAyZLRFbh/7CjseCPlSSLvXtLkJyq4g9zDsPHDDxAkdTnNuJe2ry/REznINZoBHW92LAq9BwlMW1CFz9CFpU7kWJKEDlb4z0Hftq0= ; Message-ID: <20060324082842.68469.qmail@web53506.mail.yahoo.com> Received: from [203.145.155.11] by web53506.mail.yahoo.com via HTTP; Fri, 24 Mar 2006 00:28:42 PST Date: Fri, 24 Mar 2006 00:28:42 -0800 (PST) From: Krishna Reply-To: dhunjukrishna@gmail.com Subject: Re: Compilation problem with kernel 2.4.16 To: gowri@bitel.co.kr Cc: linux-mips@linux-mips.org In-Reply-To: <1143187790.3249.28.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1129037444-1143188922=:68158" Content-Transfer-Encoding: 8bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 10920 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: dhunjukrishna@yahoo.com Precedence: bulk X-list: linux-mips --0-1129037444-1143188922=:68158 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit here is the error description: ******************************************************** Makefile:489: .config: No such file or directory scripts/basic/fixdep.c: In function `parse_config_file': scripts/basic/fixdep.c:228: warning: implicit declaration of function `ntohl' scripts/basic/fixdep.c: In function `print_deps': scripts/basic/fixdep.c:336: warning: unused variable `map' /home1/guest/vikram/COMPILER/specifix/broadcom_2004e_341/i686-pc-linux-gnu/bin/../lib/gcc/sb1-elf/3.4.1/../../../../sb1-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000400040 /tmp/ccb1vCvc.o(.text+0x4): In function `usage': : undefined reference to `_impure_ptr' /tmp/ccb1vCvc.o(.text+0x4): In function `usage': : relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr /tmp/ccb1vCvc.o(.text+0x1c): In function `usage': : undefined reference to `fwrite' /tmp/ccb1vCvc.o(.text+0x24): In function `usage': : undefined reference to `exit' /tmp/ccb1vCvc.o(.text+0x3c): In function `print_cmdline': : undefined reference to `printf' /tmp/ccb1vCvc.o(.text+0x80): In function `grow_config': : undefined reference to `realloc' /tmp/ccb1vCvc.o(.text+0xc0): In function `grow_config': : undefined reference to `perror' /tmp/ccb1vCvc.o(.text+0xc8): In function `grow_config': : undefined reference to `exit' /tmp/ccb1vCvc.o(.text+0x148): In function `is_defined_config': : undefined reference to `memcmp' /tmp/ccb1vCvc.o(.text+0x1b8): In function `define_config': : undefined reference to `memcpy' /tmp/ccb1vCvc.o(.text+0x268): In function `use_config': : undefined reference to `memcpy' /tmp/ccb1vCvc.o(.text+0x340): In function `parse_config_file': : undefined reference to `_ctype_' /tmp/ccb1vCvc.o(.text+0x290): In function `use_config': : undefined reference to `_ctype_' /tmp/ccb1vCvc.o(.text+0x2e8): In function `use_config': : undefined reference to `printf' /tmp/ccb1vCvc.o(.text+0x280): In function `use_config': : undefined reference to `_ctype_' /tmp/ccb1vCvc.o(.text+0x358): In function `parse_config_file': : undefined reference to `_ctype_' /tmp/ccb1vCvc.o(.text+0x360): In function `parse_config_file': : undefined reference to `ntohl' /tmp/ccb1vCvc.o(.text+0x374): In function `parse_config_file': : undefined reference to `ntohl' /tmp/ccb1vCvc.o(.text+0x388): In function `parse_config_file': : undefined reference to `ntohl' /tmp/ccb1vCvc.o(.text+0x3b0): In function `parse_config_file': : undefined reference to `ntohl' /tmp/ccb1vCvc.o(.text+0x3d8): In function `parse_config_file': : undefined reference to `memcmp' /tmp/ccb1vCvc.o(.text+0x498): In function `strrcmp': : undefined reference to `strlen' /tmp/ccb1vCvc.o(.text+0x4a4): In function `strrcmp': : undefined reference to `strlen' /tmp/ccb1vCvc.o(.text+0x4dc): In function `strrcmp': : undefined reference to `memcmp' /tmp/ccb1vCvc.o(.text+0x514): In function `do_config_file': : undefined reference to `open' /tmp/ccb1vCvc.o(.text+0x52c): In function `do_config_file': : undefined reference to `fstat' /tmp/ccb1vCvc.o(.text+0x540): In function `do_config_file': : undefined reference to `close' /tmp/ccb1vCvc.o(.text+0x560): In function `do_config_file': : undefined reference to `close' /tmp/ccb1vCvc.o(.text+0x57c): In function `do_config_file': : undefined reference to `_impure_ptr' /tmp/ccb1vCvc.o(.text+0x57c): In function `do_config_file': : relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr /tmp/ccb1vCvc.o(.text+0x590): In function `do_config_file': : undefined reference to `fwrite' /tmp/ccb1vCvc.o(.text+0x598): In function `do_config_file': : undefined reference to `perror' /tmp/ccb1vCvc.o(.text+0x5a0): In function `do_config_file': : undefined reference to `exit' /tmp/ccb1vCvc.o(.text+0x5dc): In function `parse_dep_file': : undefined reference to `strchr' /tmp/ccb1vCvc.o(.text+0x600): In function `parse_dep_file': : undefined reference to `memcpy' /tmp/ccb1vCvc.o(.text+0x614): In function `parse_dep_file': : undefined reference to `printf' /tmp/ccb1vCvc.o(.text+0x6a4): In function `parse_dep_file': : undefined reference to `memcpy' /tmp/ccb1vCvc.o(.text+0x704): In function `parse_dep_file': : undefined reference to `printf' /tmp/ccb1vCvc.o(.text+0x714): In function `parse_dep_file': : undefined reference to `printf' /tmp/ccb1vCvc.o(.text+0x7b8): In function `parse_dep_file': : undefined reference to `printf' /tmp/ccb1vCvc.o(.text+0x7d0): In function `parse_dep_file': : undefined reference to `_impure_ptr' /tmp/ccb1vCvc.o(.text+0x7d0): In function `parse_dep_file': : relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr /tmp/ccb1vCvc.o(.text+0x7e4): In function `parse_dep_file': : undefined reference to `fwrite' /tmp/ccb1vCvc.o(.text+0x7ec): In function `parse_dep_file': : undefined reference to `exit' /tmp/ccb1vCvc.o(.text+0x808): In function `print_deps': : undefined reference to `open' /tmp/ccb1vCvc.o(.text+0x820): In function `print_deps': : undefined reference to `fstat' /tmp/ccb1vCvc.o(.text+0x83c): In function `print_deps': : undefined reference to `_impure_ptr' /tmp/ccb1vCvc.o(.text+0x83c): In function `print_deps': : relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr /tmp/ccb1vCvc.o(.text+0x844): In function `print_deps': : undefined reference to `fprintf' /tmp/ccb1vCvc.o(.text+0x850): In function `print_deps': : undefined reference to `close' /tmp/ccb1vCvc.o(.text+0x868): In function `print_deps': : undefined reference to `_impure_ptr' /tmp/ccb1vCvc.o(.text+0x868): In function `print_deps': : relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr /tmp/ccb1vCvc.o(.text+0x87c): In function `print_deps': : undefined reference to `fwrite' /tmp/ccb1vCvc.o(.text+0x884): In function `print_deps': : undefined reference to `perror' /tmp/ccb1vCvc.o(.text+0x88c): In function `print_deps': : undefined reference to `exit' /tmp/ccb1vCvc.o(.text+0x8a4): In function `traps': : undefined reference to `ntohl' /tmp/ccb1vCvc.o(.text+0x8c0): In function `traps': : undefined reference to `_impure_ptr' /tmp/ccb1vCvc.o(.text+0x8c0): In function `traps': : relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr /tmp/ccb1vCvc.o(.text+0x8cc): In function `traps': : undefined reference to `fprintf' /tmp/ccb1vCvc.o(.text+0x8d4): In function `traps': : undefined reference to `exit' /tmp/ccb1vCvc.o(.sdata+0x0): undefined reference to `_ctype_' collect2: ld returned 1 exit status make[2]: *** [scripts/basic/fixdep] Error 1 make[1]: *** [scripts_basic] Error 2 make: *** [include/linux/autoconf.h] Error 2 ****************************************************************************************** Hope it will help you to sort it out the problem. Thanks Krishna Gowri Satish Adimulam wrote: Hi, could you post the error message , so that group members can analyse and post you correct solution. Gowri On Thu, 2006-03-23 at 23:45 -0800, Krishna wrote: > Hi, > > I have been trying to cross compile Linux/MIPS kernel verison 2.4.16 > with the specifix's sibyte cross compiler (sb1-elf cross compilers for > x86 linux hosts) for BCM 1480 Broadcom board. I have set the path for > cross compiler properly in make file even then the compilation failed. > Then we tried adding parameter " -Tcfe.ld" (which is must for > compilation) in compilation command (as has been suggested by > broadcom) still unble to get it done correctly. Wondering what else we > need to change in make file. Or else is there any other cross compiler > for BCM 1480 (than specifix one) that we can use. Anyone suggest me > the proper way for compiling the kernel with the above cross > compiler. > > Thanks and Regards > Krishna > > ______________________________________________________________________ > New Yahoo! Messenger with Voice. Call regular phones from your PC and > save big. --------------------------------- Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. --0-1129037444-1143188922=:68158 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
here is the error description:
 
********************************************************
Makefile:489: .config: No such file or directory
scripts/basic/fixdep.c: In function `parse_config_file':
scripts/basic/fixdep.c:228: warning: implicit declaration of function `ntohl'
scripts/basic/fixdep.c: In function `print_deps':
scripts/basic/fixdep.c:336: warning: unused variable `map'
/home1/guest/vikram/COMPILER/specifix/broadcom_2004e_341/i686-pc-linux-gnu/bin/../lib/gcc/sb1-elf/3.4.1/../../../../sb1-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000400040
/tmp/ccb1vCvc.o(.text+0x4): In function `usage':
: undefined reference to `_impure_ptr'
/tmp/ccb1vCvc.o(.text+0x4): In function `usage':
: relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr
/tmp/ccb1vCvc.o(.text+0x1c): In function `usage':
: undefined reference to `fwrite'
/tmp/ccb1vCvc.o(.text+0x24): In function `usage':
: undefined reference to `exit'
/tmp/ccb1vCvc.o(.text+0x3c): In function `print_cmdline':
: undefined reference to `printf'
/tmp/ccb1vCvc.o(.text+0x80): In function `grow_config':
: undefined reference to `realloc'
/tmp/ccb1vCvc.o(.text+0xc0): In function `grow_config':
: undefined reference to `perror'
/tmp/ccb1vCvc.o(.text+0xc8): In function `grow_config':
: undefined reference to `exit'
/tmp/ccb1vCvc.o(.text+0x148): In function `is_defined_config':
: undefined reference to `memcmp'
/tmp/ccb1vCvc.o(.text+0x1b8): In function `define_config':
: undefined reference to `memcpy'
/tmp/ccb1vCvc.o(.text+0x268): In function `use_config':
: undefined reference to `memcpy'
/tmp/ccb1vCvc.o(.text+0x340): In function `parse_config_file':
: undefined reference to `_ctype_'
/tmp/ccb1vCvc.o(.text+0x290): In function `use_config':
: undefined reference to `_ctype_'
/tmp/ccb1vCvc.o(.text+0x2e8): In function `use_config':
: undefined reference to `printf'
/tmp/ccb1vCvc.o(.text+0x280): In function `use_config':
: undefined reference to `_ctype_'
/tmp/ccb1vCvc.o(.text+0x358): In function `parse_config_file':
: undefined reference to `_ctype_'
/tmp/ccb1vCvc.o(.text+0x360): In function `parse_config_file':
: undefined reference to `ntohl'
/tmp/ccb1vCvc.o(.text+0x374): In function `parse_config_file':
: undefined reference to `ntohl'
/tmp/ccb1vCvc.o(.text+0x388): In function `parse_config_file':
: undefined reference to `ntohl'
/tmp/ccb1vCvc.o(.text+0x3b0): In function `parse_config_file':
: undefined reference to `ntohl'
/tmp/ccb1vCvc.o(.text+0x3d8): In function `parse_config_file':
: undefined reference to `memcmp'
/tmp/ccb1vCvc.o(.text+0x498): In function `strrcmp':
: undefined reference to `strlen'
/tmp/ccb1vCvc.o(.text+0x4a4): In function `strrcmp':
: undefined reference to `strlen'
/tmp/ccb1vCvc.o(.text+0x4dc): In function `strrcmp':
: undefined reference to `memcmp'
/tmp/ccb1vCvc.o(.text+0x514): In function `do_config_file':
: undefined reference to `open'
/tmp/ccb1vCvc.o(.text+0x52c): In function `do_config_file':
: undefined reference to `fstat'
/tmp/ccb1vCvc.o(.text+0x540): In function `do_config_file':
: undefined reference to `close'
/tmp/ccb1vCvc.o(.text+0x560): In function `do_config_file':
: undefined reference to `close'
/tmp/ccb1vCvc.o(.text+0x57c): In function `do_config_file':
: undefined reference to `_impure_ptr'
/tmp/ccb1vCvc.o(.text+0x57c): In function `do_config_file':
: relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr
/tmp/ccb1vCvc.o(.text+0x590): In function `do_config_file':
: undefined reference to `fwrite'
/tmp/ccb1vCvc.o(.text+0x598): In function `do_config_file':
: undefined reference to `perror'
/tmp/ccb1vCvc.o(.text+0x5a0): In function `do_config_file':
: undefined reference to `exit'
/tmp/ccb1vCvc.o(.text+0x5dc): In function `parse_dep_file':
: undefined reference to `strchr'
/tmp/ccb1vCvc.o(.text+0x600): In function `parse_dep_file':
: undefined reference to `memcpy'
/tmp/ccb1vCvc.o(.text+0x614): In function `parse_dep_file':
: undefined reference to `printf'
/tmp/ccb1vCvc.o(.text+0x6a4): In function `parse_dep_file':
: undefined reference to `memcpy'
/tmp/ccb1vCvc.o(.text+0x704): In function `parse_dep_file':
: undefined reference to `printf'
/tmp/ccb1vCvc.o(.text+0x714): In function `parse_dep_file':
: undefined reference to `printf'
/tmp/ccb1vCvc.o(.text+0x7b8): In function `parse_dep_file':
: undefined reference to `printf'
/tmp/ccb1vCvc.o(.text+0x7d0): In function `parse_dep_file':
: undefined reference to `_impure_ptr'
/tmp/ccb1vCvc.o(.text+0x7d0): In function `parse_dep_file':
: relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr
/tmp/ccb1vCvc.o(.text+0x7e4): In function `parse_dep_file':
: undefined reference to `fwrite'
/tmp/ccb1vCvc.o(.text+0x7ec): In function `parse_dep_file':
: undefined reference to `exit'
/tmp/ccb1vCvc.o(.text+0x808): In function `print_deps':
: undefined reference to `open'
/tmp/ccb1vCvc.o(.text+0x820): In function `print_deps':
: undefined reference to `fstat'
/tmp/ccb1vCvc.o(.text+0x83c): In function `print_deps':
: undefined reference to `_impure_ptr'
/tmp/ccb1vCvc.o(.text+0x83c): In function `print_deps':
: relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr
/tmp/ccb1vCvc.o(.text+0x844): In function `print_deps':
: undefined reference to `fprintf'
/tmp/ccb1vCvc.o(.text+0x850): In function `print_deps':
: undefined reference to `close'
/tmp/ccb1vCvc.o(.text+0x868): In function `print_deps':
: undefined reference to `_impure_ptr'
/tmp/ccb1vCvc.o(.text+0x868): In function `print_deps':
: relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr
/tmp/ccb1vCvc.o(.text+0x87c): In function `print_deps':
: undefined reference to `fwrite'
/tmp/ccb1vCvc.o(.text+0x884): In function `print_deps':
: undefined reference to `perror'
/tmp/ccb1vCvc.o(.text+0x88c): In function `print_deps':
: undefined reference to `exit'
/tmp/ccb1vCvc.o(.text+0x8a4): In function `traps':
: undefined reference to `ntohl'
/tmp/ccb1vCvc.o(.text+0x8c0): In function `traps':
: undefined reference to `_impure_ptr'
/tmp/ccb1vCvc.o(.text+0x8c0): In function `traps':
: relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr
/tmp/ccb1vCvc.o(.text+0x8cc): In function `traps':
: undefined reference to `fprintf'
/tmp/ccb1vCvc.o(.text+0x8d4): In function `traps':
: undefined reference to `exit'
/tmp/ccb1vCvc.o(.sdata+0x0): undefined reference to `_ctype_'
collect2: ld returned 1 exit status
make[2]: *** [scripts/basic/fixdep] Error 1
make[1]: *** [scripts_basic] Error 2
make: *** [include/linux/autoconf.h] Error 2
 
******************************************************************************************
 
Hope it will help you to sort it out the problem.
 
Thanks
Krishna


Gowri Satish Adimulam <gowri@bitel.co.kr> wrote:
Hi,
could you post the error message , so that group members can analyse and
post you correct solution.

Gowri
On Thu, 2006-03-23 at 23:45 -0800, Krishna wrote:
> Hi,
>
> I have been trying to cross compile Linux/MIPS kernel verison 2.4.16
> with the specifix's sibyte cross compiler (sb1-elf cross compilers for
> x86 linux hosts) for BCM 1480 Broadcom board. I have set the path for
> cross compiler properly in make file even then the compilation failed.
> Then we tried adding parameter " -Tcfe.ld" (which is must for
> compilation) in compilation command (as has been suggested by
> broadcom) still unble to get it done correctly. Wondering what else we
> need to change in make file. Or else is there any other cross compiler
> for BCM 1480 (than specifix one) that we can use. Anyone suggest me
> the proper way for compiling the kernel with the above cross
> compiler.
>
> Thanks and Regards
> Krishna
>
> ______________________________________________________________________
> New Yahoo! Messenger with Voice. Call regular phones from your PC and
> save big.



Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. --0-1129037444-1143188922=:68158-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 24 Mar 2006 08:21:46 +0000 (GMT) Received: from localhost.localdomain ([127.0.0.1]:58526 "EHLO bacchus.dhis.org") by ftp.linux-mips.org with ESMTP id S8133529AbWCXIVh (ORCPT ); Fri, 24 Mar 2006 08:21:37 +0000 Received: from denk.linux-mips.net (denk.linux-mips.net [127.0.0.1]) by bacchus.dhis.org (8.13.6/8.13.4) with ESMTP id k2O8VhZ1031758; Fri, 24 Mar 2006 08:31:43 GMT Received: (from ralf@localhost) by denk.linux-mips.net (8.13.6/8.13.6/Submit) id k2O8VfhK031755; Fri, 24 Mar 2006 08:31:41 GMT Date: Fri, 24 Mar 2006 08:31:41 +0000 From: Ralf Baechle To: dhunjukrishna@gmail.com Cc: linux-mips@linux-mips.org Subject: Re: Compilation problem with kernel 2.4.16 Message-ID: <20060324083141.GB3170@linux-mips.org> References: <20060324074521.53361.qmail@web53506.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060324074521.53361.qmail@web53506.mail.yahoo.com> User-Agent: Mutt/1.4.2.1i Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 10921 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ralf@linux-mips.org Precedence: bulk X-list: linux-mips On Thu, Mar 23, 2006 at 11:45:21PM -0800, Krishna wrote: > I have been trying to cross compile Linux/MIPS kernel verison 2.4.16 with the specifix's sibyte cross compiler (sb1-elf cross compilers for x86 linux hosts) for BCM 1480 Broadcom board. I have set the path for cross compiler properly in make file even then the compilation failed. Then we tried adding parameter " -Tcfe.ld" (which is must for compilation) in compilation command (as has been suggested by broadcom) still unble to get it done correctly. Wondering what else we need to change in make file. Or else is there any other cross compiler for BCM 1480 (than specifix one) that we can use. Anyone suggest me the proper way for compiling the kernel with the above cross compiler. As posted nobody can help you because you forgot to mention what kind of error you're seeing, what compiler you're using etc. Aside of that, 2.4.16 is The Jurassic Kernel. The thing is now almost 5 years old and I recommend ritually burrying of a hardcopy on the compost pile in the garden. Make sure no kernel hacker is watching ;-) Ralf From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 24 Mar 2006 08:35:57 +0000 (GMT) Received: from www.haninternet.co.kr ([211.63.64.4]:1809 "EHLO www.haninternet.co.kr") by ftp.linux-mips.org with ESMTP id S8133529AbWCXIfr (ORCPT ); Fri, 24 Mar 2006 08:35:47 +0000 Received: from [211.63.70.179] ([211.63.70.179]) by www.haninternet.co.kr (8.9.3/8.9.3) with ESMTP id RAA13527 for ; Fri, 24 Mar 2006 17:43:44 +0900 Subject: Re: Compilation problem with kernel 2.4.16 From: Gowri Satish Adimulam Reply-To: gowri@bitel.co.kr To: linux-mips@linux-mips.org In-Reply-To: <20060324082842.68469.qmail@web53506.mail.yahoo.com> References: <20060324082842.68469.qmail@web53506.mail.yahoo.com> Content-Type: text/plain; charset=UTF-8 Organization: Bitel Co Ltd Date: Fri, 24 Mar 2006 17:45:48 +0900 Message-Id: <1143189948.3249.36.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 8bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 10922 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: gowri@bitel.co.kr Precedence: bulk X-list: linux-mips Hi , your first line of error gives some indication taht your make file is trying to use conditional compilation based on .config . hence searching for .config but it could not find location. maybe due to the first error , you are getting remaining errors. Regards Gowri On Fri, 2006-03-24 at 00:28 -0800, Krishna wrote: > here is the error description: > > ******************************************************** > Makefile:489: .config: No such file or directory > scripts/basic/fixdep.c: In function `parse_config_file': > scripts/basic/fixdep.c:228: warning: implicit declaration of function > `ntohl' > scripts/basic/fixdep.c: In function `print_deps': > scripts/basic/fixdep.c:336: warning: unused variable `map' > /home1/guest/vikram/COMPILER/specifix/broadcom_2004e_341/i686-pc-linux-gnu/bin/../lib/gcc/sb1-elf/3.4.1/../../../../sb1-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000400040 > /tmp/ccb1vCvc.o(.text+0x4): In function `usage': > : undefined reference to `_impure_ptr' > /tmp/ccb1vCvc.o(.text+0x4): In function `usage': > : relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr > /tmp/ccb1vCvc.o(.text+0x1c): In function `usage': > : undefined reference to `fwrite' > /tmp/ccb1vCvc.o(.text+0x24): In function `usage': > : undefined reference to `exit' > /tmp/ccb1vCvc.o(.text+0x3c): In function `print_cmdline': > : undefined reference to `printf' > /tmp/ccb1vCvc.o(.text+0x80): In function `grow_config': > : undefined reference to `realloc' > /tmp/ccb1vCvc.o(.text+0xc0): In function `grow_config': > : undefined reference to `perror' > /tmp/ccb1vCvc.o(.text+0xc8): In function `grow_config': > : undefined reference to `exit' > /tmp/ccb1vCvc.o(.text+0x148): In function `is_defined_config': > : undefined reference to `memcmp' > /tmp/ccb1vCvc.o(.text+0x1b8): In function `define_config': > : undefined reference to `memcpy' > /tmp/ccb1vCvc.o(.text+0x268): In function `use_config': > : undefined reference to `memcpy' > /tmp/ccb1vCvc.o(.text+0x340): In function `parse_config_file': > : undefined reference to `_ctype_' > /tmp/ccb1vCvc.o(.text+0x290): In function `use_config': > : undefined reference to `_ctype_' > /tmp/ccb1vCvc.o(.text+0x2e8): In function `use_config': > : undefined reference to `printf' > /tmp/ccb1vCvc.o(.text+0x280): In function `use_config': > : undefined reference to `_ctype_' > /tmp/ccb1vCvc.o(.text+0x358): In function `parse_config_file': > : undefined reference to `_ctype_' > /tmp/ccb1vCvc.o(.text+0x360): In function `parse_config_file': > : undefined reference to `ntohl' > /tmp/ccb1vCvc.o(.text+0x374): In function `parse_config_file': > : undefined reference to `ntohl' > /tmp/ccb1vCvc.o(.text+0x388): In function `parse_config_file': > : undefined reference to `ntohl' > /tmp/ccb1vCvc.o(.text+0x3b0): In function `parse_config_file': > : undefined reference to `ntohl' > /tmp/ccb1vCvc.o(.text+0x3d8): In function `parse_config_file': > : undefined reference to `memcmp' > /tmp/ccb1vCvc.o(.text+0x498): In function `strrcmp': > : undefined reference to `strlen' > /tmp/ccb1vCvc.o(.text+0x4a4): In function `strrcmp': > : undefined reference to `strlen' > /tmp/ccb1vCvc.o(.text+0x4dc): In function `strrcmp': > : undefined reference to `memcmp' > /tmp/ccb1vCvc.o(.text+0x514): In function `do_config_file': > : undefined reference to `open' > /tmp/ccb1vCvc.o(.text+0x52c): In function `do_config_file': > : undefined reference to `fstat' > /tmp/ccb1vCvc.o(.text+0x540): In function `do_config_file': > : undefined reference to `close' > /tmp/ccb1vCvc.o(.text+0x560): In function `do_config_file': > : undefined reference to `close' > /tmp/ccb1vCvc.o(.text+0x57c): In function `do_config_file': > : undefined reference to `_impure_ptr' > /tmp/ccb1vCvc.o(.text+0x57c): In function `do_config_file': > : relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr > /tmp/ccb1vCvc.o(.text+0x590): In function `do_config_file': > : undefined reference to `fwrite' > /tmp/ccb1vCvc.o(.text+0x598): In function `do_config_file': > : undefined reference to `perror' > /tmp/ccb1vCvc.o(.text+0x5a0): In function `do_config_file': > : undefined reference to `exit' > /tmp/ccb1vCvc.o(.text+0x5dc): In function `parse_dep_file': > : undefined reference to `strchr' > /tmp/ccb1vCvc.o(.text+0x600): In function `parse_dep_file': > : undefined reference to `memcpy' > /tmp/ccb1vCvc.o(.text+0x614): In function `parse_dep_file': > : undefined reference to `printf' > /tmp/ccb1vCvc.o(.text+0x6a4): In function `parse_dep_file': > : undefined reference to `memcpy' > /tmp/ccb1vCvc.o(.text+0x704): In function `parse_dep_file': > : undefined reference to `printf' > /tmp/ccb1vCvc.o(.text+0x714): In function `parse_dep_file': > : undefined reference to `printf' > /tmp/ccb1vCvc.o(.text+0x7b8): In function `parse_dep_file': > : undefined reference to `printf' > /tmp/ccb1vCvc.o(.text+0x7d0): In function `parse_dep_file': > : undefined reference to `_impure_ptr' > /tmp/ccb1vCvc.o(.text+0x7d0): In function `parse_dep_file': > : relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr > /tmp/ccb1vCvc.o(.text+0x7e4): In function `parse_dep_file': > : undefined reference to `fwrite' > /tmp/ccb1vCvc.o(.text+0x7ec): In function `parse_dep_file': > : undefined reference to `exit' > /tmp/ccb1vCvc.o(.text+0x808): In function `print_deps': > : undefined reference to `open' > /tmp/ccb1vCvc.o(.text+0x820): In function `print_deps': > : undefined reference to `fstat' > /tmp/ccb1vCvc.o(.text+0x83c): In function `print_deps': > : undefined reference to `_impure_ptr' > /tmp/ccb1vCvc.o(.text+0x83c): In function `print_deps': > : relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr > /tmp/ccb1vCvc.o(.text+0x844): In function `print_deps': > : undefined reference to `fprintf' > /tmp/ccb1vCvc.o(.text+0x850): In function `print_deps': > : undefined reference to `close' > /tmp/ccb1vCvc.o(.text+0x868): In function `print_deps': > : undefined reference to `_impure_ptr' > /tmp/ccb1vCvc.o(.text+0x868): In function `print_deps': > : relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr > /tmp/ccb1vCvc.o(.text+0x87c): In function `print_deps': > : undefined reference to `fwrite' > /tmp/ccb1vCvc.o(.text+0x884): In function `print_deps': > : undefined reference to `perror' > /tmp/ccb1vCvc.o(.text+0x88c): In function `print_deps': > : undefined reference to `exit' > /tmp/ccb1vCvc.o(.text+0x8a4): In function `traps': > : undefined reference to `ntohl' > /tmp/ccb1vCvc.o(.text+0x8c0): In function `traps': > : undefined reference to `_impure_ptr' > /tmp/ccb1vCvc.o(.text+0x8c0): In function `traps': > : relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr > /tmp/ccb1vCvc.o(.text+0x8cc): In function `traps': > : undefined reference to `fprintf' > /tmp/ccb1vCvc.o(.text+0x8d4): In function `traps': > : undefined reference to `exit' > /tmp/ccb1vCvc.o(.sdata+0x0): undefined reference to `_ctype_' > collect2: ld returned 1 exit status > make[2]: *** [scripts/basic/fixdep] Error 1 > make[1]: *** [scripts_basic] Error 2 > make: *** [include/linux/autoconf.h] Error 2 > > ****************************************************************************************** > > Hope it will help you to sort it out the problem. > > Thanks > Krishna > > > Gowri Satish Adimulam wrote: > Hi, > could you post the error message , so that group members can > analyse and > post you correct solution. > > Gowri > On Thu, 2006-03-23 at 23:45 -0800, Krishna wrote: > > Hi, > > > > I have been trying to cross compile Linux/MIPS kernel > verison 2.4.16 > > with the specifix's sibyte cross compiler (sb1-elf cross > compilers for > > x86 linux hosts) for BCM 1480 Broadcom board. I have set the > path for > > cross compiler properly in make file even then the > compilation failed. > > Then we tried adding parameter " -Tcfe.ld" (which is must > for > > compilation) in compilation command (as has been suggested > by > > broadcom) still unble to get it done correctly. Wondering > what else we > > need to change in make file. Or else is there any other > cross compiler > > for BCM 1480 (than specifix one) that we can use. Anyone > suggest me > > the proper way for compiling the kernel with the above cross > > compiler. > > > > Thanks and Regards > > Krishna > > > > > ______________________________________________________________________ > > New Yahoo! Messenger with Voice. Call regular phones from > your PC and > > save big. > > > > > > ______________________________________________________________________ > Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! > Messenger with Voice. From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 24 Mar 2006 11:25:34 +0000 (GMT) Received: from localhost.localdomain ([127.0.0.1]:33157 "EHLO bacchus.dhis.org") by ftp.linux-mips.org with ESMTP id S8133898AbWCXLZZ (ORCPT ); Fri, 24 Mar 2006 11:25:25 +0000 Received: from denk.linux-mips.net (denk.linux-mips.net [127.0.0.1]) by bacchus.dhis.org (8.13.6/8.13.4) with ESMTP id k2OBZRjt003720; Fri, 24 Mar 2006 11:35:27 GMT Received: (from ralf@localhost) by denk.linux-mips.net (8.13.6/8.13.6/Submit) id k2OBZQIP003719; Fri, 24 Mar 2006 11:35:26 GMT Date: Fri, 24 Mar 2006 11:35:26 +0000 From: Ralf Baechle To: dhunjukrishna@gmail.com Cc: linux-mips@linux-mips.org Subject: Re: Compilation problem with kernel 2.4.16 Message-ID: <20060324113525.GA3250@linux-mips.org> References: <20060324083141.GB3170@linux-mips.org> <20060324094916.96936.qmail@web53503.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060324094916.96936.qmail@web53503.mail.yahoo.com> User-Agent: Mutt/1.4.2.1i Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 10925 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ralf@linux-mips.org Precedence: bulk X-list: linux-mips On Fri, Mar 24, 2006 at 01:49:16AM -0800, Krishna wrote: > Sorry I mentioned version incorrectly. It is 2.6.14. The compiler i m using > is sb1-elf-gcc (which i downloaded from > www.broadcom.com/products/sibyte_downloads.php#toolchain). Her is the error description: The *-elf gcc configuration will not work for compiling Linux/MIPS or applications; you need a mips-linux target. > ********************************************** > Makefile:489: .config: No such file or directory > scripts/basic/fixdep.c: In function `parse_config_file': > scripts/basic/fixdep.c:228: warning: implicit declaration of function `ntohl' > scripts/basic/fixdep.c: In function `print_deps': > scripts/basic/fixdep.c:336: warning: unused variable `map' > /home1/guest/vikram/COMPILER/specifix/broadcom_2004e_341/i686-pc-linux-gnu/bin/../lib/gcc/sb1-elf/3.4.1/../../../../sb1-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000400040 > /tmp/ccb1vCvc.o(.text+0x4): In function `usage': > : undefined reference to `_impure_ptr' > /tmp/ccb1vCvc.o(.text+0x4): In function `usage': > : relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr These messages seem to indicate you did something bad to the makefiles. The crosscompiler is being invoked where the target compiler should be. Ralf From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 24 Mar 2006 13:20:06 +0000 (GMT) Received: from web53514.mail.yahoo.com ([206.190.39.68]:42857 "HELO web53514.mail.yahoo.com") by ftp.linux-mips.org with SMTP id S8133904AbWCXNT4 (ORCPT ); Fri, 24 Mar 2006 13:19:56 +0000 Received: (qmail 96165 invoked by uid 60001); 24 Mar 2006 13:29:54 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ac54qI2Z+MNXAJwBWEiimKjNV57De3szFhgpci8sIVhnN0lW59u8c1+oKpcVK1fU6EMXxhsohXonVTAF2yX+sRKbrtbkAd/hoSRlzJitDXqdH+xAA9PlcKPXoF8ZD5i+ZZjZKMF43dMRTN8GX0384RbfOauiiCvIN9s9jX+cELk= ; Message-ID: <20060324132954.96163.qmail@web53514.mail.yahoo.com> Received: from [203.145.155.11] by web53514.mail.yahoo.com via HTTP; Fri, 24 Mar 2006 05:29:54 PST Date: Fri, 24 Mar 2006 05:29:54 -0800 (PST) From: Krishna Reply-To: dhunjukrishna@gmail.com Subject: Re: Compilation problem with kernel 2.4.16 To: Ralf Baechle Cc: linux-mips@linux-mips.org In-Reply-To: <20060324113525.GA3250@linux-mips.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2012749339-1143206994=:96010" Content-Transfer-Encoding: 8bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 10927 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: dhunjukrishna@yahoo.com Precedence: bulk X-list: linux-mips --0-2012749339-1143206994=:96010 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit then will u please suggest me which compiler to use to compile kernel 2.6.14 for BCM1480 or else where i get the proper compiler. Ralf Baechle wrote: On Fri, Mar 24, 2006 at 01:49:16AM -0800, Krishna wrote: > Sorry I mentioned version incorrectly. It is 2.6.14. The compiler i m using > is sb1-elf-gcc (which i downloaded from > www.broadcom.com/products/sibyte_downloads.php#toolchain). Her is the error description: The *-elf gcc configuration will not work for compiling Linux/MIPS or applications; you need a mips-linux target. > ********************************************** > Makefile:489: .config: No such file or directory > scripts/basic/fixdep.c: In function `parse_config_file': > scripts/basic/fixdep.c:228: warning: implicit declaration of function `ntohl' > scripts/basic/fixdep.c: In function `print_deps': > scripts/basic/fixdep.c:336: warning: unused variable `map' > /home1/guest/vikram/COMPILER/specifix/broadcom_2004e_341/i686-pc-linux-gnu/bin/../lib/gcc/sb1-elf/3.4.1/../../../../sb1-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000400040 > /tmp/ccb1vCvc.o(.text+0x4): In function `usage': > : undefined reference to `_impure_ptr' > /tmp/ccb1vCvc.o(.text+0x4): In function `usage': > : relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr These messages seem to indicate you did something bad to the makefiles. The crosscompiler is being invoked where the target compiler should be. Ralf *Krishna* --------------------------------- Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. --0-2012749339-1143206994=:96010 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit then will u please suggest me which compiler to use to compile kernel 2.6.14 for BCM1480 or else where i get the proper compiler.

Ralf Baechle <ralf@linux-mips.org> wrote:
On Fri, Mar 24, 2006 at 01:49:16AM -0800, Krishna wrote:

> Sorry I mentioned version incorrectly. It is 2.6.14. The compiler i m using
> is sb1-elf-gcc (which i downloaded from
> www.broadcom.com/products/sibyte_downloads.php#toolchain). Her is the error description:

The *-elf gcc configuration will not work for compiling Linux/MIPS or
applications; you need a mips-linux target.

> **********************************************
> Makefile:489: .config: No such file or directory
> scripts/basic/fixdep.c: In function `parse_config_file':
> scripts/basic/fixdep.c:228: warning: implicit declaration of function `ntohl'
> scripts/basic/fixdep.c: In function `print_deps':
> scripts/basic/fixdep.c:336: warning: unused variable `map'
> /home1/guest/vikram/COMPILER/specifix/broadcom_2004e_341/i686-pc-linux-gnu/bin/../lib/gcc/sb1-elf/3.4.1/../../../../sb1-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000400040
> /tmp/ccb1vCvc.o(.text+0x4): In function `usage':
> : undefined reference to `_impure_ptr'
> /tmp/ccb1vCvc.o(.text+0x4): In function `usage':
> : relocation truncated to fit: R_MIPS_GPREL16 _impure_ptr

These messages seem to indicate you did something bad to the makefiles.
The crosscompiler is being invoked where the target compiler should be.

Ralf




*Krishna*


Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. --0-2012749339-1143206994=:96010-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 24 Mar 2006 21:25:49 +0000 (GMT) Received: from w099.z064220152.sjc-ca.dsl.cnc.net ([64.220.152.99]:55752 "EHLO duck.specifix.com") by ftp.linux-mips.org with ESMTP id S8133917AbWCXVZk (ORCPT ); Fri, 24 Mar 2006 21:25:40 +0000 Received: from [127.0.0.1] (duck.corp.specifix.com [192.168.1.1]) by duck.specifix.com (Postfix) with ESMTP id 0E1FB41E5; Fri, 24 Mar 2006 13:35:40 -0800 (PST) Subject: Re: Compilation problem with kernel 2.4.16 From: James E Wilson To: dhunjukrishna@gmail.com Cc: linux-mips@linux-mips.org In-Reply-To: <20060324082842.68469.qmail@web53506.mail.yahoo.com> References: <20060324082842.68469.qmail@web53506.mail.yahoo.com> Content-Type: text/plain Message-Id: <1143236139.13187.55.camel@aretha.corp.specifix.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 24 Mar 2006 13:35:40 -0800 Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 10934 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: wilson@specifix.com Precedence: bulk X-list: linux-mips On Fri, 2006-03-24 at 00:28, Krishna wrote: > scripts/basic/fixdep.c: In function `print_deps': > scripts/basic/fixdep.c:336: warning: unused variable `map' > /home1/guest/vikram/COMPILER/specifix/broadcom_2004e_341/i686-pc-linux-gnu/bin/../lib/gcc/sb1-elf/3.4.1/../../../../sb1-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000400040 You apparently have something like HOSTCC=sb1-elf-gcc in your linux kernel Makefile. This will not work. The host compiler is the compiler for the machine that you are building the linux kernel on. This will normally be just "cc" or "gcc". The other problem is that you have apparently set CROSS-COMPILE to sb1-elf- which will also not work. This must be either mips-linux- or mips64-linux- (if you want a 64-bit kernel) as others have already mentioned. You can use the specifix toolchain release to build the linux kernel. However, you can't use the sb1-elf binaries. These are only for building embedded applications that run on top of CFE without an OS. To build the linux kernel, you need to grab the sources (which are just FSF gcc-3.4.x with some SB-1 support backported), configure them for mips-linux (or mips64-linux), and then build and install them. You can then use this compile to build the linux kernel. There is a learning curve here if you have never done this before. There is probably a FAQ somewhere that explains how to do this. I don't know offhand where to look for linux kernel building FAQs. Perhaps someone else can point you at one. -- Jim Wilson, GNU Tools Support, http://www.specifix.com From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 24 Mar 2006 22:30:09 +0000 (GMT) Received: from localhost.localdomain ([127.0.0.1]:18578 "EHLO bacchus.dhis.org") by ftp.linux-mips.org with ESMTP id S8133923AbWCXWaB (ORCPT ); Fri, 24 Mar 2006 22:30:01 +0000 Received: from denk.linux-mips.net (denk.linux-mips.net [127.0.0.1]) by bacchus.dhis.org (8.13.6/8.13.4) with ESMTP id k2OMe6Pl004450; Fri, 24 Mar 2006 22:40:06 GMT Received: (from ralf@localhost) by denk.linux-mips.net (8.13.6/8.13.6/Submit) id k2OMe6Pm004449; Fri, 24 Mar 2006 22:40:06 GMT Date: Fri, 24 Mar 2006 22:40:06 +0000 From: Ralf Baechle To: James E Wilson Cc: dhunjukrishna@gmail.com, linux-mips@linux-mips.org Subject: Re: Compilation problem with kernel 2.4.16 Message-ID: <20060324224005.GA4145@linux-mips.org> References: <20060324082842.68469.qmail@web53506.mail.yahoo.com> <1143236139.13187.55.camel@aretha.corp.specifix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1143236139.13187.55.camel@aretha.corp.specifix.com> User-Agent: Mutt/1.4.2.1i Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 10935 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ralf@linux-mips.org Precedence: bulk X-list: linux-mips On Fri, Mar 24, 2006 at 01:35:40PM -0800, James E Wilson wrote: > You can use the specifix toolchain release to build the linux kernel. > However, you can't use the sb1-elf binaries. These are only for > building embedded applications that run on top of CFE without an OS. To > build the linux kernel, you need to grab the sources (which are just FSF > gcc-3.4.x with some SB-1 support backported), configure them for > mips-linux (or mips64-linux), and then build and install them. You can > then use this compile to build the linux kernel. > > There is a learning curve here if you have never done this before. > There is probably a FAQ somewhere that explains how to do this. I don't > know offhand where to look for linux kernel building FAQs. Perhaps > someone else can point you at one. There is a lot of information in the wiki http://www.linux-mips.org/ and I would like to encourage people to contribute to it. Editing a wiki page _once_ is more productive than answering the same question again and again ... In particular I also want to encourage the mere mortals to contribute to the wikis. Ralf From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 28 Mar 2006 11:25:56 +0100 (BST) Received: from web53509.mail.yahoo.com ([206.190.37.70]:7800 "HELO web53509.mail.yahoo.com") by ftp.linux-mips.org with SMTP id S8133503AbWC1KZk (ORCPT ); Tue, 28 Mar 2006 11:25:40 +0100 Received: (qmail 25989 invoked by uid 60001); 28 Mar 2006 10:35:57 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=pabLsVQJTI865QrmFnvA0w34CTs9U0cm5eXHWhPnOfFp4mT7mi6z7rI8/oWTx9Gk9MERDCJaF1h/U6dGFaIQwThXnpZJHh2OFqIX7/kZGROewoDe6Q25jp7BBPESalW0KWomOqUs7L6Hf3jK4hhYglum5PcM/pqbNa9YG3eHoZU= ; Message-ID: <20060328103557.25987.qmail@web53509.mail.yahoo.com> Received: from [203.145.155.11] by web53509.mail.yahoo.com via HTTP; Tue, 28 Mar 2006 02:35:57 PST Date: Tue, 28 Mar 2006 02:35:57 -0800 (PST) From: Krishna Reply-To: dhunjukrishna@gmail.com Subject: building cross compiler for compiling kernel 2.6.14 for BCM1480 To: Ralf Baechle Cc: linux-mips@linux-mips.org In-Reply-To: <20060324224005.GA4145@linux-mips.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1406943364-1143542157=:21489" Content-Transfer-Encoding: 8bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 10955 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: dhunjukrishna@yahoo.com Precedence: bulk X-list: linux-mips --0-1406943364-1143542157=:21489 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I went to the site (http://www.linux-mips.org/wiki/Toolchains > Pre-built/Build Kits ).. Downloaded the following tools -binutils-2.16.1 -gcc-4.1.0 -gdb-6.4 And followed the installation instruction as described there. First installed binutils successfully. But got follwing error while doing make -j2 in the process of installing gcc-4.1.c: checking for --enable-version-specific-runtime-libs... no checking whether to enable maintainer-specific portions of Makefiles... no checking for mipsel-unknown-linux-gnu-gcc... /home/ssf/bdcom/tools-cross-toolchains/build-gcc-bootstrap/./gcc/xgcc -B/home/ssf/bdcom/tools-cross-toolchains/build-gcc-bootstrap/./gcc/ -B/home/ssf/bdcom/cross-compilers/mips-linux/mipsel-unknown-linux-gnu/bin/ -B/home/ssf/bdcom/cross-compilers/mips-linux/mipsel-unknown-linux-gnu/lib/ -isystem /home/ssf/bdcom/cross-compilers/mips-linux/mipsel-unknown-linux-gnu/include -isystem /home/ssf/bdcom/cross-compilers/mips-linux/mipsel-unknown-linux-gnu/sys-include checking for C compiler default output file name... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking whether byte ordering is bigendian... no checking for a BSD-compatible install... /usr/bin/install -c checking for sys/file.h... no checking for sys/param.h... no checking for limits.h... yes checking for stdlib.h... no checking for malloc.h... no checking for string.h... no checking for unistd.h... no checking for strings.h... no checking for sys/time.h... no checking for time.h... no checking for sys/resource.h... no checking for sys/stat.h... no checking for sys/mman.h... no checking for fcntl.h... no checking for alloca.h... no checking for sys/pstat.h... no checking for sys/sysmp.h... no checking for sys/sysinfo.h... no checking for machine/hal_sysinfo.h... no checking for sys/table.h... no checking for sys/sysctl.h... no checking for sys/systemcfg.h... no checking for stdint.h... no checking for stdio_ext.h... no checking for sys/wait.h that is POSIX.1 compatible... no checking whether time.h and sys/time.h may both be included... no checking whether errno must be declared... yes checking for egrep... grep -E checking for ANSI C header files... no checking for sys/types.h... no checking for sys/stat.h... (cached) no checking for stdlib.h... (cached) no checking for string.h... (cached) no checking for memory.h... no checking for strings.h... (cached) no checking for inttypes.h... no checking for stdint.h... (cached) no checking for unistd.h... (cached) no checking for int... no checking size of int... 0 checking for uintptr_t... no checking for a 64-bit type... unsigned long long checking for pid_t... no checking for library containing strerror... make[1]: Leaving directory `/home/ssf/bdcom/tools-cross-toolchains/build-gcc-b configure:error: C compiler cannot create executables See 'config.log' for more details. make[1]: *** [configure-target-libmudflap] Error 1 make[1]: *** Waiting for unfinished jobs.... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[1]: *** [configure-target-libiberty] Error 1 make: *** [all] Error 2 Here is the config.log file: configure:600: checking host system type configure:621: checking target system type configure:639: checking build system type configure:694: checking for a BSD compatible install configure:747: checking whether ln works configure:771: checking whether ln -s works configure:1825: checking for gcc configure:1938: checking whether the C compiler (gcc ) works configure:1954: gcc -o conftest conftest.c 1>&5 configure:1980: checking whether the C compiler (gcc ) is a cross-compiler configure:1985: checking whether we are using GNU C configure:2013: checking whether gcc accepts -g configure:2080: checking for gnatbind configure:2145: checking whether compiler driver understands Ada configure:2177: checking how to compare bootstrapped objects configure:2275: checking for correct version of gmp.h configure:2288: gcc -c -g -O2 conftest.c 1>&5 configure:2301: checking for MPFR configure:2314: gcc -o conftest -g -O2 conftest.c -lmpfr -lgmp 1>&5 configure:3313: checking for bison configure:3353: checking for bison configure:3392: checking for gm4 configure:3431: checking for flex configure:3471: checking for flex configure:3510: checking for makeinfo configure:3563: checking for expect configure:3604: checking for runtest configure:3652: checking for i686-pc-linux-gnu-ar configure:3727: checking for i686-pc-linux-gnu-as configure:3802: checking for i686-pc-linux-gnu-dlltool configure:3833: checking for dlltool configure:3877: checking for i686-pc-linux-gnu-ld configure:3952: checking for i686-pc-linux-gnu-lipo configure:3983: checking for lipo configure:4027: checking for i686-pc-linux-gnu-nm configure:4102: checking for i686-pc-linux-gnu-ranlib configure:4172: checking for i686-pc-linux-gnu-strip configure:4242: checking for i686-pc-linux-gnu-windres configure:4273: checking for windres configure:4317: checking for i686-pc-linux-gnu-objcopy configure:4392: checking for i686-pc-linux-gnu-objdump configure:4474: checking for mipsel-unknown-linux-gnu-ar configure:4549: checking for mipsel-unknown-linux-gnu-as configure:4624: checking for mipsel-unknown-linux-gnu-cc configure:4624: checking for mipsel-unknown-linux-gnu-gcc configure:4699: checking for mipsel-unknown-linux-gnu-c++ configure:4699: checking for mipsel-unknown-linux-gnu-g++ configure:4699: checking for mipsel-unknown-linux-gnu-cxx configure:4699: checking for mipsel-unknown-linux-gnu-gxx configure:4774: checking for mipsel-unknown-linux-gnu-dlltool configure:4849: checking for mipsel-unknown-linux-gnu-gcc configure:4919: checking for mipsel-unknown-linux-gnu-gcj configure:4994: checking for mipsel-unknown-linux-gnu-gfortran configure:5069: checking for mipsel-unknown-linux-gnu-ld configure:5144: checking for mipsel-unknown-linux-gnu-lipo configure:5219: checking for mipsel-unknown-linux-gnu-nm configure:5294: checking for mipsel-unknown-linux-gnu-objdump configure:5369: checking for mipsel-unknown-linux-gnu-ranlib configure:5439: checking for mipsel-unknown-linux-gnu-strip configure:5514: checking for mipsel-unknown-linux-gnu-windres configure:5588: checking where to find the target ar configure:5613: checking where to find the target as configure:5638: checking where to find the target cc configure:5663: checking where to find the target c++ configure:5691: checking where to find the target c++ for libstdc++ configure:5719: checking where to find the target dlltool configure:5744: checking where to find the target gcc configure:5769: checking where to find the target gcj configure:5797: checking where to find the target gfortran configure:5825: checking where to find the target ld configure:5850: checking where to find the target lipo configure:5865: checking where to find the target nm configure:5890: checking where to find the target objdump configure:5915: checking where to find the target ranlib configure:5940: checking where to find the target strip configure:5965: checking where to find the target windres configure:6018: checking whether to enable maintainer-specific portions of Makefiles configure:6065: checking if symbolic links between directories work Then i searched through the net for the procedure and found one like this: ../configure --with-system-zlib --libexecdir=/usr/lib --prefix=/usr/local/gcc-4.0.2 --enable-shared --with-arch=sb1 --with-tune=sb1 --without-included-gettext --enable-nls --program-suffix=-4.0.2 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --with-target=mips64-linux I tried with this also but did not work. Again big list of errors. Then searched for more and it seems that i need to have glibc. So i downleded glibc-2.16.1 also. Now don't know where to start. Let me make u clear that I am new to this. Getting hard to figure out problems. can anyone please tell me the exact procedure or let me know where i can find the correct reference for the tools needed doing all the stuffs from making a cross compiler for sb1 (BCM1480) and then cross compiling kernel 2.6.14. Thanks and Regards, Krishna There is a lot of information in the wiki http://www.linux-mips.org/ and I would like to encourage people to contribute to it. Editing a wiki page _once_ is more productive than answering the same question again and again ... In particular I also want to encourage the mere mortals to contribute to the wikis. Ralf --------------------------------- Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. --0-1406943364-1143542157=:21489 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
I went to the site (http://www.linux-mips.org/wiki/Toolchains > Pre-built/Build Kits ).. Downloaded the following tools
-binutils-2.16.1
-gcc-4.1.0
-gdb-6.4
And followed the installation instruction as described there. First installed binutils successfully. But got follwing error while doing make -j2 in the process of installing gcc-4.1.c:

checking for --enable-version-specific-runtime-libs... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for mipsel-unknown-linux-gnu-gcc...
/home/ssf/bdcom/tools-cross-toolchains/build-gcc-bootstrap/./gcc/xgcc
-B/home/ssf/bdcom/tools-cross-toolchains/build-gcc-bootstrap/./gcc/
-B/home/ssf/bdcom/cross-compilers/mips-linux/mipsel-unknown-linux-gnu/bin/
-B/home/ssf/bdcom/cross-compilers/mips-linux/mipsel-unknown-linux-gnu/lib/ -isystem
/home/ssf/bdcom/cross-compilers/mips-linux/mipsel-unknown-linux-gnu/include -isystem
/home/ssf/bdcom/cross-compilers/mips-linux/mipsel-unknown-linux-gnu/sys-include
checking for C compiler default output file name... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for sys/file.h... no
checking for sys/param.h... no
checking for limits.h... yes
checking for stdlib.h... no
checking for malloc.h... no
checking for string.h... no
checking for unistd.h... no
checking for strings.h... no
checking for sys/time.h... no
checking for time.h... no
checking for sys/resource.h... no
checking for sys/stat.h... no
checking for sys/mman.h... no
checking for fcntl.h... no
checking for alloca.h... no
checking for sys/pstat.h... no
checking for sys/sysmp.h... no
checking for sys/sysinfo.h... no
checking for machine/hal_sysinfo.h... no
checking for sys/table.h... no
checking for sys/sysctl.h... no
checking for sys/systemcfg.h... no
checking for stdint.h... no
checking for stdio_ext.h... no
checking for sys/wait.h that is POSIX.1 compatible... no
checking whether time.h and sys/time.h may both be included... no
checking whether errno must be declared... yes
checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... (cached) no
checking for stdlib.h... (cached) no
checking for string.h... (cached) no
checking for memory.h... no
checking for strings.h... (cached) no
checking for inttypes.h... no
checking for stdint.h... (cached) no
checking for unistd.h... (cached) no
checking for int... no
checking size of int... 0
checking for uintptr_t... no
checking for a 64-bit type... unsigned long long
checking for pid_t... no
checking for library containing strerror... make[1]: Leaving directory
`/home/ssf/bdcom/tools-cross-toolchains/build-gcc-b
configure:error: C compiler cannot create executables
See 'config.log' for more details.
make[1]: *** [configure-target-libmudflap] Error 1
make[1]: *** Waiting for unfinished jobs....
configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[1]: *** [configure-target-libiberty] Error 1
make: *** [all] Error 2
Here is the config.log file:
configure:600: checking host system type
configure:621: checking target system type
configure:639: checking build system type
configure:694: checking for a BSD compatible install
configure:747: checking whether ln works
configure:771: checking whether ln -s works
configure:1825: checking for gcc
configure:1938: checking whether the C compiler (gcc  ) works
configure:1954: gcc -o conftest    conftest.c  1>&5
configure:1980: checking whether the C compiler (gcc  ) is a cross-compiler
configure:1985: checking whether we are using GNU C
configure:2013: checking whether gcc accepts -g
configure:2080: checking for gnatbind
configure:2145: checking whether compiler driver understands Ada
configure:2177: checking how to compare bootstrapped objects
configure:2275: checking for correct version of gmp.h
configure:2288: gcc -c -g -O2   conftest.c 1>&5
configure:2301: checking for MPFR
configure:2314: gcc -o conftest -g -O2    conftest.c  -lmpfr -lgmp 1>&5
configure:3313: checking for bison
configure:3353: checking for bison
configure:3392: checking for gm4
configure:3431: checking for flex
configure:3471: checking for flex
configure:3510: checking for makeinfo
configure:3563: checking for expect
configure:3604: checking for runtest
configure:3652: checking for i686-pc-linux-gnu-ar
configure:3727: checking for i686-pc-linux-gnu-as
configure:3802: checking for i686-pc-linux-gnu-dlltool
configure:3833: checking for dlltool
configure:3877: checking for i686-pc-linux-gnu-ld
configure:3952: checking for i686-pc-linux-gnu-lipo
configure:3983: checking for lipo
configure:4027: checking for i686-pc-linux-gnu-nm
configure:4102: checking for i686-pc-linux-gnu-ranlib
configure:4172: checking for i686-pc-linux-gnu-strip
configure:4242: checking for i686-pc-linux-gnu-windres
configure:4273: checking for windres
configure:4317: checking for i686-pc-linux-gnu-objcopy
configure:4392: checking for i686-pc-linux-gnu-objdump
configure:4474: checking for mipsel-unknown-linux-gnu-ar
configure:4549: checking for mipsel-unknown-linux-gnu-as
configure:4624: checking for mipsel-unknown-linux-gnu-cc
configure:4624: checking for mipsel-unknown-linux-gnu-gcc
configure:4699: checking for mipsel-unknown-linux-gnu-c++
configure:4699: checking for mipsel-unknown-linux-gnu-g++
configure:4699: checking for mipsel-unknown-linux-gnu-cxx
configure:4699: checking for mipsel-unknown-linux-gnu-gxx
configure:4774: checking for mipsel-unknown-linux-gnu-dlltool
configure:4849: checking for mipsel-unknown-linux-gnu-gcc
configure:4919: checking for mipsel-unknown-linux-gnu-gcj
configure:4994: checking for mipsel-unknown-linux-gnu-gfortran
configure:5069: checking for mipsel-unknown-linux-gnu-ld
configure:5144: checking for mipsel-unknown-linux-gnu-lipo
configure:5219: checking for mipsel-unknown-linux-gnu-nm
configure:5294: checking for mipsel-unknown-linux-gnu-objdump
configure:5369: checking for mipsel-unknown-linux-gnu-ranlib
configure:5439: checking for mipsel-unknown-linux-gnu-strip
configure:5514: checking for mipsel-unknown-linux-gnu-windres
configure:5588: checking where to find the target ar
configure:5613: checking where to find the target as
configure:5638: checking where to find the target cc
configure:5663: checking where to find the target c++
configure:5691: checking where to find the target c++ for libstdc++
configure:5719: checking where to find the target dlltool
configure:5744: checking where to find the target gcc
configure:5769: checking where to find the target gcj
configure:5797: checking where to find the target gfortran
configure:5825: checking where to find the target ld
configure:5850: checking where to find the target lipo
configure:5865: checking where to find the target nm
configure:5890: checking where to find the target objdump
configure:5915: checking where to find the target ranlib
configure:5940: checking where to find the target strip
configure:5965: checking where to find the target windres
configure:6018: checking whether to enable maintainer-specific portions of Makefiles
configure:6065: checking if symbolic links between directories work

Then i searched through the net for the procedure and found one
like this:
 ../configure   --with-system-zlib --libexecdir=/usr/lib
--prefix=/usr/local/gcc-4.0.2 --enable-shared --with-arch=sb1
--with-tune=sb1 --without-included-gettext --enable-nls
--program-suffix=-4.0.2 --enable-__cxa_atexit
--enable-libstdcxx-allocator=mt --with-target=mips64-linux
I tried with this also but did not work. Again big list of errors. Then searched for more and it seems that i need to have glibc. So i downleded glibc-2.16.1 also.
Now don't know where to start. Let me make u clear that I am new to this. Getting hard to figure out problems. can anyone please tell me the
exact procedure or let me know where i can find the correct reference for the tools needed doing all the stuffs from making a cross compiler for sb1 (BCM1480) and then cross compiling kernel 2.6.14.
 
 
Thanks and Regards,
Krishna


There is a lot of information in the wiki http://www.linux-mips.org/ and
I would like to encourage people to contribute to it. Editing a wiki
page _once_ is more productive than answering the same question again
and again ... In particular I also want to encourage the mere mortals
to contribute to the wikis.

Ralf


Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. --0-1406943364-1143542157=:21489-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 28 Mar 2006 11:47:01 +0100 (BST) Received: from topsns2.toshiba-tops.co.jp ([202.230.225.126]:59616 "EHLO topsns2.toshiba-tops.co.jp") by ftp.linux-mips.org with ESMTP id S8133469AbWC1Kqw (ORCPT ); Tue, 28 Mar 2006 11:46:52 +0100 Received: from topsms.toshiba-tops.co.jp by topsns2.toshiba-tops.co.jp via smtpd (for ftp.linux-mips.org [194.74.144.162]) with ESMTP; Tue, 28 Mar 2006 19:57:17 +0900 Received: from topsms.toshiba-tops.co.jp (localhost.localdomain [127.0.0.1]) by localhost.toshiba-tops.co.jp (Postfix) with ESMTP id 204052049D; Tue, 28 Mar 2006 19:57:15 +0900 (JST) Received: from srd2sd.toshiba-tops.co.jp (srd2sd.toshiba-tops.co.jp [172.17.28.2]) by topsms.toshiba-tops.co.jp (Postfix) with ESMTP id 13273203EE; Tue, 28 Mar 2006 19:57:15 +0900 (JST) Received: from localhost (fragile [172.17.28.65]) by srd2sd.toshiba-tops.co.jp (8.12.10/8.12.10) with ESMTP id k2SAvE4D086802; Tue, 28 Mar 2006 19:57:14 +0900 (JST) (envelope-from anemo@mba.ocn.ne.jp) Date: Tue, 28 Mar 2006 19:57:14 +0900 (JST) Message-Id: <20060328.195714.21363712.nemoto@toshiba-tops.co.jp> To: dhunjukrishna@gmail.com, dhunjukrishna@yahoo.com Cc: ralf@linux-mips.org, linux-mips@linux-mips.org Subject: Re: building cross compiler for compiling kernel 2.6.14 for BCM1480 From: Atsushi Nemoto In-Reply-To: <20060328103557.25987.qmail@web53509.mail.yahoo.com> References: <20060324224005.GA4145@linux-mips.org> <20060328103557.25987.qmail@web53509.mail.yahoo.com> X-Fingerprint: 6ACA 1623 39BD 9A94 9B1A B746 CA77 FE94 2874 D52F X-Pgp-Public-Key: http://wwwkeys.pgp.net/pks/lookup?op=get&search=0x2874D52F X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 10956 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: anemo@mba.ocn.ne.jp Precedence: bulk X-list: linux-mips >>>>> On Tue, 28 Mar 2006 02:35:57 -0800 (PST), Krishna said: > I went to the site (http://www.linux-mips.org/wiki/Toolchains > > Pre-built/Build Kits ).. Downloaded the following tools > -binutils-2.16.1 > -gcc-4.1.0 > -gdb-6.4 > And followed the installation instruction as described there. First > installed binutils successfully. But got follwing error while doing > make -j2 in the process of installing gcc-4.1.c: If you want to use gcc 4.1, Add --disable-libmudflap --disable-libssp when configuring the bootstrap gcc. These libraries are not required to compile linux kernel. --- Atsushi Nemoto