[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Compiler hangs



Hi Patrick,

Patrick Robin wrote:

> Were there any plans for uClinux  to move to mb-gcc 3.4.1?  I have the 
> source for mb-gcc 3.4.1 taken from the Xilinx web site but before I 
> attempt to compile them (not simple I was told) I wanted to check.

In theory it works already - I did the support for gcc-3.4.1 back in 
December last year.  Unfortunately, something changed between when I did 
that support, and when the EDK7.1 tools came out (not sure if it's the 
compiler or the kernel that broke - or both), but as of today it doesn't 
quite work.

I expect this to be fixed sooner rather than later, I've got some fairly 
pressing reasons to spend some time on it soon.

If you are up for some kernel hacking and compiler debugging then let me 
know and I can send you the patches necessary - otherwise they should be 
folded into the next release of the uClinux-dist, due out any day now.

Regards,

John


> 
> Thank You
> 
>  Patrick Robin
> 
> 
> <h3><center><a href="http://themail.com/ref.htm?ref=917508";><font 
> style='text-decoration:none'>Get paid for using free e-mail @ 
> TheMail.com</a></font></center><h3>
> 
> 
> 
>> From: "Patrick Robin" <circaeng@hotmail.com>
>> Reply-To: microblaze-uclinux@itee.uq.edu.au
>> To: microblaze-uclinux@itee.uq.edu.au
>> Subject: [microblaze-uclinux] Compiler hangs Date: Tue, 02 Aug 2005 
>> 22:41:58 +0000
>>
>> Hello,
>>
>> mb-gcc hangs when compiling the simple code bellow with optimization 
>> turned on. Seems to be related to 64 bit variables. I open a webcase 
>> with Xilinx but since uClinux uses "unsigned long long" variables and 
>> -01 optimization, I was wondering if anyone else saw this problem. In 
>> a larger program, it seems to be possible to make the code compile by 
>> juggling things around but the resulting code is unstable and hangs. 
>> THis doesn't happen with optimization turned off.
>>
>> Patrick Robin
>>
>> #include "xbasic_types.h"
>>
>> typedef struct {
>>
>> Xuint32 N;
>>
>> } FGen;
>>
>> //==================================================================
>> void FGen_runSingle(FGen *fg) {
>>
>> unsigned long long z64; //unsigned 64 bits
>> z64=((z64<<29))/48828125;
>> fg->N=(Xuint32)z64;
>> }
>>
>>
>>
>> <h3><center><a href="http://themail.com/ref.htm?ref=917508";><font 
>> style='text-decoration:none'>Get paid for using free e-mail @ 
>> TheMail.com</a></font></center><h3>
>>
>>
>> ___________________________
>> microblaze-uclinux mailing list
>> microblaze-uclinux@itee.uq.edu.au
>> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
>> Mailing List Archive : 
>> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>>
> 
> 
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@itee.uq.edu.au
> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive : 
> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/