Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Cross Compile Help Please

Cross Compile Help Please

Scheduled Pinned Locked Moved Support
6 Posts 3 Posters 52.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    G
    gmonk63
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • G
        G
        gmonk63
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • G
          G
          gmonk63
          wrote on last edited by
          #4

          So then am I out of luck on this one ???

          1 Reply Last reply
          0
          • A
            A
            Alex Kirhenshtein
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • G
              G
              gmonk63
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              Powered by NodeBB Contributors
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups