All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] Building U-Boot with GCC3.4.0
@ 2004-11-09 12:10 Jim McNamara
  2004-11-09 20:15 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Jim McNamara @ 2004-11-09 12:10 UTC (permalink / raw)
  To: u-boot

Hi All,

I've been able to get U-Boot to build and run successfully using Linux and
m68k-elf-2.95.3.

What I'm trying to do now is build U-Boot in Cygwin using m68k-elf-3.4.0.
I've applied all the cygwin patches neccessary and any GCC3.4.0 patches I
could find. However, I've run into a problem compiling cpu/mcf52x2/start.S.
This is the error message that I'm getting:-

m68k-elf-gcc -Wa,-gstabs -D__ASSEMBLY__ -g  -Os   -ffixed-d7 -msep-data -D__
KERNEL__ -DTEXT_BASE=0xfe000000 -I/home/JimMcNamara/u-boot-1.1.1/include -fn
o-builtin -ffreestanding -nostdinc -isystem
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include -pipe  -DCONFIG_M68K -D__M68K_
_ -m5307 -c -o cpu/mcf52x2/start.o
/home/JimMcNamara/u-boot-1.1.1/cpu/mcf52x2/start.S
/home/JimMcNamara/u-boot-1.1.1/cpu/mcf52x2/start.S: Assembler messages:
/home/JimMcNamara/u-boot-1.1.1/cpu/mcf52x2/start.S:316: Fatal error: Tried
to convert PC relative conditional branch to absolute jump
make: *** [cpu/mcf52x2/start.o] Error 1

I've looked at the mail archive and noticed that this problem has been
mentioned before, however I can't find any solution posted. Can anyone give
me some pointers on how to resolve the problem??

Thanks,

Jim...

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

* [U-Boot-Users] Building U-Boot with GCC3.4.0
  2004-11-09 12:10 [U-Boot-Users] Building U-Boot with GCC3.4.0 Jim McNamara
@ 2004-11-09 20:15 ` Wolfgang Denk
  2004-11-10  5:51   ` Marc Leeman
  2004-11-10  9:31   ` Jim McNamara
  0 siblings, 2 replies; 5+ messages in thread
From: Wolfgang Denk @ 2004-11-09 20:15 UTC (permalink / raw)
  To: u-boot

In message <PKEEJGHDPBIDKDLLBHPIMEHKCCAA.jmcnamara@kimble.ie> you wrote:
> 
> I've been able to get U-Boot to build and run successfully using Linux and
> m68k-elf-2.95.3.

That's an ancient toolchain...

> What I'm trying to do now is build U-Boot in Cygwin using m68k-elf-3.4.0.

You're dropping from one extreme into another.

> /home/JimMcNamara/u-boot-1.1.1/cpu/mcf52x2/start.S

And you're using  old  code.  Use  the  top-of-tree  version  in  CVS
instead.

> I've looked at the mail archive and noticed that this problem has been
> mentioned before, however I can't find any solution posted. Can anyone give
> me some pointers on how to resolve the problem??

Please try the current code; if the problem persists, you  will  need
to fix it.

Best regards,

Wolfgang Denk

-- 
See us @ Embedded/Electronica Munich, Nov 09 - 12, Hall A.6 Booth 513
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Your own mileage may vary.

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

* [U-Boot-Users] Building U-Boot with GCC3.4.0
  2004-11-09 20:15 ` Wolfgang Denk
@ 2004-11-10  5:51   ` Marc Leeman
  2004-11-10  9:31   ` Jim McNamara
  1 sibling, 0 replies; 5+ messages in thread
From: Marc Leeman @ 2004-11-10  5:51 UTC (permalink / raw)
  To: u-boot

> You're dropping from one extreme into another.

FYI

The 3.4 was the only thing we needed to create our own toolchain that
was at least as performant (binary wise) as a commercial toolchain.

I was able to compile u-boot with the toolchain (buildroot based,
powerpc-linux-uclibc-gcc) but the final linkcing failed (caused a
segfault, Make error 321 or something).

For the time being, I use the ELDK compiler to build u-boot and the
3.4 based toolchain for everything else (including the kernel). I'll
have another look at it in the next weeks or so.

[mleeman at gemini mleeman]$ powerpc-linux-uclibc-gcc -v
Reading specs from
/opt/barco/toolchain_uclibc_powerpc/build_powerpc/host_tools/lib/gcc/powerpc-linux-uclibc/3.4.1/specs
Configured with:
/opt/barco/toolchain_uclibc_powerpc/toolchain_build_powerpc/gcc-3.4.1/configure
--prefix=/opt/barco/toolchain_uclibc_powerpc/build_powerpc/host_tools
--build=i386-pc-linux-gnu --host=i386-pc-linux-gnu
--target=powerpc-linux-uclibc --enable-languages=c --enable-shared
--disable-__cxa_atexit --enable-target-optspace --with-gnu-ld
--disable-nls --enable-multilib --enable-sjlj-exceptions
Thread model: posix
gcc version 3.4.1

-- 
ash nazg durbatul?k, ash nazg gimbatul,
ash nazg thrakatul?k agh burzum-ishi krimpatul

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

* [U-Boot-Users] Building U-Boot with GCC3.4.0
  2004-11-09 20:15 ` Wolfgang Denk
  2004-11-10  5:51   ` Marc Leeman
@ 2004-11-10  9:31   ` Jim McNamara
  1 sibling, 0 replies; 5+ messages in thread
From: Jim McNamara @ 2004-11-10  9:31 UTC (permalink / raw)
  To: u-boot

> In message <PKEEJGHDPBIDKDLLBHPIMEHKCCAA.jmcnamara@kimble.ie> you wrote:
> > 
> > I've been able to get U-Boot to build and run successfully 
> using Linux and
> > m68k-elf-2.95.3.
> 
> That's an ancient toolchain...

What's the recommended version for use with U-Boot??

> 
> > What I'm trying to do now is build U-Boot in Cygwin using 
> m68k-elf-3.4.0.
> 
> You're dropping from one extreme into another.
> 
> > /home/JimMcNamara/u-boot-1.1.1/cpu/mcf52x2/start.S
> 
> And you're using  old  code.  Use  the  top-of-tree  version  in  CVS
> instead.
> 
> > I've looked at the mail archive and noticed that this problem has been
> > mentioned before, however I can't find any solution posted. Can 
> anyone give
> > me some pointers on how to resolve the problem??
> 
> Please try the current code; if the problem persists, you  will  need
> to fix it.
> 
> Best regards,
> 
> Wolfgang Denk
> 
> -- 
> See us @ Embedded/Electronica Munich, Nov 09 - 12, Hall A.6 Booth 513
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> Your own mileage may vary.
> 

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

* [U-Boot-Users] Building U-Boot with GCC3.4.0
       [not found] <1100004103.23243.35.camel@mhpajh5c>
@ 2004-11-09 13:35 ` Jim McNamara
  0 siblings, 0 replies; 5+ messages in thread
From: Jim McNamara @ 2004-11-09 13:35 UTC (permalink / raw)
  To: u-boot

Hi Benjamin,

Have a look at the patches posted by Yuli Barcohen (2004-07-19) and Lars
Munch (2004-07-24).

Do a search of the mail archive and you should find them easy enough.

Jim.

> -----Original Message-----
> From: Benjamin Collar [mailto:benjamin.collar at siemens.com]
> Sent: 09 November 2004 12:42
> To: Jim McNamara
> Subject: Re: [U-Boot-Users] Building U-Boot with GCC3.4.0
>
>
> Hi Jim
>
> I can't help you on your problem, but I'm just wondering, since I'm in a
> similar situation, what are the necessary Cygwin patches?
>
> Thanks
> Ben
>
> On Tue, 2004-11-09 at 12:10 +0000, Jim McNamara wrote:
> > Hi All,
> >
> > I've been able to get U-Boot to build and run successfully
> using Linux and
> > m68k-elf-2.95.3.
> >
> > What I'm trying to do now is build U-Boot in Cygwin using
> m68k-elf-3.4.0.
> > I've applied all the cygwin patches neccessary and any GCC3.4.0
> patches I
> > could find. However, I've run into a problem compiling
> cpu/mcf52x2/start.S.
> > This is the error message that I'm getting:-
> >
> > m68k-elf-gcc -Wa,-gstabs -D__ASSEMBLY__ -g  -Os   -ffixed-d7
> -msep-data -D__
> > KERNEL__ -DTEXT_BASE=0xfe000000
> -I/home/JimMcNamara/u-boot-1.1.1/include -fn
> > o-builtin -ffreestanding -nostdinc -isystem
> > /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include -pipe
> -DCONFIG_M68K -D__M68K_
> > _ -m5307 -c -o cpu/mcf52x2/start.o
> > /home/JimMcNamara/u-boot-1.1.1/cpu/mcf52x2/start.S
> > /home/JimMcNamara/u-boot-1.1.1/cpu/mcf52x2/start.S: Assembler messages:
> > /home/JimMcNamara/u-boot-1.1.1/cpu/mcf52x2/start.S:316: Fatal
> error: Tried
> > to convert PC relative conditional branch to absolute jump
> > make: *** [cpu/mcf52x2/start.o] Error 1
> >
> > I've looked at the mail archive and noticed that this problem has been
> > mentioned before, however I can't find any solution posted. Can
> anyone give
> > me some pointers on how to resolve the problem??
> >
> > Thanks,
> >
> > Jim...
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by:
> > Sybase ASE Linux Express Edition - download now for FREE
> > LinuxWorld Reader's Choice Award Winner for best database on Linux.
> > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> > _______________________________________________
> > U-Boot-Users mailing list
> > U-Boot-Users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/u-boot-users
> --
> Benjamin Collar
> Siemens AG
> CT SE 2
> Embedded Linux
> 089-636-53711
>
>
>

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

end of thread, other threads:[~2004-11-10  9:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-09 12:10 [U-Boot-Users] Building U-Boot with GCC3.4.0 Jim McNamara
2004-11-09 20:15 ` Wolfgang Denk
2004-11-10  5:51   ` Marc Leeman
2004-11-10  9:31   ` Jim McNamara
     [not found] <1100004103.23243.35.camel@mhpajh5c>
2004-11-09 13:35 ` Jim McNamara

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.