Hi

I want to install an older version of gcc, and see if it solves some of my 
problems. I have the following questions:

1. Which version of gcc should I install? I saw somewhere that >=3.2 is 
recommended - is the latest 3.x version (3.4.6) the best, or is an earlier 
version perhaps better? (Which version are you using?)

2. Do I need to recompile everything with the newly installed gcc (patched 
kernel, RTAI, RTnet)?

3. From the RTAI user manual it seems that the re-compilation process for RTAI 
consists of running
"make reconfig CC=/my/favorite/c/compiler", and then "make". Is the process for 
RTnet and the patched kernel identical? Or should I simply change a symlink for 
gcc somewhere and re-build all?

Thanks
Thinus


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 01 August 2006 12:47
To: Thinus Viljoen
Cc: rtnet-users@lists.sourceforge.net
Subject: Re: [RTnet-users] RTnet in RTAI kernel space


Thinus Viljoen wrote:
> Jan
> 
> Calling rtdm_in_rt_context() returns the following values in the following 
> functions:
> init_module(): 0
> recv_msg(): 1
> send_msg(): 1
> This is correct, I assume?

Yep, all fine. That would have been too easy...

> 
> Regarding the rt_assign_irq_to_cpu: I am not too sure what it is for, I am 
> ashamed to say - it is used in some RTAI showroom examples, and in particular 
> one that I copied&pasted some code from. I removed it, and it didn't seem to 
> make any difference.

As you are on UP anyway, this IRQ assignment makes surely no sense here.
But it /shouldn't/ cause harm as well.

> 
> Another question - is it necessary to include rtdm/rtdm.h?

Nope, rtnet.h does so.

> 
> Some facts that might be relevant:
> 
> 1. When compiling I get the following warning: 
> /usr/realtime/include/rtai_sanity.h:24:2: warning: #warning : You are likely 
> using an unsuported GCC version! Please read GCC-WARNINGS carefully.
> I can't find this GCC-WARNINGS file (a post on the net refers to the RTAI 
> source tree, but I can't find it there). I am using GCC 4.1.0.

Oh, may explain some weirdness, don't know if also the -38 error. Do you
have some other compiler at hand to cross-check?

I don't know why RTAI has to warn about recent compilers. The only bug
I've seen in the wild so far was a freaky corner case (in combination
with kgdb). It will be fixed in 4.1.1 and should not affect RTAI anyway.

> 
> 2. Every now and then I get the following message:
> UNEXPECTED FPU TRAP FROM HARD PID = xxxx (The PID is for "insmod 
> rtai_lxrt.ko")
> 
> 3. Sometimes, after multiple module load/unload/recompile etc. cycles, every 
> key that I press is repeated about 20 times (or the PC hangs). I then have to 
> reboot. Sometimes after the reboot the PC hangs during the boot process, but 
> then boots OK after a further reboot.
> 
> 4. My machine is a AMD Athlon 1.4GHz, with a AMD761 K7 chipset.

That three issues can be related to RTAI's issues with the compiler
(RTnet is proven to be fine with 4.1). But the -ENOSYS issue remains
unexplainable to me.

In any case, this very much looks like a RTAI-related issue now. Maybe
someone can jump in here, or you could post your findings (with code) on
the RTAI list. I'm sorry that I cannot help, but there are too many
RTAI-unknowns for me.

Jan


*******************************************************************************************************
Disclaimer:  The information contained in this communication is confidential 
and may be legally privileged.  
It is intended solely for the use of the individual or entity to whom it is 
addressed and others authorised to receive it.  
Any review, retransmission, dissemination, copying, disclosure or other use of, 
or taking of any action in reliance upon, this information by person or 
entities other then the intended recipient is prohibited.  
If you have received this message in error, please notify the sender 
immediately by e-mail, facsimile or telephone and return and/or destroy the 
original message and all copies from any computer.  

Denel (Pty) Ltd exercises no editorial control over e-mail messages originating 
in the organisation and does not accept any responsibility for either the 
contents of the message or any copyright laws that may have been violated by 
the person sending this message.  
Denel (Pty) Ltd is neither liable for the proper and complete transmission of 
the information contained in this communication nor any delay in its receipt.  
This message should not be copied or used for any purpose other than intended, 
nor should it be disclosed to any other person.
*******************************************************************************************************


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to