public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Build breaks on some OMAP3 configs
@ 2009-10-30 16:06 Gadiyar, Anand
  2009-10-30 16:47 ` Dirk Behme
  0 siblings, 1 reply; 11+ messages in thread
From: Gadiyar, Anand @ 2009-10-30 16:06 UTC (permalink / raw)
  To: u-boot

Hi,

I was trying to build u-boot for omap3_3430sdp and
omap3_zoom2, and the build fails with the error below.

I'm on commit f2b4bc0 from the master branch. I'm
using CodeSourcery's 2008q3 toolchain.
The commands I ran were:

make CROSS_COMPILE=arm-none-linux-gnueabi- omap3_3430sdp_config; make CROSS_COMPILE=arm-none-linux-gnueabi-

Any ideas what I'm doing wrong?

Thanks in advance,
Anand


make -C examples/standalone all
make[1]: Entering directory `/data/git/denx-uboot/u-boot/examples/standalone'
arm-none-linux-gnueabi-gcc -g  -Os   -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/data/git/denx-uboot/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /data/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -Wall -Wstrict-prototypes -fno-stack-protector -g  -Os   -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/data/git/denx-uboot/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /data/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -I.. -Bstatic -T u-boot.lds  -Ttext 0x80e80000     -o .c
arm-none-linux-gnueabi-gcc: no input files
make[1]: *** [.c] Error 1
make[1]: Leaving directory `/data/git/denx-uboot/u-boot/examples/standalone'
make: *** [examples/standalone] Error 2

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] Build breaks on some OMAP3 configs
  2009-10-30 16:06 Gadiyar, Anand
@ 2009-10-30 16:47 ` Dirk Behme
  2009-10-30 16:52   ` Nishanth Menon
  0 siblings, 1 reply; 11+ messages in thread
From: Dirk Behme @ 2009-10-30 16:47 UTC (permalink / raw)
  To: u-boot

Gadiyar, Anand wrote:
> Hi,
> 
> I was trying to build u-boot for omap3_3430sdp and
> omap3_zoom2, and the build fails with the error below.
> 
> I'm on commit f2b4bc0 from the master branch. I'm
> using CodeSourcery's 2008q3 toolchain.
> The commands I ran were:
> 
> make CROSS_COMPILE=arm-none-linux-gnueabi- omap3_3430sdp_config; make CROSS_COMPILE=arm-none-linux-gnueabi-
> 
> Any ideas what I'm doing wrong?

Not really. Maybe tool chain version? But most probably not...

I get:

 > ./MAKEALL ARM_CORTEX_A8
Configuring for devkit8000 board... 

    text    data     bss     dec     hex filename 

  192728    8604  214608  415940   658c4 ./u-boot 

Configuring for omap3_beagle board... 

    text    data     bss     dec     hex filename 

  170592    8104  201484  380180   5cd14 ./u-boot 

Configuring for omap3_overo board... 

    text    data     bss     dec     hex filename 

  174025    8164  210568  392757   5fe35 ./u-boot 

Configuring for omap3_evm board... 

    text    data     bss     dec     hex filename 

  162050    5436  216804  384290   5dd22 ./u-boot 

Configuring for omap3_pandora board... 

    text    data     bss     dec     hex filename 

  158199    7732  200672  366603   5980b ./u-boot
Configuring for omap3_sdp3430 board...
eth.c:497:2: warning: #warning Ethernet driver is deprecated. Please 
update to use CONFIG_NET_MULTI
    text    data     bss     dec     hex filename
  156478    4732  214932  376142   5bd4e ./u-boot
Configuring for omap3_zoom1 board...
    text    data     bss     dec     hex filename
  158979    7812  200672  367463   59b67 ./u-boot
Configuring for omap3_zoom2 board...
    text    data     bss     dec     hex filename
  130871    6676  199456  337003   5246b ./u-boot
Configuring for smdkc100 board...
    text    data     bss     dec     hex filename
  125532    6460  209660  341652   53694 ./u-boot

--------------------- SUMMARY ----------------------------
Boards compiled: 9
Boards with warnings or errors: 1 ( omap3_sdp3430 )
----------------------------------------------------------
 > arm-none-linux-gnueabi-gcc -v
....
gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203)
 > git log -n 1
commit f2b4bc04d6aed6be712d236dab48ac4c4da22cbf

Cheers

Dirk

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] Build breaks on some OMAP3 configs
  2009-10-30 16:47 ` Dirk Behme
@ 2009-10-30 16:52   ` Nishanth Menon
  2009-10-30 16:55     ` Gadiyar, Anand
  0 siblings, 1 reply; 11+ messages in thread
From: Nishanth Menon @ 2009-10-30 16:52 UTC (permalink / raw)
  To: u-boot

On Fri, Oct 30, 2009 at 6:47 PM, Dirk Behme <dirk.behme@googlemail.com> wrote:
> Gadiyar, Anand wrote:
>> Hi,
>>
>> I was trying to build u-boot for omap3_3430sdp and
>> omap3_zoom2, and the build fails with the error below.
>>
>> I'm on commit f2b4bc0 from the master branch. I'm
>> using CodeSourcery's 2008q3 toolchain.
>> The commands I ran were:
>>
>> make CROSS_COMPILE=arm-none-linux-gnueabi- omap3_3430sdp_config; make CROSS_COMPILE=arm-none-linux-gnueabi-
>>
>> Any ideas what I'm doing wrong?
>
> Not really. Maybe tool chain version? But most probably not...
[...]
could you point which tree you are working on?
Regards,
Nishanth Menon

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] Build breaks on some OMAP3 configs
@ 2009-10-30 16:54 Gadiyar, Anand
  2009-10-30 20:34 ` Nishanth Menon
  2009-11-06  9:04 ` Premi, Sanjeev
  0 siblings, 2 replies; 11+ messages in thread
From: Gadiyar, Anand @ 2009-10-30 16:54 UTC (permalink / raw)
  To: u-boot

> Hi,
> 
> I was trying to build u-boot for omap3_3430sdp and
> omap3_zoom2, and the build fails with the error below.
> 
> I'm on commit f2b4bc0 from the master branch. I'm
> using CodeSourcery's 2008q3 toolchain.
> The commands I ran were:
> 
> make CROSS_COMPILE=arm-none-linux-gnueabi- 
> omap3_3430sdp_config; make CROSS_COMPILE=arm-none-linux-gnueabi-
> 
> Any ideas what I'm doing wrong?
> 
> make -C examples/standalone all
> make[1]: Entering directory `/data/git/denx-uboot/u-boot/examples/standalone'
> arm-none-linux-gnueabi-gcc -g  -Os   -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/data/git/denx-uboot/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /data/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -Wall -Wstrict-prototypes -fno-stack-protector -g  -Os   -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/data/git/denx-uboot/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /data/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -I.. -Bstatic -T u-boot.lds  -Ttext 0x80e80000     -o .c
> arm-none-linux-gnueabi-gcc: no input files
> make[1]: *** [.c] Error 1
> make[1]: Leaving directory `/data/git/denx-uboot/u-boot/examples/standalone'
> make: *** [examples/standalone] Error 2


I took a look at examples/standalone/Makefile:

The patch below gets things going again. So looks like something
clobbered $(ELF-y). Any ideas what it could be?

Thanks in advance,
Anand

diff --git a/examples/standalone/Makefile b/examples/standalone/Makefile
index 5e2f2bc..73b19e9 100644
--- a/examples/standalone/Makefile
+++ b/examples/standalone/Makefile
@@ -39,6 +39,7 @@ ELF-ppc                          += sched
 ELF-oxc                          += eepro100_eeprom
 
 ELF := $(ELF-y) $(ELF-$(ARCH)) $(ELF-$(BOARD)) $(ELF-$(CPU))
+ELF := hello_world
 SREC = $(addsuffix .srec,$(ELF))
 BIN  = $(addsuffix .bin,$(ELF))
 

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [U-Boot] Build breaks on some OMAP3 configs
  2009-10-30 16:52   ` Nishanth Menon
@ 2009-10-30 16:55     ` Gadiyar, Anand
  0 siblings, 0 replies; 11+ messages in thread
From: Gadiyar, Anand @ 2009-10-30 16:55 UTC (permalink / raw)
  To: u-boot

Nishant Menon wrote: 
> On Fri, Oct 30, 2009 at 6:47 PM, Dirk Behme <dirk.behme@googlemail.com> wrote:
>> Gadiyar, Anand wrote:
>>> Hi,
>>>
>>> I was trying to build u-boot for omap3_3430sdp and
>>> omap3_zoom2, and the build fails with the error below.
>>>
>>> I'm on commit f2b4bc0 from the master branch. I'm
>>> using CodeSourcery's 2008q3 toolchain.
>>> The commands I ran were:
>>>
>>> make CROSS_COMPILE=arm-none-linux-gnueabi- omap3_3430sdp_config; make CROSS_COMPILE=arm-none-linux-gnueabi-
>>>
>>> Any ideas what I'm doing wrong?
>>
>> Not really. Maybe tool chain version? But most probably not...
> [...]
> could you point which tree you are working on?
> Regards,
> Nishanth Menon

This one:
git://git.denx.de/u-boot.git

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] Build breaks on some OMAP3 configs
  2009-10-30 16:54 [U-Boot] Build breaks on some OMAP3 configs Gadiyar, Anand
@ 2009-10-30 20:34 ` Nishanth Menon
  2009-10-30 21:35   ` Wolfgang Denk
  2009-11-06  9:04 ` Premi, Sanjeev
  1 sibling, 1 reply; 11+ messages in thread
From: Nishanth Menon @ 2009-10-30 20:34 UTC (permalink / raw)
  To: u-boot

Gadiyar, Anand said the following on 10/30/2009 06:54 PM:
>> Hi,
>>
>> I was trying to build u-boot for omap3_3430sdp and
>> omap3_zoom2, and the build fails with the error below.
>>
>> I'm on commit f2b4bc0 from the master branch. I'm
>> using CodeSourcery's 2008q3 toolchain.
>> The commands I ran were:
>>
>> make CROSS_COMPILE=arm-none-linux-gnueabi- 
>> omap3_3430sdp_config; make CROSS_COMPILE=arm-none-linux-gnueabi-
>>
>> Any ideas what I'm doing wrong?
>>
>> make -C examples/standalone all
>> make[1]: Entering directory `/data/git/denx-uboot/u-boot/examples/standalone'
>> arm-none-linux-gnueabi-gcc -g  -Os   -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/data/git/denx-uboot/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /data/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -Wall -Wstrict-prototypes -fno-stack-protector -g  -Os   -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/data/git/denx-uboot/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /data/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -I.. -Bstatic -T u-boot.lds  -Ttext 0x80e80000     -o .c
>> arm-none-linux-gnueabi-gcc: no input files
>> make[1]: *** [.c] Error 1
>> make[1]: Leaving directory `/data/git/denx-uboot/u-boot/examples/standalone'
>> make: *** [examples/standalone] Error 2
>>     
>
>
> I took a look at examples/standalone/Makefile:
>
> The patch below gets things going again. So looks like something
> clobbered $(ELF-y). Any ideas what it could be?
>
> Thanks in advance,
> Anand
>
> diff --git a/examples/standalone/Makefile b/examples/standalone/Makefile
> index 5e2f2bc..73b19e9 100644
> --- a/examples/standalone/Makefile
> +++ b/examples/standalone/Makefile
> @@ -39,6 +39,7 @@ ELF-ppc                          += sched
>  ELF-oxc                          += eepro100_eeprom
>  
>  ELF := $(ELF-y) $(ELF-$(ARCH)) $(ELF-$(BOARD)) $(ELF-$(CPU))
> +ELF := hello_world
>  SREC = $(addsuffix .srec,$(ELF))
>  BIN  = $(addsuffix .bin,$(ELF))
>   
The build command i use is this:
alias mymake='make ARCH=ARM CROSS_COMPILE=arm-none-linux-gnueabi- V=1 -j2'


though on a fresh clone, I seem to have run into a wierd issue ->
MAKEALL seems to build things fine, but if I:
mymake distclean
rm -rvf *
git reset --hard
mymake omap3_sdp3430_config
mymake
[....]
arm-none-linux-gnueabi-gcc  -g  -Os   -fno-common -ffixed-r8
-msoft-float   -D__KERNEL__ -DTEXT_BASE=0x80e80000
-I/home/nmenon/Src/r/x/u-boot/include -fno-builtin -ffreestanding
-nostdinc -isystem
/home/opt/tools/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/include
-pipe  -march=armv5 -Wall -Wstrict-prototypes -fno-stack-protector   -o
hello_world.o hello_world.c -c
In file included from /home/nmenon/Src/r/x/u-boot/include/common.h:113,
                 from hello_world.c:24:
/home/nmenon/Src/r/x/u-boot/include/image.h:507:3: error: #error Unknown
CPU type

for some wierd reason, it does not seem to take the include/config.mk
file (where the defines are present)..

now, if i do a local clone of the cloned directory, it builds just fine!
gotta dig at it a little more..
Regards,
Nishanth Menon

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] Build breaks on some OMAP3 configs
  2009-10-30 20:34 ` Nishanth Menon
@ 2009-10-30 21:35   ` Wolfgang Denk
  2009-10-31 13:07     ` Nishanth Menon
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Denk @ 2009-10-30 21:35 UTC (permalink / raw)
  To: u-boot

Dear Nishanth Menon,

In message <4AEB4DC5.9040302@gmail.com> you wrote:
>
> for some wierd reason, it does not seem to take the include/config.mk
> file (where the defines are present)..
> 
> now, if i do a local clone of the cloned directory, it builds just fine!
> gotta dig at it a little more..

Maybe some files have been stored on or transferred through a Windoze
system which messed up the line endings with CR-LF sequences?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Far back in the mists of ancient time, in the great and glorious days
of the former Galactic Empire, life was wild, rich  and  largely  tax
free.         - Douglas Adams, _The Hitchhiker's Guide to the Galaxy_

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] Build breaks on some OMAP3 configs
  2009-10-30 21:35   ` Wolfgang Denk
@ 2009-10-31 13:07     ` Nishanth Menon
  2009-10-31 13:57       ` Menon, Nishanth
  0 siblings, 1 reply; 11+ messages in thread
From: Nishanth Menon @ 2009-10-31 13:07 UTC (permalink / raw)
  To: u-boot

Wolfgang Denk said the following on 10/30/2009 11:35 PM:
> Dear Nishanth Menon,
>
> In message <4AEB4DC5.9040302@gmail.com> you wrote:
>   
>> for some wierd reason, it does not seem to take the include/config.mk
>> file (where the defines are present)..
>>
>> now, if i do a local clone of the cloned directory, it builds just fine!
>> gotta dig at it a little more..
>>     
>
> Maybe some files have been stored on or transferred through a Windoze
> system which messed up the line endings with CR-LF sequences?
>
>   
Nope, I cloned(the direct clone from git.denx) direct to my linux laptop
- amd64, dual core ubuntu 9.10.

Regards,
Nishanth Menon

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] Build breaks on some OMAP3 configs
  2009-10-31 13:07     ` Nishanth Menon
@ 2009-10-31 13:57       ` Menon, Nishanth
  0 siblings, 0 replies; 11+ messages in thread
From: Menon, Nishanth @ 2009-10-31 13:57 UTC (permalink / raw)
  To: u-boot

Nishanth Menon said the following on 10/31/2009 03:07 PM:
> Wolfgang Denk said the following on 10/30/2009 11:35 PM:
>   
>> Dear Nishanth Menon,
>>
>> In message <4AEB4DC5.9040302@gmail.com> you wrote:
>>   
>>     
>>> for some wierd reason, it does not seem to take the include/config.mk
>>> file (where the defines are present)..
>>>
>>> now, if i do a local clone of the cloned directory, it builds just fine!
>>> gotta dig at it a little more..
>>>     
>>>       
>> Maybe some files have been stored on or transferred through a Windoze
>> system which messed up the line endings with CR-LF sequences?
>>
>>   
>>     
> Nope, I cloned(the direct clone from git.denx) direct to my linux laptop
> - amd64, dual core ubuntu 9.10.
>
>   
Got the problem! duh.. I had ARCH=ARM instead of ARCH=arm in my alias!!!
"make -p" helped catch it... all is well now..
proper alias is now:
alias mymake='make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- V=1'
even better: I dont need to use the ARCH=arm in my alias anymore.. so to
prevent dumb asses like me, will send out a patch:
diff --git a/mkconfig b/mkconfig
index 4c5675b..87ac6d4 100755
--- a/mkconfig
+++ b/mkconfig
@@ -27,6 +27,11 @@ done
 [ $# -lt 4 ] && exit 1
 [ $# -gt 6 ] && exit 1
 
+if [ ! -z "$ARCH" -a "$ARCH" != "$2" ]; then
+       echo "ARCH=$ARCH while ${BOARD_NAME} arch=$2: fail"
+       exit 1
+fi
+
 echo "Configuring for ${BOARD_NAME} board..."
 
 #


Regards,
Nishanth Menon

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [U-Boot] Build breaks on some OMAP3 configs
  2009-10-30 16:54 [U-Boot] Build breaks on some OMAP3 configs Gadiyar, Anand
  2009-10-30 20:34 ` Nishanth Menon
@ 2009-11-06  9:04 ` Premi, Sanjeev
  2009-11-06  9:08   ` Gadiyar, Anand
  1 sibling, 1 reply; 11+ messages in thread
From: Premi, Sanjeev @ 2009-11-06  9:04 UTC (permalink / raw)
  To: u-boot


> -----Original Message-----
> From: u-boot-bounces at lists.denx.de 
> [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Gadiyar, Anand
> Sent: Friday, October 30, 2009 10:25 PM
> To: u-boot at lists.denx.de
> Subject: Re: [U-Boot] Build breaks on some OMAP3 configs
> 
> > Hi,
> > 
> > I was trying to build u-boot for omap3_3430sdp and
> > omap3_zoom2, and the build fails with the error below.
> > 
> > I'm on commit f2b4bc0 from the master branch. I'm
> > using CodeSourcery's 2008q3 toolchain.
> > The commands I ran were:
> > 
> > make CROSS_COMPILE=arm-none-linux-gnueabi- 
> > omap3_3430sdp_config; make CROSS_COMPILE=arm-none-linux-gnueabi-
> > 
> > Any ideas what I'm doing wrong?
> > 
> > make -C examples/standalone all
> > make[1]: Entering directory 
> `/data/git/denx-uboot/u-boot/examples/standalone'
> > arm-none-linux-gnueabi-gcc -g  -Os   -fno-common -ffixed-r8 
> -msoft-float   -D__KERNEL__ -DTEXT_BASE=0x80e80000 
> -I/data/git/denx-uboot/u-boot/include -fno-builtin 
> -ffreestanding -nostdinc -isystem 
> /data/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/i
> nclude -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux 
> -mno-thumb-interwork -march=armv5 -Wall -Wstrict-prototypes 
> -fno-stack-protector -g  -Os   -fno-common -ffixed-r8 
> -msoft-float   -D__KERNEL__ -DTEXT_BASE=0x80e80000 
> -I/data/git/denx-uboot/u-boot/include -fno-builtin 
> -ffreestanding -nostdinc -isystem 
> /data/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/i
> nclude -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux 
> -mno-thumb-interwork -march=armv5 -I.. -Bstatic -T u-boot.lds 
>  -Ttext 0x80e80000     -o .c
> > arm-none-linux-gnueabi-gcc: no input files
> > make[1]: *** [.c] Error 1
> > make[1]: Leaving directory 
> `/data/git/denx-uboot/u-boot/examples/standalone'
> > make: *** [examples/standalone] Error 2
> 
> 
> I took a look at examples/standalone/Makefile:
> 
> The patch below gets things going again. So looks like something
> clobbered $(ELF-y). Any ideas what it could be?
> 
> Thanks in advance,
> Anand
> 
> diff --git a/examples/standalone/Makefile 
> b/examples/standalone/Makefile
> index 5e2f2bc..73b19e9 100644
> --- a/examples/standalone/Makefile
> +++ b/examples/standalone/Makefile
> @@ -39,6 +39,7 @@ ELF-ppc                          += sched
>  ELF-oxc                          += eepro100_eeprom
>  
>  ELF := $(ELF-y) $(ELF-$(ARCH)) $(ELF-$(BOARD)) $(ELF-$(CPU))
> +ELF := hello_world

[sp] This will break the earlier definition for ELF.
     I am submitting the right fix in few mins..

~sanjeev

>  SREC = $(addsuffix .srec,$(ELF))
>  BIN  = $(addsuffix .bin,$(ELF))
>  
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
> 
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] Build breaks on some OMAP3 configs
  2009-11-06  9:04 ` Premi, Sanjeev
@ 2009-11-06  9:08   ` Gadiyar, Anand
  0 siblings, 0 replies; 11+ messages in thread
From: Gadiyar, Anand @ 2009-11-06  9:08 UTC (permalink / raw)
  To: u-boot

> > > Hi,
> > > 
> > > I was trying to build u-boot for omap3_3430sdp and
> > > omap3_zoom2, and the build fails with the error below.
> > > 
> > > I'm on commit f2b4bc0 from the master branch. I'm
> > > using CodeSourcery's 2008q3 toolchain.
> > > The commands I ran were:
> > > 
> > > make CROSS_COMPILE=arm-none-linux-gnueabi- 
> > > omap3_3430sdp_config; make CROSS_COMPILE=arm-none-linux-gnueabi-
> > > 
> > > Any ideas what I'm doing wrong?
> > > 
> > > make -C examples/standalone all
> > > make[1]: Entering directory `/data/git/denx-uboot/u-boot/examples/standalone'
> > > arm-none-linux-gnueabi-gcc -g  -Os   -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/data/git/denx-uboot/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /data/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -Wall -Wstrict-prototypes -fno-stack-protector -g  -Os   -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/data/git/denx-uboot/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /data/arm-2008q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -I.. -Bstatic -T u-boot.lds  -Ttext 0x80e80000     -o .c
> > > arm-none-linux-gnueabi-gcc: no input files
> > > make[1]: *** [.c] Error 1
> > > make[1]: Leaving directory 
> > `/data/git/denx-uboot/u-boot/examples/standalone'
> > > make: *** [examples/standalone] Error 2
> > 
> > 
> > I took a look at examples/standalone/Makefile:
> > 
> > The patch below gets things going again. So looks like something
> > clobbered $(ELF-y). Any ideas what it could be?
> > 
> > Thanks in advance,
> > Anand
> > 
> > diff --git a/examples/standalone/Makefile 
> > b/examples/standalone/Makefile
> > index 5e2f2bc..73b19e9 100644
> > --- a/examples/standalone/Makefile
> > +++ b/examples/standalone/Makefile
> > @@ -39,6 +39,7 @@ ELF-ppc                          += sched
> >  ELF-oxc                          += eepro100_eeprom
> >  
> >  ELF := $(ELF-y) $(ELF-$(ARCH)) $(ELF-$(BOARD)) $(ELF-$(CPU))
> > +ELF := hello_world
> 
> [sp] This will break the earlier definition for ELF.
>      I am submitting the right fix in few mins..
> 

Yes, I know. This was not meant to be applied. It was just to provide
an observation.

Not having any u-boot code expertise, I had no idea where to look.

Thanks for finding a fix. I'm glad to know I wasn't the only one affected.

- Anand

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-11-06  9:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-30 16:54 [U-Boot] Build breaks on some OMAP3 configs Gadiyar, Anand
2009-10-30 20:34 ` Nishanth Menon
2009-10-30 21:35   ` Wolfgang Denk
2009-10-31 13:07     ` Nishanth Menon
2009-10-31 13:57       ` Menon, Nishanth
2009-11-06  9:04 ` Premi, Sanjeev
2009-11-06  9:08   ` Gadiyar, Anand
  -- strict thread matches above, loose matches on Subject: below --
2009-10-30 16:06 Gadiyar, Anand
2009-10-30 16:47 ` Dirk Behme
2009-10-30 16:52   ` Nishanth Menon
2009-10-30 16:55     ` Gadiyar, Anand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox