NetXMS Support Forum

English Support => General Support => Topic started by: gmonk63 on December 18, 2015, 07:10:47 PM

Title: Cross Compile Help Please
Post by: gmonk63 on December 18, 2015, 07:10:47 PM
Need help with this i am trying to cross compile just the agent for a device that uses an older kernel 2.6.26.8  with gcc version 4.2.1  and always have issues with  __sync_add_fetch_4  error and I know it is becuase of the older gcc version  is there any way around this ?  This device does not have snmp support which is why I would like to have an agent running on it ...

I have successfully compiled different programs for this devices but having issues on netxms agent


Thanks
Title: Re: Cross Compile Help Please
Post by: Victor Kirhenshtein on December 30, 2015, 11:38:48 PM
Hi,

most likely problem is not related to gcc itself (4.2.1 support atomic operations) but to architecture you are compiling for. What is your target platform?

Best regards,
Victor
Title: Re: Cross Compile Help Please
Post by: gmonk63 on December 31, 2015, 07:47:35 PM
Target is MIPS32 24KEc  and gave the wrong gcc version its actually 4.1.2    I noticed it complains generally  around building and linking libnxsnmp... I dont need the snmp library tools at all just the linux subagent since I only want it to send the linux stats and be able to send a remote command to the device when needed ...
Title: Re: Cross Compile Help Please
Post by: gmonk63 on January 04, 2016, 09:10:53 PM
So then am I out of luck on this one ???
Title: Re: Cross Compile Help Please
Post by: Alex Kirhenshtein on February 09, 2016, 09:44:20 AM
What toolchain you are using? I personally compiled agent for OpenWRT running on Atheros AR7240 (MIPS 24Kc) using standard buildroot-based environment.
Btw, if you are compiling for OpenWRT – you can use our feed: https://github.com/netxms/openwrt-feed
Title: Re: Cross Compile Help Please
Post by: gmonk63 on February 09, 2016, 06:35:09 PM
Its is openwrt but they are using a very old version kamikaze    I have not had any problems building the package on later versions ..and all the research I have done points to the issues of the atomic functions not being supported on the gcc version that's included with the kamikaze toolchain I believe 4.2.1 is the version of gcc that is included.