Problem with component on old installation (on customer)

  • emcPT
  • emcPT's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
22 Jun 2022 18:47 #245610 by emcPT
Hello to the forum.

On a machine that was under retrofit on my company, that was shipped with the custom made components in plain text, that I think that they were compiled on that same machine/PC during the retrofit.
The machine is working for about 6 years on the customer

Today I remotely connected to diagnose a wrong tool table and I had to make some changes on a component mostly to get more feedback. Since the code where there, perfect, I could not damage too much. I was wrong. The .ko file is now much larger than the original one (changes on the source code were minor) and linuxcnc does not start:

I compiled like this:
comp --compile --userspace tc.comp make KBUILD_EXTRA_SYMBOLS=/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/Module.symvers -C /usr/src/linux-headers-3.4-9-rtai-686-pae SUBDIRS=`pwd` CC=gcc V=0 modules make[1]: Entering directory `/usr/src/linux-headers-3.4-9-rtai-686-pae'   CC [M]  /tmp/tmpQy_IfO/tc.o   Building modules, stage 2.   MODPOST 1 modules   CC      /tmp/tmpQy_IfO/tc.mod.o   LD [M]  /tmp/tmpQy_IfO/tc.ko make[1]: Leaving directory `/usr/src/linux-headers-3.4-9-rtai-686-pae'


dmesg:
[ 7980.064239] hm2/hm2_5i25.0: registered [ 7980.064241] hm2_5i25.0: initialized AnyIO board at 0000:05:00.0 [ 7980.089571] tc: disagrees about version of symbol hal_param_float_newf [ 7980.089574] tc: Unknown symbol hal_param_float_newf (err -22) [ 7980.089584] tc: disagrees about version of symbol hal_pin_s32_newf [ 7980.089585] tc: Unknown symbol hal_pin_s32_newf (err -22) [ 7980.089588] tc: disagrees about version of symbol hal_pin_bit_newf [ 7980.089589] tc: Unknown symbol hal_pin_bit_newf (err -22) [ 7980.203693] hm2_5i25.0: dropping AnyIO board at 0000:05:00.0 [ 7980.203712] hm2/hm2_5i25.0: unregistered [ 7980.203824] hm2_pci: driver unloaded [ 7980.205201] hm2: unloading [ 7982.256842] RTAI[math]: unloaded.

The previous component had a size of 60509 bytes, the new component has 100353 bytes.
I do not know what steps to take and I ask the forum for some guidance.
Thank you

Please Log in or Create an account to join the conversation.

More
23 Jun 2022 22:57 #245736 by andypugh
Which LinuxCNC version?

If it is using "comp" rather than "halcompile" then I would guess quite an old one.

Have you tried a normal

sudo comp --install tc.comp ?

Please Log in or Create an account to join the conversation.

More
24 Jun 2022 00:34 #245747 by PCW
It seems like possibly a LinuxCNC/component version mismatch

Is full linuxCNC source on the machine?, if so maybe rebuilding LinuxCNC would get things in sync
 

Please Log in or Create an account to join the conversation.

  • emcPT
  • emcPT's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
24 Jun 2022 13:26 #245784 by emcPT
Thank you both.

Indeed the installation has about 6 years, so yes, "old". I do not know the linuxcnc version unless I connect again to the machine. If this is mandatory or if it can give a clear clue, I can ask for a remote connection for me to check it.

I did tested installing the component using:

sudo comp --install tc.comp

in fact it was the first thing that I did, and it broke the installation as the new compiled output seems not match the rest.

I will probably need to rebuild linuxcnc like PCW suggested. The source it on the machine - I believe so, but it is a process that might (for sure) bring other problems, and that I wanted to avoid as the machine is far away from me and the needed time to handle what might possible come from it will be huge.

Thinking a bit, if the source is on the machine is it possible that I am issuing the "comp" from a different source than the one that the current linuxcnc installation is running from? This could explain the version mismatch, if more than one linuxcnc is installed. Not sure if I am saying something stupid but is possible to have a run in place installation and a standard package installation on the system?

I am doing it to help the customer (at no cost) so it is not on my plans to work on this for days, and from my experience it might take days to have all sorted out rebuilding it totally.

Please Log in or Create an account to join the conversation.

More
24 Jun 2022 19:00 #245804 by PCW

Thinking a bit, if the source is on the machine is it possible that I am issuing the "comp" from a different source than the one that the current linuxcnc installation is running from? This could explain the version mismatch, if more than one linuxcnc is installed. Not sure if I am saying something stupid but is possible to have a run in place installation and a standard package installation on the system?

Yes, that is very possible...

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum