[U-Boot-Users] Building U-Boot with GCC3.4.0

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...

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

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@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

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@denx.de Your own mileage may vary.
participants (3)
-
Jim McNamara
-
Marc Leeman
-
Wolfgang Denk