From: Haiying Wang Date: Tue, 9 Nov 2010 11:41:05 -0500 Subject: [U-Boot] nand spl build with wrong CONFIG_SYS_TEXT_BASE In-Reply-To: <20101109162343.31A76D314CE@gemini.denx.de> References: <1288970062.1855.44.camel@haiying-laptop> <20101107213129.CA432220@gemini.denx.de> <1289230710.1900.27.camel@haiying-laptop> <20101108163053.E973613077C4@gemini.denx.de> <1289240747.1900.58.camel@haiying-laptop> <20101108233626.82904D48956@gemini.denx.de> <1289314359.2168.20.camel@haiying-laptop> <20101109162343.31A76D314CE@gemini.denx.de> Message-ID: <1289320865.2168.92.camel@haiying-laptop> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, 2010-11-09 at 09:23 -0700, Wolfgang Denk wrote: > Dear Haiying Wang, > Is this all the error messages you get? Normally tehre should be > another message, for example: > > [filename]:[lineno]:[column]: warning: this is the location of the > previous definition > > or, if there was a "-DCONFIG_SYS_TEXT_BASE=..." on the command line: > > : warning: this is the location of the previous > definition It is in one of the error messages, there are others for the same error. Here is the total message when building tlb.c for nand_spl: powerpc-none-linux-gnuspe-gcc -g -Os -mrelocatable -fPIC -meabi -ffunction-sections -fdata-sections -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0xf8f82000 -DRESET_VECTOR_ADDRESS=0xeffffffc -I/home/haiying/u-boot-mpc85xx/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-linux-gnuspe/lib/gcc/powerpc-none-linux-gnuspe/4.3.2/include -pipe -DCONFIG_PPC -D__powerpc__ -ffixed-r2 -Wa,-me500 -msoft-float -mno-string -mspe=yes -mno-spe -Wall -Wstrict-prototypes -fno-stack-protector -DCONFIG_NAND_SPL -c -o tlb.o tlb.c In file included from /home/haiying/u-boot-mpc85xx/include/config.h:5, from /home/haiying/u-boot-mpc85xx/include/common.h:37, from tlb.c:26: /home/haiying/u-boot-mpc85xx/include/configs/MPC8536DS.h:40:1: warning: "CONFIG_SYS_TEXT_BASE" redefined : warning: this is the location of the previous definition > > > Here are the lines in MPC8536DS.h(using git diff result, so that the > > changes I made can be seen clearly)ing > > This doesn't help, as it doesn't show where the other definition is > coming from. The other definition comes from include/autoconf.mk, I think. Haiy