public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Can't Compile u-boot-1.1.5_atmel_1.2!!
@ 2007-02-27  8:49 Måns Zigher
  2007-02-27  9:44 ` Daniel Hobi
  2007-02-27 16:09 ` 25an
  0 siblings, 2 replies; 9+ messages in thread
From: Måns Zigher @ 2007-02-27  8:49 UTC (permalink / raw)
  To: u-boot

Hi!

I am trying to compile u-boot-1.1.5 for at91sam9261ek with arm926ejs cpu. I
am using the eldk
cross toolchain 4.1 which is using gcc 4.0.0.
When I try to compile u-boot I get following error

25an at 25an-desktop
:/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2$make ARCH=arm
CROSS_COMPILE=arm-linux-
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/tools'
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/examples'
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/post'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/post'
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/post/cpu'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/post/cpu'
make -C tools all
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/tools'
make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/tools'
make -C examples all
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/examples '
arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8
-msoft-float  -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float
-D__KERNEL__ -DTEXT_BASE=0x23f00000  -I/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/include -fno-builtin -ffreestanding -nostdinc -isystem
/opt/x-compile/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe
-DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -mapcs-32 -march=armv5te
-mtune=arm926ejs -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c

cc1: error: invalid option 'apcs-32'
hello_world.c:1: error: bad value (arm926ejs) for -mtune= switch
make[1]: *** [hello_world.o] Error 1
make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/examples'
make: *** [examples] Error 2

Any ideas?
I would also appreciate any suggestion how to locate the error since right
now I have not even managed to locate were the flag is set.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070227/fd7cdd7a/attachment.htm 

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [U-Boot-Users] Can't Compile u-boot-1.1.5_atmel_1.2!!
@ 2007-02-27  8:54 25an
  0 siblings, 0 replies; 9+ messages in thread
From: 25an @ 2007-02-27  8:54 UTC (permalink / raw)
  To: u-boot


Hi!

I am trying to compile u-boot-1.1.5 for at91sam9261ek with arm926ejs cpu. I
am using the eldk
cross toolchain 4.1 which is using gcc 4.0.0.
When I try to compile u-boot I get following error

25an at 25an-desktop :/opt/x-compile/eldk/workingare
a/u-boot-1.1.5_atmel_1.2$ make ARCH=arm CROSS_COMPILE=arm-linux-
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory
`/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2/tools'
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory
`/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2/examples'
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/post'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory
`/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2/post'
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/post/cpu'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory
`/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2/post/cpu'
make -C tools all
make[1]: Entering directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/tools'
make[1]: Leaving directory
`/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2/tools'
make -C examples all
make[1]: Entering directory
`/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2/examples '
arm-linux-gcc -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8
-msoft-float  -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float
-D__KERNEL__ -DTEXT_BASE=0x23f00000  -I/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/include -fno-builtin -ffreestanding -nostdinc -isystem
/opt/x-compile/eldk/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe 
-DCONFIG_ARM -D__ARM__ -march=armv4 -mabi=apcs-gnu -mapcs-32 -march=armv5te
-mtune=arm926ejs -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c
cc1: error: invalid option 'apcs-32'
hello_world.c:1: error: bad value (arm926ejs) for -mtune= switch
make[1]: *** [hello_world.o] Error 1
make[1]: Leaving directory `/opt/x-compile/eldk/workingarea/u-
boot-1.1.5_atmel_1.2/examples'
make: *** [examples] Error 2

Any ideas?
I would also appreciate any suggestion how to locate the error since right
now I have not even managed to locate were the flag is set.

Thanks
-- 
View this message in context: http://www.nabble.com/Can%27t-Compile-u-boot-1.1.5_atmel_1.2%21%21-tf3299257.html#a9177624
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [U-Boot-Users] Can't Compile u-boot-1.1.5_atmel_1.2!!
@ 2007-02-27 15:21 Daniel Hobi
  0 siblings, 0 replies; 9+ messages in thread
From: Daniel Hobi @ 2007-02-27 15:21 UTC (permalink / raw)
  To: u-boot

Argh, ignoring the plain-text restriction myself. Sorry about that!

On 27.02.2007 15:23, 25an wrote:
> I manged to solve the problem but now I get another one. The first
> problem was solved by edit the cpu/arm926ejs/at91sam926x/config.mk 
> file accordingly
> 
> #PLATFORM_CPPFLAGS += -mapcs-32 -march=armv5te -mtune=arm926ejs 
> PLATFORM_CPPFLAGS += -march=armv5te -Wa,-mapcs-32 -mtune=arm926ej-s

I suggest not using -mtune at all, it will most likely not produce
different (more efficient) code than using -march=armv5te alone when
compiling U-Boot.

The gcc flag -mapcs-32 was deprecated since gcc-3.4.0 and finally
removed in gcc-4.0.0 which unconditionally generates 32bit ARM code. You
should not need to pass this flag to the assembler either.

> Now the error that I am getting is
> 
> usb_ohci.c: In function 'usb_lowlevel_init': usb_ohci.c:1659: error:
> invalid lvalue in assignment make[1]: *** [usb_ohci.o] Error 1 
> make[1]: Leaving directory 
> `/opt/x-compile/eldk/workingarea/u-boot-1.1.5_atmel_1.2/cpu/arm926ejs/at91sam926x'
>  make: *** [cpu/arm926ejs/at91sam926x/libat91sam926x.a] Error 2

Again, update to a more recent version of U-Boot. Or, if that is not
possible, use an older toolchain/compiler (for example gcc-3.4.6 should
work with U-Boot 1.1.5).

U-Boot 1.1.5 DOES NOT WORK with gcc-4.x! Expect more (hidden) problems!

> Content-Type: text/plain; charset="utf-8"
> Content-Transfer-Encoding: base64

Please post plain-text messages to this list.

Regards,
Daniel

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

end of thread, other threads:[~2007-02-28 11:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-27  8:49 [U-Boot-Users] Can't Compile u-boot-1.1.5_atmel_1.2!! Måns Zigher
2007-02-27  9:44 ` Daniel Hobi
2007-02-27 14:23   ` 25an
2007-02-27 15:15     ` Daniel Hobi
2007-02-27 15:41       ` 25an
2007-02-27 16:09 ` 25an
2007-02-28 11:35   ` 25an
  -- strict thread matches above, loose matches on Subject: below --
2007-02-27  8:54 25an
2007-02-27 15:21 Daniel Hobi

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